@compass-labs/api-sdk 1.0.12 → 1.0.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.
- package/README.md +0 -2
- package/bin/mcp-server.js +131 -282
- package/bin/mcp-server.js.map +7 -10
- 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.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -3
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +0 -1
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +0 -1
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/sdk/transactionbundler.d.ts +0 -8
- package/dist/commonjs/sdk/transactionbundler.d.ts.map +1 -1
- package/dist/commonjs/sdk/transactionbundler.js +0 -11
- package/dist/commonjs/sdk/transactionbundler.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.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +1 -3
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +0 -1
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +0 -1
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/sdk/transactionbundler.d.ts +0 -8
- package/dist/esm/sdk/transactionbundler.d.ts.map +1 -1
- package/dist/esm/sdk/transactionbundler.js +0 -11
- package/dist/esm/sdk/transactionbundler.js.map +1 -1
- package/docs/sdks/transactionbundler/README.md +0 -114
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -3
- package/src/models/components/index.ts +0 -1
- package/src/sdk/transactionbundler.ts +0 -19
- package/dist/commonjs/funcs/transactionBundlerTransactionBundlerMetamaskExecute.d.ts +0 -19
- package/dist/commonjs/funcs/transactionBundlerTransactionBundlerMetamaskExecute.d.ts.map +0 -1
- package/dist/commonjs/funcs/transactionBundlerTransactionBundlerMetamaskExecute.js +0 -119
- package/dist/commonjs/funcs/transactionBundlerTransactionBundlerMetamaskExecute.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/transactionBundlerTransactionBundlerMetamaskExecute.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/transactionBundlerTransactionBundlerMetamaskExecute.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/transactionBundlerTransactionBundlerMetamaskExecute.js +0 -65
- package/dist/commonjs/mcp-server/tools/transactionBundlerTransactionBundlerMetamaskExecute.js.map +0 -1
- package/dist/commonjs/models/components/metamaskdelegatorrequest.d.ts +0 -78
- package/dist/commonjs/models/components/metamaskdelegatorrequest.d.ts.map +0 -1
- package/dist/commonjs/models/components/metamaskdelegatorrequest.js +0 -108
- package/dist/commonjs/models/components/metamaskdelegatorrequest.js.map +0 -1
- package/dist/esm/funcs/transactionBundlerTransactionBundlerMetamaskExecute.d.ts +0 -19
- package/dist/esm/funcs/transactionBundlerTransactionBundlerMetamaskExecute.d.ts.map +0 -1
- package/dist/esm/funcs/transactionBundlerTransactionBundlerMetamaskExecute.js +0 -83
- package/dist/esm/funcs/transactionBundlerTransactionBundlerMetamaskExecute.js.map +0 -1
- package/dist/esm/mcp-server/tools/transactionBundlerTransactionBundlerMetamaskExecute.d.ts +0 -8
- package/dist/esm/mcp-server/tools/transactionBundlerTransactionBundlerMetamaskExecute.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/transactionBundlerTransactionBundlerMetamaskExecute.js +0 -29
- package/dist/esm/mcp-server/tools/transactionBundlerTransactionBundlerMetamaskExecute.js.map +0 -1
- package/dist/esm/models/components/metamaskdelegatorrequest.d.ts +0 -78
- package/dist/esm/models/components/metamaskdelegatorrequest.d.ts.map +0 -1
- package/dist/esm/models/components/metamaskdelegatorrequest.js +0 -70
- package/dist/esm/models/components/metamaskdelegatorrequest.js.map +0 -1
- package/src/funcs/transactionBundlerTransactionBundlerMetamaskExecute.ts +0 -170
- package/src/mcp-server/tools/transactionBundlerTransactionBundlerMetamaskExecute.ts +0 -40
- package/src/models/components/metamaskdelegatorrequest.ts +0 -144
package/bin/mcp-server.js
CHANGED
|
@@ -34264,9 +34264,9 @@ var init_config = __esm(() => {
|
|
|
34264
34264
|
SDK_METADATA = {
|
|
34265
34265
|
language: "typescript",
|
|
34266
34266
|
openapiDocVersion: "0.0.1",
|
|
34267
|
-
sdkVersion: "1.0.
|
|
34267
|
+
sdkVersion: "1.0.13",
|
|
34268
34268
|
genVersion: "2.681.1",
|
|
34269
|
-
userAgent: "speakeasy-sdk/typescript 1.0.
|
|
34269
|
+
userAgent: "speakeasy-sdk/typescript 1.0.13 2.681.1 0.0.1 @compass-labs/api-sdk"
|
|
34270
34270
|
};
|
|
34271
34271
|
});
|
|
34272
34272
|
|
|
@@ -40815,50 +40815,6 @@ var init_markettokens = __esm(() => {
|
|
|
40815
40815
|
})(MarketTokens$ ||= {});
|
|
40816
40816
|
});
|
|
40817
40817
|
|
|
40818
|
-
// src/models/components/metamaskdelegatorrequest.ts
|
|
40819
|
-
var MetamaskDelegatorRequestChain, MetamaskDelegatorRequestChain$inboundSchema, MetamaskDelegatorRequestChain$outboundSchema, MetamaskDelegatorRequestChain$, MetamaskDelegatorRequest$inboundSchema, MetamaskDelegatorRequest$outboundSchema, MetamaskDelegatorRequest$;
|
|
40820
|
-
var init_metamaskdelegatorrequest = __esm(() => {
|
|
40821
|
-
init_zod();
|
|
40822
|
-
init_primitives();
|
|
40823
|
-
init_signedauthorization();
|
|
40824
|
-
init_useroperation();
|
|
40825
|
-
MetamaskDelegatorRequestChain = {
|
|
40826
|
-
Arbitrum: "arbitrum",
|
|
40827
|
-
Base: "base",
|
|
40828
|
-
Ethereum: "ethereum"
|
|
40829
|
-
};
|
|
40830
|
-
MetamaskDelegatorRequestChain$inboundSchema = nativeEnumType(MetamaskDelegatorRequestChain);
|
|
40831
|
-
MetamaskDelegatorRequestChain$outboundSchema = MetamaskDelegatorRequestChain$inboundSchema;
|
|
40832
|
-
((MetamaskDelegatorRequestChain$) => {
|
|
40833
|
-
MetamaskDelegatorRequestChain$.inboundSchema = MetamaskDelegatorRequestChain$inboundSchema;
|
|
40834
|
-
MetamaskDelegatorRequestChain$.outboundSchema = MetamaskDelegatorRequestChain$outboundSchema;
|
|
40835
|
-
})(MetamaskDelegatorRequestChain$ ||= {});
|
|
40836
|
-
MetamaskDelegatorRequest$inboundSchema = objectType({
|
|
40837
|
-
chain: MetamaskDelegatorRequestChain$inboundSchema,
|
|
40838
|
-
sender: stringType(),
|
|
40839
|
-
signed_authorization: nullableType(SignedAuthorization$inboundSchema).optional(),
|
|
40840
|
-
actions: arrayType(UserOperation$inboundSchema)
|
|
40841
|
-
}).transform((v2) => {
|
|
40842
|
-
return remap(v2, {
|
|
40843
|
-
signed_authorization: "signedAuthorization"
|
|
40844
|
-
});
|
|
40845
|
-
});
|
|
40846
|
-
MetamaskDelegatorRequest$outboundSchema = objectType({
|
|
40847
|
-
chain: MetamaskDelegatorRequestChain$outboundSchema,
|
|
40848
|
-
sender: stringType(),
|
|
40849
|
-
signedAuthorization: nullableType(SignedAuthorization$outboundSchema).optional(),
|
|
40850
|
-
actions: arrayType(UserOperation$outboundSchema)
|
|
40851
|
-
}).transform((v2) => {
|
|
40852
|
-
return remap(v2, {
|
|
40853
|
-
signedAuthorization: "signed_authorization"
|
|
40854
|
-
});
|
|
40855
|
-
});
|
|
40856
|
-
((MetamaskDelegatorRequest$) => {
|
|
40857
|
-
MetamaskDelegatorRequest$.inboundSchema = MetamaskDelegatorRequest$inboundSchema;
|
|
40858
|
-
MetamaskDelegatorRequest$.outboundSchema = MetamaskDelegatorRequest$outboundSchema;
|
|
40859
|
-
})(MetamaskDelegatorRequest$ ||= {});
|
|
40860
|
-
});
|
|
40861
|
-
|
|
40862
40818
|
// src/models/components/morphoborrowrequest.ts
|
|
40863
40819
|
var MorphoBorrowRequestChain, MorphoBorrowRequestAmount$inboundSchema, MorphoBorrowRequestAmount$outboundSchema, MorphoBorrowRequestAmount$, MorphoBorrowRequestChain$inboundSchema, MorphoBorrowRequestChain$outboundSchema, MorphoBorrowRequestChain$, MorphoBorrowRequest$inboundSchema, MorphoBorrowRequest$outboundSchema, MorphoBorrowRequest$;
|
|
40864
40820
|
var init_morphoborrowrequest = __esm(() => {
|
|
@@ -43866,7 +43822,6 @@ var init_components = __esm(() => {
|
|
|
43866
43822
|
init_market();
|
|
43867
43823
|
init_marketposition();
|
|
43868
43824
|
init_markettokens();
|
|
43869
|
-
init_metamaskdelegatorrequest();
|
|
43870
43825
|
init_morphoborrowparams();
|
|
43871
43826
|
init_morphoborrowrequest();
|
|
43872
43827
|
init_morphocheckmarketpositionresponse();
|
|
@@ -53662,115 +53617,11 @@ prevent replay attacks.`,
|
|
|
53662
53617
|
};
|
|
53663
53618
|
});
|
|
53664
53619
|
|
|
53665
|
-
// src/funcs/transactionBundlerTransactionBundlerMetamaskExecute.ts
|
|
53666
|
-
function transactionBundlerTransactionBundlerMetamaskExecute(client, request, options) {
|
|
53667
|
-
return new APIPromise($do62(client, request, options));
|
|
53668
|
-
}
|
|
53669
|
-
async function $do62(client, request, options) {
|
|
53670
|
-
const parsed = safeParse(request, (value) => MetamaskDelegatorRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53671
|
-
if (!parsed.ok) {
|
|
53672
|
-
return [parsed, { status: "invalid" }];
|
|
53673
|
-
}
|
|
53674
|
-
const payload = parsed.value;
|
|
53675
|
-
const body = encodeJSON("body", payload, { explode: true });
|
|
53676
|
-
const path = pathToFunc("/v1/transaction_bundler/metamask/execute")();
|
|
53677
|
-
const headers = new Headers(compactMap({
|
|
53678
|
-
"Content-Type": "application/json",
|
|
53679
|
-
Accept: "application/json"
|
|
53680
|
-
}));
|
|
53681
|
-
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
53682
|
-
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
53683
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
53684
|
-
const context = {
|
|
53685
|
-
options: client._options,
|
|
53686
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
53687
|
-
operationID: "v1_transaction_bundler_metamask_execute",
|
|
53688
|
-
oAuth2Scopes: [],
|
|
53689
|
-
resolvedSecurity: requestSecurity,
|
|
53690
|
-
securitySource: client._options.apiKeyAuth,
|
|
53691
|
-
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
53692
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
53693
|
-
};
|
|
53694
|
-
const requestRes = client._createRequest(context, {
|
|
53695
|
-
security: requestSecurity,
|
|
53696
|
-
method: "POST",
|
|
53697
|
-
baseURL: options?.serverURL,
|
|
53698
|
-
path,
|
|
53699
|
-
headers,
|
|
53700
|
-
body,
|
|
53701
|
-
userAgent: client._options.userAgent,
|
|
53702
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
53703
|
-
}, options);
|
|
53704
|
-
if (!requestRes.ok) {
|
|
53705
|
-
return [requestRes, { status: "invalid" }];
|
|
53706
|
-
}
|
|
53707
|
-
const req = requestRes.value;
|
|
53708
|
-
const doResult = await client._do(req, {
|
|
53709
|
-
context,
|
|
53710
|
-
errorCodes: ["422", "4XX", "5XX"],
|
|
53711
|
-
retryConfig: context.retryConfig,
|
|
53712
|
-
retryCodes: context.retryCodes
|
|
53713
|
-
});
|
|
53714
|
-
if (!doResult.ok) {
|
|
53715
|
-
return [doResult, { status: "request-error", request: req }];
|
|
53716
|
-
}
|
|
53717
|
-
const response = doResult.value;
|
|
53718
|
-
const responseFields = {
|
|
53719
|
-
HttpMeta: { Response: response, Request: req }
|
|
53720
|
-
};
|
|
53721
|
-
const [result] = await match(json(200, BundlerTransactionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
53722
|
-
if (!result.ok) {
|
|
53723
|
-
return [result, { status: "complete", request: req, response }];
|
|
53724
|
-
}
|
|
53725
|
-
return [result, { status: "complete", request: req, response }];
|
|
53726
|
-
}
|
|
53727
|
-
var init_transactionBundlerTransactionBundlerMetamaskExecute = __esm(() => {
|
|
53728
|
-
init_encodings();
|
|
53729
|
-
init_matchers();
|
|
53730
|
-
init_primitives();
|
|
53731
|
-
init_schemas();
|
|
53732
|
-
init_security();
|
|
53733
|
-
init_url();
|
|
53734
|
-
init_components();
|
|
53735
|
-
init_errors2();
|
|
53736
|
-
init_async();
|
|
53737
|
-
});
|
|
53738
|
-
|
|
53739
|
-
// src/mcp-server/tools/transactionBundlerTransactionBundlerMetamaskExecute.ts
|
|
53740
|
-
var args62, tool$transactionBundlerTransactionBundlerMetamaskExecute;
|
|
53741
|
-
var init_transactionBundlerTransactionBundlerMetamaskExecute2 = __esm(() => {
|
|
53742
|
-
init_transactionBundlerTransactionBundlerMetamaskExecute();
|
|
53743
|
-
init_components();
|
|
53744
|
-
init_tools();
|
|
53745
|
-
args62 = {
|
|
53746
|
-
request: MetamaskDelegatorRequest$inboundSchema
|
|
53747
|
-
};
|
|
53748
|
-
tool$transactionBundlerTransactionBundlerMetamaskExecute = {
|
|
53749
|
-
name: "transaction-bundler-transaction-bundler-metamask-execute",
|
|
53750
|
-
description: `Construct Bundled Transaction
|
|
53751
|
-
|
|
53752
|
-
Bundle arbitrary transactions together into a single metamask delegator
|
|
53753
|
-
transaction.`,
|
|
53754
|
-
args: args62,
|
|
53755
|
-
tool: async (client, args63, ctx) => {
|
|
53756
|
-
const [result, apiCall] = await transactionBundlerTransactionBundlerMetamaskExecute(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53757
|
-
if (!result.ok) {
|
|
53758
|
-
return {
|
|
53759
|
-
content: [{ type: "text", text: result.error.message }],
|
|
53760
|
-
isError: true
|
|
53761
|
-
};
|
|
53762
|
-
}
|
|
53763
|
-
const value = result.value;
|
|
53764
|
-
return formatResult(value, apiCall);
|
|
53765
|
-
}
|
|
53766
|
-
};
|
|
53767
|
-
});
|
|
53768
|
-
|
|
53769
53620
|
// src/funcs/uniswapV3UniswapLiquidityProvisionIncrease.ts
|
|
53770
53621
|
function uniswapV3UniswapLiquidityProvisionIncrease(client, request, options) {
|
|
53771
|
-
return new APIPromise($
|
|
53622
|
+
return new APIPromise($do62(client, request, options));
|
|
53772
53623
|
}
|
|
53773
|
-
async function $
|
|
53624
|
+
async function $do62(client, request, options) {
|
|
53774
53625
|
const parsed = safeParse(request, (value) => UniswapIncreaseLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53775
53626
|
if (!parsed.ok) {
|
|
53776
53627
|
return [parsed, { status: "invalid" }];
|
|
@@ -53841,12 +53692,12 @@ var init_uniswapV3UniswapLiquidityProvisionIncrease = __esm(() => {
|
|
|
53841
53692
|
});
|
|
53842
53693
|
|
|
53843
53694
|
// src/mcp-server/tools/uniswapV3UniswapLiquidityProvisionIncrease.ts
|
|
53844
|
-
var
|
|
53695
|
+
var args62, tool$uniswapV3UniswapLiquidityProvisionIncrease;
|
|
53845
53696
|
var init_uniswapV3UniswapLiquidityProvisionIncrease2 = __esm(() => {
|
|
53846
53697
|
init_uniswapV3UniswapLiquidityProvisionIncrease();
|
|
53847
53698
|
init_components();
|
|
53848
53699
|
init_tools();
|
|
53849
|
-
|
|
53700
|
+
args62 = {
|
|
53850
53701
|
request: UniswapIncreaseLiquidityProvisionRequest$inboundSchema
|
|
53851
53702
|
};
|
|
53852
53703
|
tool$uniswapV3UniswapLiquidityProvisionIncrease = {
|
|
@@ -53870,9 +53721,9 @@ process.
|
|
|
53870
53721
|
- \`AerodromeSlipstreamRouter\`
|
|
53871
53722
|
</Info>
|
|
53872
53723
|
`,
|
|
53873
|
-
args:
|
|
53874
|
-
tool: async (client,
|
|
53875
|
-
const [result, apiCall] = await uniswapV3UniswapLiquidityProvisionIncrease(client,
|
|
53724
|
+
args: args62,
|
|
53725
|
+
tool: async (client, args63, ctx) => {
|
|
53726
|
+
const [result, apiCall] = await uniswapV3UniswapLiquidityProvisionIncrease(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53876
53727
|
if (!result.ok) {
|
|
53877
53728
|
return {
|
|
53878
53729
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -53887,9 +53738,9 @@ process.
|
|
|
53887
53738
|
|
|
53888
53739
|
// src/funcs/uniswapV3UniswapLiquidityProvisionInRange.ts
|
|
53889
53740
|
function uniswapV3UniswapLiquidityProvisionInRange(client, request, options) {
|
|
53890
|
-
return new APIPromise($
|
|
53741
|
+
return new APIPromise($do63(client, request, options));
|
|
53891
53742
|
}
|
|
53892
|
-
async function $
|
|
53743
|
+
async function $do63(client, request, options) {
|
|
53893
53744
|
const parsed = safeParse(request, (value) => V1UniswapLiquidityProvisionInRangeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
53894
53745
|
if (!parsed.ok) {
|
|
53895
53746
|
return [parsed, { status: "invalid" }];
|
|
@@ -53965,12 +53816,12 @@ var init_uniswapV3UniswapLiquidityProvisionInRange = __esm(() => {
|
|
|
53965
53816
|
});
|
|
53966
53817
|
|
|
53967
53818
|
// src/mcp-server/tools/uniswapV3UniswapLiquidityProvisionInRange.ts
|
|
53968
|
-
var
|
|
53819
|
+
var args63, tool$uniswapV3UniswapLiquidityProvisionInRange;
|
|
53969
53820
|
var init_uniswapV3UniswapLiquidityProvisionInRange2 = __esm(() => {
|
|
53970
53821
|
init_uniswapV3UniswapLiquidityProvisionInRange();
|
|
53971
53822
|
init_operations();
|
|
53972
53823
|
init_tools();
|
|
53973
|
-
|
|
53824
|
+
args63 = {
|
|
53974
53825
|
request: V1UniswapLiquidityProvisionInRangeRequest$inboundSchema
|
|
53975
53826
|
};
|
|
53976
53827
|
tool$uniswapV3UniswapLiquidityProvisionInRange = {
|
|
@@ -53985,9 +53836,9 @@ position is currently within the tick range where trading occurs. this informati
|
|
|
53985
53836
|
is essential for users to monitor the status of their lp positions and ensure that
|
|
53986
53837
|
they are actively participating in the trading activities within the liquidity pool
|
|
53987
53838
|
and earning trading fees.`,
|
|
53988
|
-
args:
|
|
53989
|
-
tool: async (client,
|
|
53990
|
-
const [result, apiCall] = await uniswapV3UniswapLiquidityProvisionInRange(client,
|
|
53839
|
+
args: args63,
|
|
53840
|
+
tool: async (client, args64, ctx) => {
|
|
53841
|
+
const [result, apiCall] = await uniswapV3UniswapLiquidityProvisionInRange(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
53991
53842
|
if (!result.ok) {
|
|
53992
53843
|
return {
|
|
53993
53844
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54002,9 +53853,9 @@ and earning trading fees.`,
|
|
|
54002
53853
|
|
|
54003
53854
|
// src/funcs/uniswapV3UniswapLiquidityProvisionMint.ts
|
|
54004
53855
|
function uniswapV3UniswapLiquidityProvisionMint(client, request, options) {
|
|
54005
|
-
return new APIPromise($
|
|
53856
|
+
return new APIPromise($do64(client, request, options));
|
|
54006
53857
|
}
|
|
54007
|
-
async function $
|
|
53858
|
+
async function $do64(client, request, options) {
|
|
54008
53859
|
const parsed = safeParse(request, (value) => UniswapMintLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
54009
53860
|
if (!parsed.ok) {
|
|
54010
53861
|
return [parsed, { status: "invalid" }];
|
|
@@ -54075,12 +53926,12 @@ var init_uniswapV3UniswapLiquidityProvisionMint = __esm(() => {
|
|
|
54075
53926
|
});
|
|
54076
53927
|
|
|
54077
53928
|
// src/mcp-server/tools/uniswapV3UniswapLiquidityProvisionMint.ts
|
|
54078
|
-
var
|
|
53929
|
+
var args64, tool$uniswapV3UniswapLiquidityProvisionMint;
|
|
54079
53930
|
var init_uniswapV3UniswapLiquidityProvisionMint2 = __esm(() => {
|
|
54080
53931
|
init_uniswapV3UniswapLiquidityProvisionMint();
|
|
54081
53932
|
init_components();
|
|
54082
53933
|
init_tools();
|
|
54083
|
-
|
|
53934
|
+
args64 = {
|
|
54084
53935
|
request: UniswapMintLiquidityProvisionRequest$inboundSchema
|
|
54085
53936
|
};
|
|
54086
53937
|
tool$uniswapV3UniswapLiquidityProvisionMint = {
|
|
@@ -54104,9 +53955,9 @@ needed for the minting process.
|
|
|
54104
53955
|
- \`UniswapV3NFTPositionManager\`
|
|
54105
53956
|
</Info>
|
|
54106
53957
|
`,
|
|
54107
|
-
args:
|
|
54108
|
-
tool: async (client,
|
|
54109
|
-
const [result, apiCall] = await uniswapV3UniswapLiquidityProvisionMint(client,
|
|
53958
|
+
args: args64,
|
|
53959
|
+
tool: async (client, args65, ctx) => {
|
|
53960
|
+
const [result, apiCall] = await uniswapV3UniswapLiquidityProvisionMint(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54110
53961
|
if (!result.ok) {
|
|
54111
53962
|
return {
|
|
54112
53963
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54121,9 +53972,9 @@ needed for the minting process.
|
|
|
54121
53972
|
|
|
54122
53973
|
// src/funcs/uniswapV3UniswapLiquidityProvisionPositions.ts
|
|
54123
53974
|
function uniswapV3UniswapLiquidityProvisionPositions(client, request, options) {
|
|
54124
|
-
return new APIPromise($
|
|
53975
|
+
return new APIPromise($do65(client, request, options));
|
|
54125
53976
|
}
|
|
54126
|
-
async function $
|
|
53977
|
+
async function $do65(client, request, options) {
|
|
54127
53978
|
const parsed = safeParse(request, (value) => V1UniswapLiquidityProvisionPositionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
54128
53979
|
if (!parsed.ok) {
|
|
54129
53980
|
return [parsed, { status: "invalid" }];
|
|
@@ -54199,12 +54050,12 @@ var init_uniswapV3UniswapLiquidityProvisionPositions = __esm(() => {
|
|
|
54199
54050
|
});
|
|
54200
54051
|
|
|
54201
54052
|
// src/mcp-server/tools/uniswapV3UniswapLiquidityProvisionPositions.ts
|
|
54202
|
-
var
|
|
54053
|
+
var args65, tool$uniswapV3UniswapLiquidityProvisionPositions;
|
|
54203
54054
|
var init_uniswapV3UniswapLiquidityProvisionPositions2 = __esm(() => {
|
|
54204
54055
|
init_uniswapV3UniswapLiquidityProvisionPositions();
|
|
54205
54056
|
init_operations();
|
|
54206
54057
|
init_tools();
|
|
54207
|
-
|
|
54058
|
+
args65 = {
|
|
54208
54059
|
request: V1UniswapLiquidityProvisionPositionsRequest$inboundSchema
|
|
54209
54060
|
};
|
|
54210
54061
|
tool$uniswapV3UniswapLiquidityProvisionPositions = {
|
|
@@ -54218,9 +54069,9 @@ Users can query this endpoint to obtain detailed information about their LP
|
|
|
54218
54069
|
positions, including the total number of positions and relevant metadata. This
|
|
54219
54070
|
information is crucial for users to manage and analyze their liquidity provision
|
|
54220
54071
|
activities effectively.`,
|
|
54221
|
-
args:
|
|
54222
|
-
tool: async (client,
|
|
54223
|
-
const [result, apiCall] = await uniswapV3UniswapLiquidityProvisionPositions(client,
|
|
54072
|
+
args: args65,
|
|
54073
|
+
tool: async (client, args66, ctx) => {
|
|
54074
|
+
const [result, apiCall] = await uniswapV3UniswapLiquidityProvisionPositions(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54224
54075
|
if (!result.ok) {
|
|
54225
54076
|
return {
|
|
54226
54077
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54235,9 +54086,9 @@ activities effectively.`,
|
|
|
54235
54086
|
|
|
54236
54087
|
// src/funcs/uniswapV3UniswapLiquidityProvisionWithdraw.ts
|
|
54237
54088
|
function uniswapV3UniswapLiquidityProvisionWithdraw(client, request, options) {
|
|
54238
|
-
return new APIPromise($
|
|
54089
|
+
return new APIPromise($do66(client, request, options));
|
|
54239
54090
|
}
|
|
54240
|
-
async function $
|
|
54091
|
+
async function $do66(client, request, options) {
|
|
54241
54092
|
const parsed = safeParse(request, (value) => UniswapWithdrawLiquidityProvisionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
54242
54093
|
if (!parsed.ok) {
|
|
54243
54094
|
return [parsed, { status: "invalid" }];
|
|
@@ -54308,12 +54159,12 @@ var init_uniswapV3UniswapLiquidityProvisionWithdraw = __esm(() => {
|
|
|
54308
54159
|
});
|
|
54309
54160
|
|
|
54310
54161
|
// src/mcp-server/tools/uniswapV3UniswapLiquidityProvisionWithdraw.ts
|
|
54311
|
-
var
|
|
54162
|
+
var args66, tool$uniswapV3UniswapLiquidityProvisionWithdraw;
|
|
54312
54163
|
var init_uniswapV3UniswapLiquidityProvisionWithdraw2 = __esm(() => {
|
|
54313
54164
|
init_uniswapV3UniswapLiquidityProvisionWithdraw();
|
|
54314
54165
|
init_components();
|
|
54315
54166
|
init_tools();
|
|
54316
|
-
|
|
54167
|
+
args66 = {
|
|
54317
54168
|
request: UniswapWithdrawLiquidityProvisionRequest$inboundSchema
|
|
54318
54169
|
};
|
|
54319
54170
|
tool$uniswapV3UniswapLiquidityProvisionWithdraw = {
|
|
@@ -54338,9 +54189,9 @@ before initiating a withdrawal to avoid potential issues or penalties.
|
|
|
54338
54189
|
- \`UniswapV3NFTPositionManager\`
|
|
54339
54190
|
</Info>
|
|
54340
54191
|
`,
|
|
54341
|
-
args:
|
|
54342
|
-
tool: async (client,
|
|
54343
|
-
const [result, apiCall] = await uniswapV3UniswapLiquidityProvisionWithdraw(client,
|
|
54192
|
+
args: args66,
|
|
54193
|
+
tool: async (client, args67, ctx) => {
|
|
54194
|
+
const [result, apiCall] = await uniswapV3UniswapLiquidityProvisionWithdraw(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54344
54195
|
if (!result.ok) {
|
|
54345
54196
|
return {
|
|
54346
54197
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54355,9 +54206,9 @@ before initiating a withdrawal to avoid potential issues or penalties.
|
|
|
54355
54206
|
|
|
54356
54207
|
// src/funcs/uniswapV3UniswapPoolPrice.ts
|
|
54357
54208
|
function uniswapV3UniswapPoolPrice(client, request, options) {
|
|
54358
|
-
return new APIPromise($
|
|
54209
|
+
return new APIPromise($do67(client, request, options));
|
|
54359
54210
|
}
|
|
54360
|
-
async function $
|
|
54211
|
+
async function $do67(client, request, options) {
|
|
54361
54212
|
const parsed = safeParse(request, (value) => V1UniswapPoolPriceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
54362
54213
|
if (!parsed.ok) {
|
|
54363
54214
|
return [parsed, { status: "invalid" }];
|
|
@@ -54435,12 +54286,12 @@ var init_uniswapV3UniswapPoolPrice = __esm(() => {
|
|
|
54435
54286
|
});
|
|
54436
54287
|
|
|
54437
54288
|
// src/mcp-server/tools/uniswapV3UniswapPoolPrice.ts
|
|
54438
|
-
var
|
|
54289
|
+
var args67, tool$uniswapV3UniswapPoolPrice;
|
|
54439
54290
|
var init_uniswapV3UniswapPoolPrice2 = __esm(() => {
|
|
54440
54291
|
init_uniswapV3UniswapPoolPrice();
|
|
54441
54292
|
init_operations();
|
|
54442
54293
|
init_tools();
|
|
54443
|
-
|
|
54294
|
+
args67 = {
|
|
54444
54295
|
request: V1UniswapPoolPriceRequest$inboundSchema
|
|
54445
54296
|
};
|
|
54446
54297
|
tool$uniswapV3UniswapPoolPrice = {
|
|
@@ -54450,9 +54301,9 @@ var init_uniswapV3UniswapPoolPrice2 = __esm(() => {
|
|
|
54450
54301
|
This endpoint calculates the price of a token in a Uniswap pool.
|
|
54451
54302
|
|
|
54452
54303
|
The price is calculated based on the current pool state and the specified fee tier.`,
|
|
54453
|
-
args:
|
|
54454
|
-
tool: async (client,
|
|
54455
|
-
const [result, apiCall] = await uniswapV3UniswapPoolPrice(client,
|
|
54304
|
+
args: args67,
|
|
54305
|
+
tool: async (client, args68, ctx) => {
|
|
54306
|
+
const [result, apiCall] = await uniswapV3UniswapPoolPrice(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54456
54307
|
if (!result.ok) {
|
|
54457
54308
|
return {
|
|
54458
54309
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54467,9 +54318,9 @@ The price is calculated based on the current pool state and the specified fee ti
|
|
|
54467
54318
|
|
|
54468
54319
|
// src/funcs/uniswapV3UniswapQuoteBuyExactly.ts
|
|
54469
54320
|
function uniswapV3UniswapQuoteBuyExactly(client, request, options) {
|
|
54470
|
-
return new APIPromise($
|
|
54321
|
+
return new APIPromise($do68(client, request, options));
|
|
54471
54322
|
}
|
|
54472
|
-
async function $
|
|
54323
|
+
async function $do68(client, request, options) {
|
|
54473
54324
|
const parsed = safeParse(request, (value) => V1UniswapQuoteBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
54474
54325
|
if (!parsed.ok) {
|
|
54475
54326
|
return [parsed, { status: "invalid" }];
|
|
@@ -54548,12 +54399,12 @@ var init_uniswapV3UniswapQuoteBuyExactly = __esm(() => {
|
|
|
54548
54399
|
});
|
|
54549
54400
|
|
|
54550
54401
|
// src/mcp-server/tools/uniswapV3UniswapQuoteBuyExactly.ts
|
|
54551
|
-
var
|
|
54402
|
+
var args68, tool$uniswapV3UniswapQuoteBuyExactly;
|
|
54552
54403
|
var init_uniswapV3UniswapQuoteBuyExactly2 = __esm(() => {
|
|
54553
54404
|
init_uniswapV3UniswapQuoteBuyExactly();
|
|
54554
54405
|
init_operations();
|
|
54555
54406
|
init_tools();
|
|
54556
|
-
|
|
54407
|
+
args68 = {
|
|
54557
54408
|
request: V1UniswapQuoteBuyExactlyRequest$inboundSchema
|
|
54558
54409
|
};
|
|
54559
54410
|
tool$uniswapV3UniswapQuoteBuyExactly = {
|
|
@@ -54565,9 +54416,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
54565
54416
|
|
|
54566
54417
|
It also provides the resulting price after the transaction. The calculation takes
|
|
54567
54418
|
into account the current pool state and the specified fee tier.`,
|
|
54568
|
-
args:
|
|
54569
|
-
tool: async (client,
|
|
54570
|
-
const [result, apiCall] = await uniswapV3UniswapQuoteBuyExactly(client,
|
|
54419
|
+
args: args68,
|
|
54420
|
+
tool: async (client, args69, ctx) => {
|
|
54421
|
+
const [result, apiCall] = await uniswapV3UniswapQuoteBuyExactly(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54571
54422
|
if (!result.ok) {
|
|
54572
54423
|
return {
|
|
54573
54424
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54582,9 +54433,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
54582
54433
|
|
|
54583
54434
|
// src/funcs/uniswapV3UniswapQuoteSellExactly.ts
|
|
54584
54435
|
function uniswapV3UniswapQuoteSellExactly(client, request, options) {
|
|
54585
|
-
return new APIPromise($
|
|
54436
|
+
return new APIPromise($do69(client, request, options));
|
|
54586
54437
|
}
|
|
54587
|
-
async function $
|
|
54438
|
+
async function $do69(client, request, options) {
|
|
54588
54439
|
const parsed = safeParse(request, (value) => V1UniswapQuoteSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
54589
54440
|
if (!parsed.ok) {
|
|
54590
54441
|
return [parsed, { status: "invalid" }];
|
|
@@ -54663,12 +54514,12 @@ var init_uniswapV3UniswapQuoteSellExactly = __esm(() => {
|
|
|
54663
54514
|
});
|
|
54664
54515
|
|
|
54665
54516
|
// src/mcp-server/tools/uniswapV3UniswapQuoteSellExactly.ts
|
|
54666
|
-
var
|
|
54517
|
+
var args69, tool$uniswapV3UniswapQuoteSellExactly;
|
|
54667
54518
|
var init_uniswapV3UniswapQuoteSellExactly2 = __esm(() => {
|
|
54668
54519
|
init_uniswapV3UniswapQuoteSellExactly();
|
|
54669
54520
|
init_operations();
|
|
54670
54521
|
init_tools();
|
|
54671
|
-
|
|
54522
|
+
args69 = {
|
|
54672
54523
|
request: V1UniswapQuoteSellExactlyRequest$inboundSchema
|
|
54673
54524
|
};
|
|
54674
54525
|
tool$uniswapV3UniswapQuoteSellExactly = {
|
|
@@ -54680,9 +54531,9 @@ specified amount of output tokens from a Uniswap pool.
|
|
|
54680
54531
|
|
|
54681
54532
|
It also provides the resulting price after the transaction. The calculation takes
|
|
54682
54533
|
into account the current pool state and the specified fee tier.`,
|
|
54683
|
-
args:
|
|
54684
|
-
tool: async (client,
|
|
54685
|
-
const [result, apiCall] = await uniswapV3UniswapQuoteSellExactly(client,
|
|
54534
|
+
args: args69,
|
|
54535
|
+
tool: async (client, args70, ctx) => {
|
|
54536
|
+
const [result, apiCall] = await uniswapV3UniswapQuoteSellExactly(client, args70.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54686
54537
|
if (!result.ok) {
|
|
54687
54538
|
return {
|
|
54688
54539
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54697,9 +54548,9 @@ into account the current pool state and the specified fee tier.`,
|
|
|
54697
54548
|
|
|
54698
54549
|
// src/funcs/uniswapV3UniswapSwapBuyExactly.ts
|
|
54699
54550
|
function uniswapV3UniswapSwapBuyExactly(client, request, options) {
|
|
54700
|
-
return new APIPromise($
|
|
54551
|
+
return new APIPromise($do70(client, request, options));
|
|
54701
54552
|
}
|
|
54702
|
-
async function $
|
|
54553
|
+
async function $do70(client, request, options) {
|
|
54703
54554
|
const parsed = safeParse(request, (value) => UniswapBuyExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
54704
54555
|
if (!parsed.ok) {
|
|
54705
54556
|
return [parsed, { status: "invalid" }];
|
|
@@ -54770,12 +54621,12 @@ var init_uniswapV3UniswapSwapBuyExactly = __esm(() => {
|
|
|
54770
54621
|
});
|
|
54771
54622
|
|
|
54772
54623
|
// src/mcp-server/tools/uniswapV3UniswapSwapBuyExactly.ts
|
|
54773
|
-
var
|
|
54624
|
+
var args70, tool$uniswapV3UniswapSwapBuyExactly;
|
|
54774
54625
|
var init_uniswapV3UniswapSwapBuyExactly2 = __esm(() => {
|
|
54775
54626
|
init_uniswapV3UniswapSwapBuyExactly();
|
|
54776
54627
|
init_components();
|
|
54777
54628
|
init_tools();
|
|
54778
|
-
|
|
54629
|
+
args70 = {
|
|
54779
54630
|
request: UniswapBuyExactlyRequest$inboundSchema
|
|
54780
54631
|
};
|
|
54781
54632
|
tool$uniswapV3UniswapSwapBuyExactly = {
|
|
@@ -54797,9 +54648,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.
|
|
|
54797
54648
|
- \`UniswapV3Router\`
|
|
54798
54649
|
</Info>
|
|
54799
54650
|
`,
|
|
54800
|
-
args:
|
|
54801
|
-
tool: async (client,
|
|
54802
|
-
const [result, apiCall] = await uniswapV3UniswapSwapBuyExactly(client,
|
|
54651
|
+
args: args70,
|
|
54652
|
+
tool: async (client, args71, ctx) => {
|
|
54653
|
+
const [result, apiCall] = await uniswapV3UniswapSwapBuyExactly(client, args71.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54803
54654
|
if (!result.ok) {
|
|
54804
54655
|
return {
|
|
54805
54656
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54814,9 +54665,9 @@ needs to be wrapped, the appropriate amount will be wrapped automatically.
|
|
|
54814
54665
|
|
|
54815
54666
|
// src/funcs/uniswapV3UniswapSwapSellExactly.ts
|
|
54816
54667
|
function uniswapV3UniswapSwapSellExactly(client, request, options) {
|
|
54817
|
-
return new APIPromise($
|
|
54668
|
+
return new APIPromise($do71(client, request, options));
|
|
54818
54669
|
}
|
|
54819
|
-
async function $
|
|
54670
|
+
async function $do71(client, request, options) {
|
|
54820
54671
|
const parsed = safeParse(request, (value) => UniswapSellExactlyRequest$outboundSchema.parse(value), "Input validation failed");
|
|
54821
54672
|
if (!parsed.ok) {
|
|
54822
54673
|
return [parsed, { status: "invalid" }];
|
|
@@ -54887,12 +54738,12 @@ var init_uniswapV3UniswapSwapSellExactly = __esm(() => {
|
|
|
54887
54738
|
});
|
|
54888
54739
|
|
|
54889
54740
|
// src/mcp-server/tools/uniswapV3UniswapSwapSellExactly.ts
|
|
54890
|
-
var
|
|
54741
|
+
var args71, tool$uniswapV3UniswapSwapSellExactly;
|
|
54891
54742
|
var init_uniswapV3UniswapSwapSellExactly2 = __esm(() => {
|
|
54892
54743
|
init_uniswapV3UniswapSwapSellExactly();
|
|
54893
54744
|
init_components();
|
|
54894
54745
|
init_tools();
|
|
54895
|
-
|
|
54746
|
+
args71 = {
|
|
54896
54747
|
request: UniswapSellExactlyRequest$inboundSchema
|
|
54897
54748
|
};
|
|
54898
54749
|
tool$uniswapV3UniswapSwapSellExactly = {
|
|
@@ -54914,9 +54765,9 @@ wrapped, the appropriate amount will be wrapped automatically.
|
|
|
54914
54765
|
- \`UniswapV3Router\`
|
|
54915
54766
|
</Info>
|
|
54916
54767
|
`,
|
|
54917
|
-
args:
|
|
54918
|
-
tool: async (client,
|
|
54919
|
-
const [result, apiCall] = await uniswapV3UniswapSwapSellExactly(client,
|
|
54768
|
+
args: args71,
|
|
54769
|
+
tool: async (client, args72, ctx) => {
|
|
54770
|
+
const [result, apiCall] = await uniswapV3UniswapSwapSellExactly(client, args72.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54920
54771
|
if (!result.ok) {
|
|
54921
54772
|
return {
|
|
54922
54773
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -54931,9 +54782,9 @@ wrapped, the appropriate amount will be wrapped automatically.
|
|
|
54931
54782
|
|
|
54932
54783
|
// src/funcs/universalGenericAllowance.ts
|
|
54933
54784
|
function universalGenericAllowance(client, request, options) {
|
|
54934
|
-
return new APIPromise($
|
|
54785
|
+
return new APIPromise($do72(client, request, options));
|
|
54935
54786
|
}
|
|
54936
|
-
async function $
|
|
54787
|
+
async function $do72(client, request, options) {
|
|
54937
54788
|
const parsed = safeParse(request, (value) => V1GenericAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
54938
54789
|
if (!parsed.ok) {
|
|
54939
54790
|
return [parsed, { status: "invalid" }];
|
|
@@ -55011,12 +54862,12 @@ var init_universalGenericAllowance = __esm(() => {
|
|
|
55011
54862
|
});
|
|
55012
54863
|
|
|
55013
54864
|
// src/mcp-server/tools/universalGenericAllowance.ts
|
|
55014
|
-
var
|
|
54865
|
+
var args72, tool$universalGenericAllowance;
|
|
55015
54866
|
var init_universalGenericAllowance2 = __esm(() => {
|
|
55016
54867
|
init_universalGenericAllowance();
|
|
55017
54868
|
init_operations();
|
|
55018
54869
|
init_tools();
|
|
55019
|
-
|
|
54870
|
+
args72 = {
|
|
55020
54871
|
request: V1GenericAllowanceRequest$inboundSchema
|
|
55021
54872
|
};
|
|
55022
54873
|
tool$universalGenericAllowance = {
|
|
@@ -55030,9 +54881,9 @@ tokens on their behalf.
|
|
|
55030
54881
|
This is a crucial step before engaging in any transactions or operations within
|
|
55031
54882
|
these protocols, ensuring that the protocol has the necessary permissions to manage
|
|
55032
54883
|
the user's tokens securely and efficiently.`,
|
|
55033
|
-
args:
|
|
55034
|
-
tool: async (client,
|
|
55035
|
-
const [result, apiCall] = await universalGenericAllowance(client,
|
|
54884
|
+
args: args72,
|
|
54885
|
+
tool: async (client, args73, ctx) => {
|
|
54886
|
+
const [result, apiCall] = await universalGenericAllowance(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55036
54887
|
if (!result.ok) {
|
|
55037
54888
|
return {
|
|
55038
54889
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55047,9 +54898,9 @@ the user's tokens securely and efficiently.`,
|
|
|
55047
54898
|
|
|
55048
54899
|
// src/funcs/universalGenericAllowanceSet.ts
|
|
55049
54900
|
function universalGenericAllowanceSet(client, request, options) {
|
|
55050
|
-
return new APIPromise($
|
|
54901
|
+
return new APIPromise($do73(client, request, options));
|
|
55051
54902
|
}
|
|
55052
|
-
async function $
|
|
54903
|
+
async function $do73(client, request, options) {
|
|
55053
54904
|
const parsed = safeParse(request, (value) => SetAllowanceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55054
54905
|
if (!parsed.ok) {
|
|
55055
54906
|
return [parsed, { status: "invalid" }];
|
|
@@ -55120,12 +54971,12 @@ var init_universalGenericAllowanceSet = __esm(() => {
|
|
|
55120
54971
|
});
|
|
55121
54972
|
|
|
55122
54973
|
// src/mcp-server/tools/universalGenericAllowanceSet.ts
|
|
55123
|
-
var
|
|
54974
|
+
var args73, tool$universalGenericAllowanceSet;
|
|
55124
54975
|
var init_universalGenericAllowanceSet2 = __esm(() => {
|
|
55125
54976
|
init_universalGenericAllowanceSet();
|
|
55126
54977
|
init_components();
|
|
55127
54978
|
init_tools();
|
|
55128
|
-
|
|
54979
|
+
args73 = {
|
|
55129
54980
|
request: SetAllowanceRequest$inboundSchema
|
|
55130
54981
|
};
|
|
55131
54982
|
tool$universalGenericAllowanceSet = {
|
|
@@ -55140,9 +54991,9 @@ authorize a protocol to spend a specified amount of tokens on behalf of the user
|
|
|
55140
54991
|
This operation is crucial for ensuring that the protocol can manage the user's
|
|
55141
54992
|
tokens securely and efficiently, enabling seamless transactions and operations
|
|
55142
54993
|
within the DeFi ecosystem.`,
|
|
55143
|
-
args:
|
|
55144
|
-
tool: async (client,
|
|
55145
|
-
const [result, apiCall] = await universalGenericAllowanceSet(client,
|
|
54994
|
+
args: args73,
|
|
54995
|
+
tool: async (client, args74, ctx) => {
|
|
54996
|
+
const [result, apiCall] = await universalGenericAllowanceSet(client, args74.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55146
54997
|
if (!result.ok) {
|
|
55147
54998
|
return {
|
|
55148
54999
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55157,9 +55008,9 @@ within the DeFi ecosystem.`,
|
|
|
55157
55008
|
|
|
55158
55009
|
// src/funcs/universalGenericEns.ts
|
|
55159
55010
|
function universalGenericEns(client, request, options) {
|
|
55160
|
-
return new APIPromise($
|
|
55011
|
+
return new APIPromise($do74(client, request, options));
|
|
55161
55012
|
}
|
|
55162
|
-
async function $
|
|
55013
|
+
async function $do74(client, request, options) {
|
|
55163
55014
|
const parsed = safeParse(request, (value) => V1GenericEnsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55164
55015
|
if (!parsed.ok) {
|
|
55165
55016
|
return [parsed, { status: "invalid" }];
|
|
@@ -55235,12 +55086,12 @@ var init_universalGenericEns = __esm(() => {
|
|
|
55235
55086
|
});
|
|
55236
55087
|
|
|
55237
55088
|
// src/mcp-server/tools/universalGenericEns.ts
|
|
55238
|
-
var
|
|
55089
|
+
var args74, tool$universalGenericEns;
|
|
55239
55090
|
var init_universalGenericEns2 = __esm(() => {
|
|
55240
55091
|
init_universalGenericEns();
|
|
55241
55092
|
init_operations();
|
|
55242
55093
|
init_tools();
|
|
55243
|
-
|
|
55094
|
+
args74 = {
|
|
55244
55095
|
request: V1GenericEnsRequest$inboundSchema
|
|
55245
55096
|
};
|
|
55246
55097
|
tool$universalGenericEns = {
|
|
@@ -55251,9 +55102,9 @@ An ENS name is a string ending in \`.eth\`.
|
|
|
55251
55102
|
|
|
55252
55103
|
E.g. \`vitalik.eth\`. This endpoint can be used to
|
|
55253
55104
|
query the actual ethereum wallet address behind the ENS name.`,
|
|
55254
|
-
args:
|
|
55255
|
-
tool: async (client,
|
|
55256
|
-
const [result, apiCall] = await universalGenericEns(client,
|
|
55105
|
+
args: args74,
|
|
55106
|
+
tool: async (client, args75, ctx) => {
|
|
55107
|
+
const [result, apiCall] = await universalGenericEns(client, args75.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55257
55108
|
if (!result.ok) {
|
|
55258
55109
|
return {
|
|
55259
55110
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55268,9 +55119,9 @@ query the actual ethereum wallet address behind the ENS name.`,
|
|
|
55268
55119
|
|
|
55269
55120
|
// src/funcs/universalGenericPortfolio.ts
|
|
55270
55121
|
function universalGenericPortfolio(client, request, options) {
|
|
55271
|
-
return new APIPromise($
|
|
55122
|
+
return new APIPromise($do75(client, request, options));
|
|
55272
55123
|
}
|
|
55273
|
-
async function $
|
|
55124
|
+
async function $do75(client, request, options) {
|
|
55274
55125
|
const parsed = safeParse(request, (value) => V1GenericPortfolioRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55275
55126
|
if (!parsed.ok) {
|
|
55276
55127
|
return [parsed, { status: "invalid" }];
|
|
@@ -55346,12 +55197,12 @@ var init_universalGenericPortfolio = __esm(() => {
|
|
|
55346
55197
|
});
|
|
55347
55198
|
|
|
55348
55199
|
// src/mcp-server/tools/universalGenericPortfolio.ts
|
|
55349
|
-
var
|
|
55200
|
+
var args75, tool$universalGenericPortfolio;
|
|
55350
55201
|
var init_universalGenericPortfolio2 = __esm(() => {
|
|
55351
55202
|
init_universalGenericPortfolio();
|
|
55352
55203
|
init_operations();
|
|
55353
55204
|
init_tools();
|
|
55354
|
-
|
|
55205
|
+
args75 = {
|
|
55355
55206
|
request: V1GenericPortfolioRequest$inboundSchema
|
|
55356
55207
|
};
|
|
55357
55208
|
tool$universalGenericPortfolio = {
|
|
@@ -55362,9 +55213,9 @@ Fetch the detailed portfolio of a specific wallet address on a given blockchain.
|
|
|
55362
55213
|
|
|
55363
55214
|
This includes the total value of the portfolio in USD and a breakdown of token
|
|
55364
55215
|
balances, including their respective values and quantities.`,
|
|
55365
|
-
args:
|
|
55366
|
-
tool: async (client,
|
|
55367
|
-
const [result, apiCall] = await universalGenericPortfolio(client,
|
|
55216
|
+
args: args75,
|
|
55217
|
+
tool: async (client, args76, ctx) => {
|
|
55218
|
+
const [result, apiCall] = await universalGenericPortfolio(client, args76.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55368
55219
|
if (!result.ok) {
|
|
55369
55220
|
return {
|
|
55370
55221
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55379,9 +55230,9 @@ balances, including their respective values and quantities.`,
|
|
|
55379
55230
|
|
|
55380
55231
|
// src/funcs/universalGenericSupportedChains.ts
|
|
55381
55232
|
function universalGenericSupportedChains(client, request, options) {
|
|
55382
|
-
return new APIPromise($
|
|
55233
|
+
return new APIPromise($do76(client, request, options));
|
|
55383
55234
|
}
|
|
55384
|
-
async function $
|
|
55235
|
+
async function $do76(client, request, options) {
|
|
55385
55236
|
const parsed = safeParse(request, (value) => V1GenericSupportedChainsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55386
55237
|
if (!parsed.ok) {
|
|
55387
55238
|
return [parsed, { status: "invalid" }];
|
|
@@ -55456,12 +55307,12 @@ var init_universalGenericSupportedChains = __esm(() => {
|
|
|
55456
55307
|
});
|
|
55457
55308
|
|
|
55458
55309
|
// src/mcp-server/tools/universalGenericSupportedChains.ts
|
|
55459
|
-
var
|
|
55310
|
+
var args76, tool$universalGenericSupportedChains;
|
|
55460
55311
|
var init_universalGenericSupportedChains2 = __esm(() => {
|
|
55461
55312
|
init_universalGenericSupportedChains();
|
|
55462
55313
|
init_operations();
|
|
55463
55314
|
init_tools();
|
|
55464
|
-
|
|
55315
|
+
args76 = {
|
|
55465
55316
|
request: V1GenericSupportedChainsRequest$inboundSchema
|
|
55466
55317
|
};
|
|
55467
55318
|
tool$universalGenericSupportedChains = {
|
|
@@ -55469,9 +55320,9 @@ var init_universalGenericSupportedChains2 = __esm(() => {
|
|
|
55469
55320
|
description: `List Supported Chains
|
|
55470
55321
|
|
|
55471
55322
|
Get the list of supported chains by the Compass API.`,
|
|
55472
|
-
args:
|
|
55473
|
-
tool: async (client,
|
|
55474
|
-
const [result, apiCall] = await universalGenericSupportedChains(client,
|
|
55323
|
+
args: args76,
|
|
55324
|
+
tool: async (client, args77, ctx) => {
|
|
55325
|
+
const [result, apiCall] = await universalGenericSupportedChains(client, args77.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55475
55326
|
if (!result.ok) {
|
|
55476
55327
|
return {
|
|
55477
55328
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55486,9 +55337,9 @@ Get the list of supported chains by the Compass API.`,
|
|
|
55486
55337
|
|
|
55487
55338
|
// src/funcs/universalGenericSupportedTokens.ts
|
|
55488
55339
|
function universalGenericSupportedTokens(client, request, options) {
|
|
55489
|
-
return new APIPromise($
|
|
55340
|
+
return new APIPromise($do77(client, request, options));
|
|
55490
55341
|
}
|
|
55491
|
-
async function $
|
|
55342
|
+
async function $do77(client, request, options) {
|
|
55492
55343
|
const parsed = safeParse(request, (value) => V1GenericSupportedTokensRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55493
55344
|
if (!parsed.ok) {
|
|
55494
55345
|
return [parsed, { status: "invalid" }];
|
|
@@ -55563,12 +55414,12 @@ var init_universalGenericSupportedTokens = __esm(() => {
|
|
|
55563
55414
|
});
|
|
55564
55415
|
|
|
55565
55416
|
// src/mcp-server/tools/universalGenericSupportedTokens.ts
|
|
55566
|
-
var
|
|
55417
|
+
var args77, tool$universalGenericSupportedTokens;
|
|
55567
55418
|
var init_universalGenericSupportedTokens2 = __esm(() => {
|
|
55568
55419
|
init_universalGenericSupportedTokens();
|
|
55569
55420
|
init_operations();
|
|
55570
55421
|
init_tools();
|
|
55571
|
-
|
|
55422
|
+
args77 = {
|
|
55572
55423
|
request: V1GenericSupportedTokensRequest$inboundSchema
|
|
55573
55424
|
};
|
|
55574
55425
|
tool$universalGenericSupportedTokens = {
|
|
@@ -55576,9 +55427,9 @@ var init_universalGenericSupportedTokens2 = __esm(() => {
|
|
|
55576
55427
|
description: `List Supported Tokens
|
|
55577
55428
|
|
|
55578
55429
|
Get the list of supported tokens on a chain by the Compass API.`,
|
|
55579
|
-
args:
|
|
55580
|
-
tool: async (client,
|
|
55581
|
-
const [result, apiCall] = await universalGenericSupportedTokens(client,
|
|
55430
|
+
args: args77,
|
|
55431
|
+
tool: async (client, args78, ctx) => {
|
|
55432
|
+
const [result, apiCall] = await universalGenericSupportedTokens(client, args78.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55582
55433
|
if (!result.ok) {
|
|
55583
55434
|
return {
|
|
55584
55435
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55593,9 +55444,9 @@ Get the list of supported tokens on a chain by the Compass API.`,
|
|
|
55593
55444
|
|
|
55594
55445
|
// src/funcs/universalGenericUnwrapWeth.ts
|
|
55595
55446
|
function universalGenericUnwrapWeth(client, request, options) {
|
|
55596
|
-
return new APIPromise($
|
|
55447
|
+
return new APIPromise($do78(client, request, options));
|
|
55597
55448
|
}
|
|
55598
|
-
async function $
|
|
55449
|
+
async function $do78(client, request, options) {
|
|
55599
55450
|
const parsed = safeParse(request, (value) => UnwrapWethRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55600
55451
|
if (!parsed.ok) {
|
|
55601
55452
|
return [parsed, { status: "invalid" }];
|
|
@@ -55666,12 +55517,12 @@ var init_universalGenericUnwrapWeth = __esm(() => {
|
|
|
55666
55517
|
});
|
|
55667
55518
|
|
|
55668
55519
|
// src/mcp-server/tools/universalGenericUnwrapWeth.ts
|
|
55669
|
-
var
|
|
55520
|
+
var args78, tool$universalGenericUnwrapWeth;
|
|
55670
55521
|
var init_universalGenericUnwrapWeth2 = __esm(() => {
|
|
55671
55522
|
init_universalGenericUnwrapWeth();
|
|
55672
55523
|
init_components();
|
|
55673
55524
|
init_tools();
|
|
55674
|
-
|
|
55525
|
+
args78 = {
|
|
55675
55526
|
request: UnwrapWethRequest$inboundSchema
|
|
55676
55527
|
};
|
|
55677
55528
|
tool$universalGenericUnwrapWeth = {
|
|
@@ -55680,9 +55531,9 @@ var init_universalGenericUnwrapWeth2 = __esm(() => {
|
|
|
55680
55531
|
|
|
55681
55532
|
Unwrapping WETH converts the ERC-20 compliant form of ETH back to native ETH that
|
|
55682
55533
|
can be used for gas and other native purposes.`,
|
|
55683
|
-
args:
|
|
55684
|
-
tool: async (client,
|
|
55685
|
-
const [result, apiCall] = await universalGenericUnwrapWeth(client,
|
|
55534
|
+
args: args78,
|
|
55535
|
+
tool: async (client, args79, ctx) => {
|
|
55536
|
+
const [result, apiCall] = await universalGenericUnwrapWeth(client, args79.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55686
55537
|
if (!result.ok) {
|
|
55687
55538
|
return {
|
|
55688
55539
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55697,9 +55548,9 @@ can be used for gas and other native purposes.`,
|
|
|
55697
55548
|
|
|
55698
55549
|
// src/funcs/universalGenericWrapEth.ts
|
|
55699
55550
|
function universalGenericWrapEth(client, request, options) {
|
|
55700
|
-
return new APIPromise($
|
|
55551
|
+
return new APIPromise($do79(client, request, options));
|
|
55701
55552
|
}
|
|
55702
|
-
async function $
|
|
55553
|
+
async function $do79(client, request, options) {
|
|
55703
55554
|
const parsed = safeParse(request, (value) => WrapEthRequest$outboundSchema.parse(value), "Input validation failed");
|
|
55704
55555
|
if (!parsed.ok) {
|
|
55705
55556
|
return [parsed, { status: "invalid" }];
|
|
@@ -55770,12 +55621,12 @@ var init_universalGenericWrapEth = __esm(() => {
|
|
|
55770
55621
|
});
|
|
55771
55622
|
|
|
55772
55623
|
// src/mcp-server/tools/universalGenericWrapEth.ts
|
|
55773
|
-
var
|
|
55624
|
+
var args79, tool$universalGenericWrapEth;
|
|
55774
55625
|
var init_universalGenericWrapEth2 = __esm(() => {
|
|
55775
55626
|
init_universalGenericWrapEth();
|
|
55776
55627
|
init_components();
|
|
55777
55628
|
init_tools();
|
|
55778
|
-
|
|
55629
|
+
args79 = {
|
|
55779
55630
|
request: WrapEthRequest$inboundSchema
|
|
55780
55631
|
};
|
|
55781
55632
|
tool$universalGenericWrapEth = {
|
|
@@ -55784,9 +55635,9 @@ var init_universalGenericWrapEth2 = __esm(() => {
|
|
|
55784
55635
|
|
|
55785
55636
|
Wrapping ETH creates an ERC20 compliant form of ETH that is typically needed for
|
|
55786
55637
|
it to be traded on DeFi protocols.`,
|
|
55787
|
-
args:
|
|
55788
|
-
tool: async (client,
|
|
55789
|
-
const [result, apiCall] = await universalGenericWrapEth(client,
|
|
55638
|
+
args: args79,
|
|
55639
|
+
tool: async (client, args80, ctx) => {
|
|
55640
|
+
const [result, apiCall] = await universalGenericWrapEth(client, args80.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55790
55641
|
if (!result.ok) {
|
|
55791
55642
|
return {
|
|
55792
55643
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55803,7 +55654,7 @@ it to be traded on DeFi protocols.`,
|
|
|
55803
55654
|
function createMCPServer(deps) {
|
|
55804
55655
|
const server = new McpServer({
|
|
55805
55656
|
name: "CompassApiSDK",
|
|
55806
|
-
version: "1.0.
|
|
55657
|
+
version: "1.0.13"
|
|
55807
55658
|
});
|
|
55808
55659
|
const client = new CompassApiSDKCore({
|
|
55809
55660
|
apiKeyAuth: deps.apiKeyAuth,
|
|
@@ -55888,7 +55739,6 @@ function createMCPServer(deps) {
|
|
|
55888
55739
|
tool(tool$transactionBundlerTransactionBundlerAuthorization);
|
|
55889
55740
|
tool(tool$transactionBundlerTransactionBundlerExecute);
|
|
55890
55741
|
tool(tool$transactionBundlerTransactionBundlerAaveLoop);
|
|
55891
|
-
tool(tool$transactionBundlerTransactionBundlerMetamaskExecute);
|
|
55892
55742
|
tool(tool$smartAccountSmartAccountBatchedUserOperations);
|
|
55893
55743
|
tool(tool$erc4626VaultsVaultsVault);
|
|
55894
55744
|
tool(tool$erc4626VaultsVaultsDeposit);
|
|
@@ -55965,7 +55815,6 @@ var init_server2 = __esm(() => {
|
|
|
55965
55815
|
init_transactionBundlerTransactionBundlerAaveLoop2();
|
|
55966
55816
|
init_transactionBundlerTransactionBundlerAuthorization2();
|
|
55967
55817
|
init_transactionBundlerTransactionBundlerExecute2();
|
|
55968
|
-
init_transactionBundlerTransactionBundlerMetamaskExecute2();
|
|
55969
55818
|
init_uniswapV3UniswapLiquidityProvisionIncrease2();
|
|
55970
55819
|
init_uniswapV3UniswapLiquidityProvisionInRange2();
|
|
55971
55820
|
init_uniswapV3UniswapLiquidityProvisionMint2();
|
|
@@ -57179,7 +57028,7 @@ var routes = ln({
|
|
|
57179
57028
|
var app = _e(routes, {
|
|
57180
57029
|
name: "mcp",
|
|
57181
57030
|
versionInfo: {
|
|
57182
|
-
currentVersion: "1.0.
|
|
57031
|
+
currentVersion: "1.0.13"
|
|
57183
57032
|
}
|
|
57184
57033
|
});
|
|
57185
57034
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -57187,5 +57036,5 @@ export {
|
|
|
57187
57036
|
app
|
|
57188
57037
|
};
|
|
57189
57038
|
|
|
57190
|
-
//# debugId=
|
|
57039
|
+
//# debugId=AA3088E043A20FAD64756E2164756E21
|
|
57191
57040
|
//# sourceMappingURL=mcp-server.js.map
|