@compass-labs/api-sdk 0.5.5 → 0.5.7
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/README.md +6 -6
- package/bin/mcp-server.js +15 -14
- package/bin/mcp-server.js.map +11 -11
- 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 +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- 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/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 +2 -2
- package/dist/esm/lib/config.js +2 -2
- 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/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/transactionbatching/README.md +10 -9
- 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 +2 -2
- 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/sdk/transactionbatching.ts +10 -9
package/README.md
CHANGED
|
@@ -299,9 +299,9 @@ run();
|
|
|
299
299
|
|
|
300
300
|
### [transactionBatching](docs/sdks/transactionbatching/README.md)
|
|
301
301
|
|
|
302
|
-
* [authorization](docs/sdks/transactionbatching/README.md#authorization) -
|
|
303
|
-
* [execute](docs/sdks/transactionbatching/README.md#execute) -
|
|
304
|
-
* [aaveLoop](docs/sdks/transactionbatching/README.md#aaveloop) -
|
|
302
|
+
* [authorization](docs/sdks/transactionbatching/README.md#authorization) - Enable transaction bundling.
|
|
303
|
+
* [execute](docs/sdks/transactionbatching/README.md#execute) - Construct Bundled Transaction
|
|
304
|
+
* [aaveLoop](docs/sdks/transactionbatching/README.md#aaveloop) - AAVE leverage long/short
|
|
305
305
|
|
|
306
306
|
### [uniswapV3](docs/sdks/uniswapv3/README.md)
|
|
307
307
|
|
|
@@ -398,9 +398,9 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
398
398
|
- [`tokenBalance`](docs/sdks/token/README.md#balance) - Token Balance
|
|
399
399
|
- [`tokenPrice`](docs/sdks/token/README.md#price) - Token Price
|
|
400
400
|
- [`tokenTransfer`](docs/sdks/token/README.md#transfer) - Transfer ETH or ERC20 Tokens.
|
|
401
|
-
- [`transactionBatchingAaveLoop`](docs/sdks/transactionbatching/README.md#aaveloop) -
|
|
402
|
-
- [`transactionBatchingAuthorization`](docs/sdks/transactionbatching/README.md#authorization) -
|
|
403
|
-
- [`transactionBatchingExecute`](docs/sdks/transactionbatching/README.md#execute) -
|
|
401
|
+
- [`transactionBatchingAaveLoop`](docs/sdks/transactionbatching/README.md#aaveloop) - AAVE leverage long/short
|
|
402
|
+
- [`transactionBatchingAuthorization`](docs/sdks/transactionbatching/README.md#authorization) - Enable transaction bundling.
|
|
403
|
+
- [`transactionBatchingExecute`](docs/sdks/transactionbatching/README.md#execute) - Construct Bundled Transaction
|
|
404
404
|
- [`uniswapV3LiquidityProvisionIncrease`](docs/sdks/uniswapv3/README.md#liquidityprovisionincrease) - Increase an LP position
|
|
405
405
|
- [`uniswapV3LiquidityProvisionInRange`](docs/sdks/uniswapv3/README.md#liquidityprovisioninrange) - Check if LP is active.
|
|
406
406
|
- [`uniswapV3LiquidityProvisionMint`](docs/sdks/uniswapv3/README.md#liquidityprovisionmint) - Open a new LP position
|
package/bin/mcp-server.js
CHANGED
|
@@ -34205,9 +34205,9 @@ var init_config = __esm(() => {
|
|
|
34205
34205
|
SDK_METADATA = {
|
|
34206
34206
|
language: "typescript",
|
|
34207
34207
|
openapiDocVersion: "0.0.1",
|
|
34208
|
-
sdkVersion: "0.5.
|
|
34208
|
+
sdkVersion: "0.5.7",
|
|
34209
34209
|
genVersion: "2.618.0",
|
|
34210
|
-
userAgent: "speakeasy-sdk/typescript 0.5.
|
|
34210
|
+
userAgent: "speakeasy-sdk/typescript 0.5.7 2.618.0 0.0.1 @compass-labs/api-sdk"
|
|
34211
34211
|
};
|
|
34212
34212
|
});
|
|
34213
34213
|
|
|
@@ -50788,7 +50788,7 @@ var init_transactionBatchingAaveLoop2 = __esm(() => {
|
|
|
50788
50788
|
};
|
|
50789
50789
|
tool$transactionBatchingAaveLoop = {
|
|
50790
50790
|
name: "transaction-batching-aave-loop",
|
|
50791
|
-
description: `
|
|
50791
|
+
description: `AAVE leverage long/short
|
|
50792
50792
|
|
|
50793
50793
|
Execute an Aave looping strategy that involves repeated supply and borrow
|
|
50794
50794
|
operations.
|
|
@@ -50901,14 +50901,14 @@ var init_transactionBatchingAuthorization2 = __esm(() => {
|
|
|
50901
50901
|
};
|
|
50902
50902
|
tool$transactionBatchingAuthorization = {
|
|
50903
50903
|
name: "transaction-batching-authorization",
|
|
50904
|
-
description: `
|
|
50904
|
+
description: `Enable transaction bundling.
|
|
50905
50905
|
|
|
50906
|
-
Get authorization
|
|
50906
|
+
Get authorization for bundling transactions.
|
|
50907
50907
|
|
|
50908
|
-
|
|
50909
|
-
ordering when batching multiple actions into a single
|
|
50910
|
-
includes a nonce and chain ID to guarantee
|
|
50911
|
-
targeting.`,
|
|
50908
|
+
Currently this is required for every transaction bundle to prevent replay attacks
|
|
50909
|
+
and ensure transaction ordering when batching multiple actions into a single
|
|
50910
|
+
transaction. The authorization includes a nonce and chain ID to guarantee
|
|
50911
|
+
transaction uniqueness and proper network targeting.`,
|
|
50912
50912
|
args: args55,
|
|
50913
50913
|
tool: async (client, args56, ctx) => {
|
|
50914
50914
|
const [result, apiCall] = await transactionBatchingAuthorization(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -51009,9 +51009,10 @@ var init_transactionBatchingExecute2 = __esm(() => {
|
|
|
51009
51009
|
};
|
|
51010
51010
|
tool$transactionBatchingExecute = {
|
|
51011
51011
|
name: "transaction-batching-execute",
|
|
51012
|
-
description: `
|
|
51012
|
+
description: `Construct Bundled Transaction
|
|
51013
51013
|
|
|
51014
|
-
|
|
51014
|
+
Bundle arbitrary transactions together into a single multicall transaction using
|
|
51015
|
+
EIP-7702.
|
|
51015
51016
|
|
|
51016
51017
|
This endpoint allows bundling multiple contract calls into a single atomic
|
|
51017
51018
|
transaction, reducing gas costs and ensuring all operations succeed or fail
|
|
@@ -53043,7 +53044,7 @@ it to be traded on DeFi protocols.`,
|
|
|
53043
53044
|
function createMCPServer(deps) {
|
|
53044
53045
|
const server = new McpServer({
|
|
53045
53046
|
name: "CompassApiSDK",
|
|
53046
|
-
version: "0.5.
|
|
53047
|
+
version: "0.5.7"
|
|
53047
53048
|
});
|
|
53048
53049
|
const client = new CompassApiSDKCore({
|
|
53049
53050
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -54402,7 +54403,7 @@ var routes = an({
|
|
|
54402
54403
|
var app = He(routes, {
|
|
54403
54404
|
name: "mcp",
|
|
54404
54405
|
versionInfo: {
|
|
54405
|
-
currentVersion: "0.5.
|
|
54406
|
+
currentVersion: "0.5.7"
|
|
54406
54407
|
}
|
|
54407
54408
|
});
|
|
54408
54409
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -54410,5 +54411,5 @@ export {
|
|
|
54410
54411
|
app
|
|
54411
54412
|
};
|
|
54412
54413
|
|
|
54413
|
-
//# debugId=
|
|
54414
|
+
//# debugId=179ADF50CFAAB88C64756E2164756E21
|
|
54414
54415
|
//# sourceMappingURL=mcp-server.js.map
|