@compass-labs/api-sdk 0.5.11 → 0.5.13

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 (141) hide show
  1. package/README.md +0 -9
  2. package/bin/mcp-server.js +251 -742
  3. package/bin/mcp-server.js.map +9 -19
  4. package/dist/commonjs/lib/config.d.ts +2 -2
  5. package/dist/commonjs/lib/config.js +2 -2
  6. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  7. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  8. package/dist/commonjs/mcp-server/server.js +1 -7
  9. package/dist/commonjs/mcp-server/server.js.map +1 -1
  10. package/dist/commonjs/models/components/index.d.ts +0 -4
  11. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  12. package/dist/commonjs/models/components/index.js +0 -4
  13. package/dist/commonjs/models/components/index.js.map +1 -1
  14. package/dist/commonjs/models/operations/tokenprice.js +4 -4
  15. package/dist/commonjs/sdk/sdk.d.ts +0 -3
  16. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  17. package/dist/commonjs/sdk/sdk.js +0 -4
  18. package/dist/commonjs/sdk/sdk.js.map +1 -1
  19. package/dist/esm/lib/config.d.ts +2 -2
  20. package/dist/esm/lib/config.js +2 -2
  21. package/dist/esm/mcp-server/mcp-server.js +1 -1
  22. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  23. package/dist/esm/mcp-server/server.js +1 -7
  24. package/dist/esm/mcp-server/server.js.map +1 -1
  25. package/dist/esm/models/components/index.d.ts +0 -4
  26. package/dist/esm/models/components/index.d.ts.map +1 -1
  27. package/dist/esm/models/components/index.js +0 -4
  28. package/dist/esm/models/components/index.js.map +1 -1
  29. package/dist/esm/models/operations/tokenprice.js +4 -4
  30. package/dist/esm/sdk/sdk.d.ts +0 -3
  31. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  32. package/dist/esm/sdk/sdk.js +0 -4
  33. package/dist/esm/sdk/sdk.js.map +1 -1
  34. package/jsr.json +1 -1
  35. package/package.json +1 -1
  36. package/src/lib/config.ts +2 -2
  37. package/src/mcp-server/mcp-server.ts +1 -1
  38. package/src/mcp-server/server.ts +1 -7
  39. package/src/models/components/index.ts +0 -4
  40. package/src/models/operations/tokenprice.ts +4 -4
  41. package/src/sdk/sdk.ts +0 -8
  42. package/dist/commonjs/funcs/transactionBatchingAaveLoop.d.ts +0 -28
  43. package/dist/commonjs/funcs/transactionBatchingAaveLoop.d.ts.map +0 -1
  44. package/dist/commonjs/funcs/transactionBatchingAaveLoop.js +0 -128
  45. package/dist/commonjs/funcs/transactionBatchingAaveLoop.js.map +0 -1
  46. package/dist/commonjs/funcs/transactionBatchingAuthorization.d.ts +0 -23
  47. package/dist/commonjs/funcs/transactionBatchingAuthorization.d.ts.map +0 -1
  48. package/dist/commonjs/funcs/transactionBatchingAuthorization.js +0 -123
  49. package/dist/commonjs/funcs/transactionBatchingAuthorization.js.map +0 -1
  50. package/dist/commonjs/funcs/transactionBatchingExecute.d.ts +0 -24
  51. package/dist/commonjs/funcs/transactionBatchingExecute.d.ts.map +0 -1
  52. package/dist/commonjs/funcs/transactionBatchingExecute.js +0 -124
  53. package/dist/commonjs/funcs/transactionBatchingExecute.js.map +0 -1
  54. package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.d.ts +0 -8
  55. package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.d.ts.map +0 -1
  56. package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.js +0 -74
  57. package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.js.map +0 -1
  58. package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.d.ts +0 -8
  59. package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.d.ts.map +0 -1
  60. package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.js +0 -69
  61. package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.js.map +0 -1
  62. package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.d.ts +0 -8
  63. package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.d.ts.map +0 -1
  64. package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.js +0 -70
  65. package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.js.map +0 -1
  66. package/dist/commonjs/models/components/aavelooprequest.d.ts +0 -181
  67. package/dist/commonjs/models/components/aavelooprequest.d.ts.map +0 -1
  68. package/dist/commonjs/models/components/aavelooprequest.js +0 -199
  69. package/dist/commonjs/models/components/aavelooprequest.js.map +0 -1
  70. package/dist/commonjs/models/components/multicallauthorizationrequest.d.ts +0 -49
  71. package/dist/commonjs/models/components/multicallauthorizationrequest.d.ts.map +0 -1
  72. package/dist/commonjs/models/components/multicallauthorizationrequest.js +0 -72
  73. package/dist/commonjs/models/components/multicallauthorizationrequest.js.map +0 -1
  74. package/dist/commonjs/models/components/multicallauthorizationresponse.d.ts +0 -45
  75. package/dist/commonjs/models/components/multicallauthorizationresponse.d.ts.map +0 -1
  76. package/dist/commonjs/models/components/multicallauthorizationresponse.js +0 -73
  77. package/dist/commonjs/models/components/multicallauthorizationresponse.js.map +0 -1
  78. package/dist/commonjs/models/components/multicallexecuterequest.d.ts +0 -50
  79. package/dist/commonjs/models/components/multicallexecuterequest.d.ts.map +0 -1
  80. package/dist/commonjs/models/components/multicallexecuterequest.js +0 -87
  81. package/dist/commonjs/models/components/multicallexecuterequest.js.map +0 -1
  82. package/dist/commonjs/sdk/transactionbatching.d.ts +0 -47
  83. package/dist/commonjs/sdk/transactionbatching.d.ts.map +0 -1
  84. package/dist/commonjs/sdk/transactionbatching.js +0 -63
  85. package/dist/commonjs/sdk/transactionbatching.js.map +0 -1
  86. package/dist/esm/funcs/transactionBatchingAaveLoop.d.ts +0 -28
  87. package/dist/esm/funcs/transactionBatchingAaveLoop.d.ts.map +0 -1
  88. package/dist/esm/funcs/transactionBatchingAaveLoop.js +0 -92
  89. package/dist/esm/funcs/transactionBatchingAaveLoop.js.map +0 -1
  90. package/dist/esm/funcs/transactionBatchingAuthorization.d.ts +0 -23
  91. package/dist/esm/funcs/transactionBatchingAuthorization.d.ts.map +0 -1
  92. package/dist/esm/funcs/transactionBatchingAuthorization.js +0 -87
  93. package/dist/esm/funcs/transactionBatchingAuthorization.js.map +0 -1
  94. package/dist/esm/funcs/transactionBatchingExecute.d.ts +0 -24
  95. package/dist/esm/funcs/transactionBatchingExecute.d.ts.map +0 -1
  96. package/dist/esm/funcs/transactionBatchingExecute.js +0 -88
  97. package/dist/esm/funcs/transactionBatchingExecute.js.map +0 -1
  98. package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.d.ts +0 -8
  99. package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.d.ts.map +0 -1
  100. package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.js +0 -38
  101. package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.js.map +0 -1
  102. package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.d.ts +0 -8
  103. package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.d.ts.map +0 -1
  104. package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.js +0 -33
  105. package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.js.map +0 -1
  106. package/dist/esm/mcp-server/tools/transactionBatchingExecute.d.ts +0 -8
  107. package/dist/esm/mcp-server/tools/transactionBatchingExecute.d.ts.map +0 -1
  108. package/dist/esm/mcp-server/tools/transactionBatchingExecute.js +0 -34
  109. package/dist/esm/mcp-server/tools/transactionBatchingExecute.js.map +0 -1
  110. package/dist/esm/models/components/aavelooprequest.d.ts +0 -181
  111. package/dist/esm/models/components/aavelooprequest.d.ts.map +0 -1
  112. package/dist/esm/models/components/aavelooprequest.js +0 -153
  113. package/dist/esm/models/components/aavelooprequest.js.map +0 -1
  114. package/dist/esm/models/components/multicallauthorizationrequest.d.ts +0 -49
  115. package/dist/esm/models/components/multicallauthorizationrequest.d.ts.map +0 -1
  116. package/dist/esm/models/components/multicallauthorizationrequest.js +0 -34
  117. package/dist/esm/models/components/multicallauthorizationrequest.js.map +0 -1
  118. package/dist/esm/models/components/multicallauthorizationresponse.d.ts +0 -45
  119. package/dist/esm/models/components/multicallauthorizationresponse.d.ts.map +0 -1
  120. package/dist/esm/models/components/multicallauthorizationresponse.js +0 -35
  121. package/dist/esm/models/components/multicallauthorizationresponse.js.map +0 -1
  122. package/dist/esm/models/components/multicallexecuterequest.d.ts +0 -50
  123. package/dist/esm/models/components/multicallexecuterequest.d.ts.map +0 -1
  124. package/dist/esm/models/components/multicallexecuterequest.js +0 -49
  125. package/dist/esm/models/components/multicallexecuterequest.js.map +0 -1
  126. package/dist/esm/sdk/transactionbatching.d.ts +0 -47
  127. package/dist/esm/sdk/transactionbatching.d.ts.map +0 -1
  128. package/dist/esm/sdk/transactionbatching.js +0 -59
  129. package/dist/esm/sdk/transactionbatching.js.map +0 -1
  130. package/docs/sdks/transactionbatching/README.md +0 -318
  131. package/src/funcs/transactionBatchingAaveLoop.ts +0 -179
  132. package/src/funcs/transactionBatchingAuthorization.ts +0 -175
  133. package/src/funcs/transactionBatchingExecute.ts +0 -175
  134. package/src/mcp-server/tools/transactionBatchingAaveLoop.ts +0 -47
  135. package/src/mcp-server/tools/transactionBatchingAuthorization.ts +0 -44
  136. package/src/mcp-server/tools/transactionBatchingExecute.ts +0 -43
  137. package/src/models/components/aavelooprequest.ts +0 -368
  138. package/src/models/components/multicallauthorizationrequest.ts +0 -90
  139. package/src/models/components/multicallauthorizationresponse.ts +0 -88
  140. package/src/models/components/multicallexecuterequest.ts +0 -112
  141. package/src/sdk/transactionbatching.ts +0 -84
