@compass-labs/api-sdk 0.5.6 → 0.5.8
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.
- package/FUNCTIONS.md +6 -26
- package/README.md +47 -78
- package/bin/mcp-server.js +19 -18
- package/bin/mcp-server.js.map +12 -12
- package/dist/commonjs/funcs/transactionBatchingAaveLoop.d.ts +1 -1
- package/dist/commonjs/funcs/transactionBatchingAaveLoop.js +1 -1
- package/dist/commonjs/funcs/transactionBatchingAuthorization.d.ts +6 -6
- package/dist/commonjs/funcs/transactionBatchingAuthorization.js +6 -6
- package/dist/commonjs/funcs/transactionBatchingExecute.d.ts +3 -2
- package/dist/commonjs/funcs/transactionBatchingExecute.d.ts.map +1 -1
- package/dist/commonjs/funcs/transactionBatchingExecute.js +3 -2
- package/dist/commonjs/funcs/transactionBatchingExecute.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/transactionBatchingAaveLoop.js +1 -1
- package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.js +6 -6
- package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.js +3 -2
- package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.js.map +1 -1
- package/dist/commonjs/models/errors/apierror.d.ts +14 -2
- package/dist/commonjs/models/errors/apierror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/apierror.js +1 -1
- package/dist/commonjs/models/errors/apierror.js.map +1 -1
- package/dist/commonjs/sdk/transactionbatching.d.ts +10 -9
- package/dist/commonjs/sdk/transactionbatching.d.ts.map +1 -1
- package/dist/commonjs/sdk/transactionbatching.js +10 -9
- package/dist/commonjs/sdk/transactionbatching.js.map +1 -1
- package/dist/esm/funcs/transactionBatchingAaveLoop.d.ts +1 -1
- package/dist/esm/funcs/transactionBatchingAaveLoop.js +1 -1
- package/dist/esm/funcs/transactionBatchingAuthorization.d.ts +6 -6
- package/dist/esm/funcs/transactionBatchingAuthorization.js +6 -6
- package/dist/esm/funcs/transactionBatchingExecute.d.ts +3 -2
- package/dist/esm/funcs/transactionBatchingExecute.d.ts.map +1 -1
- package/dist/esm/funcs/transactionBatchingExecute.js +3 -2
- package/dist/esm/funcs/transactionBatchingExecute.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/transactionBatchingAaveLoop.js +1 -1
- package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.js +6 -6
- package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.js.map +1 -1
- package/dist/esm/mcp-server/tools/transactionBatchingExecute.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/transactionBatchingExecute.js +3 -2
- package/dist/esm/mcp-server/tools/transactionBatchingExecute.js.map +1 -1
- package/dist/esm/models/errors/apierror.d.ts +14 -2
- package/dist/esm/models/errors/apierror.d.ts.map +1 -1
- package/dist/esm/models/errors/apierror.js +1 -1
- package/dist/esm/models/errors/apierror.js.map +1 -1
- package/dist/esm/sdk/transactionbatching.d.ts +10 -9
- package/dist/esm/sdk/transactionbatching.d.ts.map +1 -1
- package/dist/esm/sdk/transactionbatching.js +10 -9
- package/dist/esm/sdk/transactionbatching.js.map +1 -1
- package/docs/sdks/aavev3/README.md +83 -199
- package/docs/sdks/aerodromeslipstream/README.md +39 -79
- package/docs/sdks/morpho/README.md +84 -182
- package/docs/sdks/pendle/README.md +53 -113
- package/docs/sdks/sky/README.md +27 -51
- package/docs/sdks/smartaccount/README.md +5 -9
- package/docs/sdks/token/README.md +24 -56
- package/docs/sdks/transactionbatching/README.md +25 -36
- package/docs/sdks/uniswapv3/README.md +60 -132
- package/docs/sdks/universal/README.md +50 -106
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/transactionBatchingAaveLoop.ts +1 -1
- package/src/funcs/transactionBatchingAuthorization.ts +6 -6
- package/src/funcs/transactionBatchingExecute.ts +3 -2
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/transactionBatchingAaveLoop.ts +1 -1
- package/src/mcp-server/tools/transactionBatchingAuthorization.ts +6 -6
- package/src/mcp-server/tools/transactionBatchingExecute.ts +3 -2
- package/src/models/errors/apierror.ts +18 -3
- package/src/sdk/transactionbatching.ts +10 -9
|
@@ -8,7 +8,7 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
8
8
|
import { APIPromise } from "../types/async.js";
|
|
9
9
|
import { Result } from "../types/fp.js";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* AAVE leverage long/short
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
14
|
* Execute an Aave looping strategy that involves repeated supply and borrow
|
|
@@ -47,7 +47,7 @@ const components = __importStar(require("../models/components/index.js"));
|
|
|
47
47
|
const errors = __importStar(require("../models/errors/index.js"));
|
|
48
48
|
const async_js_1 = require("../types/async.js");
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* AAVE leverage long/short
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
53
|
* Execute an Aave looping strategy that involves repeated supply and borrow
|
|
@@ -8,15 +8,15 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
8
8
|
import { APIPromise } from "../types/async.js";
|
|
9
9
|
import { Result } from "../types/fp.js";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Enable transaction bundling.
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
-
* Get authorization
|
|
14
|
+
* Get authorization for bundling transactions.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
17
|
-
* ordering when batching multiple actions into a single
|
|
18
|
-
* includes a nonce and chain ID to guarantee
|
|
19
|
-
* targeting.
|
|
16
|
+
* Currently this is required for every transaction bundle to prevent replay attacks
|
|
17
|
+
* and ensure transaction ordering when batching multiple actions into a single
|
|
18
|
+
* transaction. The authorization includes a nonce and chain ID to guarantee
|
|
19
|
+
* transaction uniqueness and proper network targeting.
|
|
20
20
|
*/
|
|
21
21
|
export declare function transactionBatchingAuthorization(client: CompassApiSDKCore, request: components.MulticallAuthorizationRequest, options?: RequestOptions): APIPromise<Result<components.MulticallAuthorizationResponse, errors.HTTPValidationError | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
22
22
|
//# sourceMappingURL=transactionBatchingAuthorization.d.ts.map
|
|
@@ -47,15 +47,15 @@ const components = __importStar(require("../models/components/index.js"));
|
|
|
47
47
|
const errors = __importStar(require("../models/errors/index.js"));
|
|
48
48
|
const async_js_1 = require("../types/async.js");
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Enable transaction bundling.
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
* Get authorization
|
|
53
|
+
* Get authorization for bundling transactions.
|
|
54
54
|
*
|
|
55
|
-
*
|
|
56
|
-
* ordering when batching multiple actions into a single
|
|
57
|
-
* includes a nonce and chain ID to guarantee
|
|
58
|
-
* targeting.
|
|
55
|
+
* Currently this is required for every transaction bundle to prevent replay attacks
|
|
56
|
+
* and ensure transaction ordering when batching multiple actions into a single
|
|
57
|
+
* transaction. The authorization includes a nonce and chain ID to guarantee
|
|
58
|
+
* transaction uniqueness and proper network targeting.
|
|
59
59
|
*/
|
|
60
60
|
function transactionBatchingAuthorization(client, request, options) {
|
|
61
61
|
return new async_js_1.APIPromise($do(client, request, options));
|
|
@@ -8,10 +8,11 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
8
8
|
import { APIPromise } from "../types/async.js";
|
|
9
9
|
import { Result } from "../types/fp.js";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Construct Bundled Transaction
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
-
*
|
|
14
|
+
* Bundle arbitrary transactions together into a single multicall transaction using
|
|
15
|
+
* EIP-7702.
|
|
15
16
|
*
|
|
16
17
|
* This endpoint allows bundling multiple contract calls into a single atomic
|
|
17
18
|
* transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactionBatchingExecute.d.ts","sourceRoot":"","sources":["../../../src/funcs/transactionBatchingExecute.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,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,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,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC
|
|
1
|
+
{"version":3,"file":"transactionBatchingExecute.d.ts","sourceRoot":"","sources":["../../../src/funcs/transactionBatchingExecute.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,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,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,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;;;;;GAWG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,4BAA4B,EACrC,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAMA"}
|
|
@@ -47,10 +47,11 @@ const components = __importStar(require("../models/components/index.js"));
|
|
|
47
47
|
const errors = __importStar(require("../models/errors/index.js"));
|
|
48
48
|
const async_js_1 = require("../types/async.js");
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Construct Bundled Transaction
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
*
|
|
53
|
+
* Bundle arbitrary transactions together into a single multicall transaction using
|
|
54
|
+
* EIP-7702.
|
|
54
55
|
*
|
|
55
56
|
* This endpoint allows bundling multiple contract calls into a single atomic
|
|
56
57
|
* transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactionBatchingExecute.js","sourceRoot":"","sources":["../../../src/funcs/transactionBatchingExecute.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"transactionBatchingExecute.js","sourceRoot":"","sources":["../../../src/funcs/transactionBatchingExecute.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCH,gEAsBC;AAvDD,sDAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAS5D,kEAAoD;AAEpD,gDAAwD;AAGxD;;;;;;;;;;;GAWG;AACH,SAAgB,0BAA0B,CACxC,MAAyB,EACzB,OAA2C,EAC3C,OAAwB;IAcxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAyB,EACzB,OAA2C,EAC3C,OAAwB;IAiBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,sCAAsC,CAAC,KAAK,CAAC,KAAK,CAAC,EACzE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAA,yBAAU,EAAC,MAAM,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAE5D,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,uBAAuB,CAAC,EAAE,CAAC;IAEnD,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,IAAA,0BAAU,EAAC;QACrC,cAAc,EAAE,kBAAkB;Q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ED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.0.1";
|
|
34
|
-
readonly sdkVersion: "0.5.
|
|
35
|
-
readonly genVersion: "2.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.5.
|
|
34
|
+
readonly sdkVersion: "0.5.8";
|
|
35
|
+
readonly genVersion: "2.620.2";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.5.8 2.620.2 0.0.1 @compass-labs/api-sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -31,8 +31,8 @@ function serverURLFromOptions(options) {
|
|
|
31
31
|
exports.SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "0.0.1",
|
|
34
|
-
sdkVersion: "0.5.
|
|
35
|
-
genVersion: "2.
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.5.
|
|
34
|
+
sdkVersion: "0.5.8",
|
|
35
|
+
genVersion: "2.620.2",
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.5.8 2.620.2 0.0.1 @compass-labs/api-sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
|
|
|
22
22
|
exports.app = (0, core_1.buildApplication)(routes, {
|
|
23
23
|
name: "mcp",
|
|
24
24
|
versionInfo: {
|
|
25
|
-
currentVersion: "0.5.
|
|
25
|
+
currentVersion: "0.5.8",
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
(0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
|
|
@@ -86,7 +86,7 @@ const universalWrapEth_js_1 = require("./tools/universalWrapEth.js");
|
|
|
86
86
|
function createMCPServer(deps) {
|
|
87
87
|
const server = new mcp_js_1.McpServer({
|
|
88
88
|
name: "CompassApiSDK",
|
|
89
|
-
version: "0.5.
|
|
89
|
+
version: "0.5.8",
|
|
90
90
|
});
|
|
91
91
|
const client = new core_js_1.CompassApiSDKCore({
|
|
92
92
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -45,7 +45,7 @@ const args = {
|
|
|
45
45
|
};
|
|
46
46
|
exports.tool$transactionBatchingAaveLoop = {
|
|
47
47
|
name: "transaction-batching-aave-loop",
|
|
48
|
-
description: `
|
|
48
|
+
description: `AAVE leverage long/short
|
|
49
49
|
|
|
50
50
|
Execute an Aave looping strategy that involves repeated supply and borrow
|
|
51
51
|
operations.
|
|
@@ -45,14 +45,14 @@ const args = {
|
|
|
45
45
|
};
|
|
46
46
|
exports.tool$transactionBatchingAuthorization = {
|
|
47
47
|
name: "transaction-batching-authorization",
|
|
48
|
-
description: `
|
|
48
|
+
description: `Enable transaction bundling.
|
|
49
49
|
|
|
50
|
-
Get authorization
|
|
50
|
+
Get authorization for bundling transactions.
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
ordering when batching multiple actions into a single
|
|
54
|
-
includes a nonce and chain ID to guarantee
|
|
55
|
-
targeting.`,
|
|
52
|
+
Currently this is required for every transaction bundle to prevent replay attacks
|
|
53
|
+
and ensure transaction ordering when batching multiple actions into a single
|
|
54
|
+
transaction. The authorization includes a nonce and chain ID to guarantee
|
|
55
|
+
transaction uniqueness and proper network targeting.`,
|
|
56
56
|
args,
|
|
57
57
|
tool: async (client, args, ctx) => {
|
|
58
58
|
const [result, apiCall] = await (0, transactionBatchingAuthorization_js_1.transactionBatchingAuthorization)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactionBatchingAuthorization.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/transactionBatchingAuthorization.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,yGAAmG;AACnG,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,2CAA2C;CAChE,CAAC;AAEW,QAAA,qCAAqC,GAE9C;IACF,IAAI,EAAE,oCAAoC;IAC1C,WAAW,EAAE;;;;;;;
|
|
1
|
+
{"version":3,"file":"transactionBatchingAuthorization.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/transactionBatchingAuthorization.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,yGAAmG;AACnG,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,2CAA2C;CAChE,CAAC;AAEW,QAAA,qCAAqC,GAE9C;IACF,IAAI,EAAE,oCAAoC;IAC1C,WAAW,EAAE;;;;;;;qDAOsC;IACnD,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,sEAAgC,EAC9D,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactionBatchingExecute.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/transactionBatchingExecute.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,cAAc,CAAC,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"transactionBatchingExecute.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/transactionBatchingExecute.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,cAAc,CAAC,OAAO,IAAI,CA8BvE,CAAC"}
|
|
@@ -45,9 +45,10 @@ const args = {
|
|
|
45
45
|
};
|
|
46
46
|
exports.tool$transactionBatchingExecute = {
|
|
47
47
|
name: "transaction-batching-execute",
|
|
48
|
-
description: `
|
|
48
|
+
description: `Construct Bundled Transaction
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
Bundle arbitrary transactions together into a single multicall transaction using
|
|
51
|
+
EIP-7702.
|
|
51
52
|
|
|
52
53
|
This endpoint allows bundling multiple contract calls into a single atomic
|
|
53
54
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactionBatchingExecute.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/transactionBatchingExecute.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,6FAAuF;AACvF,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,qCAAqC;CAC1D,CAAC;AAEW,QAAA,+BAA+B,GAAgC;IAC1E,IAAI,EAAE,8BAA8B;IACpC,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"transactionBatchingExecute.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/transactionBatchingExecute.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,6FAAuF;AACvF,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,qCAAqC;CAC1D,CAAC;AAEW,QAAA,+BAA+B,GAAgC;IAC1E,IAAI,EAAE,8BAA8B;IACpC,WAAW,EAAE;;;;;;;;wBAQS;IACtB,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,0DAA0B,EACxD,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
export declare class APIError extends Error {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
/**
|
|
3
|
+
* HTTP status code
|
|
4
|
+
*/
|
|
4
5
|
readonly statusCode: number;
|
|
6
|
+
/**
|
|
7
|
+
* HTTP content type
|
|
8
|
+
*/
|
|
5
9
|
readonly contentType: string;
|
|
10
|
+
/**
|
|
11
|
+
* HTTP body
|
|
12
|
+
*/
|
|
13
|
+
readonly body: string;
|
|
14
|
+
/**
|
|
15
|
+
* Raw response
|
|
16
|
+
*/
|
|
17
|
+
readonly rawResponse: Response;
|
|
6
18
|
constructor(message: string, rawResponse: Response, body?: string);
|
|
7
19
|
}
|
|
8
20
|
//# sourceMappingURL=apierror.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apierror.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/apierror.ts"],"names":[],"mappings":"AAIA,qBAAa,QAAS,SAAQ,KAAK;
|
|
1
|
+
{"version":3,"file":"apierror.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/apierror.ts"],"names":[],"mappings":"AAIA,qBAAa,QAAS,SAAQ,KAAK;IACjC;;OAEG;IACH,SAAgB,UAAU,EAAE,MAAM,CAAC;IACnC;;OAEG;IACH,SAAgB,WAAW,EAAE,MAAM,CAAC;IACpC;;OAEG;IACH,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,SAAgB,WAAW,EAAE,QAAQ,CAAC;gBAGpC,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,QAAQ,EACrB,IAAI,GAAE,MAAW;CAgBpB"}
|
|
@@ -10,8 +10,8 @@ class APIError extends Error {
|
|
|
10
10
|
const contentType = rawResponse.headers.get("content-type") || "";
|
|
11
11
|
const bodyString = body.length > 0 ? `\n${body}` : "";
|
|
12
12
|
super(`${message}: Status ${statusCode} Content-Type ${contentType} Body ${bodyString}`);
|
|
13
|
-
this.rawResponse = rawResponse;
|
|
14
13
|
this.body = body;
|
|
14
|
+
this.rawResponse = rawResponse;
|
|
15
15
|
this.statusCode = statusCode;
|
|
16
16
|
this.contentType = contentType;
|
|
17
17
|
this.name = "APIError";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apierror.js","sourceRoot":"","sources":["../../../../src/models/errors/apierror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,MAAa,QAAS,SAAQ,KAAK;
|
|
1
|
+
{"version":3,"file":"apierror.js","sourceRoot":"","sources":["../../../../src/models/errors/apierror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,MAAa,QAAS,SAAQ,KAAK;IAkBjC,YACE,OAAe,EACf,WAAqB,EACrB,OAAe,EAAE;QAEjB,MAAM,UAAU,GAAG,WAAW,CAAC,MAAM,CAAC;QACtC,MAAM,WAAW,GAAG,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;QAClE,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACtD,KAAK,CACH,GAAG,OAAO,YAAY,UAAU,iBAAiB,WAAW,SAAS,UAAU,EAAE,CAClF,CAAC;QAEF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;IACzB,CAAC;CACF;AArCD,4BAqCC"}
|
|
@@ -2,22 +2,23 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
|
2
2
|
import * as components from "../models/components/index.js";
|
|
3
3
|
export declare class TransactionBatching extends ClientSDK {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Enable transaction bundling.
|
|
6
6
|
*
|
|
7
7
|
* @remarks
|
|
8
|
-
* Get authorization
|
|
8
|
+
* Get authorization for bundling transactions.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
* ordering when batching multiple actions into a single
|
|
12
|
-
* includes a nonce and chain ID to guarantee
|
|
13
|
-
* targeting.
|
|
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
14
|
*/
|
|
15
15
|
authorization(request: components.MulticallAuthorizationRequest, options?: RequestOptions): Promise<components.MulticallAuthorizationResponse>;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Construct Bundled Transaction
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
*
|
|
20
|
+
* Bundle arbitrary transactions together into a single multicall transaction using
|
|
21
|
+
* EIP-7702.
|
|
21
22
|
*
|
|
22
23
|
* This endpoint allows bundling multiple contract calls into a single atomic
|
|
23
24
|
* transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
@@ -26,7 +27,7 @@ export declare class TransactionBatching extends ClientSDK {
|
|
|
26
27
|
*/
|
|
27
28
|
execute(request: components.MulticallExecuteRequest, options?: RequestOptions): Promise<components.UnsignedMulticallTransaction>;
|
|
28
29
|
/**
|
|
29
|
-
*
|
|
30
|
+
* AAVE leverage long/short
|
|
30
31
|
*
|
|
31
32
|
* @remarks
|
|
32
33
|
* Execute an Aave looping strategy that involves repeated supply and borrow
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -11,24 +11,25 @@ const sdks_js_1 = require("../lib/sdks.js");
|
|
|
11
11
|
const fp_js_1 = require("../types/fp.js");
|
|
12
12
|
class TransactionBatching extends sdks_js_1.ClientSDK {
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Enable transaction bundling.
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
* Get authorization
|
|
17
|
+
* Get authorization for bundling transactions.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
20
|
-
* ordering when batching multiple actions into a single
|
|
21
|
-
* includes a nonce and chain ID to guarantee
|
|
22
|
-
* targeting.
|
|
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
23
|
*/
|
|
24
24
|
async authorization(request, options) {
|
|
25
25
|
return (0, fp_js_1.unwrapAsync)((0, transactionBatchingAuthorization_js_1.transactionBatchingAuthorization)(this, request, options));
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Construct Bundled Transaction
|
|
29
29
|
*
|
|
30
30
|
* @remarks
|
|
31
|
-
*
|
|
31
|
+
* Bundle arbitrary transactions together into a single multicall transaction using
|
|
32
|
+
* EIP-7702.
|
|
32
33
|
*
|
|
33
34
|
* This endpoint allows bundling multiple contract calls into a single atomic
|
|
34
35
|
* transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
@@ -39,7 +40,7 @@ class TransactionBatching extends sdks_js_1.ClientSDK {
|
|
|
39
40
|
return (0, fp_js_1.unwrapAsync)((0, transactionBatchingExecute_js_1.transactionBatchingExecute)(this, request, options));
|
|
40
41
|
}
|
|
41
42
|
/**
|
|
42
|
-
*
|
|
43
|
+
* AAVE leverage long/short
|
|
43
44
|
*
|
|
44
45
|
* @remarks
|
|
45
46
|
* Execute an Aave looping strategy that involves repeated supply and borrow
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -8,7 +8,7 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
8
8
|
import { APIPromise } from "../types/async.js";
|
|
9
9
|
import { Result } from "../types/fp.js";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* AAVE leverage long/short
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
14
|
* Execute an Aave looping strategy that involves repeated supply and borrow
|
|
@@ -11,7 +11,7 @@ import * as components from "../models/components/index.js";
|
|
|
11
11
|
import * as errors from "../models/errors/index.js";
|
|
12
12
|
import { APIPromise } from "../types/async.js";
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* AAVE leverage long/short
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
17
|
* Execute an Aave looping strategy that involves repeated supply and borrow
|
|
@@ -8,15 +8,15 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
8
8
|
import { APIPromise } from "../types/async.js";
|
|
9
9
|
import { Result } from "../types/fp.js";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Enable transaction bundling.
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
-
* Get authorization
|
|
14
|
+
* Get authorization for bundling transactions.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
17
|
-
* ordering when batching multiple actions into a single
|
|
18
|
-
* includes a nonce and chain ID to guarantee
|
|
19
|
-
* targeting.
|
|
16
|
+
* Currently this is required for every transaction bundle to prevent replay attacks
|
|
17
|
+
* and ensure transaction ordering when batching multiple actions into a single
|
|
18
|
+
* transaction. The authorization includes a nonce and chain ID to guarantee
|
|
19
|
+
* transaction uniqueness and proper network targeting.
|
|
20
20
|
*/
|
|
21
21
|
export declare function transactionBatchingAuthorization(client: CompassApiSDKCore, request: components.MulticallAuthorizationRequest, options?: RequestOptions): APIPromise<Result<components.MulticallAuthorizationResponse, errors.HTTPValidationError | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
22
22
|
//# sourceMappingURL=transactionBatchingAuthorization.d.ts.map
|
|
@@ -11,15 +11,15 @@ import * as components from "../models/components/index.js";
|
|
|
11
11
|
import * as errors from "../models/errors/index.js";
|
|
12
12
|
import { APIPromise } from "../types/async.js";
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Enable transaction bundling.
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
* Get authorization
|
|
17
|
+
* Get authorization for bundling transactions.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
20
|
-
* ordering when batching multiple actions into a single
|
|
21
|
-
* includes a nonce and chain ID to guarantee
|
|
22
|
-
* targeting.
|
|
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
23
|
*/
|
|
24
24
|
export function transactionBatchingAuthorization(client, request, options) {
|
|
25
25
|
return new APIPromise($do(client, request, options));
|
|
@@ -8,10 +8,11 @@ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
|
8
8
|
import { APIPromise } from "../types/async.js";
|
|
9
9
|
import { Result } from "../types/fp.js";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Construct Bundled Transaction
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
-
*
|
|
14
|
+
* Bundle arbitrary transactions together into a single multicall transaction using
|
|
15
|
+
* EIP-7702.
|
|
15
16
|
*
|
|
16
17
|
* This endpoint allows bundling multiple contract calls into a single atomic
|
|
17
18
|
* transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactionBatchingExecute.d.ts","sourceRoot":"","sources":["../../../src/funcs/transactionBatchingExecute.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,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,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,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC
|
|
1
|
+
{"version":3,"file":"transactionBatchingExecute.d.ts","sourceRoot":"","sources":["../../../src/funcs/transactionBatchingExecute.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,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,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,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;;;;;GAWG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,4BAA4B,EACrC,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAMA"}
|
|
@@ -11,10 +11,11 @@ import * as components from "../models/components/index.js";
|
|
|
11
11
|
import * as errors from "../models/errors/index.js";
|
|
12
12
|
import { APIPromise } from "../types/async.js";
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Construct Bundled Transaction
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
*
|
|
17
|
+
* Bundle arbitrary transactions together into a single multicall transaction using
|
|
18
|
+
* EIP-7702.
|
|
18
19
|
*
|
|
19
20
|
* This endpoint allows bundling multiple contract calls into a single atomic
|
|
20
21
|
* transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactionBatchingExecute.js","sourceRoot":"","sources":["../../../src/funcs/transactionBatchingExecute.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAS5D,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAEpD,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD
|
|
1
|
+
{"version":3,"file":"transactionBatchingExecute.js","sourceRoot":"","sources":["../../../src/funcs/transactionBatchingExecute.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E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|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.0.1";
|
|
34
|
-
readonly sdkVersion: "0.5.
|
|
35
|
-
readonly genVersion: "2.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.5.
|
|
34
|
+
readonly sdkVersion: "0.5.8";
|
|
35
|
+
readonly genVersion: "2.620.2";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.5.8 2.620.2 0.0.1 @compass-labs/api-sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -27,8 +27,8 @@ export function serverURLFromOptions(options) {
|
|
|
27
27
|
export const SDK_METADATA = {
|
|
28
28
|
language: "typescript",
|
|
29
29
|
openapiDocVersion: "0.0.1",
|
|
30
|
-
sdkVersion: "0.5.
|
|
31
|
-
genVersion: "2.
|
|
32
|
-
userAgent: "speakeasy-sdk/typescript 0.5.
|
|
30
|
+
sdkVersion: "0.5.8",
|
|
31
|
+
genVersion: "2.620.2",
|
|
32
|
+
userAgent: "speakeasy-sdk/typescript 0.5.8 2.620.2 0.0.1 @compass-labs/api-sdk",
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.js.map
|
|
@@ -83,7 +83,7 @@ import { tool$universalWrapEth } from "./tools/universalWrapEth.js";
|
|
|
83
83
|
export function createMCPServer(deps) {
|
|
84
84
|
const server = new McpServer({
|
|
85
85
|
name: "CompassApiSDK",
|
|
86
|
-
version: "0.5.
|
|
86
|
+
version: "0.5.8",
|
|
87
87
|
});
|
|
88
88
|
const client = new CompassApiSDKCore({
|
|
89
89
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -9,7 +9,7 @@ const args = {
|
|
|
9
9
|
};
|
|
10
10
|
export const tool$transactionBatchingAaveLoop = {
|
|
11
11
|
name: "transaction-batching-aave-loop",
|
|
12
|
-
description: `
|
|
12
|
+
description: `AAVE leverage long/short
|
|
13
13
|
|
|
14
14
|
Execute an Aave looping strategy that involves repeated supply and borrow
|
|
15
15
|
operations.
|
|
@@ -9,14 +9,14 @@ const args = {
|
|
|
9
9
|
};
|
|
10
10
|
export const tool$transactionBatchingAuthorization = {
|
|
11
11
|
name: "transaction-batching-authorization",
|
|
12
|
-
description: `
|
|
12
|
+
description: `Enable transaction bundling.
|
|
13
13
|
|
|
14
|
-
Get authorization
|
|
14
|
+
Get authorization for bundling transactions.
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
ordering when batching multiple actions into a single
|
|
18
|
-
includes a nonce and chain ID to guarantee
|
|
19
|
-
targeting.`,
|
|
16
|
+
Currently this is required for every transaction bundle to prevent replay attacks
|
|
17
|
+
and ensure transaction ordering when batching multiple actions into a single
|
|
18
|
+
transaction. The authorization includes a nonce and chain ID to guarantee
|
|
19
|
+
transaction uniqueness and proper network targeting.`,
|
|
20
20
|
args,
|
|
21
21
|
tool: async (client, args, ctx) => {
|
|
22
22
|
const [result, apiCall] = await transactionBatchingAuthorization(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactionBatchingAuthorization.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/transactionBatchingAuthorization.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AACnG,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,2CAA2C;CAChE,CAAC;AAEF,MAAM,CAAC,MAAM,qCAAqC,GAE9C;IACF,IAAI,EAAE,oCAAoC;IAC1C,WAAW,EAAE;;;;;;;
|
|
1
|
+
{"version":3,"file":"transactionBatchingAuthorization.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/transactionBatchingAuthorization.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AACnG,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,2CAA2C;CAChE,CAAC;AAEF,MAAM,CAAC,MAAM,qCAAqC,GAE9C;IACF,IAAI,EAAE,oCAAoC;IAC1C,WAAW,EAAE;;;;;;;qDAOsC;IACnD,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,gCAAgC,CAC9D,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|