@compass-labs/api-sdk 0.5.13 → 0.5.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/README.md +9 -0
  2. package/bin/mcp-server.js +751 -264
  3. package/bin/mcp-server.js.map +20 -10
  4. package/dist/commonjs/funcs/transactionBatchingAaveLoop.d.ts +28 -0
  5. package/dist/commonjs/funcs/transactionBatchingAaveLoop.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/transactionBatchingAaveLoop.js +128 -0
  7. package/dist/commonjs/funcs/transactionBatchingAaveLoop.js.map +1 -0
  8. package/dist/commonjs/funcs/transactionBatchingAuthorization.d.ts +23 -0
  9. package/dist/commonjs/funcs/transactionBatchingAuthorization.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/transactionBatchingAuthorization.js +123 -0
  11. package/dist/commonjs/funcs/transactionBatchingAuthorization.js.map +1 -0
  12. package/dist/commonjs/funcs/transactionBatchingExecute.d.ts +24 -0
  13. package/dist/commonjs/funcs/transactionBatchingExecute.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/transactionBatchingExecute.js +124 -0
  15. package/dist/commonjs/funcs/transactionBatchingExecute.js.map +1 -0
  16. package/dist/commonjs/lib/config.d.ts +3 -3
  17. package/dist/commonjs/lib/config.js +3 -3
  18. package/dist/commonjs/lib/files.d.ts +5 -0
  19. package/dist/commonjs/lib/files.d.ts.map +1 -1
  20. package/dist/commonjs/lib/files.js +41 -0
  21. package/dist/commonjs/lib/files.js.map +1 -1
  22. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  23. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  24. package/dist/commonjs/mcp-server/server.js +7 -1
  25. package/dist/commonjs/mcp-server/server.js.map +1 -1
  26. package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.d.ts +8 -0
  27. package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.d.ts.map +1 -0
  28. package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.js +74 -0
  29. package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.js.map +1 -0
  30. package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.d.ts +8 -0
  31. package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.d.ts.map +1 -0
  32. package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.js +69 -0
  33. package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.js.map +1 -0
  34. package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.d.ts +8 -0
  35. package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.d.ts.map +1 -0
  36. package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.js +70 -0
  37. package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.js.map +1 -0
  38. package/dist/commonjs/models/components/aavelooprequest.d.ts +181 -0
  39. package/dist/commonjs/models/components/aavelooprequest.d.ts.map +1 -0
  40. package/dist/commonjs/models/components/aavelooprequest.js +199 -0
  41. package/dist/commonjs/models/components/aavelooprequest.js.map +1 -0
  42. package/dist/commonjs/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.d.ts +8 -8
  43. package/dist/commonjs/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.d.ts.map +1 -1
  44. package/dist/commonjs/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.js +8 -8
  45. package/dist/commonjs/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.js.map +1 -1
  46. package/dist/commonjs/models/components/index.d.ts +4 -0
  47. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  48. package/dist/commonjs/models/components/index.js +4 -0
  49. package/dist/commonjs/models/components/index.js.map +1 -1
  50. package/dist/commonjs/models/components/metadata.d.ts +0 -4
  51. package/dist/commonjs/models/components/metadata.d.ts.map +1 -1
  52. package/dist/commonjs/models/components/metadata.js +0 -4
  53. package/dist/commonjs/models/components/metadata.js.map +1 -1
  54. package/dist/commonjs/models/components/multicallauthorizationrequest.d.ts +49 -0
  55. package/dist/commonjs/models/components/multicallauthorizationrequest.d.ts.map +1 -0
  56. package/dist/commonjs/models/components/multicallauthorizationrequest.js +72 -0
  57. package/dist/commonjs/models/components/multicallauthorizationrequest.js.map +1 -0
  58. package/dist/commonjs/models/components/multicallauthorizationresponse.d.ts +45 -0
  59. package/dist/commonjs/models/components/multicallauthorizationresponse.d.ts.map +1 -0
  60. package/dist/commonjs/models/components/multicallauthorizationresponse.js +73 -0
  61. package/dist/commonjs/models/components/multicallauthorizationresponse.js.map +1 -0
  62. package/dist/commonjs/models/components/multicallexecuterequest.d.ts +50 -0
  63. package/dist/commonjs/models/components/multicallexecuterequest.d.ts.map +1 -0
  64. package/dist/commonjs/models/components/multicallexecuterequest.js +87 -0
  65. package/dist/commonjs/models/components/multicallexecuterequest.js.map +1 -0
  66. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  67. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  68. package/dist/commonjs/sdk/sdk.js +4 -0
  69. package/dist/commonjs/sdk/sdk.js.map +1 -1
  70. package/dist/commonjs/sdk/transactionbatching.d.ts +47 -0
  71. package/dist/commonjs/sdk/transactionbatching.d.ts.map +1 -0
  72. package/dist/commonjs/sdk/transactionbatching.js +63 -0
  73. package/dist/commonjs/sdk/transactionbatching.js.map +1 -0
  74. package/dist/esm/funcs/transactionBatchingAaveLoop.d.ts +28 -0
  75. package/dist/esm/funcs/transactionBatchingAaveLoop.d.ts.map +1 -0
  76. package/dist/esm/funcs/transactionBatchingAaveLoop.js +92 -0
  77. package/dist/esm/funcs/transactionBatchingAaveLoop.js.map +1 -0
  78. package/dist/esm/funcs/transactionBatchingAuthorization.d.ts +23 -0
  79. package/dist/esm/funcs/transactionBatchingAuthorization.d.ts.map +1 -0
  80. package/dist/esm/funcs/transactionBatchingAuthorization.js +87 -0
  81. package/dist/esm/funcs/transactionBatchingAuthorization.js.map +1 -0
  82. package/dist/esm/funcs/transactionBatchingExecute.d.ts +24 -0
  83. package/dist/esm/funcs/transactionBatchingExecute.d.ts.map +1 -0
  84. package/dist/esm/funcs/transactionBatchingExecute.js +88 -0
  85. package/dist/esm/funcs/transactionBatchingExecute.js.map +1 -0
  86. package/dist/esm/lib/config.d.ts +3 -3
  87. package/dist/esm/lib/config.js +3 -3
  88. package/dist/esm/lib/files.d.ts +5 -0
  89. package/dist/esm/lib/files.d.ts.map +1 -1
  90. package/dist/esm/lib/files.js +40 -0
  91. package/dist/esm/lib/files.js.map +1 -1
  92. package/dist/esm/mcp-server/mcp-server.js +1 -1
  93. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  94. package/dist/esm/mcp-server/server.js +7 -1
  95. package/dist/esm/mcp-server/server.js.map +1 -1
  96. package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.d.ts +8 -0
  97. package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.d.ts.map +1 -0
  98. package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.js +38 -0
  99. package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.js.map +1 -0
  100. package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.d.ts +8 -0
  101. package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.d.ts.map +1 -0
  102. package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.js +33 -0
  103. package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.js.map +1 -0
  104. package/dist/esm/mcp-server/tools/transactionBatchingExecute.d.ts +8 -0
  105. package/dist/esm/mcp-server/tools/transactionBatchingExecute.d.ts.map +1 -0
  106. package/dist/esm/mcp-server/tools/transactionBatchingExecute.js +34 -0
  107. package/dist/esm/mcp-server/tools/transactionBatchingExecute.js.map +1 -0
  108. package/dist/esm/models/components/aavelooprequest.d.ts +181 -0
  109. package/dist/esm/models/components/aavelooprequest.d.ts.map +1 -0
  110. package/dist/esm/models/components/aavelooprequest.js +153 -0
  111. package/dist/esm/models/components/aavelooprequest.js.map +1 -0
  112. package/dist/esm/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.d.ts +8 -8
  113. package/dist/esm/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.d.ts.map +1 -1
  114. package/dist/esm/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.js +8 -8
  115. package/dist/esm/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.js.map +1 -1
  116. package/dist/esm/models/components/index.d.ts +4 -0
  117. package/dist/esm/models/components/index.d.ts.map +1 -1
  118. package/dist/esm/models/components/index.js +4 -0
  119. package/dist/esm/models/components/index.js.map +1 -1
  120. package/dist/esm/models/components/metadata.d.ts +0 -4
  121. package/dist/esm/models/components/metadata.d.ts.map +1 -1
  122. package/dist/esm/models/components/metadata.js +0 -4
  123. package/dist/esm/models/components/metadata.js.map +1 -1
  124. package/dist/esm/models/components/multicallauthorizationrequest.d.ts +49 -0
  125. package/dist/esm/models/components/multicallauthorizationrequest.d.ts.map +1 -0
  126. package/dist/esm/models/components/multicallauthorizationrequest.js +34 -0
  127. package/dist/esm/models/components/multicallauthorizationrequest.js.map +1 -0
  128. package/dist/esm/models/components/multicallauthorizationresponse.d.ts +45 -0
  129. package/dist/esm/models/components/multicallauthorizationresponse.d.ts.map +1 -0
  130. package/dist/esm/models/components/multicallauthorizationresponse.js +35 -0
  131. package/dist/esm/models/components/multicallauthorizationresponse.js.map +1 -0
  132. package/dist/esm/models/components/multicallexecuterequest.d.ts +50 -0
  133. package/dist/esm/models/components/multicallexecuterequest.d.ts.map +1 -0
  134. package/dist/esm/models/components/multicallexecuterequest.js +49 -0
  135. package/dist/esm/models/components/multicallexecuterequest.js.map +1 -0
  136. package/dist/esm/sdk/sdk.d.ts +3 -0
  137. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  138. package/dist/esm/sdk/sdk.js +4 -0
  139. package/dist/esm/sdk/sdk.js.map +1 -1
  140. package/dist/esm/sdk/transactionbatching.d.ts +47 -0
  141. package/dist/esm/sdk/transactionbatching.d.ts.map +1 -0
  142. package/dist/esm/sdk/transactionbatching.js +59 -0
  143. package/dist/esm/sdk/transactionbatching.js.map +1 -0
  144. package/docs/sdks/transactionbatching/README.md +318 -0
  145. package/jsr.json +1 -1
  146. package/package.json +1 -1
  147. package/src/funcs/transactionBatchingAaveLoop.ts +179 -0
  148. package/src/funcs/transactionBatchingAuthorization.ts +175 -0
  149. package/src/funcs/transactionBatchingExecute.ts +175 -0
  150. package/src/lib/config.ts +3 -3
  151. package/src/lib/files.ts +42 -0
  152. package/src/mcp-server/mcp-server.ts +1 -1
  153. package/src/mcp-server/server.ts +7 -1
  154. package/src/mcp-server/tools/transactionBatchingAaveLoop.ts +47 -0
  155. package/src/mcp-server/tools/transactionBatchingAuthorization.ts +44 -0
  156. package/src/mcp-server/tools/transactionBatchingExecute.ts +43 -0
  157. package/src/models/components/aavelooprequest.ts +368 -0
  158. package/src/models/components/compassapibackendmodelsmorphoreadresponsegetmarketmarketstate.ts +16 -16
  159. package/src/models/components/index.ts +4 -0
  160. package/src/models/components/metadata.ts +0 -8
  161. package/src/models/components/multicallauthorizationrequest.ts +90 -0
  162. package/src/models/components/multicallauthorizationresponse.ts +88 -0
  163. package/src/models/components/multicallexecuterequest.ts +112 -0
  164. package/src/sdk/sdk.ts +8 -0
  165. package/src/sdk/transactionbatching.ts +84 -0
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.MulticallAuthorizationResponse$ = exports.MulticallAuthorizationResponse$outboundSchema = exports.MulticallAuthorizationResponse$inboundSchema = void 0;
40
+ exports.multicallAuthorizationResponseToJSON = multicallAuthorizationResponseToJSON;
41
+ exports.multicallAuthorizationResponseFromJSON = multicallAuthorizationResponseFromJSON;
42
+ const z = __importStar(require("zod"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ /** @internal */
45
+ exports.MulticallAuthorizationResponse$inboundSchema = z.object({
46
+ nonce: z.number().int(),
47
+ address: z.string(),
48
+ chainId: z.number().int(),
49
+ });
50
+ /** @internal */
51
+ exports.MulticallAuthorizationResponse$outboundSchema = z.object({
52
+ nonce: z.number().int(),
53
+ address: z.string(),
54
+ chainId: z.number().int(),
55
+ });
56
+ /**
57
+ * @internal
58
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
59
+ */
60
+ var MulticallAuthorizationResponse$;
61
+ (function (MulticallAuthorizationResponse$) {
62
+ /** @deprecated use `MulticallAuthorizationResponse$inboundSchema` instead. */
63
+ MulticallAuthorizationResponse$.inboundSchema = exports.MulticallAuthorizationResponse$inboundSchema;
64
+ /** @deprecated use `MulticallAuthorizationResponse$outboundSchema` instead. */
65
+ MulticallAuthorizationResponse$.outboundSchema = exports.MulticallAuthorizationResponse$outboundSchema;
66
+ })(MulticallAuthorizationResponse$ || (exports.MulticallAuthorizationResponse$ = MulticallAuthorizationResponse$ = {}));
67
+ function multicallAuthorizationResponseToJSON(multicallAuthorizationResponse) {
68
+ return JSON.stringify(exports.MulticallAuthorizationResponse$outboundSchema.parse(multicallAuthorizationResponse));
69
+ }
70
+ function multicallAuthorizationResponseFromJSON(jsonString) {
71
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.MulticallAuthorizationResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MulticallAuthorizationResponse' from JSON`);
72
+ }
73
+ //# sourceMappingURL=multicallauthorizationresponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multicallauthorizationresponse.js","sourceRoot":"","sources":["../../../../src/models/components/multicallauthorizationresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEH,oFAQC;AAED,wFAQC;AAnFD,uCAAyB;AACzB,qDAAiD;AAsBjD,gBAAgB;AACH,QAAA,4CAA4C,GAIrD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC1B,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,6CAA6C,GAItD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC1B,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,+BAA+B,CAO/C;AAPD,WAAiB,+BAA+B;IAC9C,8EAA8E;IACjE,6CAAa,GAAG,oDAA4C,CAAC;IAC1E,+EAA+E;IAClE,8CAAc,GAAG,qDAA6C,CAAC;AAG9E,CAAC,EAPgB,+BAA+B,+CAA/B,+BAA+B,QAO/C;AAED,SAAgB,oCAAoC,CAClD,8BAA8D;IAE9D,OAAO,IAAI,CAAC,SAAS,CACnB,qDAA6C,CAAC,KAAK,CACjD,8BAA8B,CAC/B,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,sCAAsC,CACpD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oDAA4C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxE,4DAA4D,CAC7D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,50 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { Chain } from "./chain.js";
5
+ import { SignedAuthorization, SignedAuthorization$Outbound } from "./signedauthorization.js";
6
+ import { UserOperation, UserOperation$Outbound } from "./useroperation.js";
7
+ /**
8
+ * Request model for executing a multicall.
9
+ */
10
+ export type MulticallExecuteRequest = {
11
+ /**
12
+ * The chain to use.
13
+ */
14
+ chain: Chain;
15
+ /**
16
+ * The address of the transaction sender.
17
+ */
18
+ sender: string;
19
+ signedAuthorization: SignedAuthorization;
20
+ /**
21
+ * List of possible actions for multicall
22
+ */
23
+ actions: Array<UserOperation>;
24
+ };
25
+ /** @internal */
26
+ export declare const MulticallExecuteRequest$inboundSchema: z.ZodType<MulticallExecuteRequest, z.ZodTypeDef, unknown>;
27
+ /** @internal */
28
+ export type MulticallExecuteRequest$Outbound = {
29
+ chain: string;
30
+ sender: string;
31
+ signed_authorization: SignedAuthorization$Outbound;
32
+ actions: Array<UserOperation$Outbound>;
33
+ };
34
+ /** @internal */
35
+ export declare const MulticallExecuteRequest$outboundSchema: z.ZodType<MulticallExecuteRequest$Outbound, z.ZodTypeDef, MulticallExecuteRequest>;
36
+ /**
37
+ * @internal
38
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
39
+ */
40
+ export declare namespace MulticallExecuteRequest$ {
41
+ /** @deprecated use `MulticallExecuteRequest$inboundSchema` instead. */
42
+ const inboundSchema: z.ZodType<MulticallExecuteRequest, z.ZodTypeDef, unknown>;
43
+ /** @deprecated use `MulticallExecuteRequest$outboundSchema` instead. */
44
+ const outboundSchema: z.ZodType<MulticallExecuteRequest$Outbound, z.ZodTypeDef, MulticallExecuteRequest>;
45
+ /** @deprecated use `MulticallExecuteRequest$Outbound` instead. */
46
+ type Outbound = MulticallExecuteRequest$Outbound;
47
+ }
48
+ export declare function multicallExecuteRequestToJSON(multicallExecuteRequest: MulticallExecuteRequest): string;
49
+ export declare function multicallExecuteRequestFromJSON(jsonString: string): SafeParseResult<MulticallExecuteRequest, SDKValidationError>;
50
+ //# sourceMappingURL=multicallexecuterequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multicallexecuterequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/multicallexecuterequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,KAAK,EAA6C,MAAM,YAAY,CAAC;AAC9E,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,aAAa,EAEb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAE5B;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IACb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,EAAE,mBAAmB,CAAC;IACzC;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,gCAAgC,GAAG;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,4BAA4B,CAAC;IACnD,OAAO,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;CACxC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,uBAAuB,CAUvB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,wBAAwB,CAAC;IACxC,uEAAuE;IAChE,MAAM,aAAa,2DAAwC,CAAC;IACnE,wEAAwE;IACjE,MAAM,cAAc,oFAAyC,CAAC;IACrE,kEAAkE;IAClE,KAAY,QAAQ,GAAG,gCAAgC,CAAC;CACzD;AAED,wBAAgB,6BAA6B,CAC3C,uBAAuB,EAAE,uBAAuB,GAC/C,MAAM,CAIR;AAED,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.MulticallExecuteRequest$ = exports.MulticallExecuteRequest$outboundSchema = exports.MulticallExecuteRequest$inboundSchema = void 0;
40
+ exports.multicallExecuteRequestToJSON = multicallExecuteRequestToJSON;
41
+ exports.multicallExecuteRequestFromJSON = multicallExecuteRequestFromJSON;
42
+ const z = __importStar(require("zod"));
43
+ const primitives_js_1 = require("../../lib/primitives.js");
44
+ const schemas_js_1 = require("../../lib/schemas.js");
45
+ const chain_js_1 = require("./chain.js");
46
+ const signedauthorization_js_1 = require("./signedauthorization.js");
47
+ const useroperation_js_1 = require("./useroperation.js");
48
+ /** @internal */
49
+ exports.MulticallExecuteRequest$inboundSchema = z.object({
50
+ chain: chain_js_1.Chain$inboundSchema,
51
+ sender: z.string(),
52
+ signed_authorization: signedauthorization_js_1.SignedAuthorization$inboundSchema,
53
+ actions: z.array(useroperation_js_1.UserOperation$inboundSchema),
54
+ }).transform((v) => {
55
+ return (0, primitives_js_1.remap)(v, {
56
+ "signed_authorization": "signedAuthorization",
57
+ });
58
+ });
59
+ /** @internal */
60
+ exports.MulticallExecuteRequest$outboundSchema = z.object({
61
+ chain: chain_js_1.Chain$outboundSchema,
62
+ sender: z.string(),
63
+ signedAuthorization: signedauthorization_js_1.SignedAuthorization$outboundSchema,
64
+ actions: z.array(useroperation_js_1.UserOperation$outboundSchema),
65
+ }).transform((v) => {
66
+ return (0, primitives_js_1.remap)(v, {
67
+ signedAuthorization: "signed_authorization",
68
+ });
69
+ });
70
+ /**
71
+ * @internal
72
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
73
+ */
74
+ var MulticallExecuteRequest$;
75
+ (function (MulticallExecuteRequest$) {
76
+ /** @deprecated use `MulticallExecuteRequest$inboundSchema` instead. */
77
+ MulticallExecuteRequest$.inboundSchema = exports.MulticallExecuteRequest$inboundSchema;
78
+ /** @deprecated use `MulticallExecuteRequest$outboundSchema` instead. */
79
+ MulticallExecuteRequest$.outboundSchema = exports.MulticallExecuteRequest$outboundSchema;
80
+ })(MulticallExecuteRequest$ || (exports.MulticallExecuteRequest$ = MulticallExecuteRequest$ = {}));
81
+ function multicallExecuteRequestToJSON(multicallExecuteRequest) {
82
+ return JSON.stringify(exports.MulticallExecuteRequest$outboundSchema.parse(multicallExecuteRequest));
83
+ }
84
+ function multicallExecuteRequestFromJSON(jsonString) {
85
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.MulticallExecuteRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MulticallExecuteRequest' from JSON`);
86
+ }
87
+ //# sourceMappingURL=multicallexecuterequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multicallexecuterequest.js","sourceRoot":"","sources":["../../../../src/models/components/multicallexecuterequest.ts"],"names":[],"mappings":";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,CACnB,8CAAsC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CACtE,CAAC;AACJ,CAAC;AAED,SAAgB,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6CAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC"}
@@ -6,6 +6,7 @@ import { Pendle } from "./pendle.js";
6
6
  import { Sky } from "./sky.js";
7
7
  import { SmartAccount } from "./smartaccount.js";
8
8
  import { Token } from "./token.js";
9
+ import { TransactionBatching } from "./transactionbatching.js";
9
10
  import { UniswapV3 } from "./uniswapv3.js";
10
11
  import { Universal } from "./universal.js";
11
12
  export declare class CompassApiSDK extends ClientSDK {
@@ -25,6 +26,8 @@ export declare class CompassApiSDK extends ClientSDK {
25
26
  get universal(): Universal;
26
27
  private _pendle?;
27
28
  get pendle(): Pendle;
29
+ private _transactionBatching?;
30
+ get transactionBatching(): TransactionBatching;
28
31
  private _smartAccount?;
29
32
  get smartAccount(): SmartAccount;
30
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../src/sdk/sdk.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,SA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AAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,qBAAa,aAAc,SAAQ,SAAS;IAC1C,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,OAAO,CAAC,oBAAoB,CAAC,CAAsB;IACnD,IAAI,mBAAmB,IAAI,mBAAmB,CAI7C;IAED,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,OAAO,CAAC,IAAI,CAAC,CAAM;IACnB,IAAI,GAAG,IAAI,GAAG,CAEb;IAED,OAAO,CAAC,MAAM,CAAC,CAAQ;IACvB,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,OAAO,CAAC,oBAAoB,CAAC,CAAsB;IACnD,IAAI,mBAAmB,IAAI,mBAAmB,CAI7C;IAED,OAAO,CAAC,aAAa,CAAC,CAAe;IACrC,IAAI,YAAY,IAAI,YAAY,CAE/B;CACF"}
@@ -12,6 +12,7 @@ const pendle_js_1 = require("./pendle.js");
12
12
  const sky_js_1 = require("./sky.js");
13
13
  const smartaccount_js_1 = require("./smartaccount.js");
14
14
  const token_js_1 = require("./token.js");
15
+ const transactionbatching_js_1 = require("./transactionbatching.js");
15
16
  const uniswapv3_js_1 = require("./uniswapv3.js");
16
17
  const universal_js_1 = require("./universal.js");
17
18
  class CompassApiSDK extends sdks_js_1.ClientSDK {
@@ -39,6 +40,9 @@ class CompassApiSDK extends sdks_js_1.ClientSDK {
39
40
  get pendle() {
40
41
  return (this._pendle ?? (this._pendle = new pendle_js_1.Pendle(this._options)));
41
42
  }
43
+ get transactionBatching() {
44
+ return (this._transactionBatching ?? (this._transactionBatching = new transactionbatching_js_1.TransactionBatching(this._options)));
45
+ }
42
46
  get smartAccount() {
43
47
  return (this._smartAccount ?? (this._smartAccount = new smartaccount_js_1.SmartAccount(this._options)));
44
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.js","sourceRoot":"","sources":["../../../src/sdk/sdk.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4CAA2C;AAC3C,2CAAqC;AACrC,qEAA+D;AAC/D,2CAAqC;AACrC,2CAAqC;AACrC,qCAA+B;AAC/B,uDAAiD;AACjD,yCAAmC;AACnC,iDAA2C;AAC3C,iDAA2C;AAE3C,MAAa,aAAc,SAAQ,mBAAS;IAE1C,IAAI,MAAM;QACR,OAAO,CAAC,IAAI,CAAC,OAAO,KAAZ,IAAI,CAAC,OAAO,GAAK,IAAI,kBAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACtD,CAAC;IAGD,IAAI,mBAAmB;QACrB,OAAO,CAAC,IAAI,CAAC,oBAAoB,KAAzB,IAAI,CAAC,oBAAoB,GAAK,IAAI,4CAAmB,CAC3D,IAAI,CAAC,QAAQ,CACd,EAAC,CAAC;IACL,CAAC;IAGD,IAAI,MAAM;QACR,OAAO,CAAC,IAAI,CAAC,OAAO,KAAZ,IAAI,CAAC,OAAO,GAAK,IAAI,kBAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACtD,CAAC;IAGD,IAAI,GAAG;QACL,OAAO,CAAC,IAAI,CAAC,IAAI,KAAT,IAAI,CAAC,IAAI,GAAK,IAAI,YAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAChD,CAAC;IAGD,IAAI,KAAK;QACP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OAAO,CAAC,IAAI,CAAC,aAAa,KAAlB,IAAI,CAAC,aAAa,GAAK,IAAI,8BAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAClE,CAAC;CACF;AAtDD,sCAsDC"}
@@ -0,0 +1,47 @@
1
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
+ import * as components from "../models/components/index.js";
3
+ export declare class TransactionBatching extends ClientSDK {
4
+ /**
5
+ * Enable transaction bundling.
6
+ *
7
+ * @remarks
8
+ * Get authorization for bundling transactions.
9
+ *
10
+ * Currently this is required for every transaction bundle to prevent replay attacks
11
+ * and ensure transaction ordering when batching multiple actions into a single
12
+ * transaction. The authorization includes a nonce and chain ID to guarantee
13
+ * transaction uniqueness and proper network targeting.
14
+ */
15
+ authorization(request: components.MulticallAuthorizationRequest, options?: RequestOptions): Promise<components.MulticallAuthorizationResponse>;
16
+ /**
17
+ * Construct Bundled Transaction
18
+ *
19
+ * @remarks
20
+ * Bundle arbitrary transactions together into a single multicall transaction using
21
+ * EIP-7702.
22
+ *
23
+ * This endpoint allows bundling multiple contract calls into a single atomic
24
+ * transaction, reducing gas costs and ensuring all operations succeed or fail
25
+ * together. The transaction must be authorized using the /authorization endpoint to
26
+ * prevent replay attacks.
27
+ */
28
+ execute(request: components.MulticallExecuteRequest, options?: RequestOptions): Promise<components.UnsignedMulticallTransaction>;
29
+ /**
30
+ * AAVE leverage long/short
31
+ *
32
+ * @remarks
33
+ * Execute an Aave looping strategy that involves repeated supply and borrow
34
+ * operations.
35
+ *
36
+ * This endpoint creates a multicall transaction that performs a series of operations:
37
+ * 1. Approves and supplies initial token
38
+ * 2. For each loop:
39
+ * - Borrows another token
40
+ * - Swaps borrowed token back to supply token
41
+ * - Supplies the swapped tokens
42
+ *
43
+ * The transaction must be authorized using the /authorization endpoint to prevent replay attacks.
44
+ */
45
+ aaveLoop(request: components.AaveLoopRequest, options?: RequestOptions): Promise<components.UnsignedMulticallTransaction>;
46
+ }
47
+ //# sourceMappingURL=transactionbatching.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactionbatching.d.ts","sourceRoot":"","sources":["../../../src/sdk/transactionbatching.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,mBAAoB,SAAQ,SAAS;IAChD;;;;;;;;;;OAUG;IACG,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC;IAQrD;;;;;;;;;;;OAWG;IACG,OAAO,CACX,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC;IAQnD;;;;;;;;;;;;;;;OAeG;IACG,QAAQ,CACZ,OAAO,EAAE,UAAU,CAAC,eAAe,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC;CAOpD"}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.TransactionBatching = void 0;
7
+ const transactionBatchingAaveLoop_js_1 = require("../funcs/transactionBatchingAaveLoop.js");
8
+ const transactionBatchingAuthorization_js_1 = require("../funcs/transactionBatchingAuthorization.js");
9
+ const transactionBatchingExecute_js_1 = require("../funcs/transactionBatchingExecute.js");
10
+ const sdks_js_1 = require("../lib/sdks.js");
11
+ const fp_js_1 = require("../types/fp.js");
12
+ class TransactionBatching extends sdks_js_1.ClientSDK {
13
+ /**
14
+ * Enable transaction bundling.
15
+ *
16
+ * @remarks
17
+ * Get authorization for bundling transactions.
18
+ *
19
+ * Currently this is required for every transaction bundle to prevent replay attacks
20
+ * and ensure transaction ordering when batching multiple actions into a single
21
+ * transaction. The authorization includes a nonce and chain ID to guarantee
22
+ * transaction uniqueness and proper network targeting.
23
+ */
24
+ async authorization(request, options) {
25
+ return (0, fp_js_1.unwrapAsync)((0, transactionBatchingAuthorization_js_1.transactionBatchingAuthorization)(this, request, options));
26
+ }
27
+ /**
28
+ * Construct Bundled Transaction
29
+ *
30
+ * @remarks
31
+ * Bundle arbitrary transactions together into a single multicall transaction using
32
+ * EIP-7702.
33
+ *
34
+ * This endpoint allows bundling multiple contract calls into a single atomic
35
+ * transaction, reducing gas costs and ensuring all operations succeed or fail
36
+ * together. The transaction must be authorized using the /authorization endpoint to
37
+ * prevent replay attacks.
38
+ */
39
+ async execute(request, options) {
40
+ return (0, fp_js_1.unwrapAsync)((0, transactionBatchingExecute_js_1.transactionBatchingExecute)(this, request, options));
41
+ }
42
+ /**
43
+ * AAVE leverage long/short
44
+ *
45
+ * @remarks
46
+ * Execute an Aave looping strategy that involves repeated supply and borrow
47
+ * operations.
48
+ *
49
+ * This endpoint creates a multicall transaction that performs a series of operations:
50
+ * 1. Approves and supplies initial token
51
+ * 2. For each loop:
52
+ * - Borrows another token
53
+ * - Swaps borrowed token back to supply token
54
+ * - Supplies the swapped tokens
55
+ *
56
+ * The transaction must be authorized using the /authorization endpoint to prevent replay attacks.
57
+ */
58
+ async aaveLoop(request, options) {
59
+ return (0, fp_js_1.unwrapAsync)((0, transactionBatchingAaveLoop_js_1.transactionBatchingAaveLoop)(this, request, options));
60
+ }
61
+ }
62
+ exports.TransactionBatching = TransactionBatching;
63
+ //# sourceMappingURL=transactionbatching.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactionbatching.js","sourceRoot":"","sources":["../../../src/sdk/transactionbatching.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4FAAsF;AACtF,sGAAgG;AAChG,0FAAoF;AACpF,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,mBAAoB,SAAQ,mBAAS;IAChD;;;;;;;;;;OAUG;IACH,KAAK,CAAC,aAAa,CACjB,OAAiD,EACjD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sEAAgC,EACjD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,OAAO,CACX,OAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,QAAQ,CACZ,OAAmC,EACnC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4DAA2B,EAC5C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAxED,kDAwEC"}
@@ -0,0 +1,28 @@
1
+ import { CompassApiSDKCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import * as components from "../models/components/index.js";
4
+ import { CompassAPISDKError } from "../models/errors/compassapisdkerror.js";
5
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
6
+ import * as errors from "../models/errors/index.js";
7
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
8
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
9
+ import { APIPromise } from "../types/async.js";
10
+ import { Result } from "../types/fp.js";
11
+ /**
12
+ * AAVE leverage long/short
13
+ *
14
+ * @remarks
15
+ * Execute an Aave looping strategy that involves repeated supply and borrow
16
+ * operations.
17
+ *
18
+ * This endpoint creates a multicall transaction that performs a series of operations:
19
+ * 1. Approves and supplies initial token
20
+ * 2. For each loop:
21
+ * - Borrows another token
22
+ * - Swaps borrowed token back to supply token
23
+ * - Supplies the swapped tokens
24
+ *
25
+ * The transaction must be authorized using the /authorization endpoint to prevent replay attacks.
26
+ */
27
+ export declare function transactionBatchingAaveLoop(client: CompassApiSDKCore, request: components.AaveLoopRequest, options?: RequestOptions): APIPromise<Result<components.UnsignedMulticallTransaction, errors.HTTPValidationError | CompassAPISDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
28
+ //# sourceMappingURL=transactionBatchingAaveLoop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactionBatchingAaveLoop.d.ts","sourceRoot":"","sources":["../../../src/funcs/transactionBatchingAaveLoop.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAK/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,UAAU,CAAC,eAAe,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,4BAA4B,EACrC,MAAM,CAAC,mBAAmB,GAC1B,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,92 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { encodeJSON } from "../lib/encodings.js";
5
+ import * as M from "../lib/matchers.js";
6
+ import { compactMap } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
9
+ import { pathToFunc } from "../lib/url.js";
10
+ import * as components from "../models/components/index.js";
11
+ import * as errors from "../models/errors/index.js";
12
+ import { APIPromise } from "../types/async.js";
13
+ /**
14
+ * AAVE leverage long/short
15
+ *
16
+ * @remarks
17
+ * Execute an Aave looping strategy that involves repeated supply and borrow
18
+ * operations.
19
+ *
20
+ * This endpoint creates a multicall transaction that performs a series of operations:
21
+ * 1. Approves and supplies initial token
22
+ * 2. For each loop:
23
+ * - Borrows another token
24
+ * - Swaps borrowed token back to supply token
25
+ * - Supplies the swapped tokens
26
+ *
27
+ * The transaction must be authorized using the /authorization endpoint to prevent replay attacks.
28
+ */
29
+ export function transactionBatchingAaveLoop(client, request, options) {
30
+ return new APIPromise($do(client, request, options));
31
+ }
32
+ async function $do(client, request, options) {
33
+ const parsed = safeParse(request, (value) => components.AaveLoopRequest$outboundSchema.parse(value), "Input validation failed");
34
+ if (!parsed.ok) {
35
+ return [parsed, { status: "invalid" }];
36
+ }
37
+ const payload = parsed.value;
38
+ const body = encodeJSON("body", payload, { explode: true });
39
+ const path = pathToFunc("/v0/multicall/aave/loop")();
40
+ const headers = new Headers(compactMap({
41
+ "Content-Type": "application/json",
42
+ Accept: "application/json",
43
+ }));
44
+ const secConfig = await extractSecurity(client._options.apiKeyAuth);
45
+ const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
46
+ const requestSecurity = resolveGlobalSecurity(securityInput);
47
+ const context = {
48
+ options: client._options,
49
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
50
+ operationID: "multicall_aave_loop",
51
+ oAuth2Scopes: [],
52
+ resolvedSecurity: requestSecurity,
53
+ securitySource: client._options.apiKeyAuth,
54
+ retryConfig: options?.retries
55
+ || client._options.retryConfig
56
+ || { strategy: "none" },
57
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
58
+ };
59
+ const requestRes = client._createRequest(context, {
60
+ security: requestSecurity,
61
+ method: "POST",
62
+ baseURL: options?.serverURL,
63
+ path: path,
64
+ headers: headers,
65
+ body: body,
66
+ userAgent: client._options.userAgent,
67
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
68
+ }, options);
69
+ if (!requestRes.ok) {
70
+ return [requestRes, { status: "invalid" }];
71
+ }
72
+ const req = requestRes.value;
73
+ const doResult = await client._do(req, {
74
+ context,
75
+ errorCodes: ["422", "4XX", "5XX"],
76
+ retryConfig: context.retryConfig,
77
+ retryCodes: context.retryCodes,
78
+ });
79
+ if (!doResult.ok) {
80
+ return [doResult, { status: "request-error", request: req }];
81
+ }
82
+ const response = doResult.value;
83
+ const responseFields = {
84
+ HttpMeta: { Response: response, Request: req },
85
+ };
86
+ const [result] = await M.match(M.json(200, components.UnsignedMulticallTransaction$inboundSchema), M.jsonErr(422, errors.HTTPValidationError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
87
+ if (!result.ok) {
88
+ return [result, { status: "complete", request: req, response }];
89
+ }
90
+ return [result, { status: "complete", request: req, response }];
91
+ }
92
+ //# sourceMappingURL=transactionBatchingAaveLoop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactionBatchingAaveLoop.js","sourceRoot":"","sources":["../../../src/funcs/transactionBatchingAaveLoop.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAA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AAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { CompassApiSDKCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import * as components from "../models/components/index.js";
4
+ import { CompassAPISDKError } from "../models/errors/compassapisdkerror.js";
5
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
6
+ import * as errors from "../models/errors/index.js";
7
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
8
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
9
+ import { APIPromise } from "../types/async.js";
10
+ import { Result } from "../types/fp.js";
11
+ /**
12
+ * Enable transaction bundling.
13
+ *
14
+ * @remarks
15
+ * Get authorization for bundling transactions.
16
+ *
17
+ * Currently this is required for every transaction bundle to prevent replay attacks
18
+ * and ensure transaction ordering when batching multiple actions into a single
19
+ * transaction. The authorization includes a nonce and chain ID to guarantee
20
+ * transaction uniqueness and proper network targeting.
21
+ */
22
+ export declare function transactionBatchingAuthorization(client: CompassApiSDKCore, request: components.MulticallAuthorizationRequest, options?: RequestOptions): APIPromise<Result<components.MulticallAuthorizationResponse, errors.HTTPValidationError | CompassAPISDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
23
+ //# sourceMappingURL=transactionBatchingAuthorization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactionBatchingAuthorization.d.ts","sourceRoot":"","sources":["../../../src/funcs/transactionBatchingAuthorization.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAK/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;;;;GAUG;AACH,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,8BAA8B,EACvC,MAAM,CAAC,mBAAmB,GAC1B,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}