@@ -1,90 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import { Chain, Chain$inboundSchema, Chain$outboundSchema } from "./chain.js";
10
-
11
- /**
12
- * Request model for getting a multicall authorization.
13
- *
14
- * @remarks
15
- *
16
- * This model is used to authorize a sender address to perform multicall operations,
17
- * allowing it to call multiple functions on multiple contracts in a single
18
- * transaction.
19
- *
20
- * Only needs to be done once per an EOA.
21
- */
22
- export type MulticallAuthorizationRequest = {
23
- /**
24
- * The chain to use.
25
- */
26
- chain: Chain;
27
- /**
28
- * The Ethereum address to use for authorization
29
- */
30
- sender: string;
31
- };
32
-
33
- /** @internal */
34
- export const MulticallAuthorizationRequest$inboundSchema: z.ZodType<
35
- MulticallAuthorizationRequest,
36
- z.ZodTypeDef,
37
- unknown
38
- > = z.object({
39
- chain: Chain$inboundSchema,
40
- sender: z.string(),
41
- });
42
-
43
- /** @internal */
44
- export type MulticallAuthorizationRequest$Outbound = {
45
- chain: string;
46
- sender: string;
47
- };
48
-
49
- /** @internal */
50
- export const MulticallAuthorizationRequest$outboundSchema: z.ZodType<
51
- MulticallAuthorizationRequest$Outbound,
52
- z.ZodTypeDef,
53
- MulticallAuthorizationRequest
54
- > = z.object({
55
- chain: Chain$outboundSchema,
56
- sender: z.string(),
57
- });
58
-
59
- /**
60
- * @internal
61
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
62
- */
63
- export namespace MulticallAuthorizationRequest$ {
64
- /** @deprecated use `MulticallAuthorizationRequest$inboundSchema` instead. */
65
- export const inboundSchema = MulticallAuthorizationRequest$inboundSchema;
66
- /** @deprecated use `MulticallAuthorizationRequest$outboundSchema` instead. */
67
- export const outboundSchema = MulticallAuthorizationRequest$outboundSchema;
68
- /** @deprecated use `MulticallAuthorizationRequest$Outbound` instead. */
69
- export type Outbound = MulticallAuthorizationRequest$Outbound;
70
- }
71
-
72
- export function multicallAuthorizationRequestToJSON(
73
- multicallAuthorizationRequest: MulticallAuthorizationRequest,
74
- ): string {
75
- return JSON.stringify(
76
- MulticallAuthorizationRequest$outboundSchema.parse(
77
- multicallAuthorizationRequest,
78
- ),
79
- );
80
- }
81
-
82
- export function multicallAuthorizationRequestFromJSON(
83
- jsonString: string,
84
- ): SafeParseResult<MulticallAuthorizationRequest, SDKValidationError> {
85
- return safeParse(
86
- jsonString,
87
- (x) => MulticallAuthorizationRequest$inboundSchema.parse(JSON.parse(x)),
88
- `Failed to parse 'MulticallAuthorizationRequest' from JSON`,
89
- );
90
- }
@@ -1,88 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
-
10
- /**
11
- * Response model for multicall authorization.
12
- */
13
- export type MulticallAuthorizationResponse = {
14
- /**
15
- * A unique nonce value for this authorization
16
- */
17
- nonce: number;
18
- /**
19
- * The Ethereum address authorized for multicall
20
- */
21
- address: string;
22
- /**
23
- * The chain ID for the blockchain network
24
- */
25
- chainId: number;
26
- };
27
-
28
- /** @internal */
29
- export const MulticallAuthorizationResponse$inboundSchema: z.ZodType<
30
- MulticallAuthorizationResponse,
31
- z.ZodTypeDef,
32
- unknown
33
- > = z.object({
34
- nonce: z.number().int(),
35
- address: z.string(),
36
- chainId: z.number().int(),
37
- });
38
-
39
- /** @internal */
40
- export type MulticallAuthorizationResponse$Outbound = {
41
- nonce: number;
42
- address: string;
43
- chainId: number;
44
- };
45
-
46
- /** @internal */
47
- export const MulticallAuthorizationResponse$outboundSchema: z.ZodType<
48
- MulticallAuthorizationResponse$Outbound,
49
- z.ZodTypeDef,
50
- MulticallAuthorizationResponse
51
- > = z.object({
52
- nonce: z.number().int(),
53
- address: z.string(),
54
- chainId: z.number().int(),
55
- });
56
-
57
- /**
58
- * @internal
59
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
- */
61
- export namespace MulticallAuthorizationResponse$ {
62
- /** @deprecated use `MulticallAuthorizationResponse$inboundSchema` instead. */
63
- export const inboundSchema = MulticallAuthorizationResponse$inboundSchema;
64
- /** @deprecated use `MulticallAuthorizationResponse$outboundSchema` instead. */
65
- export const outboundSchema = MulticallAuthorizationResponse$outboundSchema;
66
- /** @deprecated use `MulticallAuthorizationResponse$Outbound` instead. */
67
- export type Outbound = MulticallAuthorizationResponse$Outbound;
68
- }
69
-
70
- export function multicallAuthorizationResponseToJSON(
71
- multicallAuthorizationResponse: MulticallAuthorizationResponse,
72
- ): string {
73
- return JSON.stringify(
74
- MulticallAuthorizationResponse$outboundSchema.parse(
75
- multicallAuthorizationResponse,
76
- ),
77
- );
78
- }
79
-
80
- export function multicallAuthorizationResponseFromJSON(
81
- jsonString: string,
82
- ): SafeParseResult<MulticallAuthorizationResponse, SDKValidationError> {
83
- return safeParse(
84
- jsonString,
85
- (x) => MulticallAuthorizationResponse$inboundSchema.parse(JSON.parse(x)),
86
- `Failed to parse 'MulticallAuthorizationResponse' from JSON`,
87
- );
88
- }
@@ -1,112 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
- import { Chain, Chain$inboundSchema, Chain$outboundSchema } from "./chain.js";
11
- import {
12
- SignedAuthorization,
13
- SignedAuthorization$inboundSchema,
14
- SignedAuthorization$Outbound,
15
- SignedAuthorization$outboundSchema,
16
- } from "./signedauthorization.js";
17
- import {
18
- UserOperation,
19
- UserOperation$inboundSchema,
20
- UserOperation$Outbound,
21
- UserOperation$outboundSchema,
22
- } from "./useroperation.js";
23
-
24
- /**
25
- * Request model for executing a multicall.
26
- */
27
- export type MulticallExecuteRequest = {
28
- /**
29
- * The chain to use.
30
- */
31
- chain: Chain;
32
- /**
33
- * The address of the transaction sender.
34
- */
35
- sender: string;
36
- signedAuthorization: SignedAuthorization;
37
- /**
38
- * List of possible actions for multicall
39
- */
40
- actions: Array<UserOperation>;
41
- };
42
-
43
- /** @internal */
44
- export const MulticallExecuteRequest$inboundSchema: z.ZodType<
45
- MulticallExecuteRequest,
46
- z.ZodTypeDef,
47
- unknown
48
- > = z.object({
49
- chain: Chain$inboundSchema,
50
- sender: z.string(),
51
- signed_authorization: SignedAuthorization$inboundSchema,
52
- actions: z.array(UserOperation$inboundSchema),
53
- }).transform((v) => {
54
- return remap$(v, {
55
- "signed_authorization": "signedAuthorization",
56
- });
57
- });
58
-
59
- /** @internal */
60
- export type MulticallExecuteRequest$Outbound = {
61
- chain: string;
62
- sender: string;
63
- signed_authorization: SignedAuthorization$Outbound;
64
- actions: Array<UserOperation$Outbound>;
65
- };
66
-
67
- /** @internal */
68
- export const MulticallExecuteRequest$outboundSchema: z.ZodType<
69
- MulticallExecuteRequest$Outbound,
70
- z.ZodTypeDef,
71
- MulticallExecuteRequest
72
- > = z.object({
73
- chain: Chain$outboundSchema,
74
- sender: z.string(),
75
- signedAuthorization: SignedAuthorization$outboundSchema,
76
- actions: z.array(UserOperation$outboundSchema),
77
- }).transform((v) => {
78
- return remap$(v, {
79
- signedAuthorization: "signed_authorization",
80
- });
81
- });
82
-
83
- /**
84
- * @internal
85
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
86
- */
87
- export namespace MulticallExecuteRequest$ {
88
- /** @deprecated use `MulticallExecuteRequest$inboundSchema` instead. */
89
- export const inboundSchema = MulticallExecuteRequest$inboundSchema;
90
- /** @deprecated use `MulticallExecuteRequest$outboundSchema` instead. */
91
- export const outboundSchema = MulticallExecuteRequest$outboundSchema;
92
- /** @deprecated use `MulticallExecuteRequest$Outbound` instead. */
93
- export type Outbound = MulticallExecuteRequest$Outbound;
94
- }
95
-
96
- export function multicallExecuteRequestToJSON(
97
- multicallExecuteRequest: MulticallExecuteRequest,
98
- ): string {
99
- return JSON.stringify(
100
- MulticallExecuteRequest$outboundSchema.parse(multicallExecuteRequest),
101
- );
102
- }
103
-
104
- export function multicallExecuteRequestFromJSON(
105
- jsonString: string,
106
- ): SafeParseResult<MulticallExecuteRequest, SDKValidationError> {
107
- return safeParse(
108
- jsonString,
109
- (x) => MulticallExecuteRequest$inboundSchema.parse(JSON.parse(x)),
110
- `Failed to parse 'MulticallExecuteRequest' from JSON`,
111
- );
112
- }
@@ -1,84 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { transactionBatchingAaveLoop } from "../funcs/transactionBatchingAaveLoop.js";
6
- import { transactionBatchingAuthorization } from "../funcs/transactionBatchingAuthorization.js";
7
- import { transactionBatchingExecute } from "../funcs/transactionBatchingExecute.js";
8
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
9
- import * as components from "../models/components/index.js";
10
- import { unwrapAsync } from "../types/fp.js";
11
-
12
- export class TransactionBatching extends 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(
25
- request: components.MulticallAuthorizationRequest,
26
- options?: RequestOptions,
27
- ): Promise<components.MulticallAuthorizationResponse> {
28
- return unwrapAsync(transactionBatchingAuthorization(
29
- this,
30
- request,
31
- options,
32
- ));
33
- }
34
-
35
- /**
36
- * Construct Bundled Transaction
37
- *
38
- * @remarks
39
- * Bundle arbitrary transactions together into a single multicall transaction using
40
- * EIP-7702.
41
- *
42
- * This endpoint allows bundling multiple contract calls into a single atomic
43
- * transaction, reducing gas costs and ensuring all operations succeed or fail
44
- * together. The transaction must be authorized using the /authorization endpoint to
45
- * prevent replay attacks.
46
- */
47
- async execute(
48
- request: components.MulticallExecuteRequest,
49
- options?: RequestOptions,
50
- ): Promise<components.UnsignedMulticallTransaction> {
51
- return unwrapAsync(transactionBatchingExecute(
52
- this,
53
- request,
54
- options,
55
- ));
56
- }
57
-
58
- /**
59
- * AAVE leverage long/short
60
- *
61
- * @remarks
62
- * Execute an Aave looping strategy that involves repeated supply and borrow
63
- * operations.
64
- *
65
- * This endpoint creates a multicall transaction that performs a series of operations:
66
- * 1. Approves and supplies initial token
67
- * 2. For each loop:
68
- * - Borrows another token
69
- * - Swaps borrowed token back to supply token
70
- * - Supplies the swapped tokens
71
- *
72
- * The transaction must be authorized using the /authorization endpoint to prevent replay attacks.
73
- */
74
- async aaveLoop(
75
- request: components.AaveLoopRequest,
76
- options?: RequestOptions,
77
- ): Promise<components.UnsignedMulticallTransaction> {
78
- return unwrapAsync(transactionBatchingAaveLoop(
79
- this,
80
- request,
81
- options,
82
- ));
83
- }
84
- }