@compass-labs/api-sdk 0.0.7 → 0.0.9
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 +7 -8
- package/bin/mcp-server.js +2389 -1146
- package/bin/mcp-server.js.map +48 -24
- package/dist/commonjs/funcs/transactionBatchingAuthorization.d.ts +22 -0
- package/dist/commonjs/funcs/transactionBatchingAuthorization.d.ts.map +1 -0
- package/dist/commonjs/funcs/{universalTransferErc20.js → transactionBatchingAuthorization.js} +14 -9
- package/dist/commonjs/funcs/transactionBatchingAuthorization.js.map +1 -0
- package/dist/commonjs/funcs/transactionBatchingExecute.d.ts +22 -0
- package/dist/commonjs/funcs/transactionBatchingExecute.d.ts.map +1 -0
- package/dist/commonjs/funcs/{universalTransferNativeToken.js → transactionBatchingExecute.js} +14 -9
- package/dist/commonjs/funcs/transactionBatchingExecute.js.map +1 -0
- 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 +5 -9
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{universalTransferErc20.js → transactionBatchingAuthorization.js} +14 -9
- package/dist/commonjs/mcp-server/tools/transactionBatchingAuthorization.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{universalTransferNativeToken.js → transactionBatchingExecute.js} +14 -9
- package/dist/commonjs/mcp-server/tools/transactionBatchingExecute.js.map +1 -0
- package/dist/commonjs/models/components/aaveborrowparams.d.ts +82 -0
- package/dist/commonjs/models/components/aaveborrowparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/aaveborrowparams.js +111 -0
- package/dist/commonjs/models/components/aaveborrowparams.js.map +1 -0
- package/dist/commonjs/models/components/aaverepayparams.d.ts +82 -0
- package/dist/commonjs/models/components/aaverepayparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/aaverepayparams.js +111 -0
- package/dist/commonjs/models/components/aaverepayparams.js.map +1 -0
- package/dist/commonjs/models/components/aavesupplyparams.d.ts +72 -0
- package/dist/commonjs/models/components/aavesupplyparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/aavesupplyparams.js +106 -0
- package/dist/commonjs/models/components/aavesupplyparams.js.map +1 -0
- package/dist/commonjs/models/components/aavewithdrawparams.d.ts +72 -0
- package/dist/commonjs/models/components/aavewithdrawparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/aavewithdrawparams.js +97 -0
- package/dist/commonjs/models/components/aavewithdrawparams.js.map +1 -0
- package/dist/commonjs/models/components/aerodromeaddliquidityethparams.d.ts +177 -0
- package/dist/commonjs/models/components/aerodromeaddliquidityethparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/aerodromeaddliquidityethparams.js +191 -0
- package/dist/commonjs/models/components/aerodromeaddliquidityethparams.js.map +1 -0
- package/dist/commonjs/models/components/aerodromeaddliquidityparams.d.ts +186 -0
- package/dist/commonjs/models/components/aerodromeaddliquidityparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/aerodromeaddliquidityparams.js +197 -0
- package/dist/commonjs/models/components/aerodromeaddliquidityparams.js.map +1 -0
- package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.d.ts +151 -0
- package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.js +167 -0
- package/dist/commonjs/models/components/aerodromeremoveliquidityethrequest.js.map +1 -0
- package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.d.ts +161 -0
- package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.js +173 -0
- package/dist/commonjs/models/components/aerodromeremoveliquidityrequest.js.map +1 -0
- package/dist/commonjs/models/components/aerodromeslipstreambuyexactlyparams.d.ts +114 -0
- package/dist/commonjs/models/components/aerodromeslipstreambuyexactlyparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/aerodromeslipstreambuyexactlyparams.js +141 -0
- package/dist/commonjs/models/components/aerodromeslipstreambuyexactlyparams.js.map +1 -0
- package/dist/commonjs/models/components/aerodromeslipstreamincreaseliquidityprovisionparams.d.ts +156 -0
- package/dist/commonjs/models/components/aerodromeslipstreamincreaseliquidityprovisionparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/aerodromeslipstreamincreaseliquidityprovisionparams.js +194 -0
- package/dist/commonjs/models/components/aerodromeslipstreamincreaseliquidityprovisionparams.js.map +1 -0
- package/dist/commonjs/models/components/aerodromeslipstreammintliquidityprovisionparams.d.ts +187 -0
- package/dist/commonjs/models/components/aerodromeslipstreammintliquidityprovisionparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/aerodromeslipstreammintliquidityprovisionparams.js +209 -0
- package/dist/commonjs/models/components/aerodromeslipstreammintliquidityprovisionparams.js.map +1 -0
- package/dist/commonjs/models/components/aerodromeslipstreamsellexactlyparams.d.ts +114 -0
- package/dist/commonjs/models/components/aerodromeslipstreamsellexactlyparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/aerodromeslipstreamsellexactlyparams.js +141 -0
- package/dist/commonjs/models/components/aerodromeslipstreamsellexactlyparams.js.map +1 -0
- package/dist/commonjs/models/components/aerodromeslipstreamwithdrawliquidityprovisionparams.d.ts +69 -0
- package/dist/commonjs/models/components/aerodromeslipstreamwithdrawliquidityprovisionparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/aerodromeslipstreamwithdrawliquidityprovisionparams.js +107 -0
- package/dist/commonjs/models/components/aerodromeslipstreamwithdrawliquidityprovisionparams.js.map +1 -0
- package/dist/commonjs/models/components/aerodromeswapethfortokenparams.d.ts +109 -0
- package/dist/commonjs/models/components/aerodromeswapethfortokenparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/aerodromeswapethfortokenparams.js +137 -0
- package/dist/commonjs/models/components/aerodromeswapethfortokenparams.js.map +1 -0
- package/dist/commonjs/models/components/aerodromeswaptokenforethparams.d.ts +109 -0
- package/dist/commonjs/models/components/aerodromeswaptokenforethparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/aerodromeswaptokenforethparams.js +137 -0
- package/dist/commonjs/models/components/aerodromeswaptokenforethparams.js.map +1 -0
- package/dist/commonjs/models/components/aerodromeswaptokensparams.d.ts +128 -0
- package/dist/commonjs/models/components/aerodromeswaptokensparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/aerodromeswaptokensparams.js +141 -0
- package/dist/commonjs/models/components/aerodromeswaptokensparams.js.map +1 -0
- package/dist/commonjs/models/components/contractname.d.ts +96 -0
- package/dist/commonjs/models/components/contractname.d.ts.map +1 -0
- package/dist/commonjs/models/components/contractname.js +85 -0
- package/dist/commonjs/models/components/contractname.js.map +1 -0
- package/dist/commonjs/models/components/increaseallowanceanyparams.d.ts +83 -0
- package/dist/commonjs/models/components/increaseallowanceanyparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/increaseallowanceanyparams.js +107 -0
- package/dist/commonjs/models/components/increaseallowanceanyparams.js.map +1 -0
- package/dist/commonjs/models/components/increaseallowanceparams.d.ts +122 -0
- package/dist/commonjs/models/components/increaseallowanceparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/increaseallowanceparams.js +133 -0
- package/dist/commonjs/models/components/increaseallowanceparams.js.map +1 -0
- package/dist/commonjs/models/components/increaseallowancerequest.d.ts +8 -8
- package/dist/commonjs/models/components/increaseallowancerequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/increaseallowancerequest.js +13 -13
- package/dist/commonjs/models/components/increaseallowancerequest.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +34 -4
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +34 -4
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/multicallaction.d.ts +79 -0
- package/dist/commonjs/models/components/multicallaction.d.ts.map +1 -0
- package/dist/commonjs/models/components/multicallaction.js +239 -0
- package/dist/commonjs/models/components/multicallaction.js.map +1 -0
- package/dist/commonjs/models/components/multicallactiontype.d.ts +100 -0
- package/dist/commonjs/models/components/multicallactiontype.d.ts.map +1 -0
- package/dist/commonjs/models/components/multicallactiontype.js +84 -0
- package/dist/commonjs/models/components/multicallactiontype.js.map +1 -0
- package/dist/commonjs/models/components/multicallauthorizationrequest.d.ts +47 -0
- package/dist/commonjs/models/components/multicallauthorizationrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/{priceresponse.js → multicallauthorizationrequest.js} +22 -28
- package/dist/commonjs/models/components/multicallauthorizationrequest.js.map +1 -0
- package/dist/commonjs/models/components/multicallauthorizationresponse.d.ts +45 -0
- package/dist/commonjs/models/components/multicallauthorizationresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/multicallauthorizationresponse.js +73 -0
- package/dist/commonjs/models/components/multicallauthorizationresponse.js.map +1 -0
- package/dist/commonjs/models/components/multicallexecuterequest.d.ts +50 -0
- package/dist/commonjs/models/components/multicallexecuterequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/{balanceinforesponse.js → multicallexecuterequest.js} +30 -30
- package/dist/commonjs/models/components/multicallexecuterequest.js.map +1 -0
- package/dist/commonjs/models/components/signedauthorization.d.ts +81 -0
- package/dist/commonjs/models/components/signedauthorization.d.ts.map +1 -0
- package/dist/commonjs/models/components/signedauthorization.js +131 -0
- package/dist/commonjs/models/components/signedauthorization.js.map +1 -0
- package/dist/commonjs/models/components/tokentransfererc20params.d.ts +75 -0
- package/dist/commonjs/models/components/tokentransfererc20params.d.ts.map +1 -0
- package/dist/commonjs/models/components/tokentransfererc20params.js +97 -0
- package/dist/commonjs/models/components/tokentransfererc20params.js.map +1 -0
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.d.ts +121 -0
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.js +144 -0
- package/dist/commonjs/models/components/uniswapbuyexactlyparams.js.map +1 -0
- package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionparams.d.ts +148 -0
- package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionparams.js +186 -0
- package/dist/commonjs/models/components/uniswapincreaseliquidityprovisionparams.js.map +1 -0
- package/dist/commonjs/models/components/uniswapmintliquidityprovisionparams.d.ts +189 -0
- package/dist/commonjs/models/components/uniswapmintliquidityprovisionparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/uniswapmintliquidityprovisionparams.js +200 -0
- package/dist/commonjs/models/components/uniswapmintliquidityprovisionparams.js.map +1 -0
- package/dist/commonjs/models/components/uniswapsellexactlyparams.d.ts +124 -0
- package/dist/commonjs/models/components/uniswapsellexactlyparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/uniswapsellexactlyparams.js +144 -0
- package/dist/commonjs/models/components/uniswapsellexactlyparams.js.map +1 -0
- package/dist/commonjs/models/components/uniswapwithdrawliquidityprovisionparams.d.ts +69 -0
- package/dist/commonjs/models/components/uniswapwithdrawliquidityprovisionparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/uniswapwithdrawliquidityprovisionparams.js +107 -0
- package/dist/commonjs/models/components/uniswapwithdrawliquidityprovisionparams.js.map +1 -0
- package/dist/commonjs/models/components/unsignedmulticalltransaction.d.ts +78 -0
- package/dist/commonjs/models/components/unsignedmulticalltransaction.d.ts.map +1 -0
- package/dist/commonjs/models/components/unsignedmulticalltransaction.js +88 -0
- package/dist/commonjs/models/components/unsignedmulticalltransaction.js.map +1 -0
- package/dist/commonjs/models/components/unwrapwethparams.d.ts +59 -0
- package/dist/commonjs/models/components/unwrapwethparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/unwrapwethparams.js +92 -0
- package/dist/commonjs/models/components/unwrapwethparams.js.map +1 -0
- package/dist/commonjs/models/components/wrapethparams.d.ts +59 -0
- package/dist/commonjs/models/components/wrapethparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/wrapethparams.js +92 -0
- package/dist/commonjs/models/components/wrapethparams.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +0 -2
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +0 -2
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/transactionbatching.d.ts +29 -0
- package/dist/commonjs/sdk/transactionbatching.d.ts.map +1 -0
- package/dist/commonjs/sdk/transactionbatching.js +42 -0
- package/dist/commonjs/sdk/transactionbatching.js.map +1 -0
- package/dist/commonjs/sdk/universal.d.ts +0 -33
- package/dist/commonjs/sdk/universal.d.ts.map +1 -1
- package/dist/commonjs/sdk/universal.js +0 -45
- package/dist/commonjs/sdk/universal.js.map +1 -1
- package/dist/esm/funcs/transactionBatchingAuthorization.d.ts +22 -0
- package/dist/esm/funcs/transactionBatchingAuthorization.d.ts.map +1 -0
- package/dist/esm/funcs/{universalTransferNativeToken.js → transactionBatchingAuthorization.js} +13 -8
- package/dist/esm/funcs/transactionBatchingAuthorization.js.map +1 -0
- package/dist/esm/funcs/transactionBatchingExecute.d.ts +22 -0
- package/dist/esm/funcs/transactionBatchingExecute.d.ts.map +1 -0
- package/dist/esm/funcs/{universalTransferErc20.js → transactionBatchingExecute.js} +13 -8
- package/dist/esm/funcs/transactionBatchingExecute.js.map +1 -0
- 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 +5 -9
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.d.ts +8 -0
- package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.js +33 -0
- package/dist/esm/mcp-server/tools/transactionBatchingAuthorization.js.map +1 -0
- package/dist/esm/mcp-server/tools/transactionBatchingExecute.d.ts +8 -0
- package/dist/esm/mcp-server/tools/transactionBatchingExecute.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/transactionBatchingExecute.js +33 -0
- package/dist/esm/mcp-server/tools/transactionBatchingExecute.js.map +1 -0
- package/dist/esm/models/components/aaveborrowparams.d.ts +82 -0
- package/dist/esm/models/components/aaveborrowparams.d.ts.map +1 -0
- package/dist/esm/models/components/aaveborrowparams.js +71 -0
- package/dist/esm/models/components/aaveborrowparams.js.map +1 -0
- package/dist/esm/models/components/aaverepayparams.d.ts +82 -0
- package/dist/esm/models/components/aaverepayparams.d.ts.map +1 -0
- package/dist/esm/models/components/aaverepayparams.js +71 -0
- package/dist/esm/models/components/aaverepayparams.js.map +1 -0
- package/dist/esm/models/components/aavesupplyparams.d.ts +72 -0
- package/dist/esm/models/components/aavesupplyparams.d.ts.map +1 -0
- package/dist/esm/models/components/aavesupplyparams.js +66 -0
- package/dist/esm/models/components/aavesupplyparams.js.map +1 -0
- package/dist/esm/models/components/aavewithdrawparams.d.ts +72 -0
- package/dist/esm/models/components/aavewithdrawparams.d.ts.map +1 -0
- package/dist/esm/models/components/aavewithdrawparams.js +57 -0
- package/dist/esm/models/components/aavewithdrawparams.js.map +1 -0
- package/dist/esm/models/components/aerodromeaddliquidityethparams.d.ts +177 -0
- package/dist/esm/models/components/aerodromeaddliquidityethparams.d.ts.map +1 -0
- package/dist/esm/models/components/aerodromeaddliquidityethparams.js +145 -0
- package/dist/esm/models/components/aerodromeaddliquidityethparams.js.map +1 -0
- package/dist/esm/models/components/aerodromeaddliquidityparams.d.ts +186 -0
- package/dist/esm/models/components/aerodromeaddliquidityparams.d.ts.map +1 -0
- package/dist/esm/models/components/aerodromeaddliquidityparams.js +151 -0
- package/dist/esm/models/components/aerodromeaddliquidityparams.js.map +1 -0
- package/dist/esm/models/components/aerodromeremoveliquidityethrequest.d.ts +151 -0
- package/dist/esm/models/components/aerodromeremoveliquidityethrequest.d.ts.map +1 -0
- package/dist/esm/models/components/aerodromeremoveliquidityethrequest.js +123 -0
- package/dist/esm/models/components/aerodromeremoveliquidityethrequest.js.map +1 -0
- package/dist/esm/models/components/aerodromeremoveliquidityrequest.d.ts +161 -0
- package/dist/esm/models/components/aerodromeremoveliquidityrequest.d.ts.map +1 -0
- package/dist/esm/models/components/aerodromeremoveliquidityrequest.js +129 -0
- package/dist/esm/models/components/aerodromeremoveliquidityrequest.js.map +1 -0
- package/dist/esm/models/components/aerodromeslipstreambuyexactlyparams.d.ts +114 -0
- package/dist/esm/models/components/aerodromeslipstreambuyexactlyparams.d.ts.map +1 -0
- package/dist/esm/models/components/aerodromeslipstreambuyexactlyparams.js +99 -0
- package/dist/esm/models/components/aerodromeslipstreambuyexactlyparams.js.map +1 -0
- package/dist/esm/models/components/aerodromeslipstreamincreaseliquidityprovisionparams.d.ts +156 -0
- package/dist/esm/models/components/aerodromeslipstreamincreaseliquidityprovisionparams.d.ts.map +1 -0
- package/dist/esm/models/components/aerodromeslipstreamincreaseliquidityprovisionparams.js +148 -0
- package/dist/esm/models/components/aerodromeslipstreamincreaseliquidityprovisionparams.js.map +1 -0
- package/dist/esm/models/components/aerodromeslipstreammintliquidityprovisionparams.d.ts +187 -0
- package/dist/esm/models/components/aerodromeslipstreammintliquidityprovisionparams.d.ts.map +1 -0
- package/dist/esm/models/components/aerodromeslipstreammintliquidityprovisionparams.js +163 -0
- package/dist/esm/models/components/aerodromeslipstreammintliquidityprovisionparams.js.map +1 -0
- package/dist/esm/models/components/aerodromeslipstreamsellexactlyparams.d.ts +114 -0
- package/dist/esm/models/components/aerodromeslipstreamsellexactlyparams.d.ts.map +1 -0
- package/dist/esm/models/components/aerodromeslipstreamsellexactlyparams.js +99 -0
- package/dist/esm/models/components/aerodromeslipstreamsellexactlyparams.js.map +1 -0
- package/dist/esm/models/components/aerodromeslipstreamwithdrawliquidityprovisionparams.d.ts +69 -0
- package/dist/esm/models/components/aerodromeslipstreamwithdrawliquidityprovisionparams.d.ts.map +1 -0
- package/dist/esm/models/components/aerodromeslipstreamwithdrawliquidityprovisionparams.js +67 -0
- package/dist/esm/models/components/aerodromeslipstreamwithdrawliquidityprovisionparams.js.map +1 -0
- package/dist/esm/models/components/aerodromeswapethfortokenparams.d.ts +109 -0
- package/dist/esm/models/components/aerodromeswapethfortokenparams.d.ts.map +1 -0
- package/dist/esm/models/components/aerodromeswapethfortokenparams.js +95 -0
- package/dist/esm/models/components/aerodromeswapethfortokenparams.js.map +1 -0
- package/dist/esm/models/components/aerodromeswaptokenforethparams.d.ts +109 -0
- package/dist/esm/models/components/aerodromeswaptokenforethparams.d.ts.map +1 -0
- package/dist/esm/models/components/aerodromeswaptokenforethparams.js +95 -0
- package/dist/esm/models/components/aerodromeswaptokenforethparams.js.map +1 -0
- package/dist/esm/models/components/aerodromeswaptokensparams.d.ts +128 -0
- package/dist/esm/models/components/aerodromeswaptokensparams.d.ts.map +1 -0
- package/dist/esm/models/components/aerodromeswaptokensparams.js +99 -0
- package/dist/esm/models/components/aerodromeswaptokensparams.js.map +1 -0
- package/dist/esm/models/components/contractname.d.ts +96 -0
- package/dist/esm/models/components/contractname.d.ts.map +1 -0
- package/dist/esm/models/components/contractname.js +49 -0
- package/dist/esm/models/components/contractname.js.map +1 -0
- package/dist/esm/models/components/increaseallowanceanyparams.d.ts +83 -0
- package/dist/esm/models/components/increaseallowanceanyparams.d.ts.map +1 -0
- package/dist/esm/models/components/increaseallowanceanyparams.js +67 -0
- package/dist/esm/models/components/increaseallowanceanyparams.js.map +1 -0
- package/dist/esm/models/components/increaseallowanceparams.d.ts +122 -0
- package/dist/esm/models/components/increaseallowanceparams.d.ts.map +1 -0
- package/dist/esm/models/components/increaseallowanceparams.js +93 -0
- package/dist/esm/models/components/increaseallowanceparams.js.map +1 -0
- package/dist/esm/models/components/increaseallowancerequest.d.ts +8 -8
- package/dist/esm/models/components/increaseallowancerequest.d.ts.map +1 -1
- package/dist/esm/models/components/increaseallowancerequest.js +12 -12
- package/dist/esm/models/components/increaseallowancerequest.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +34 -4
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +34 -4
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/multicallaction.d.ts +79 -0
- package/dist/esm/models/components/multicallaction.d.ts.map +1 -0
- package/dist/esm/models/components/multicallaction.js +199 -0
- package/dist/esm/models/components/multicallaction.js.map +1 -0
- package/dist/esm/models/components/multicallactiontype.d.ts +100 -0
- package/dist/esm/models/components/multicallactiontype.d.ts.map +1 -0
- package/dist/esm/models/components/multicallactiontype.js +48 -0
- package/dist/esm/models/components/multicallactiontype.js.map +1 -0
- package/dist/esm/models/components/multicallauthorizationrequest.d.ts +47 -0
- package/dist/esm/models/components/multicallauthorizationrequest.d.ts.map +1 -0
- package/dist/esm/models/components/multicallauthorizationrequest.js +34 -0
- package/dist/esm/models/components/multicallauthorizationrequest.js.map +1 -0
- package/dist/esm/models/components/multicallauthorizationresponse.d.ts +45 -0
- package/dist/esm/models/components/multicallauthorizationresponse.d.ts.map +1 -0
- package/dist/esm/models/components/multicallauthorizationresponse.js +35 -0
- package/dist/esm/models/components/multicallauthorizationresponse.js.map +1 -0
- package/dist/esm/models/components/multicallexecuterequest.d.ts +50 -0
- package/dist/esm/models/components/multicallexecuterequest.d.ts.map +1 -0
- package/dist/esm/models/components/multicallexecuterequest.js +49 -0
- package/dist/esm/models/components/multicallexecuterequest.js.map +1 -0
- package/dist/esm/models/components/signedauthorization.d.ts +81 -0
- package/dist/esm/models/components/signedauthorization.d.ts.map +1 -0
- package/dist/esm/models/components/signedauthorization.js +89 -0
- package/dist/esm/models/components/signedauthorization.js.map +1 -0
- package/dist/esm/models/components/tokentransfererc20params.d.ts +75 -0
- package/dist/esm/models/components/tokentransfererc20params.d.ts.map +1 -0
- package/dist/esm/models/components/tokentransfererc20params.js +57 -0
- package/dist/esm/models/components/tokentransfererc20params.js.map +1 -0
- package/dist/esm/models/components/uniswapbuyexactlyparams.d.ts +121 -0
- package/dist/esm/models/components/uniswapbuyexactlyparams.d.ts.map +1 -0
- package/dist/esm/models/components/uniswapbuyexactlyparams.js +102 -0
- package/dist/esm/models/components/uniswapbuyexactlyparams.js.map +1 -0
- package/dist/esm/models/components/uniswapincreaseliquidityprovisionparams.d.ts +148 -0
- package/dist/esm/models/components/uniswapincreaseliquidityprovisionparams.d.ts.map +1 -0
- package/dist/esm/models/components/uniswapincreaseliquidityprovisionparams.js +140 -0
- package/dist/esm/models/components/uniswapincreaseliquidityprovisionparams.js.map +1 -0
- package/dist/esm/models/components/uniswapmintliquidityprovisionparams.d.ts +189 -0
- package/dist/esm/models/components/uniswapmintliquidityprovisionparams.d.ts.map +1 -0
- package/dist/esm/models/components/uniswapmintliquidityprovisionparams.js +154 -0
- package/dist/esm/models/components/uniswapmintliquidityprovisionparams.js.map +1 -0
- package/dist/esm/models/components/uniswapsellexactlyparams.d.ts +124 -0
- package/dist/esm/models/components/uniswapsellexactlyparams.d.ts.map +1 -0
- package/dist/esm/models/components/uniswapsellexactlyparams.js +102 -0
- package/dist/esm/models/components/uniswapsellexactlyparams.js.map +1 -0
- package/dist/esm/models/components/uniswapwithdrawliquidityprovisionparams.d.ts +69 -0
- package/dist/esm/models/components/uniswapwithdrawliquidityprovisionparams.d.ts.map +1 -0
- package/dist/esm/models/components/uniswapwithdrawliquidityprovisionparams.js +67 -0
- package/dist/esm/models/components/uniswapwithdrawliquidityprovisionparams.js.map +1 -0
- package/dist/esm/models/components/unsignedmulticalltransaction.d.ts +78 -0
- package/dist/esm/models/components/unsignedmulticalltransaction.d.ts.map +1 -0
- package/dist/esm/models/components/unsignedmulticalltransaction.js +50 -0
- package/dist/esm/models/components/unsignedmulticalltransaction.js.map +1 -0
- package/dist/esm/models/components/unwrapwethparams.d.ts +59 -0
- package/dist/esm/models/components/unwrapwethparams.d.ts.map +1 -0
- package/dist/esm/models/components/unwrapwethparams.js +52 -0
- package/dist/esm/models/components/unwrapwethparams.js.map +1 -0
- package/dist/esm/models/components/wrapethparams.d.ts +59 -0
- package/dist/esm/models/components/wrapethparams.d.ts.map +1 -0
- package/dist/esm/models/components/wrapethparams.js +52 -0
- package/dist/esm/models/components/wrapethparams.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +0 -2
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +0 -2
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/transactionbatching.d.ts +29 -0
- package/dist/esm/sdk/transactionbatching.d.ts.map +1 -0
- package/dist/esm/sdk/transactionbatching.js +38 -0
- package/dist/esm/sdk/transactionbatching.js.map +1 -0
- package/dist/esm/sdk/universal.d.ts +0 -33
- package/dist/esm/sdk/universal.d.ts.map +1 -1
- package/dist/esm/sdk/universal.js +0 -45
- package/dist/esm/sdk/universal.js.map +1 -1
- package/docs/sdks/aavev3/README.md +4 -0
- package/docs/sdks/transactionbatching/README.md +217 -0
- package/docs/sdks/universal/README.md +0 -335
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/{universalTransferNativeToken.ts → transactionBatchingAuthorization.ts} +18 -12
- package/src/funcs/{universalTransferErc20.ts → transactionBatchingExecute.ts} +17 -12
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -9
- package/src/mcp-server/tools/transactionBatchingAuthorization.ts +44 -0
- package/src/mcp-server/tools/transactionBatchingExecute.ts +42 -0
- package/src/models/components/aaveborrowparams.ts +173 -0
- package/src/models/components/aaverepayparams.ts +171 -0
- package/src/models/components/aavesupplyparams.ts +155 -0
- package/src/models/components/aavewithdrawparams.ts +146 -0
- package/src/models/components/aerodromeaddliquidityethparams.ts +392 -0
- package/src/models/components/aerodromeaddliquidityparams.ts +382 -0
- package/src/models/components/aerodromeremoveliquidityethrequest.ts +357 -0
- package/src/models/components/aerodromeremoveliquidityrequest.ts +363 -0
- package/src/models/components/aerodromeslipstreambuyexactlyparams.ts +276 -0
- package/src/models/components/aerodromeslipstreamincreaseliquidityprovisionparams.ts +412 -0
- package/src/models/components/aerodromeslipstreammintliquidityprovisionparams.ts +461 -0
- package/src/models/components/aerodromeslipstreamsellexactlyparams.ts +276 -0
- package/src/models/components/aerodromeslipstreamwithdrawliquidityprovisionparams.ts +180 -0
- package/src/models/components/aerodromeswapethfortokenparams.ts +249 -0
- package/src/models/components/aerodromeswaptokenforethparams.ts +249 -0
- package/src/models/components/aerodromeswaptokensparams.ts +260 -0
- package/src/models/components/contractname.ts +64 -0
- package/src/models/components/increaseallowanceanyparams.ts +172 -0
- package/src/models/components/increaseallowanceparams.ts +204 -0
- package/src/models/components/increaseallowancerequest.ts +21 -14
- package/src/models/components/index.ts +34 -4
- package/src/models/components/multicallaction.ts +490 -0
- package/src/models/components/multicallactiontype.ts +59 -0
- package/src/models/components/multicallauthorizationrequest.ts +88 -0
- package/src/models/components/multicallauthorizationresponse.ts +88 -0
- package/src/models/components/multicallexecuterequest.ts +112 -0
- package/src/models/components/signedauthorization.ts +172 -0
- package/src/models/components/tokentransfererc20params.ts +151 -0
- package/src/models/components/uniswapbuyexactlyparams.ts +259 -0
- package/src/models/components/uniswapincreaseliquidityprovisionparams.ts +405 -0
- package/src/models/components/uniswapmintliquidityprovisionparams.ts +454 -0
- package/src/models/components/uniswapsellexactlyparams.ts +267 -0
- package/src/models/components/uniswapwithdrawliquidityprovisionparams.ts +175 -0
- package/src/models/components/unsignedmulticalltransaction.ts +140 -0
- package/src/models/components/unwrapwethparams.ts +125 -0
- package/src/models/components/wrapethparams.ts +121 -0
- package/src/models/operations/index.ts +0 -2
- package/src/sdk/sdk.ts +8 -0
- package/src/sdk/transactionbatching.ts +55 -0
- package/src/sdk/universal.ts +0 -77
- package/dist/commonjs/funcs/universalBalance.d.ts +0 -18
- package/dist/commonjs/funcs/universalBalance.d.ts.map +0 -1
- package/dist/commonjs/funcs/universalBalance.js +0 -122
- package/dist/commonjs/funcs/universalBalance.js.map +0 -1
- package/dist/commonjs/funcs/universalPriceUsd.d.ts +0 -23
- package/dist/commonjs/funcs/universalPriceUsd.d.ts.map +0 -1
- package/dist/commonjs/funcs/universalPriceUsd.js +0 -126
- package/dist/commonjs/funcs/universalPriceUsd.js.map +0 -1
- package/dist/commonjs/funcs/universalTransferErc20.d.ts +0 -17
- package/dist/commonjs/funcs/universalTransferErc20.d.ts.map +0 -1
- package/dist/commonjs/funcs/universalTransferErc20.js.map +0 -1
- package/dist/commonjs/funcs/universalTransferNativeToken.d.ts +0 -17
- package/dist/commonjs/funcs/universalTransferNativeToken.d.ts.map +0 -1
- package/dist/commonjs/funcs/universalTransferNativeToken.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/universalBalance.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/universalBalance.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/universalBalance.js +0 -64
- package/dist/commonjs/mcp-server/tools/universalBalance.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/universalPriceUsd.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/universalPriceUsd.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/universalPriceUsd.js +0 -69
- package/dist/commonjs/mcp-server/tools/universalPriceUsd.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/universalTransferErc20.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/universalTransferErc20.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/universalTransferErc20.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/universalTransferNativeToken.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/universalTransferNativeToken.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/universalTransferNativeToken.js.map +0 -1
- package/dist/commonjs/models/components/balanceinforesponse.d.ts +0 -56
- package/dist/commonjs/models/components/balanceinforesponse.d.ts.map +0 -1
- package/dist/commonjs/models/components/balanceinforesponse.js.map +0 -1
- package/dist/commonjs/models/components/priceresponse.d.ts +0 -32
- package/dist/commonjs/models/components/priceresponse.d.ts.map +0 -1
- package/dist/commonjs/models/components/priceresponse.js.map +0 -1
- package/dist/commonjs/models/components/transfererc20request.d.ts +0 -86
- package/dist/commonjs/models/components/transfererc20request.d.ts.map +0 -1
- package/dist/commonjs/models/components/transfererc20request.js +0 -102
- package/dist/commonjs/models/components/transfererc20request.js.map +0 -1
- package/dist/commonjs/models/components/transferethrequest.d.ts +0 -75
- package/dist/commonjs/models/components/transferethrequest.d.ts.map +0 -1
- package/dist/commonjs/models/components/transferethrequest.js +0 -99
- package/dist/commonjs/models/components/transferethrequest.js.map +0 -1
- package/dist/commonjs/models/operations/genericbalance.d.ts +0 -246
- package/dist/commonjs/models/operations/genericbalance.d.ts.map +0 -1
- package/dist/commonjs/models/operations/genericbalance.js +0 -165
- package/dist/commonjs/models/operations/genericbalance.js.map +0 -1
- package/dist/commonjs/models/operations/genericpriceusd.d.ts +0 -244
- package/dist/commonjs/models/operations/genericpriceusd.d.ts.map +0 -1
- package/dist/commonjs/models/operations/genericpriceusd.js +0 -163
- package/dist/commonjs/models/operations/genericpriceusd.js.map +0 -1
- package/dist/esm/funcs/universalBalance.d.ts +0 -18
- package/dist/esm/funcs/universalBalance.d.ts.map +0 -1
- package/dist/esm/funcs/universalBalance.js +0 -86
- package/dist/esm/funcs/universalBalance.js.map +0 -1
- package/dist/esm/funcs/universalPriceUsd.d.ts +0 -23
- package/dist/esm/funcs/universalPriceUsd.d.ts.map +0 -1
- package/dist/esm/funcs/universalPriceUsd.js +0 -90
- package/dist/esm/funcs/universalPriceUsd.js.map +0 -1
- package/dist/esm/funcs/universalTransferErc20.d.ts +0 -17
- package/dist/esm/funcs/universalTransferErc20.d.ts.map +0 -1
- package/dist/esm/funcs/universalTransferErc20.js.map +0 -1
- package/dist/esm/funcs/universalTransferNativeToken.d.ts +0 -17
- package/dist/esm/funcs/universalTransferNativeToken.d.ts.map +0 -1
- package/dist/esm/funcs/universalTransferNativeToken.js.map +0 -1
- package/dist/esm/mcp-server/tools/universalBalance.d.ts +0 -8
- package/dist/esm/mcp-server/tools/universalBalance.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/universalBalance.js +0 -28
- package/dist/esm/mcp-server/tools/universalBalance.js.map +0 -1
- package/dist/esm/mcp-server/tools/universalPriceUsd.d.ts +0 -8
- package/dist/esm/mcp-server/tools/universalPriceUsd.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/universalPriceUsd.js +0 -33
- package/dist/esm/mcp-server/tools/universalPriceUsd.js.map +0 -1
- package/dist/esm/mcp-server/tools/universalTransferErc20.d.ts +0 -8
- package/dist/esm/mcp-server/tools/universalTransferErc20.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/universalTransferErc20.js +0 -28
- package/dist/esm/mcp-server/tools/universalTransferErc20.js.map +0 -1
- package/dist/esm/mcp-server/tools/universalTransferNativeToken.d.ts +0 -8
- package/dist/esm/mcp-server/tools/universalTransferNativeToken.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/universalTransferNativeToken.js +0 -28
- package/dist/esm/mcp-server/tools/universalTransferNativeToken.js.map +0 -1
- package/dist/esm/models/components/balanceinforesponse.d.ts +0 -56
- package/dist/esm/models/components/balanceinforesponse.d.ts.map +0 -1
- package/dist/esm/models/components/balanceinforesponse.js +0 -49
- package/dist/esm/models/components/balanceinforesponse.js.map +0 -1
- package/dist/esm/models/components/priceresponse.d.ts +0 -32
- package/dist/esm/models/components/priceresponse.d.ts.map +0 -1
- package/dist/esm/models/components/priceresponse.js +0 -40
- package/dist/esm/models/components/priceresponse.js.map +0 -1
- package/dist/esm/models/components/transfererc20request.d.ts +0 -86
- package/dist/esm/models/components/transfererc20request.d.ts.map +0 -1
- package/dist/esm/models/components/transfererc20request.js +0 -62
- package/dist/esm/models/components/transfererc20request.js.map +0 -1
- package/dist/esm/models/components/transferethrequest.d.ts +0 -75
- package/dist/esm/models/components/transferethrequest.d.ts.map +0 -1
- package/dist/esm/models/components/transferethrequest.js +0 -59
- package/dist/esm/models/components/transferethrequest.js.map +0 -1
- package/dist/esm/models/operations/genericbalance.d.ts +0 -246
- package/dist/esm/models/operations/genericbalance.d.ts.map +0 -1
- package/dist/esm/models/operations/genericbalance.js +0 -127
- package/dist/esm/models/operations/genericbalance.js.map +0 -1
- package/dist/esm/models/operations/genericpriceusd.d.ts +0 -244
- package/dist/esm/models/operations/genericpriceusd.d.ts.map +0 -1
- package/dist/esm/models/operations/genericpriceusd.js +0 -125
- package/dist/esm/models/operations/genericpriceusd.js.map +0 -1
- package/src/funcs/universalBalance.ts +0 -170
- package/src/funcs/universalPriceUsd.ts +0 -174
- package/src/mcp-server/tools/universalBalance.ts +0 -37
- package/src/mcp-server/tools/universalPriceUsd.ts +0 -42
- package/src/mcp-server/tools/universalTransferErc20.ts +0 -37
- package/src/mcp-server/tools/universalTransferNativeToken.ts +0 -37
- package/src/models/components/balanceinforesponse.ts +0 -114
- package/src/models/components/priceresponse.ts +0 -74
- package/src/models/components/transfererc20request.ts +0 -164
- package/src/models/components/transferethrequest.ts +0 -147
- package/src/models/operations/genericbalance.ts +0 -205
- package/src/models/operations/genericpriceusd.ts +0 -201
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
TokenEnum,
|
|
12
|
+
TokenEnum$inboundSchema,
|
|
13
|
+
TokenEnum$outboundSchema,
|
|
14
|
+
} from "./tokenenum.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The amount of the token to swap from
|
|
18
|
+
*/
|
|
19
|
+
export type AerodromeSlipstreamSellExactlyParamsAmountIn = number | string;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The minimum amount of the token to swap to, defaults to 0
|
|
23
|
+
*/
|
|
24
|
+
export type AerodromeSlipstreamSellExactlyParamsAmountOutMinimum =
|
|
25
|
+
| number
|
|
26
|
+
| string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Parameters model for selling exactly an amount of tokens.
|
|
30
|
+
*/
|
|
31
|
+
export type AerodromeSlipstreamSellExactlyParams = {
|
|
32
|
+
/**
|
|
33
|
+
* A class representing the token.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
*
|
|
37
|
+
* This class is used to represent the token in the system. Notice individual
|
|
38
|
+
* endpoints' documentation where per chain tokens are presented.
|
|
39
|
+
*/
|
|
40
|
+
tokenIn: TokenEnum;
|
|
41
|
+
/**
|
|
42
|
+
* A class representing the token.
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
*
|
|
46
|
+
* This class is used to represent the token in the system. Notice individual
|
|
47
|
+
* endpoints' documentation where per chain tokens are presented.
|
|
48
|
+
*/
|
|
49
|
+
tokenOut: TokenEnum;
|
|
50
|
+
/**
|
|
51
|
+
* The tick spacing of the pool
|
|
52
|
+
*/
|
|
53
|
+
tickSpacing: number;
|
|
54
|
+
/**
|
|
55
|
+
* The amount of the token to swap from
|
|
56
|
+
*/
|
|
57
|
+
amountIn: number | string;
|
|
58
|
+
/**
|
|
59
|
+
* The minimum amount of the token to swap to, defaults to 0
|
|
60
|
+
*/
|
|
61
|
+
amountOutMinimum?: number | string | undefined;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const AerodromeSlipstreamSellExactlyParamsAmountIn$inboundSchema:
|
|
66
|
+
z.ZodType<
|
|
67
|
+
AerodromeSlipstreamSellExactlyParamsAmountIn,
|
|
68
|
+
z.ZodTypeDef,
|
|
69
|
+
unknown
|
|
70
|
+
> = z.union([z.number(), z.string()]);
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export type AerodromeSlipstreamSellExactlyParamsAmountIn$Outbound =
|
|
74
|
+
| number
|
|
75
|
+
| string;
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
export const AerodromeSlipstreamSellExactlyParamsAmountIn$outboundSchema:
|
|
79
|
+
z.ZodType<
|
|
80
|
+
AerodromeSlipstreamSellExactlyParamsAmountIn$Outbound,
|
|
81
|
+
z.ZodTypeDef,
|
|
82
|
+
AerodromeSlipstreamSellExactlyParamsAmountIn
|
|
83
|
+
> = z.union([z.number(), z.string()]);
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
88
|
+
*/
|
|
89
|
+
export namespace AerodromeSlipstreamSellExactlyParamsAmountIn$ {
|
|
90
|
+
/** @deprecated use `AerodromeSlipstreamSellExactlyParamsAmountIn$inboundSchema` instead. */
|
|
91
|
+
export const inboundSchema =
|
|
92
|
+
AerodromeSlipstreamSellExactlyParamsAmountIn$inboundSchema;
|
|
93
|
+
/** @deprecated use `AerodromeSlipstreamSellExactlyParamsAmountIn$outboundSchema` instead. */
|
|
94
|
+
export const outboundSchema =
|
|
95
|
+
AerodromeSlipstreamSellExactlyParamsAmountIn$outboundSchema;
|
|
96
|
+
/** @deprecated use `AerodromeSlipstreamSellExactlyParamsAmountIn$Outbound` instead. */
|
|
97
|
+
export type Outbound = AerodromeSlipstreamSellExactlyParamsAmountIn$Outbound;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function aerodromeSlipstreamSellExactlyParamsAmountInToJSON(
|
|
101
|
+
aerodromeSlipstreamSellExactlyParamsAmountIn:
|
|
102
|
+
AerodromeSlipstreamSellExactlyParamsAmountIn,
|
|
103
|
+
): string {
|
|
104
|
+
return JSON.stringify(
|
|
105
|
+
AerodromeSlipstreamSellExactlyParamsAmountIn$outboundSchema.parse(
|
|
106
|
+
aerodromeSlipstreamSellExactlyParamsAmountIn,
|
|
107
|
+
),
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function aerodromeSlipstreamSellExactlyParamsAmountInFromJSON(
|
|
112
|
+
jsonString: string,
|
|
113
|
+
): SafeParseResult<
|
|
114
|
+
AerodromeSlipstreamSellExactlyParamsAmountIn,
|
|
115
|
+
SDKValidationError
|
|
116
|
+
> {
|
|
117
|
+
return safeParse(
|
|
118
|
+
jsonString,
|
|
119
|
+
(x) =>
|
|
120
|
+
AerodromeSlipstreamSellExactlyParamsAmountIn$inboundSchema.parse(
|
|
121
|
+
JSON.parse(x),
|
|
122
|
+
),
|
|
123
|
+
`Failed to parse 'AerodromeSlipstreamSellExactlyParamsAmountIn' from JSON`,
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/** @internal */
|
|
128
|
+
export const AerodromeSlipstreamSellExactlyParamsAmountOutMinimum$inboundSchema:
|
|
129
|
+
z.ZodType<
|
|
130
|
+
AerodromeSlipstreamSellExactlyParamsAmountOutMinimum,
|
|
131
|
+
z.ZodTypeDef,
|
|
132
|
+
unknown
|
|
133
|
+
> = z.union([z.number(), z.string()]);
|
|
134
|
+
|
|
135
|
+
/** @internal */
|
|
136
|
+
export type AerodromeSlipstreamSellExactlyParamsAmountOutMinimum$Outbound =
|
|
137
|
+
| number
|
|
138
|
+
| string;
|
|
139
|
+
|
|
140
|
+
/** @internal */
|
|
141
|
+
export const AerodromeSlipstreamSellExactlyParamsAmountOutMinimum$outboundSchema:
|
|
142
|
+
z.ZodType<
|
|
143
|
+
AerodromeSlipstreamSellExactlyParamsAmountOutMinimum$Outbound,
|
|
144
|
+
z.ZodTypeDef,
|
|
145
|
+
AerodromeSlipstreamSellExactlyParamsAmountOutMinimum
|
|
146
|
+
> = z.union([z.number(), z.string()]);
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @internal
|
|
150
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
151
|
+
*/
|
|
152
|
+
export namespace AerodromeSlipstreamSellExactlyParamsAmountOutMinimum$ {
|
|
153
|
+
/** @deprecated use `AerodromeSlipstreamSellExactlyParamsAmountOutMinimum$inboundSchema` instead. */
|
|
154
|
+
export const inboundSchema =
|
|
155
|
+
AerodromeSlipstreamSellExactlyParamsAmountOutMinimum$inboundSchema;
|
|
156
|
+
/** @deprecated use `AerodromeSlipstreamSellExactlyParamsAmountOutMinimum$outboundSchema` instead. */
|
|
157
|
+
export const outboundSchema =
|
|
158
|
+
AerodromeSlipstreamSellExactlyParamsAmountOutMinimum$outboundSchema;
|
|
159
|
+
/** @deprecated use `AerodromeSlipstreamSellExactlyParamsAmountOutMinimum$Outbound` instead. */
|
|
160
|
+
export type Outbound =
|
|
161
|
+
AerodromeSlipstreamSellExactlyParamsAmountOutMinimum$Outbound;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function aerodromeSlipstreamSellExactlyParamsAmountOutMinimumToJSON(
|
|
165
|
+
aerodromeSlipstreamSellExactlyParamsAmountOutMinimum:
|
|
166
|
+
AerodromeSlipstreamSellExactlyParamsAmountOutMinimum,
|
|
167
|
+
): string {
|
|
168
|
+
return JSON.stringify(
|
|
169
|
+
AerodromeSlipstreamSellExactlyParamsAmountOutMinimum$outboundSchema.parse(
|
|
170
|
+
aerodromeSlipstreamSellExactlyParamsAmountOutMinimum,
|
|
171
|
+
),
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export function aerodromeSlipstreamSellExactlyParamsAmountOutMinimumFromJSON(
|
|
176
|
+
jsonString: string,
|
|
177
|
+
): SafeParseResult<
|
|
178
|
+
AerodromeSlipstreamSellExactlyParamsAmountOutMinimum,
|
|
179
|
+
SDKValidationError
|
|
180
|
+
> {
|
|
181
|
+
return safeParse(
|
|
182
|
+
jsonString,
|
|
183
|
+
(x) =>
|
|
184
|
+
AerodromeSlipstreamSellExactlyParamsAmountOutMinimum$inboundSchema.parse(
|
|
185
|
+
JSON.parse(x),
|
|
186
|
+
),
|
|
187
|
+
`Failed to parse 'AerodromeSlipstreamSellExactlyParamsAmountOutMinimum' from JSON`,
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/** @internal */
|
|
192
|
+
export const AerodromeSlipstreamSellExactlyParams$inboundSchema: z.ZodType<
|
|
193
|
+
AerodromeSlipstreamSellExactlyParams,
|
|
194
|
+
z.ZodTypeDef,
|
|
195
|
+
unknown
|
|
196
|
+
> = z.object({
|
|
197
|
+
token_in: TokenEnum$inboundSchema,
|
|
198
|
+
token_out: TokenEnum$inboundSchema,
|
|
199
|
+
tick_spacing: z.number().int(),
|
|
200
|
+
amount_in: z.union([z.number(), z.string()]),
|
|
201
|
+
amount_out_minimum: z.union([z.number(), z.string()]).optional(),
|
|
202
|
+
}).transform((v) => {
|
|
203
|
+
return remap$(v, {
|
|
204
|
+
"token_in": "tokenIn",
|
|
205
|
+
"token_out": "tokenOut",
|
|
206
|
+
"tick_spacing": "tickSpacing",
|
|
207
|
+
"amount_in": "amountIn",
|
|
208
|
+
"amount_out_minimum": "amountOutMinimum",
|
|
209
|
+
});
|
|
210
|
+
});
|
|
211
|
+
|
|
212
|
+
/** @internal */
|
|
213
|
+
export type AerodromeSlipstreamSellExactlyParams$Outbound = {
|
|
214
|
+
token_in: string;
|
|
215
|
+
token_out: string;
|
|
216
|
+
tick_spacing: number;
|
|
217
|
+
amount_in: number | string;
|
|
218
|
+
amount_out_minimum?: number | string | undefined;
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
/** @internal */
|
|
222
|
+
export const AerodromeSlipstreamSellExactlyParams$outboundSchema: z.ZodType<
|
|
223
|
+
AerodromeSlipstreamSellExactlyParams$Outbound,
|
|
224
|
+
z.ZodTypeDef,
|
|
225
|
+
AerodromeSlipstreamSellExactlyParams
|
|
226
|
+
> = z.object({
|
|
227
|
+
tokenIn: TokenEnum$outboundSchema,
|
|
228
|
+
tokenOut: TokenEnum$outboundSchema,
|
|
229
|
+
tickSpacing: z.number().int(),
|
|
230
|
+
amountIn: z.union([z.number(), z.string()]),
|
|
231
|
+
amountOutMinimum: z.union([z.number(), z.string()]).optional(),
|
|
232
|
+
}).transform((v) => {
|
|
233
|
+
return remap$(v, {
|
|
234
|
+
tokenIn: "token_in",
|
|
235
|
+
tokenOut: "token_out",
|
|
236
|
+
tickSpacing: "tick_spacing",
|
|
237
|
+
amountIn: "amount_in",
|
|
238
|
+
amountOutMinimum: "amount_out_minimum",
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* @internal
|
|
244
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
245
|
+
*/
|
|
246
|
+
export namespace AerodromeSlipstreamSellExactlyParams$ {
|
|
247
|
+
/** @deprecated use `AerodromeSlipstreamSellExactlyParams$inboundSchema` instead. */
|
|
248
|
+
export const inboundSchema =
|
|
249
|
+
AerodromeSlipstreamSellExactlyParams$inboundSchema;
|
|
250
|
+
/** @deprecated use `AerodromeSlipstreamSellExactlyParams$outboundSchema` instead. */
|
|
251
|
+
export const outboundSchema =
|
|
252
|
+
AerodromeSlipstreamSellExactlyParams$outboundSchema;
|
|
253
|
+
/** @deprecated use `AerodromeSlipstreamSellExactlyParams$Outbound` instead. */
|
|
254
|
+
export type Outbound = AerodromeSlipstreamSellExactlyParams$Outbound;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export function aerodromeSlipstreamSellExactlyParamsToJSON(
|
|
258
|
+
aerodromeSlipstreamSellExactlyParams: AerodromeSlipstreamSellExactlyParams,
|
|
259
|
+
): string {
|
|
260
|
+
return JSON.stringify(
|
|
261
|
+
AerodromeSlipstreamSellExactlyParams$outboundSchema.parse(
|
|
262
|
+
aerodromeSlipstreamSellExactlyParams,
|
|
263
|
+
),
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export function aerodromeSlipstreamSellExactlyParamsFromJSON(
|
|
268
|
+
jsonString: string,
|
|
269
|
+
): SafeParseResult<AerodromeSlipstreamSellExactlyParams, SDKValidationError> {
|
|
270
|
+
return safeParse(
|
|
271
|
+
jsonString,
|
|
272
|
+
(x) =>
|
|
273
|
+
AerodromeSlipstreamSellExactlyParams$inboundSchema.parse(JSON.parse(x)),
|
|
274
|
+
`Failed to parse 'AerodromeSlipstreamSellExactlyParams' from JSON`,
|
|
275
|
+
);
|
|
276
|
+
}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* How much liquidity to take out in percentage.
|
|
13
|
+
*/
|
|
14
|
+
export type AerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal =
|
|
15
|
+
| number
|
|
16
|
+
| string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Endpoint parameters for liquidity provision withdrawal on aerodrome slipstream.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
*
|
|
23
|
+
* This action is performed in a multicall on the NonfungiblePosition Manager: https://github.com/AerodromeSlipstream/v3-periphery/blob/0682387198a24c7cd63566a2c58398533860a5d1/contracts/base/Multicall.sol#L11-L27
|
|
24
|
+
* First, we call decrease liquidity then collect the tokens owed to the user.
|
|
25
|
+
*/
|
|
26
|
+
export type AerodromeSlipstreamWithdrawLiquidityProvisionParams = {
|
|
27
|
+
/**
|
|
28
|
+
* Token ID of the NFT representing the liquidity provisioned position.
|
|
29
|
+
*/
|
|
30
|
+
tokenId: number;
|
|
31
|
+
/**
|
|
32
|
+
* How much liquidity to take out in percentage.
|
|
33
|
+
*/
|
|
34
|
+
percentageForWithdrawal: number | string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const AerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal$inboundSchema:
|
|
39
|
+
z.ZodType<
|
|
40
|
+
AerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
unknown
|
|
43
|
+
> = z.union([z.number(), z.string()]);
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type AerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal$Outbound =
|
|
47
|
+
| number
|
|
48
|
+
| string;
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const AerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal$outboundSchema:
|
|
52
|
+
z.ZodType<
|
|
53
|
+
AerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal$Outbound,
|
|
54
|
+
z.ZodTypeDef,
|
|
55
|
+
AerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal
|
|
56
|
+
> = z.union([z.number(), z.string()]);
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
+
*/
|
|
62
|
+
export namespace AerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal$ {
|
|
63
|
+
/** @deprecated use `AerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal$inboundSchema` instead. */
|
|
64
|
+
export const inboundSchema =
|
|
65
|
+
AerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal$inboundSchema;
|
|
66
|
+
/** @deprecated use `AerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal$outboundSchema` instead. */
|
|
67
|
+
export const outboundSchema =
|
|
68
|
+
AerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal$outboundSchema;
|
|
69
|
+
/** @deprecated use `AerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal$Outbound` instead. */
|
|
70
|
+
export type Outbound =
|
|
71
|
+
AerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal$Outbound;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function aerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawalToJSON(
|
|
75
|
+
aerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal:
|
|
76
|
+
AerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal,
|
|
77
|
+
): string {
|
|
78
|
+
return JSON.stringify(
|
|
79
|
+
AerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal$outboundSchema
|
|
80
|
+
.parse(
|
|
81
|
+
aerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal,
|
|
82
|
+
),
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function aerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawalFromJSON(
|
|
87
|
+
jsonString: string,
|
|
88
|
+
): SafeParseResult<
|
|
89
|
+
AerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal,
|
|
90
|
+
SDKValidationError
|
|
91
|
+
> {
|
|
92
|
+
return safeParse(
|
|
93
|
+
jsonString,
|
|
94
|
+
(x) =>
|
|
95
|
+
AerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal$inboundSchema
|
|
96
|
+
.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'AerodromeSlipstreamWithdrawLiquidityProvisionParamsPercentageForWithdrawal' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/** @internal */
|
|
102
|
+
export const AerodromeSlipstreamWithdrawLiquidityProvisionParams$inboundSchema:
|
|
103
|
+
z.ZodType<
|
|
104
|
+
AerodromeSlipstreamWithdrawLiquidityProvisionParams,
|
|
105
|
+
z.ZodTypeDef,
|
|
106
|
+
unknown
|
|
107
|
+
> = z.object({
|
|
108
|
+
token_id: z.number().int(),
|
|
109
|
+
percentage_for_withdrawal: z.union([z.number(), z.string()]),
|
|
110
|
+
}).transform((v) => {
|
|
111
|
+
return remap$(v, {
|
|
112
|
+
"token_id": "tokenId",
|
|
113
|
+
"percentage_for_withdrawal": "percentageForWithdrawal",
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export type AerodromeSlipstreamWithdrawLiquidityProvisionParams$Outbound = {
|
|
119
|
+
token_id: number;
|
|
120
|
+
percentage_for_withdrawal: number | string;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
/** @internal */
|
|
124
|
+
export const AerodromeSlipstreamWithdrawLiquidityProvisionParams$outboundSchema:
|
|
125
|
+
z.ZodType<
|
|
126
|
+
AerodromeSlipstreamWithdrawLiquidityProvisionParams$Outbound,
|
|
127
|
+
z.ZodTypeDef,
|
|
128
|
+
AerodromeSlipstreamWithdrawLiquidityProvisionParams
|
|
129
|
+
> = z.object({
|
|
130
|
+
tokenId: z.number().int(),
|
|
131
|
+
percentageForWithdrawal: z.union([z.number(), z.string()]),
|
|
132
|
+
}).transform((v) => {
|
|
133
|
+
return remap$(v, {
|
|
134
|
+
tokenId: "token_id",
|
|
135
|
+
percentageForWithdrawal: "percentage_for_withdrawal",
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @internal
|
|
141
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
142
|
+
*/
|
|
143
|
+
export namespace AerodromeSlipstreamWithdrawLiquidityProvisionParams$ {
|
|
144
|
+
/** @deprecated use `AerodromeSlipstreamWithdrawLiquidityProvisionParams$inboundSchema` instead. */
|
|
145
|
+
export const inboundSchema =
|
|
146
|
+
AerodromeSlipstreamWithdrawLiquidityProvisionParams$inboundSchema;
|
|
147
|
+
/** @deprecated use `AerodromeSlipstreamWithdrawLiquidityProvisionParams$outboundSchema` instead. */
|
|
148
|
+
export const outboundSchema =
|
|
149
|
+
AerodromeSlipstreamWithdrawLiquidityProvisionParams$outboundSchema;
|
|
150
|
+
/** @deprecated use `AerodromeSlipstreamWithdrawLiquidityProvisionParams$Outbound` instead. */
|
|
151
|
+
export type Outbound =
|
|
152
|
+
AerodromeSlipstreamWithdrawLiquidityProvisionParams$Outbound;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function aerodromeSlipstreamWithdrawLiquidityProvisionParamsToJSON(
|
|
156
|
+
aerodromeSlipstreamWithdrawLiquidityProvisionParams:
|
|
157
|
+
AerodromeSlipstreamWithdrawLiquidityProvisionParams,
|
|
158
|
+
): string {
|
|
159
|
+
return JSON.stringify(
|
|
160
|
+
AerodromeSlipstreamWithdrawLiquidityProvisionParams$outboundSchema.parse(
|
|
161
|
+
aerodromeSlipstreamWithdrawLiquidityProvisionParams,
|
|
162
|
+
),
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export function aerodromeSlipstreamWithdrawLiquidityProvisionParamsFromJSON(
|
|
167
|
+
jsonString: string,
|
|
168
|
+
): SafeParseResult<
|
|
169
|
+
AerodromeSlipstreamWithdrawLiquidityProvisionParams,
|
|
170
|
+
SDKValidationError
|
|
171
|
+
> {
|
|
172
|
+
return safeParse(
|
|
173
|
+
jsonString,
|
|
174
|
+
(x) =>
|
|
175
|
+
AerodromeSlipstreamWithdrawLiquidityProvisionParams$inboundSchema.parse(
|
|
176
|
+
JSON.parse(x),
|
|
177
|
+
),
|
|
178
|
+
`Failed to parse 'AerodromeSlipstreamWithdrawLiquidityProvisionParams' from JSON`,
|
|
179
|
+
);
|
|
180
|
+
}
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
TokenEnum,
|
|
12
|
+
TokenEnum$inboundSchema,
|
|
13
|
+
TokenEnum$outboundSchema,
|
|
14
|
+
} from "./tokenenum.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The amount of ETH you will give to aerodrome_basic for this trade
|
|
18
|
+
*/
|
|
19
|
+
export type AerodromeSwapEthForTokenParamsAmountIn = number | string;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The minimal amount of token you are willing to receive (will revert if the swap gives you less)
|
|
23
|
+
*/
|
|
24
|
+
export type AerodromeSwapEthForTokenParamsAmountOutMin = number | string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Parameters model for swapping ETH for tokens.
|
|
28
|
+
*/
|
|
29
|
+
export type AerodromeSwapEthForTokenParams = {
|
|
30
|
+
/**
|
|
31
|
+
* A class representing the token.
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
*
|
|
35
|
+
* This class is used to represent the token in the system. Notice individual
|
|
36
|
+
* endpoints' documentation where per chain tokens are presented.
|
|
37
|
+
*/
|
|
38
|
+
tokenOut: TokenEnum;
|
|
39
|
+
/**
|
|
40
|
+
* The amount of ETH you will give to aerodrome_basic for this trade
|
|
41
|
+
*/
|
|
42
|
+
amountIn: number | string;
|
|
43
|
+
/**
|
|
44
|
+
* The minimal amount of token you are willing to receive (will revert if the swap gives you less)
|
|
45
|
+
*/
|
|
46
|
+
amountOutMin: number | string;
|
|
47
|
+
/**
|
|
48
|
+
* If true, try to trade on a stable pool with a bonding curve of K=x^3y+y^3x. If false, try to trade on a volatile pool with a bonding curve of K=xy
|
|
49
|
+
*/
|
|
50
|
+
stable: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* The receiver of the funds from this trade, default to sender
|
|
53
|
+
*/
|
|
54
|
+
to?: string | null | undefined;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const AerodromeSwapEthForTokenParamsAmountIn$inboundSchema: z.ZodType<
|
|
59
|
+
AerodromeSwapEthForTokenParamsAmountIn,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
unknown
|
|
62
|
+
> = z.union([z.number(), z.string()]);
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export type AerodromeSwapEthForTokenParamsAmountIn$Outbound = number | string;
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const AerodromeSwapEthForTokenParamsAmountIn$outboundSchema: z.ZodType<
|
|
69
|
+
AerodromeSwapEthForTokenParamsAmountIn$Outbound,
|
|
70
|
+
z.ZodTypeDef,
|
|
71
|
+
AerodromeSwapEthForTokenParamsAmountIn
|
|
72
|
+
> = z.union([z.number(), z.string()]);
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
77
|
+
*/
|
|
78
|
+
export namespace AerodromeSwapEthForTokenParamsAmountIn$ {
|
|
79
|
+
/** @deprecated use `AerodromeSwapEthForTokenParamsAmountIn$inboundSchema` instead. */
|
|
80
|
+
export const inboundSchema =
|
|
81
|
+
AerodromeSwapEthForTokenParamsAmountIn$inboundSchema;
|
|
82
|
+
/** @deprecated use `AerodromeSwapEthForTokenParamsAmountIn$outboundSchema` instead. */
|
|
83
|
+
export const outboundSchema =
|
|
84
|
+
AerodromeSwapEthForTokenParamsAmountIn$outboundSchema;
|
|
85
|
+
/** @deprecated use `AerodromeSwapEthForTokenParamsAmountIn$Outbound` instead. */
|
|
86
|
+
export type Outbound = AerodromeSwapEthForTokenParamsAmountIn$Outbound;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function aerodromeSwapEthForTokenParamsAmountInToJSON(
|
|
90
|
+
aerodromeSwapEthForTokenParamsAmountIn:
|
|
91
|
+
AerodromeSwapEthForTokenParamsAmountIn,
|
|
92
|
+
): string {
|
|
93
|
+
return JSON.stringify(
|
|
94
|
+
AerodromeSwapEthForTokenParamsAmountIn$outboundSchema.parse(
|
|
95
|
+
aerodromeSwapEthForTokenParamsAmountIn,
|
|
96
|
+
),
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function aerodromeSwapEthForTokenParamsAmountInFromJSON(
|
|
101
|
+
jsonString: string,
|
|
102
|
+
): SafeParseResult<AerodromeSwapEthForTokenParamsAmountIn, SDKValidationError> {
|
|
103
|
+
return safeParse(
|
|
104
|
+
jsonString,
|
|
105
|
+
(x) =>
|
|
106
|
+
AerodromeSwapEthForTokenParamsAmountIn$inboundSchema.parse(JSON.parse(x)),
|
|
107
|
+
`Failed to parse 'AerodromeSwapEthForTokenParamsAmountIn' from JSON`,
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export const AerodromeSwapEthForTokenParamsAmountOutMin$inboundSchema:
|
|
113
|
+
z.ZodType<AerodromeSwapEthForTokenParamsAmountOutMin, z.ZodTypeDef, unknown> =
|
|
114
|
+
z.union([z.number(), z.string()]);
|
|
115
|
+
|
|
116
|
+
/** @internal */
|
|
117
|
+
export type AerodromeSwapEthForTokenParamsAmountOutMin$Outbound =
|
|
118
|
+
| number
|
|
119
|
+
| string;
|
|
120
|
+
|
|
121
|
+
/** @internal */
|
|
122
|
+
export const AerodromeSwapEthForTokenParamsAmountOutMin$outboundSchema:
|
|
123
|
+
z.ZodType<
|
|
124
|
+
AerodromeSwapEthForTokenParamsAmountOutMin$Outbound,
|
|
125
|
+
z.ZodTypeDef,
|
|
126
|
+
AerodromeSwapEthForTokenParamsAmountOutMin
|
|
127
|
+
> = z.union([z.number(), z.string()]);
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @internal
|
|
131
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
132
|
+
*/
|
|
133
|
+
export namespace AerodromeSwapEthForTokenParamsAmountOutMin$ {
|
|
134
|
+
/** @deprecated use `AerodromeSwapEthForTokenParamsAmountOutMin$inboundSchema` instead. */
|
|
135
|
+
export const inboundSchema =
|
|
136
|
+
AerodromeSwapEthForTokenParamsAmountOutMin$inboundSchema;
|
|
137
|
+
/** @deprecated use `AerodromeSwapEthForTokenParamsAmountOutMin$outboundSchema` instead. */
|
|
138
|
+
export const outboundSchema =
|
|
139
|
+
AerodromeSwapEthForTokenParamsAmountOutMin$outboundSchema;
|
|
140
|
+
/** @deprecated use `AerodromeSwapEthForTokenParamsAmountOutMin$Outbound` instead. */
|
|
141
|
+
export type Outbound = AerodromeSwapEthForTokenParamsAmountOutMin$Outbound;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function aerodromeSwapEthForTokenParamsAmountOutMinToJSON(
|
|
145
|
+
aerodromeSwapEthForTokenParamsAmountOutMin:
|
|
146
|
+
AerodromeSwapEthForTokenParamsAmountOutMin,
|
|
147
|
+
): string {
|
|
148
|
+
return JSON.stringify(
|
|
149
|
+
AerodromeSwapEthForTokenParamsAmountOutMin$outboundSchema.parse(
|
|
150
|
+
aerodromeSwapEthForTokenParamsAmountOutMin,
|
|
151
|
+
),
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function aerodromeSwapEthForTokenParamsAmountOutMinFromJSON(
|
|
156
|
+
jsonString: string,
|
|
157
|
+
): SafeParseResult<
|
|
158
|
+
AerodromeSwapEthForTokenParamsAmountOutMin,
|
|
159
|
+
SDKValidationError
|
|
160
|
+
> {
|
|
161
|
+
return safeParse(
|
|
162
|
+
jsonString,
|
|
163
|
+
(x) =>
|
|
164
|
+
AerodromeSwapEthForTokenParamsAmountOutMin$inboundSchema.parse(
|
|
165
|
+
JSON.parse(x),
|
|
166
|
+
),
|
|
167
|
+
`Failed to parse 'AerodromeSwapEthForTokenParamsAmountOutMin' from JSON`,
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/** @internal */
|
|
172
|
+
export const AerodromeSwapEthForTokenParams$inboundSchema: z.ZodType<
|
|
173
|
+
AerodromeSwapEthForTokenParams,
|
|
174
|
+
z.ZodTypeDef,
|
|
175
|
+
unknown
|
|
176
|
+
> = z.object({
|
|
177
|
+
token_out: TokenEnum$inboundSchema,
|
|
178
|
+
amount_in: z.union([z.number(), z.string()]),
|
|
179
|
+
amount_out_min: z.union([z.number(), z.string()]),
|
|
180
|
+
stable: z.boolean(),
|
|
181
|
+
to: z.nullable(z.string()).optional(),
|
|
182
|
+
}).transform((v) => {
|
|
183
|
+
return remap$(v, {
|
|
184
|
+
"token_out": "tokenOut",
|
|
185
|
+
"amount_in": "amountIn",
|
|
186
|
+
"amount_out_min": "amountOutMin",
|
|
187
|
+
});
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
/** @internal */
|
|
191
|
+
export type AerodromeSwapEthForTokenParams$Outbound = {
|
|
192
|
+
token_out: string;
|
|
193
|
+
amount_in: number | string;
|
|
194
|
+
amount_out_min: number | string;
|
|
195
|
+
stable: boolean;
|
|
196
|
+
to?: string | null | undefined;
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
/** @internal */
|
|
200
|
+
export const AerodromeSwapEthForTokenParams$outboundSchema: z.ZodType<
|
|
201
|
+
AerodromeSwapEthForTokenParams$Outbound,
|
|
202
|
+
z.ZodTypeDef,
|
|
203
|
+
AerodromeSwapEthForTokenParams
|
|
204
|
+
> = z.object({
|
|
205
|
+
tokenOut: TokenEnum$outboundSchema,
|
|
206
|
+
amountIn: z.union([z.number(), z.string()]),
|
|
207
|
+
amountOutMin: z.union([z.number(), z.string()]),
|
|
208
|
+
stable: z.boolean(),
|
|
209
|
+
to: z.nullable(z.string()).optional(),
|
|
210
|
+
}).transform((v) => {
|
|
211
|
+
return remap$(v, {
|
|
212
|
+
tokenOut: "token_out",
|
|
213
|
+
amountIn: "amount_in",
|
|
214
|
+
amountOutMin: "amount_out_min",
|
|
215
|
+
});
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @internal
|
|
220
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
221
|
+
*/
|
|
222
|
+
export namespace AerodromeSwapEthForTokenParams$ {
|
|
223
|
+
/** @deprecated use `AerodromeSwapEthForTokenParams$inboundSchema` instead. */
|
|
224
|
+
export const inboundSchema = AerodromeSwapEthForTokenParams$inboundSchema;
|
|
225
|
+
/** @deprecated use `AerodromeSwapEthForTokenParams$outboundSchema` instead. */
|
|
226
|
+
export const outboundSchema = AerodromeSwapEthForTokenParams$outboundSchema;
|
|
227
|
+
/** @deprecated use `AerodromeSwapEthForTokenParams$Outbound` instead. */
|
|
228
|
+
export type Outbound = AerodromeSwapEthForTokenParams$Outbound;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export function aerodromeSwapEthForTokenParamsToJSON(
|
|
232
|
+
aerodromeSwapEthForTokenParams: AerodromeSwapEthForTokenParams,
|
|
233
|
+
): string {
|
|
234
|
+
return JSON.stringify(
|
|
235
|
+
AerodromeSwapEthForTokenParams$outboundSchema.parse(
|
|
236
|
+
aerodromeSwapEthForTokenParams,
|
|
237
|
+
),
|
|
238
|
+
);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export function aerodromeSwapEthForTokenParamsFromJSON(
|
|
242
|
+
jsonString: string,
|
|
243
|
+
): SafeParseResult<AerodromeSwapEthForTokenParams, SDKValidationError> {
|
|
244
|
+
return safeParse(
|
|
245
|
+
jsonString,
|
|
246
|
+
(x) => AerodromeSwapEthForTokenParams$inboundSchema.parse(JSON.parse(x)),
|
|
247
|
+
`Failed to parse 'AerodromeSwapEthForTokenParams' from JSON`,
|
|
248
|
+
);
|
|
249
|
+
}
|