@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,155 @@
|
|
|
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 asset to supply
|
|
18
|
+
*/
|
|
19
|
+
export type AaveSupplyParamsAmount = number | string;
|
|
20
|
+
|
|
21
|
+
export type AaveSupplyParams = {
|
|
22
|
+
/**
|
|
23
|
+
* A class representing the token.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
*
|
|
27
|
+
* This class is used to represent the token in the system. Notice individual
|
|
28
|
+
* endpoints' documentation where per chain tokens are presented.
|
|
29
|
+
*/
|
|
30
|
+
token: TokenEnum;
|
|
31
|
+
/**
|
|
32
|
+
* The amount of the asset to supply
|
|
33
|
+
*/
|
|
34
|
+
amount: number | string;
|
|
35
|
+
/**
|
|
36
|
+
* The address on behalf of whom the supply is made. Defaults to the transaction sender.
|
|
37
|
+
*/
|
|
38
|
+
onBehalfOf?: string | null | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const AaveSupplyParamsAmount$inboundSchema: z.ZodType<
|
|
43
|
+
AaveSupplyParamsAmount,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
unknown
|
|
46
|
+
> = z.union([z.number(), z.string()]);
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export type AaveSupplyParamsAmount$Outbound = number | string;
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const AaveSupplyParamsAmount$outboundSchema: z.ZodType<
|
|
53
|
+
AaveSupplyParamsAmount$Outbound,
|
|
54
|
+
z.ZodTypeDef,
|
|
55
|
+
AaveSupplyParamsAmount
|
|
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 AaveSupplyParamsAmount$ {
|
|
63
|
+
/** @deprecated use `AaveSupplyParamsAmount$inboundSchema` instead. */
|
|
64
|
+
export const inboundSchema = AaveSupplyParamsAmount$inboundSchema;
|
|
65
|
+
/** @deprecated use `AaveSupplyParamsAmount$outboundSchema` instead. */
|
|
66
|
+
export const outboundSchema = AaveSupplyParamsAmount$outboundSchema;
|
|
67
|
+
/** @deprecated use `AaveSupplyParamsAmount$Outbound` instead. */
|
|
68
|
+
export type Outbound = AaveSupplyParamsAmount$Outbound;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function aaveSupplyParamsAmountToJSON(
|
|
72
|
+
aaveSupplyParamsAmount: AaveSupplyParamsAmount,
|
|
73
|
+
): string {
|
|
74
|
+
return JSON.stringify(
|
|
75
|
+
AaveSupplyParamsAmount$outboundSchema.parse(aaveSupplyParamsAmount),
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function aaveSupplyParamsAmountFromJSON(
|
|
80
|
+
jsonString: string,
|
|
81
|
+
): SafeParseResult<AaveSupplyParamsAmount, SDKValidationError> {
|
|
82
|
+
return safeParse(
|
|
83
|
+
jsonString,
|
|
84
|
+
(x) => AaveSupplyParamsAmount$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'AaveSupplyParamsAmount' from JSON`,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const AaveSupplyParams$inboundSchema: z.ZodType<
|
|
91
|
+
AaveSupplyParams,
|
|
92
|
+
z.ZodTypeDef,
|
|
93
|
+
unknown
|
|
94
|
+
> = z.object({
|
|
95
|
+
token: TokenEnum$inboundSchema,
|
|
96
|
+
amount: z.union([z.number(), z.string()]),
|
|
97
|
+
on_behalf_of: z.nullable(z.string()).optional(),
|
|
98
|
+
}).transform((v) => {
|
|
99
|
+
return remap$(v, {
|
|
100
|
+
"on_behalf_of": "onBehalfOf",
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
/** @internal */
|
|
105
|
+
export type AaveSupplyParams$Outbound = {
|
|
106
|
+
token: string;
|
|
107
|
+
amount: number | string;
|
|
108
|
+
on_behalf_of?: string | null | undefined;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export const AaveSupplyParams$outboundSchema: z.ZodType<
|
|
113
|
+
AaveSupplyParams$Outbound,
|
|
114
|
+
z.ZodTypeDef,
|
|
115
|
+
AaveSupplyParams
|
|
116
|
+
> = z.object({
|
|
117
|
+
token: TokenEnum$outboundSchema,
|
|
118
|
+
amount: z.union([z.number(), z.string()]),
|
|
119
|
+
onBehalfOf: z.nullable(z.string()).optional(),
|
|
120
|
+
}).transform((v) => {
|
|
121
|
+
return remap$(v, {
|
|
122
|
+
onBehalfOf: "on_behalf_of",
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* @internal
|
|
128
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
129
|
+
*/
|
|
130
|
+
export namespace AaveSupplyParams$ {
|
|
131
|
+
/** @deprecated use `AaveSupplyParams$inboundSchema` instead. */
|
|
132
|
+
export const inboundSchema = AaveSupplyParams$inboundSchema;
|
|
133
|
+
/** @deprecated use `AaveSupplyParams$outboundSchema` instead. */
|
|
134
|
+
export const outboundSchema = AaveSupplyParams$outboundSchema;
|
|
135
|
+
/** @deprecated use `AaveSupplyParams$Outbound` instead. */
|
|
136
|
+
export type Outbound = AaveSupplyParams$Outbound;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function aaveSupplyParamsToJSON(
|
|
140
|
+
aaveSupplyParams: AaveSupplyParams,
|
|
141
|
+
): string {
|
|
142
|
+
return JSON.stringify(
|
|
143
|
+
AaveSupplyParams$outboundSchema.parse(aaveSupplyParams),
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function aaveSupplyParamsFromJSON(
|
|
148
|
+
jsonString: string,
|
|
149
|
+
): SafeParseResult<AaveSupplyParams, SDKValidationError> {
|
|
150
|
+
return safeParse(
|
|
151
|
+
jsonString,
|
|
152
|
+
(x) => AaveSupplyParams$inboundSchema.parse(JSON.parse(x)),
|
|
153
|
+
`Failed to parse 'AaveSupplyParams' from JSON`,
|
|
154
|
+
);
|
|
155
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
TokenEnum,
|
|
11
|
+
TokenEnum$inboundSchema,
|
|
12
|
+
TokenEnum$outboundSchema,
|
|
13
|
+
} from "./tokenenum.js";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The amount of the asset to withdraw
|
|
17
|
+
*/
|
|
18
|
+
export type AaveWithdrawParamsAmount = number | string;
|
|
19
|
+
|
|
20
|
+
export type AaveWithdrawParams = {
|
|
21
|
+
/**
|
|
22
|
+
* A class representing the token.
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
*
|
|
26
|
+
* This class is used to represent the token in the system. Notice individual
|
|
27
|
+
* endpoints' documentation where per chain tokens are presented.
|
|
28
|
+
*/
|
|
29
|
+
token: TokenEnum;
|
|
30
|
+
/**
|
|
31
|
+
* The amount of the asset to withdraw
|
|
32
|
+
*/
|
|
33
|
+
amount: number | string;
|
|
34
|
+
/**
|
|
35
|
+
* The address of the recipient of the withdrawn funds.
|
|
36
|
+
*/
|
|
37
|
+
recipient: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const AaveWithdrawParamsAmount$inboundSchema: z.ZodType<
|
|
42
|
+
AaveWithdrawParamsAmount,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
unknown
|
|
45
|
+
> = z.union([z.number(), z.string()]);
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export type AaveWithdrawParamsAmount$Outbound = number | string;
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const AaveWithdrawParamsAmount$outboundSchema: z.ZodType<
|
|
52
|
+
AaveWithdrawParamsAmount$Outbound,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
AaveWithdrawParamsAmount
|
|
55
|
+
> = z.union([z.number(), z.string()]);
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
+
*/
|
|
61
|
+
export namespace AaveWithdrawParamsAmount$ {
|
|
62
|
+
/** @deprecated use `AaveWithdrawParamsAmount$inboundSchema` instead. */
|
|
63
|
+
export const inboundSchema = AaveWithdrawParamsAmount$inboundSchema;
|
|
64
|
+
/** @deprecated use `AaveWithdrawParamsAmount$outboundSchema` instead. */
|
|
65
|
+
export const outboundSchema = AaveWithdrawParamsAmount$outboundSchema;
|
|
66
|
+
/** @deprecated use `AaveWithdrawParamsAmount$Outbound` instead. */
|
|
67
|
+
export type Outbound = AaveWithdrawParamsAmount$Outbound;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function aaveWithdrawParamsAmountToJSON(
|
|
71
|
+
aaveWithdrawParamsAmount: AaveWithdrawParamsAmount,
|
|
72
|
+
): string {
|
|
73
|
+
return JSON.stringify(
|
|
74
|
+
AaveWithdrawParamsAmount$outboundSchema.parse(aaveWithdrawParamsAmount),
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function aaveWithdrawParamsAmountFromJSON(
|
|
79
|
+
jsonString: string,
|
|
80
|
+
): SafeParseResult<AaveWithdrawParamsAmount, SDKValidationError> {
|
|
81
|
+
return safeParse(
|
|
82
|
+
jsonString,
|
|
83
|
+
(x) => AaveWithdrawParamsAmount$inboundSchema.parse(JSON.parse(x)),
|
|
84
|
+
`Failed to parse 'AaveWithdrawParamsAmount' from JSON`,
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const AaveWithdrawParams$inboundSchema: z.ZodType<
|
|
90
|
+
AaveWithdrawParams,
|
|
91
|
+
z.ZodTypeDef,
|
|
92
|
+
unknown
|
|
93
|
+
> = z.object({
|
|
94
|
+
token: TokenEnum$inboundSchema,
|
|
95
|
+
amount: z.union([z.number(), z.string()]),
|
|
96
|
+
recipient: z.string(),
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
/** @internal */
|
|
100
|
+
export type AaveWithdrawParams$Outbound = {
|
|
101
|
+
token: string;
|
|
102
|
+
amount: number | string;
|
|
103
|
+
recipient: string;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const AaveWithdrawParams$outboundSchema: z.ZodType<
|
|
108
|
+
AaveWithdrawParams$Outbound,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
AaveWithdrawParams
|
|
111
|
+
> = z.object({
|
|
112
|
+
token: TokenEnum$outboundSchema,
|
|
113
|
+
amount: z.union([z.number(), z.string()]),
|
|
114
|
+
recipient: z.string(),
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @internal
|
|
119
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
120
|
+
*/
|
|
121
|
+
export namespace AaveWithdrawParams$ {
|
|
122
|
+
/** @deprecated use `AaveWithdrawParams$inboundSchema` instead. */
|
|
123
|
+
export const inboundSchema = AaveWithdrawParams$inboundSchema;
|
|
124
|
+
/** @deprecated use `AaveWithdrawParams$outboundSchema` instead. */
|
|
125
|
+
export const outboundSchema = AaveWithdrawParams$outboundSchema;
|
|
126
|
+
/** @deprecated use `AaveWithdrawParams$Outbound` instead. */
|
|
127
|
+
export type Outbound = AaveWithdrawParams$Outbound;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function aaveWithdrawParamsToJSON(
|
|
131
|
+
aaveWithdrawParams: AaveWithdrawParams,
|
|
132
|
+
): string {
|
|
133
|
+
return JSON.stringify(
|
|
134
|
+
AaveWithdrawParams$outboundSchema.parse(aaveWithdrawParams),
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function aaveWithdrawParamsFromJSON(
|
|
139
|
+
jsonString: string,
|
|
140
|
+
): SafeParseResult<AaveWithdrawParams, SDKValidationError> {
|
|
141
|
+
return safeParse(
|
|
142
|
+
jsonString,
|
|
143
|
+
(x) => AaveWithdrawParams$inboundSchema.parse(JSON.parse(x)),
|
|
144
|
+
`Failed to parse 'AaveWithdrawParams' from JSON`,
|
|
145
|
+
);
|
|
146
|
+
}
|
|
@@ -0,0 +1,392 @@
|
|
|
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 token you want to provide
|
|
18
|
+
*/
|
|
19
|
+
export type AmountTokenDesired = number | string;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The amount of WETH you want to provide
|
|
23
|
+
*/
|
|
24
|
+
export type AmountEthDesired = number | string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The minimal amount of token you are willing to provide
|
|
28
|
+
*/
|
|
29
|
+
export type AerodromeAddLiquidityEthParamsAmountTokenMin = number | string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The minimal amount of WETH you are willing to provide
|
|
33
|
+
*/
|
|
34
|
+
export type AerodromeAddLiquidityEthParamsAmountEthMin = number | string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Endpoint parameters for adding ETH liquidity on Aerodrome Basic.
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
*
|
|
41
|
+
* This action is performed on the Aerodrome Basic Router to add liquidity to a pool
|
|
42
|
+
* with ETH as one of the tokens.
|
|
43
|
+
*/
|
|
44
|
+
export type AerodromeAddLiquidityEthParams = {
|
|
45
|
+
/**
|
|
46
|
+
* A class representing the token.
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
*
|
|
50
|
+
* This class is used to represent the token in the system. Notice individual
|
|
51
|
+
* endpoints' documentation where per chain tokens are presented.
|
|
52
|
+
*/
|
|
53
|
+
token: TokenEnum;
|
|
54
|
+
/**
|
|
55
|
+
* If true, try to provide liquidity on a stable pool with a bonding curve of K=x^3y+y^3x. If false, try to provide liquidity on a volatile pool with a bonding curve of K=xy
|
|
56
|
+
*/
|
|
57
|
+
stable: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* The amount of token you want to provide
|
|
60
|
+
*/
|
|
61
|
+
amountTokenDesired: number | string;
|
|
62
|
+
/**
|
|
63
|
+
* The amount of WETH you want to provide
|
|
64
|
+
*/
|
|
65
|
+
amountEthDesired: number | string;
|
|
66
|
+
/**
|
|
67
|
+
* The minimal amount of token you are willing to provide
|
|
68
|
+
*/
|
|
69
|
+
amountTokenMin: number | string;
|
|
70
|
+
/**
|
|
71
|
+
* The minimal amount of WETH you are willing to provide
|
|
72
|
+
*/
|
|
73
|
+
amountEthMin: number | string;
|
|
74
|
+
/**
|
|
75
|
+
* The receiver of the LP tokens from this trade, default to sender
|
|
76
|
+
*/
|
|
77
|
+
to?: string | null | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* The deadline for this transaction in seconds since epoch
|
|
80
|
+
*/
|
|
81
|
+
deadline: number | null;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const AmountTokenDesired$inboundSchema: z.ZodType<
|
|
86
|
+
AmountTokenDesired,
|
|
87
|
+
z.ZodTypeDef,
|
|
88
|
+
unknown
|
|
89
|
+
> = z.union([z.number(), z.string()]);
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export type AmountTokenDesired$Outbound = number | string;
|
|
93
|
+
|
|
94
|
+
/** @internal */
|
|
95
|
+
export const AmountTokenDesired$outboundSchema: z.ZodType<
|
|
96
|
+
AmountTokenDesired$Outbound,
|
|
97
|
+
z.ZodTypeDef,
|
|
98
|
+
AmountTokenDesired
|
|
99
|
+
> = z.union([z.number(), z.string()]);
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
104
|
+
*/
|
|
105
|
+
export namespace AmountTokenDesired$ {
|
|
106
|
+
/** @deprecated use `AmountTokenDesired$inboundSchema` instead. */
|
|
107
|
+
export const inboundSchema = AmountTokenDesired$inboundSchema;
|
|
108
|
+
/** @deprecated use `AmountTokenDesired$outboundSchema` instead. */
|
|
109
|
+
export const outboundSchema = AmountTokenDesired$outboundSchema;
|
|
110
|
+
/** @deprecated use `AmountTokenDesired$Outbound` instead. */
|
|
111
|
+
export type Outbound = AmountTokenDesired$Outbound;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function amountTokenDesiredToJSON(
|
|
115
|
+
amountTokenDesired: AmountTokenDesired,
|
|
116
|
+
): string {
|
|
117
|
+
return JSON.stringify(
|
|
118
|
+
AmountTokenDesired$outboundSchema.parse(amountTokenDesired),
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function amountTokenDesiredFromJSON(
|
|
123
|
+
jsonString: string,
|
|
124
|
+
): SafeParseResult<AmountTokenDesired, SDKValidationError> {
|
|
125
|
+
return safeParse(
|
|
126
|
+
jsonString,
|
|
127
|
+
(x) => AmountTokenDesired$inboundSchema.parse(JSON.parse(x)),
|
|
128
|
+
`Failed to parse 'AmountTokenDesired' from JSON`,
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/** @internal */
|
|
133
|
+
export const AmountEthDesired$inboundSchema: z.ZodType<
|
|
134
|
+
AmountEthDesired,
|
|
135
|
+
z.ZodTypeDef,
|
|
136
|
+
unknown
|
|
137
|
+
> = z.union([z.number(), z.string()]);
|
|
138
|
+
|
|
139
|
+
/** @internal */
|
|
140
|
+
export type AmountEthDesired$Outbound = number | string;
|
|
141
|
+
|
|
142
|
+
/** @internal */
|
|
143
|
+
export const AmountEthDesired$outboundSchema: z.ZodType<
|
|
144
|
+
AmountEthDesired$Outbound,
|
|
145
|
+
z.ZodTypeDef,
|
|
146
|
+
AmountEthDesired
|
|
147
|
+
> = z.union([z.number(), z.string()]);
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @internal
|
|
151
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
152
|
+
*/
|
|
153
|
+
export namespace AmountEthDesired$ {
|
|
154
|
+
/** @deprecated use `AmountEthDesired$inboundSchema` instead. */
|
|
155
|
+
export const inboundSchema = AmountEthDesired$inboundSchema;
|
|
156
|
+
/** @deprecated use `AmountEthDesired$outboundSchema` instead. */
|
|
157
|
+
export const outboundSchema = AmountEthDesired$outboundSchema;
|
|
158
|
+
/** @deprecated use `AmountEthDesired$Outbound` instead. */
|
|
159
|
+
export type Outbound = AmountEthDesired$Outbound;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export function amountEthDesiredToJSON(
|
|
163
|
+
amountEthDesired: AmountEthDesired,
|
|
164
|
+
): string {
|
|
165
|
+
return JSON.stringify(
|
|
166
|
+
AmountEthDesired$outboundSchema.parse(amountEthDesired),
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export function amountEthDesiredFromJSON(
|
|
171
|
+
jsonString: string,
|
|
172
|
+
): SafeParseResult<AmountEthDesired, SDKValidationError> {
|
|
173
|
+
return safeParse(
|
|
174
|
+
jsonString,
|
|
175
|
+
(x) => AmountEthDesired$inboundSchema.parse(JSON.parse(x)),
|
|
176
|
+
`Failed to parse 'AmountEthDesired' from JSON`,
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/** @internal */
|
|
181
|
+
export const AerodromeAddLiquidityEthParamsAmountTokenMin$inboundSchema:
|
|
182
|
+
z.ZodType<
|
|
183
|
+
AerodromeAddLiquidityEthParamsAmountTokenMin,
|
|
184
|
+
z.ZodTypeDef,
|
|
185
|
+
unknown
|
|
186
|
+
> = z.union([z.number(), z.string()]);
|
|
187
|
+
|
|
188
|
+
/** @internal */
|
|
189
|
+
export type AerodromeAddLiquidityEthParamsAmountTokenMin$Outbound =
|
|
190
|
+
| number
|
|
191
|
+
| string;
|
|
192
|
+
|
|
193
|
+
/** @internal */
|
|
194
|
+
export const AerodromeAddLiquidityEthParamsAmountTokenMin$outboundSchema:
|
|
195
|
+
z.ZodType<
|
|
196
|
+
AerodromeAddLiquidityEthParamsAmountTokenMin$Outbound,
|
|
197
|
+
z.ZodTypeDef,
|
|
198
|
+
AerodromeAddLiquidityEthParamsAmountTokenMin
|
|
199
|
+
> = z.union([z.number(), z.string()]);
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @internal
|
|
203
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
204
|
+
*/
|
|
205
|
+
export namespace AerodromeAddLiquidityEthParamsAmountTokenMin$ {
|
|
206
|
+
/** @deprecated use `AerodromeAddLiquidityEthParamsAmountTokenMin$inboundSchema` instead. */
|
|
207
|
+
export const inboundSchema =
|
|
208
|
+
AerodromeAddLiquidityEthParamsAmountTokenMin$inboundSchema;
|
|
209
|
+
/** @deprecated use `AerodromeAddLiquidityEthParamsAmountTokenMin$outboundSchema` instead. */
|
|
210
|
+
export const outboundSchema =
|
|
211
|
+
AerodromeAddLiquidityEthParamsAmountTokenMin$outboundSchema;
|
|
212
|
+
/** @deprecated use `AerodromeAddLiquidityEthParamsAmountTokenMin$Outbound` instead. */
|
|
213
|
+
export type Outbound = AerodromeAddLiquidityEthParamsAmountTokenMin$Outbound;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export function aerodromeAddLiquidityEthParamsAmountTokenMinToJSON(
|
|
217
|
+
aerodromeAddLiquidityEthParamsAmountTokenMin:
|
|
218
|
+
AerodromeAddLiquidityEthParamsAmountTokenMin,
|
|
219
|
+
): string {
|
|
220
|
+
return JSON.stringify(
|
|
221
|
+
AerodromeAddLiquidityEthParamsAmountTokenMin$outboundSchema.parse(
|
|
222
|
+
aerodromeAddLiquidityEthParamsAmountTokenMin,
|
|
223
|
+
),
|
|
224
|
+
);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export function aerodromeAddLiquidityEthParamsAmountTokenMinFromJSON(
|
|
228
|
+
jsonString: string,
|
|
229
|
+
): SafeParseResult<
|
|
230
|
+
AerodromeAddLiquidityEthParamsAmountTokenMin,
|
|
231
|
+
SDKValidationError
|
|
232
|
+
> {
|
|
233
|
+
return safeParse(
|
|
234
|
+
jsonString,
|
|
235
|
+
(x) =>
|
|
236
|
+
AerodromeAddLiquidityEthParamsAmountTokenMin$inboundSchema.parse(
|
|
237
|
+
JSON.parse(x),
|
|
238
|
+
),
|
|
239
|
+
`Failed to parse 'AerodromeAddLiquidityEthParamsAmountTokenMin' from JSON`,
|
|
240
|
+
);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/** @internal */
|
|
244
|
+
export const AerodromeAddLiquidityEthParamsAmountEthMin$inboundSchema:
|
|
245
|
+
z.ZodType<AerodromeAddLiquidityEthParamsAmountEthMin, z.ZodTypeDef, unknown> =
|
|
246
|
+
z.union([z.number(), z.string()]);
|
|
247
|
+
|
|
248
|
+
/** @internal */
|
|
249
|
+
export type AerodromeAddLiquidityEthParamsAmountEthMin$Outbound =
|
|
250
|
+
| number
|
|
251
|
+
| string;
|
|
252
|
+
|
|
253
|
+
/** @internal */
|
|
254
|
+
export const AerodromeAddLiquidityEthParamsAmountEthMin$outboundSchema:
|
|
255
|
+
z.ZodType<
|
|
256
|
+
AerodromeAddLiquidityEthParamsAmountEthMin$Outbound,
|
|
257
|
+
z.ZodTypeDef,
|
|
258
|
+
AerodromeAddLiquidityEthParamsAmountEthMin
|
|
259
|
+
> = z.union([z.number(), z.string()]);
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* @internal
|
|
263
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
264
|
+
*/
|
|
265
|
+
export namespace AerodromeAddLiquidityEthParamsAmountEthMin$ {
|
|
266
|
+
/** @deprecated use `AerodromeAddLiquidityEthParamsAmountEthMin$inboundSchema` instead. */
|
|
267
|
+
export const inboundSchema =
|
|
268
|
+
AerodromeAddLiquidityEthParamsAmountEthMin$inboundSchema;
|
|
269
|
+
/** @deprecated use `AerodromeAddLiquidityEthParamsAmountEthMin$outboundSchema` instead. */
|
|
270
|
+
export const outboundSchema =
|
|
271
|
+
AerodromeAddLiquidityEthParamsAmountEthMin$outboundSchema;
|
|
272
|
+
/** @deprecated use `AerodromeAddLiquidityEthParamsAmountEthMin$Outbound` instead. */
|
|
273
|
+
export type Outbound = AerodromeAddLiquidityEthParamsAmountEthMin$Outbound;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export function aerodromeAddLiquidityEthParamsAmountEthMinToJSON(
|
|
277
|
+
aerodromeAddLiquidityEthParamsAmountEthMin:
|
|
278
|
+
AerodromeAddLiquidityEthParamsAmountEthMin,
|
|
279
|
+
): string {
|
|
280
|
+
return JSON.stringify(
|
|
281
|
+
AerodromeAddLiquidityEthParamsAmountEthMin$outboundSchema.parse(
|
|
282
|
+
aerodromeAddLiquidityEthParamsAmountEthMin,
|
|
283
|
+
),
|
|
284
|
+
);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export function aerodromeAddLiquidityEthParamsAmountEthMinFromJSON(
|
|
288
|
+
jsonString: string,
|
|
289
|
+
): SafeParseResult<
|
|
290
|
+
AerodromeAddLiquidityEthParamsAmountEthMin,
|
|
291
|
+
SDKValidationError
|
|
292
|
+
> {
|
|
293
|
+
return safeParse(
|
|
294
|
+
jsonString,
|
|
295
|
+
(x) =>
|
|
296
|
+
AerodromeAddLiquidityEthParamsAmountEthMin$inboundSchema.parse(
|
|
297
|
+
JSON.parse(x),
|
|
298
|
+
),
|
|
299
|
+
`Failed to parse 'AerodromeAddLiquidityEthParamsAmountEthMin' from JSON`,
|
|
300
|
+
);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/** @internal */
|
|
304
|
+
export const AerodromeAddLiquidityEthParams$inboundSchema: z.ZodType<
|
|
305
|
+
AerodromeAddLiquidityEthParams,
|
|
306
|
+
z.ZodTypeDef,
|
|
307
|
+
unknown
|
|
308
|
+
> = z.object({
|
|
309
|
+
token: TokenEnum$inboundSchema,
|
|
310
|
+
stable: z.boolean(),
|
|
311
|
+
amount_token_desired: z.union([z.number(), z.string()]),
|
|
312
|
+
amount_eth_desired: z.union([z.number(), z.string()]),
|
|
313
|
+
amount_token_min: z.union([z.number(), z.string()]),
|
|
314
|
+
amount_eth_min: z.union([z.number(), z.string()]),
|
|
315
|
+
to: z.nullable(z.string()).optional(),
|
|
316
|
+
deadline: z.nullable(z.number().int()),
|
|
317
|
+
}).transform((v) => {
|
|
318
|
+
return remap$(v, {
|
|
319
|
+
"amount_token_desired": "amountTokenDesired",
|
|
320
|
+
"amount_eth_desired": "amountEthDesired",
|
|
321
|
+
"amount_token_min": "amountTokenMin",
|
|
322
|
+
"amount_eth_min": "amountEthMin",
|
|
323
|
+
});
|
|
324
|
+
});
|
|
325
|
+
|
|
326
|
+
/** @internal */
|
|
327
|
+
export type AerodromeAddLiquidityEthParams$Outbound = {
|
|
328
|
+
token: string;
|
|
329
|
+
stable: boolean;
|
|
330
|
+
amount_token_desired: number | string;
|
|
331
|
+
amount_eth_desired: number | string;
|
|
332
|
+
amount_token_min: number | string;
|
|
333
|
+
amount_eth_min: number | string;
|
|
334
|
+
to?: string | null | undefined;
|
|
335
|
+
deadline: number | null;
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
/** @internal */
|
|
339
|
+
export const AerodromeAddLiquidityEthParams$outboundSchema: z.ZodType<
|
|
340
|
+
AerodromeAddLiquidityEthParams$Outbound,
|
|
341
|
+
z.ZodTypeDef,
|
|
342
|
+
AerodromeAddLiquidityEthParams
|
|
343
|
+
> = z.object({
|
|
344
|
+
token: TokenEnum$outboundSchema,
|
|
345
|
+
stable: z.boolean(),
|
|
346
|
+
amountTokenDesired: z.union([z.number(), z.string()]),
|
|
347
|
+
amountEthDesired: z.union([z.number(), z.string()]),
|
|
348
|
+
amountTokenMin: z.union([z.number(), z.string()]),
|
|
349
|
+
amountEthMin: z.union([z.number(), z.string()]),
|
|
350
|
+
to: z.nullable(z.string()).optional(),
|
|
351
|
+
deadline: z.nullable(z.number().int()),
|
|
352
|
+
}).transform((v) => {
|
|
353
|
+
return remap$(v, {
|
|
354
|
+
amountTokenDesired: "amount_token_desired",
|
|
355
|
+
amountEthDesired: "amount_eth_desired",
|
|
356
|
+
amountTokenMin: "amount_token_min",
|
|
357
|
+
amountEthMin: "amount_eth_min",
|
|
358
|
+
});
|
|
359
|
+
});
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* @internal
|
|
363
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
364
|
+
*/
|
|
365
|
+
export namespace AerodromeAddLiquidityEthParams$ {
|
|
366
|
+
/** @deprecated use `AerodromeAddLiquidityEthParams$inboundSchema` instead. */
|
|
367
|
+
export const inboundSchema = AerodromeAddLiquidityEthParams$inboundSchema;
|
|
368
|
+
/** @deprecated use `AerodromeAddLiquidityEthParams$outboundSchema` instead. */
|
|
369
|
+
export const outboundSchema = AerodromeAddLiquidityEthParams$outboundSchema;
|
|
370
|
+
/** @deprecated use `AerodromeAddLiquidityEthParams$Outbound` instead. */
|
|
371
|
+
export type Outbound = AerodromeAddLiquidityEthParams$Outbound;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export function aerodromeAddLiquidityEthParamsToJSON(
|
|
375
|
+
aerodromeAddLiquidityEthParams: AerodromeAddLiquidityEthParams,
|
|
376
|
+
): string {
|
|
377
|
+
return JSON.stringify(
|
|
378
|
+
AerodromeAddLiquidityEthParams$outboundSchema.parse(
|
|
379
|
+
aerodromeAddLiquidityEthParams,
|
|
380
|
+
),
|
|
381
|
+
);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
export function aerodromeAddLiquidityEthParamsFromJSON(
|
|
385
|
+
jsonString: string,
|
|
386
|
+
): SafeParseResult<AerodromeAddLiquidityEthParams, SDKValidationError> {
|
|
387
|
+
return safeParse(
|
|
388
|
+
jsonString,
|
|
389
|
+
(x) => AerodromeAddLiquidityEthParams$inboundSchema.parse(JSON.parse(x)),
|
|
390
|
+
`Failed to parse 'AerodromeAddLiquidityEthParams' from JSON`,
|
|
391
|
+
);
|
|
392
|
+
}
|