@gearbox-protocol/sdk 12.8.1 → 12.9.0-txparser.2
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/dist/cjs/dev/providers.js +0 -12
- package/dist/cjs/history/assembleOperations.js +110 -0
- package/dist/cjs/history/classifyMulticallOperations.js +157 -0
- package/dist/cjs/history/enrichTokens.js +80 -0
- package/dist/cjs/history/errors.js +91 -0
- package/dist/cjs/history/extractProtocolCalls.js +53 -0
- package/dist/cjs/history/extractTransfers.js +166 -0
- package/dist/cjs/history/findFacadeCalls.js +84 -0
- package/dist/cjs/history/index.js +38 -0
- package/dist/cjs/history/inner-operations.js +16 -0
- package/dist/cjs/history/internal-types.js +16 -0
- package/dist/cjs/history/package.json +1 -0
- package/dist/cjs/history/parseCreditAccountTransaction.js +83 -0
- package/dist/cjs/history/populateContractsRegister.js +68 -0
- package/dist/cjs/history/toLegacyOperation.js +120 -0
- package/dist/cjs/{plugins/adapters/contracts/YearnV2AdapterContract.js → history/trace-utils.js} +36 -21
- package/dist/cjs/history/types.js +16 -0
- package/dist/cjs/plugins/adapters/AdaptersPlugin.js +13 -106
- package/dist/cjs/plugins/adapters/abi/index.js +2 -0
- package/dist/cjs/plugins/adapters/abi/targetContractAbi.js +5168 -0
- package/dist/cjs/plugins/adapters/contracts/AbstractAdapter.js +102 -3
- package/dist/cjs/plugins/adapters/contracts/AccountMigratorAdapterContract.js +8 -1
- package/dist/cjs/plugins/adapters/contracts/BalancerV3RouterAdapterContract.js +40 -30
- package/dist/cjs/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.js +21 -11
- package/dist/cjs/plugins/adapters/contracts/CamelotV3AdapterContract.js +31 -21
- package/dist/cjs/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.js +91 -25
- package/dist/cjs/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.js +63 -25
- package/dist/cjs/plugins/adapters/contracts/Curve2AssetsAdapterContract.js +68 -31
- package/dist/cjs/plugins/adapters/contracts/Curve3AssetsAdapterContract.js +68 -31
- package/dist/cjs/plugins/adapters/contracts/Curve4AssetsAdapterContract.js +73 -31
- package/dist/cjs/plugins/adapters/contracts/CurveV1AdapterDeposit.js +80 -33
- package/dist/cjs/plugins/adapters/contracts/CurveV1AdapterStETHContract.js +62 -26
- package/dist/cjs/plugins/adapters/contracts/CurveV1StableNGAdapterContract.js +80 -34
- package/dist/cjs/plugins/adapters/contracts/DaiUsdsAdapterContract.js +39 -14
- package/dist/cjs/plugins/adapters/contracts/ERC4626AdapterContract.js +55 -27
- package/dist/cjs/plugins/adapters/contracts/ERC4626ReferralAdapterContract.js +39 -14
- package/dist/cjs/plugins/adapters/contracts/FluidDexAdapterContract.js +27 -14
- package/dist/cjs/plugins/adapters/contracts/InfinifiGatewayAdapterContract.js +45 -23
- package/dist/cjs/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.js +23 -14
- package/dist/cjs/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.js +22 -12
- package/dist/cjs/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.js +26 -16
- package/dist/cjs/plugins/adapters/contracts/LidoV1AdapterContract.js +39 -17
- package/dist/cjs/plugins/adapters/contracts/MellowClaimerAdapterContract.js +21 -11
- package/dist/cjs/plugins/adapters/contracts/MellowDVVAdapterContract.js +38 -14
- package/dist/cjs/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.js +71 -42
- package/dist/cjs/plugins/adapters/contracts/MellowWrapperAdapterContract.js +21 -11
- package/dist/cjs/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +36 -17
- package/dist/cjs/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +38 -21
- package/dist/cjs/plugins/adapters/contracts/PendleRouterAdapterContract.js +63 -53
- package/dist/cjs/plugins/adapters/contracts/StakingRewardsAdapterContract.js +62 -37
- package/dist/cjs/plugins/adapters/contracts/TraderJoeRouterAdapterContract.js +35 -25
- package/dist/cjs/plugins/adapters/contracts/UniswapV2AdapterContract.js +35 -21
- package/dist/cjs/plugins/adapters/contracts/UniswapV3AdapterContract.js +32 -23
- package/dist/cjs/plugins/adapters/contracts/UniswapV4AdapterContract.js +41 -27
- package/dist/cjs/plugins/adapters/contracts/UpshiftVaultAdapterContract.js +34 -17
- package/dist/cjs/plugins/adapters/contracts/VelodromeV2AdapterContract.js +35 -25
- package/dist/cjs/plugins/adapters/contracts/WstETHV1AdapterContract.js +31 -11
- package/dist/cjs/plugins/adapters/contracts/deprecated/BalancerV2VaultAdapterContract.js +585 -0
- package/dist/cjs/plugins/adapters/contracts/deprecated/EqualizerRouterAdapterContract.js +262 -0
- package/dist/cjs/plugins/adapters/contracts/deprecated/InfraredVaultAdapterContract.js +296 -0
- package/dist/cjs/plugins/adapters/contracts/deprecated/KodiakIslandGatewayAdapterContract.js +415 -0
- package/dist/cjs/plugins/adapters/contracts/deprecated/MellowDepositQueueAdapterContract.js +74 -0
- package/dist/cjs/plugins/adapters/contracts/{MellowRedeemQueueAdapterContract.js → deprecated/MellowRedeemQueueAdapterContract.js} +33 -14
- package/dist/cjs/plugins/adapters/contracts/deprecated/MellowVaultAdapterContract.js +233 -0
- package/dist/cjs/plugins/adapters/contracts/deprecated/YearnV2AdapterContract.js +359 -0
- package/dist/cjs/plugins/adapters/contracts/deprecated/index.js +36 -0
- package/dist/cjs/plugins/adapters/contracts/index.js +3 -17
- package/dist/cjs/plugins/adapters/contracts/types.js +0 -9
- package/dist/cjs/plugins/adapters/createAdapter.js +140 -0
- package/dist/cjs/plugins/adapters/index.js +6 -0
- package/dist/cjs/plugins/adapters/legacyAdapterOperations.js +16 -0
- package/dist/cjs/plugins/adapters/transferHelpers.js +127 -0
- package/dist/cjs/sdk/base/BaseContract.js +51 -0
- package/dist/cjs/sdk/base/ChainContractsRegister.js +33 -0
- package/dist/cjs/sdk/base/PlaceholderContract.js +2 -2
- package/dist/cjs/sdk/base/TokensMeta.js +1 -2
- package/dist/cjs/sdk/base/errors.js +35 -0
- package/dist/cjs/sdk/base/index.js +2 -0
- package/dist/cjs/sdk/market/adapters/PlaceholderAdapterContracts.js +10 -4
- package/dist/cjs/sdk/market/adapters/{factory.js → createAdapter.js} +3 -3
- package/dist/cjs/sdk/market/adapters/index.js +2 -2
- package/dist/cjs/sdk/market/credit/CreditFacadeV310BaseContract.js +108 -0
- package/dist/cjs/sdk/market/credit/CreditFacadeV310Contract.js +3 -40
- package/dist/cjs/sdk/market/credit/index.js +2 -0
- package/dist/cjs/sdk/utils/abi-decode.js +43 -2
- package/dist/esm/dev/providers.js +0 -12
- package/dist/esm/history/assembleOperations.js +86 -0
- package/dist/esm/history/classifyMulticallOperations.js +137 -0
- package/dist/esm/history/enrichTokens.js +56 -0
- package/dist/esm/history/errors.js +62 -0
- package/dist/esm/history/extractProtocolCalls.js +32 -0
- package/dist/esm/history/extractTransfers.js +146 -0
- package/dist/esm/history/findFacadeCalls.js +63 -0
- package/dist/esm/history/index.js +9 -0
- package/dist/esm/history/inner-operations.js +0 -0
- package/dist/esm/history/internal-types.js +0 -0
- package/dist/esm/history/package.json +1 -0
- package/dist/esm/history/parseCreditAccountTransaction.js +59 -0
- package/dist/esm/history/populateContractsRegister.js +52 -0
- package/dist/esm/history/toLegacyOperation.js +96 -0
- package/dist/esm/history/trace-utils.js +36 -0
- package/dist/esm/history/types.js +0 -0
- package/dist/esm/plugins/adapters/AdaptersPlugin.js +14 -148
- package/dist/esm/plugins/adapters/abi/index.js +1 -0
- package/dist/esm/plugins/adapters/abi/targetContractAbi.js +5113 -0
- package/dist/esm/plugins/adapters/contracts/AbstractAdapter.js +111 -4
- package/dist/esm/plugins/adapters/contracts/AccountMigratorAdapterContract.js +8 -1
- package/dist/esm/plugins/adapters/contracts/BalancerV3RouterAdapterContract.js +40 -30
- package/dist/esm/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.js +21 -11
- package/dist/esm/plugins/adapters/contracts/CamelotV3AdapterContract.js +31 -21
- package/dist/esm/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.js +100 -26
- package/dist/esm/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.js +65 -25
- package/dist/esm/plugins/adapters/contracts/Curve2AssetsAdapterContract.js +70 -31
- package/dist/esm/plugins/adapters/contracts/Curve3AssetsAdapterContract.js +70 -31
- package/dist/esm/plugins/adapters/contracts/Curve4AssetsAdapterContract.js +75 -31
- package/dist/esm/plugins/adapters/contracts/CurveV1AdapterDeposit.js +82 -33
- package/dist/esm/plugins/adapters/contracts/CurveV1AdapterStETHContract.js +64 -26
- package/dist/esm/plugins/adapters/contracts/CurveV1StableNGAdapterContract.js +85 -34
- package/dist/esm/plugins/adapters/contracts/DaiUsdsAdapterContract.js +41 -14
- package/dist/esm/plugins/adapters/contracts/ERC4626AdapterContract.js +57 -27
- package/dist/esm/plugins/adapters/contracts/ERC4626ReferralAdapterContract.js +41 -14
- package/dist/esm/plugins/adapters/contracts/FluidDexAdapterContract.js +29 -14
- package/dist/esm/plugins/adapters/contracts/InfinifiGatewayAdapterContract.js +47 -23
- package/dist/esm/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.js +29 -15
- package/dist/esm/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.js +27 -12
- package/dist/esm/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.js +31 -16
- package/dist/esm/plugins/adapters/contracts/LidoV1AdapterContract.js +41 -17
- package/dist/esm/plugins/adapters/contracts/MellowClaimerAdapterContract.js +23 -11
- package/dist/esm/plugins/adapters/contracts/MellowDVVAdapterContract.js +40 -14
- package/dist/esm/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.js +74 -43
- package/dist/esm/plugins/adapters/contracts/MellowWrapperAdapterContract.js +23 -11
- package/dist/esm/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +38 -17
- package/dist/esm/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +44 -22
- package/dist/esm/plugins/adapters/contracts/PendleRouterAdapterContract.js +65 -53
- package/dist/esm/plugins/adapters/contracts/StakingRewardsAdapterContract.js +64 -37
- package/dist/esm/plugins/adapters/contracts/TraderJoeRouterAdapterContract.js +35 -25
- package/dist/esm/plugins/adapters/contracts/UniswapV2AdapterContract.js +36 -22
- package/dist/esm/plugins/adapters/contracts/UniswapV3AdapterContract.js +33 -24
- package/dist/esm/plugins/adapters/contracts/UniswapV4AdapterContract.js +45 -28
- package/dist/esm/plugins/adapters/contracts/UpshiftVaultAdapterContract.js +40 -18
- package/dist/esm/plugins/adapters/contracts/VelodromeV2AdapterContract.js +35 -25
- package/dist/esm/plugins/adapters/contracts/WstETHV1AdapterContract.js +33 -11
- package/dist/esm/plugins/adapters/contracts/deprecated/BalancerV2VaultAdapterContract.js +559 -0
- package/dist/esm/plugins/adapters/contracts/deprecated/EqualizerRouterAdapterContract.js +236 -0
- package/dist/esm/plugins/adapters/contracts/deprecated/InfraredVaultAdapterContract.js +272 -0
- package/dist/esm/plugins/adapters/contracts/deprecated/KodiakIslandGatewayAdapterContract.js +390 -0
- package/dist/esm/plugins/adapters/contracts/deprecated/MellowDepositQueueAdapterContract.js +52 -0
- package/dist/esm/plugins/adapters/contracts/deprecated/MellowRedeemQueueAdapterContract.js +45 -0
- package/dist/esm/plugins/adapters/contracts/deprecated/MellowVaultAdapterContract.js +209 -0
- package/dist/esm/plugins/adapters/contracts/deprecated/YearnV2AdapterContract.js +336 -0
- package/dist/esm/plugins/adapters/contracts/deprecated/index.js +8 -0
- package/dist/esm/plugins/adapters/contracts/index.js +1 -8
- package/dist/esm/plugins/adapters/contracts/types.js +0 -8
- package/dist/esm/plugins/adapters/createAdapter.js +158 -0
- package/dist/esm/plugins/adapters/index.js +3 -0
- package/dist/esm/plugins/adapters/legacyAdapterOperations.js +0 -0
- package/dist/esm/plugins/adapters/transferHelpers.js +95 -0
- package/dist/esm/sdk/base/BaseContract.js +53 -0
- package/dist/esm/sdk/base/ChainContractsRegister.js +33 -0
- package/dist/esm/sdk/base/PlaceholderContract.js +2 -2
- package/dist/esm/sdk/base/TokensMeta.js +6 -2
- package/dist/esm/sdk/base/errors.js +11 -0
- package/dist/esm/sdk/base/index.js +1 -0
- package/dist/esm/sdk/market/adapters/PlaceholderAdapterContracts.js +14 -5
- package/dist/esm/sdk/market/adapters/index.js +1 -1
- package/dist/esm/sdk/market/credit/CreditFacadeV310BaseContract.js +86 -0
- package/dist/esm/sdk/market/credit/CreditFacadeV310Contract.js +3 -43
- package/dist/esm/sdk/market/credit/index.js +1 -0
- package/dist/esm/sdk/utils/abi-decode.js +43 -2
- package/dist/types/dev/providers.d.ts +5 -5
- package/dist/types/history/assembleOperations.d.ts +24 -0
- package/dist/types/history/classifyMulticallOperations.d.ts +35 -0
- package/dist/types/history/enrichTokens.d.ts +5 -0
- package/dist/types/history/errors.d.ts +30 -0
- package/dist/types/history/extractProtocolCalls.d.ts +8 -0
- package/dist/types/history/extractTransfers.d.ts +22 -0
- package/dist/types/history/findFacadeCalls.d.ts +9 -0
- package/dist/types/history/index.d.ts +6 -0
- package/dist/types/history/inner-operations.d.ts +57 -0
- package/dist/types/history/internal-types.d.ts +47 -0
- package/dist/types/history/parseCreditAccountTransaction.d.ts +29 -0
- package/dist/types/history/populateContractsRegister.d.ts +19 -0
- package/dist/types/history/toLegacyOperation.d.ts +35 -0
- package/dist/types/history/trace-utils.d.ts +12 -0
- package/dist/types/history/types.d.ts +65 -0
- package/dist/types/plugins/adapters/abi/index.d.ts +1 -0
- package/dist/types/plugins/adapters/abi/targetContractAbi.d.ts +8262 -0
- package/dist/types/plugins/adapters/contracts/AbstractAdapter.d.ts +50 -8
- package/dist/types/plugins/adapters/contracts/AccountMigratorAdapterContract.d.ts +238 -4
- package/dist/types/plugins/adapters/contracts/BalancerV3RouterAdapterContract.d.ts +113 -4
- package/dist/types/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.d.ts +37 -4
- package/dist/types/plugins/adapters/contracts/CamelotV3AdapterContract.d.ts +210 -4
- package/dist/types/plugins/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.d.ts +407 -8
- package/dist/types/plugins/adapters/contracts/ConvexV1BoosterAdapterContract.d.ts +208 -5
- package/dist/types/plugins/adapters/contracts/Curve2AssetsAdapterContract.d.ts +1244 -10
- package/dist/types/plugins/adapters/contracts/Curve3AssetsAdapterContract.d.ts +1244 -10
- package/dist/types/plugins/adapters/contracts/Curve4AssetsAdapterContract.d.ts +1244 -10
- package/dist/types/plugins/adapters/contracts/CurveV1AdapterDeposit.d.ts +575 -11
- package/dist/types/plugins/adapters/contracts/CurveV1AdapterStETHContract.d.ts +1244 -10
- package/dist/types/plugins/adapters/contracts/CurveV1StableNGAdapterContract.d.ts +1213 -11
- package/dist/types/plugins/adapters/contracts/DaiUsdsAdapterContract.d.ts +60 -6
- package/dist/types/plugins/adapters/contracts/ERC4626AdapterContract.d.ts +483 -6
- package/dist/types/plugins/adapters/contracts/ERC4626ReferralAdapterContract.d.ts +58 -6
- package/dist/types/plugins/adapters/contracts/FluidDexAdapterContract.d.ts +123 -6
- package/dist/types/plugins/adapters/contracts/InfinifiGatewayAdapterContract.d.ts +133 -8
- package/dist/types/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.d.ts +155 -5
- package/dist/types/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.d.ts +240 -6
- package/dist/types/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.d.ts +356 -6
- package/dist/types/plugins/adapters/contracts/LidoV1AdapterContract.d.ts +94 -7
- package/dist/types/plugins/adapters/contracts/MellowClaimerAdapterContract.d.ts +38 -5
- package/dist/types/plugins/adapters/contracts/MellowDVVAdapterContract.d.ts +479 -6
- package/dist/types/plugins/adapters/contracts/MellowERC4626VaultAdapterContract.d.ts +483 -7
- package/dist/types/plugins/adapters/contracts/MellowWrapperAdapterContract.d.ts +48 -5
- package/dist/types/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.d.ts +42 -7
- package/dist/types/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.d.ts +186 -7
- package/dist/types/plugins/adapters/contracts/PendleRouterAdapterContract.d.ts +1010 -5
- package/dist/types/plugins/adapters/contracts/StakingRewardsAdapterContract.d.ts +71 -8
- package/dist/types/plugins/adapters/contracts/TraderJoeRouterAdapterContract.d.ts +123 -4
- package/dist/types/plugins/adapters/contracts/UniswapV2AdapterContract.d.ts +747 -5
- package/dist/types/plugins/adapters/contracts/UniswapV3AdapterContract.d.ts +171 -4
- package/dist/types/plugins/adapters/contracts/UniswapV4AdapterContract.d.ts +96 -5
- package/dist/types/plugins/adapters/contracts/UpshiftVaultAdapterContract.d.ts +74 -7
- package/dist/types/plugins/adapters/contracts/VelodromeV2AdapterContract.d.ts +109 -4
- package/dist/types/plugins/adapters/contracts/WstETHV1AdapterContract.d.ts +267 -5
- package/dist/types/plugins/adapters/contracts/deprecated/BalancerV2VaultAdapterContract.d.ts +1664 -0
- package/dist/types/plugins/adapters/contracts/deprecated/EqualizerRouterAdapterContract.d.ts +611 -0
- package/dist/types/plugins/adapters/contracts/deprecated/InfraredVaultAdapterContract.d.ts +686 -0
- package/dist/types/plugins/adapters/contracts/deprecated/KodiakIslandGatewayAdapterContract.d.ts +1270 -0
- package/dist/types/plugins/adapters/contracts/deprecated/MellowDepositQueueAdapterContract.d.ts +19 -0
- package/dist/types/plugins/adapters/contracts/deprecated/MellowRedeemQueueAdapterContract.d.ts +18 -0
- package/dist/types/plugins/adapters/contracts/deprecated/MellowVaultAdapterContract.d.ts +531 -0
- package/dist/types/plugins/adapters/contracts/deprecated/YearnV2AdapterContract.d.ts +662 -0
- package/dist/types/plugins/adapters/contracts/deprecated/index.d.ts +8 -0
- package/dist/types/plugins/adapters/contracts/index.d.ts +1 -8
- package/dist/types/plugins/adapters/contracts/types.d.ts +0 -6
- package/dist/types/plugins/adapters/createAdapter.d.ts +7 -0
- package/dist/types/plugins/adapters/index.d.ts +3 -0
- package/dist/types/plugins/adapters/legacyAdapterOperations.d.ts +200 -0
- package/dist/types/plugins/adapters/transferHelpers.d.ts +60 -0
- package/dist/types/plugins/adapters/types.d.ts +64 -1
- package/dist/types/sdk/base/BaseContract.d.ts +14 -1
- package/dist/types/sdk/base/ChainContractsRegister.d.ts +11 -1
- package/dist/types/sdk/base/PlaceholderContract.d.ts +2 -2
- package/dist/types/sdk/base/TokensMeta.d.ts +1 -1
- package/dist/types/sdk/base/errors.d.ts +3 -0
- package/dist/types/sdk/base/index.d.ts +1 -0
- package/dist/types/sdk/base/types.d.ts +31 -0
- package/dist/types/sdk/market/adapters/PlaceholderAdapterContracts.d.ts +9 -4
- package/dist/types/sdk/market/adapters/index.d.ts +1 -1
- package/dist/types/sdk/market/credit/CreditFacadeV310BaseContract.d.ts +856 -0
- package/dist/types/sdk/market/credit/CreditFacadeV310Contract.d.ts +6 -848
- package/dist/types/sdk/market/credit/index.d.ts +1 -0
- package/dist/types/sdk/utils/abi-decode.d.ts +14 -1
- package/package.json +7 -2
- package/dist/cjs/plugins/adapters/contracts/BalancerV2VaultAdapterContract.js +0 -51
- package/dist/cjs/plugins/adapters/contracts/EqualizerRouterAdapterContract.js +0 -58
- package/dist/cjs/plugins/adapters/contracts/InfraredVaultAdapterContract.js +0 -49
- package/dist/cjs/plugins/adapters/contracts/KodiakIslandGatewayAdapterContract.js +0 -56
- package/dist/cjs/plugins/adapters/contracts/MellowDepositQueueAdapterContract.js +0 -51
- package/dist/cjs/plugins/adapters/contracts/MellowVaultAdapterContract.js +0 -46
- package/dist/esm/plugins/adapters/contracts/BalancerV2VaultAdapterContract.js +0 -27
- package/dist/esm/plugins/adapters/contracts/EqualizerRouterAdapterContract.js +0 -34
- package/dist/esm/plugins/adapters/contracts/InfraredVaultAdapterContract.js +0 -25
- package/dist/esm/plugins/adapters/contracts/KodiakIslandGatewayAdapterContract.js +0 -32
- package/dist/esm/plugins/adapters/contracts/MellowDepositQueueAdapterContract.js +0 -27
- package/dist/esm/plugins/adapters/contracts/MellowRedeemQueueAdapterContract.js +0 -24
- package/dist/esm/plugins/adapters/contracts/MellowVaultAdapterContract.js +0 -22
- package/dist/esm/plugins/adapters/contracts/YearnV2AdapterContract.js +0 -22
- package/dist/types/plugins/adapters/contracts/BalancerV2VaultAdapterContract.d.ts +0 -482
- package/dist/types/plugins/adapters/contracts/EqualizerRouterAdapterContract.d.ts +0 -225
- package/dist/types/plugins/adapters/contracts/InfraredVaultAdapterContract.d.ts +0 -198
- package/dist/types/plugins/adapters/contracts/KodiakIslandGatewayAdapterContract.d.ts +0 -396
- package/dist/types/plugins/adapters/contracts/MellowDepositQueueAdapterContract.d.ts +0 -13
- package/dist/types/plugins/adapters/contracts/MellowRedeemQueueAdapterContract.d.ts +0 -12
- package/dist/types/plugins/adapters/contracts/MellowVaultAdapterContract.d.ts +0 -203
- package/dist/types/plugins/adapters/contracts/YearnV2AdapterContract.d.ts +0 -185
- /package/dist/esm/sdk/market/adapters/{factory.js → createAdapter.js} +0 -0
- /package/dist/types/sdk/market/adapters/{factory.d.ts → createAdapter.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Address } from "viem";
|
|
2
|
-
import type
|
|
3
|
-
import type {
|
|
2
|
+
import { type ConstructOptions } from "../../../sdk/index.js";
|
|
3
|
+
import type { ConcreteAdapterContractOptions } from "./AbstractAdapter.js";
|
|
4
4
|
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
5
5
|
import type { PendlePairStatus, PendleTokenType } from "./types.js";
|
|
6
6
|
declare const abi: readonly [{
|
|
@@ -1370,8 +1370,1014 @@ declare const abi: readonly [{
|
|
|
1370
1370
|
readonly name: "RedemptionNotAllowedException";
|
|
1371
1371
|
}];
|
|
1372
1372
|
type abi = typeof abi;
|
|
1373
|
-
|
|
1374
|
-
readonly
|
|
1373
|
+
declare const protocolAbi: readonly [{
|
|
1374
|
+
readonly type: "function";
|
|
1375
|
+
readonly name: "addLiquiditySingleToken";
|
|
1376
|
+
readonly inputs: readonly [{
|
|
1377
|
+
readonly name: "receiver";
|
|
1378
|
+
readonly type: "address";
|
|
1379
|
+
readonly internalType: "address";
|
|
1380
|
+
}, {
|
|
1381
|
+
readonly name: "market";
|
|
1382
|
+
readonly type: "address";
|
|
1383
|
+
readonly internalType: "address";
|
|
1384
|
+
}, {
|
|
1385
|
+
readonly name: "minLpOut";
|
|
1386
|
+
readonly type: "uint256";
|
|
1387
|
+
readonly internalType: "uint256";
|
|
1388
|
+
}, {
|
|
1389
|
+
readonly name: "guessPtReceivedFromSy";
|
|
1390
|
+
readonly type: "tuple";
|
|
1391
|
+
readonly internalType: "struct ApproxParams";
|
|
1392
|
+
readonly components: readonly [{
|
|
1393
|
+
readonly name: "guessMin";
|
|
1394
|
+
readonly type: "uint256";
|
|
1395
|
+
readonly internalType: "uint256";
|
|
1396
|
+
}, {
|
|
1397
|
+
readonly name: "guessMax";
|
|
1398
|
+
readonly type: "uint256";
|
|
1399
|
+
readonly internalType: "uint256";
|
|
1400
|
+
}, {
|
|
1401
|
+
readonly name: "guessOffchain";
|
|
1402
|
+
readonly type: "uint256";
|
|
1403
|
+
readonly internalType: "uint256";
|
|
1404
|
+
}, {
|
|
1405
|
+
readonly name: "maxIteration";
|
|
1406
|
+
readonly type: "uint256";
|
|
1407
|
+
readonly internalType: "uint256";
|
|
1408
|
+
}, {
|
|
1409
|
+
readonly name: "eps";
|
|
1410
|
+
readonly type: "uint256";
|
|
1411
|
+
readonly internalType: "uint256";
|
|
1412
|
+
}];
|
|
1413
|
+
}, {
|
|
1414
|
+
readonly name: "input";
|
|
1415
|
+
readonly type: "tuple";
|
|
1416
|
+
readonly internalType: "struct TokenInput";
|
|
1417
|
+
readonly components: readonly [{
|
|
1418
|
+
readonly name: "tokenIn";
|
|
1419
|
+
readonly type: "address";
|
|
1420
|
+
readonly internalType: "address";
|
|
1421
|
+
}, {
|
|
1422
|
+
readonly name: "netTokenIn";
|
|
1423
|
+
readonly type: "uint256";
|
|
1424
|
+
readonly internalType: "uint256";
|
|
1425
|
+
}, {
|
|
1426
|
+
readonly name: "tokenMintSy";
|
|
1427
|
+
readonly type: "address";
|
|
1428
|
+
readonly internalType: "address";
|
|
1429
|
+
}, {
|
|
1430
|
+
readonly name: "pendleSwap";
|
|
1431
|
+
readonly type: "address";
|
|
1432
|
+
readonly internalType: "address";
|
|
1433
|
+
}, {
|
|
1434
|
+
readonly name: "swapData";
|
|
1435
|
+
readonly type: "tuple";
|
|
1436
|
+
readonly internalType: "struct SwapData";
|
|
1437
|
+
readonly components: readonly [{
|
|
1438
|
+
readonly name: "swapType";
|
|
1439
|
+
readonly type: "uint8";
|
|
1440
|
+
readonly internalType: "enum SwapType";
|
|
1441
|
+
}, {
|
|
1442
|
+
readonly name: "extRouter";
|
|
1443
|
+
readonly type: "address";
|
|
1444
|
+
readonly internalType: "address";
|
|
1445
|
+
}, {
|
|
1446
|
+
readonly name: "extCalldata";
|
|
1447
|
+
readonly type: "bytes";
|
|
1448
|
+
readonly internalType: "bytes";
|
|
1449
|
+
}, {
|
|
1450
|
+
readonly name: "needScale";
|
|
1451
|
+
readonly type: "bool";
|
|
1452
|
+
readonly internalType: "bool";
|
|
1453
|
+
}];
|
|
1454
|
+
}];
|
|
1455
|
+
}, {
|
|
1456
|
+
readonly name: "limit";
|
|
1457
|
+
readonly type: "tuple";
|
|
1458
|
+
readonly internalType: "struct LimitOrderData";
|
|
1459
|
+
readonly components: readonly [{
|
|
1460
|
+
readonly name: "limitRouter";
|
|
1461
|
+
readonly type: "address";
|
|
1462
|
+
readonly internalType: "address";
|
|
1463
|
+
}, {
|
|
1464
|
+
readonly name: "epsSkipMarket";
|
|
1465
|
+
readonly type: "uint256";
|
|
1466
|
+
readonly internalType: "uint256";
|
|
1467
|
+
}, {
|
|
1468
|
+
readonly name: "normalFills";
|
|
1469
|
+
readonly type: "tuple[]";
|
|
1470
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
1471
|
+
readonly components: readonly [{
|
|
1472
|
+
readonly name: "order";
|
|
1473
|
+
readonly type: "tuple";
|
|
1474
|
+
readonly internalType: "struct Order";
|
|
1475
|
+
readonly components: readonly [{
|
|
1476
|
+
readonly name: "salt";
|
|
1477
|
+
readonly type: "uint256";
|
|
1478
|
+
readonly internalType: "uint256";
|
|
1479
|
+
}, {
|
|
1480
|
+
readonly name: "expiry";
|
|
1481
|
+
readonly type: "uint256";
|
|
1482
|
+
readonly internalType: "uint256";
|
|
1483
|
+
}, {
|
|
1484
|
+
readonly name: "nonce";
|
|
1485
|
+
readonly type: "uint256";
|
|
1486
|
+
readonly internalType: "uint256";
|
|
1487
|
+
}, {
|
|
1488
|
+
readonly name: "orderType";
|
|
1489
|
+
readonly type: "uint8";
|
|
1490
|
+
readonly internalType: "enum OrderType";
|
|
1491
|
+
}, {
|
|
1492
|
+
readonly name: "token";
|
|
1493
|
+
readonly type: "address";
|
|
1494
|
+
readonly internalType: "address";
|
|
1495
|
+
}, {
|
|
1496
|
+
readonly name: "YT";
|
|
1497
|
+
readonly type: "address";
|
|
1498
|
+
readonly internalType: "address";
|
|
1499
|
+
}, {
|
|
1500
|
+
readonly name: "maker";
|
|
1501
|
+
readonly type: "address";
|
|
1502
|
+
readonly internalType: "address";
|
|
1503
|
+
}, {
|
|
1504
|
+
readonly name: "receiver";
|
|
1505
|
+
readonly type: "address";
|
|
1506
|
+
readonly internalType: "address";
|
|
1507
|
+
}, {
|
|
1508
|
+
readonly name: "makingAmount";
|
|
1509
|
+
readonly type: "uint256";
|
|
1510
|
+
readonly internalType: "uint256";
|
|
1511
|
+
}, {
|
|
1512
|
+
readonly name: "lnImpliedRate";
|
|
1513
|
+
readonly type: "uint256";
|
|
1514
|
+
readonly internalType: "uint256";
|
|
1515
|
+
}, {
|
|
1516
|
+
readonly name: "failSafeRate";
|
|
1517
|
+
readonly type: "uint256";
|
|
1518
|
+
readonly internalType: "uint256";
|
|
1519
|
+
}, {
|
|
1520
|
+
readonly name: "permit";
|
|
1521
|
+
readonly type: "bytes";
|
|
1522
|
+
readonly internalType: "bytes";
|
|
1523
|
+
}];
|
|
1524
|
+
}, {
|
|
1525
|
+
readonly name: "signature";
|
|
1526
|
+
readonly type: "bytes";
|
|
1527
|
+
readonly internalType: "bytes";
|
|
1528
|
+
}, {
|
|
1529
|
+
readonly name: "makingAmount";
|
|
1530
|
+
readonly type: "uint256";
|
|
1531
|
+
readonly internalType: "uint256";
|
|
1532
|
+
}];
|
|
1533
|
+
}, {
|
|
1534
|
+
readonly name: "flashFills";
|
|
1535
|
+
readonly type: "tuple[]";
|
|
1536
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
1537
|
+
readonly components: readonly [{
|
|
1538
|
+
readonly name: "order";
|
|
1539
|
+
readonly type: "tuple";
|
|
1540
|
+
readonly internalType: "struct Order";
|
|
1541
|
+
readonly components: readonly [{
|
|
1542
|
+
readonly name: "salt";
|
|
1543
|
+
readonly type: "uint256";
|
|
1544
|
+
readonly internalType: "uint256";
|
|
1545
|
+
}, {
|
|
1546
|
+
readonly name: "expiry";
|
|
1547
|
+
readonly type: "uint256";
|
|
1548
|
+
readonly internalType: "uint256";
|
|
1549
|
+
}, {
|
|
1550
|
+
readonly name: "nonce";
|
|
1551
|
+
readonly type: "uint256";
|
|
1552
|
+
readonly internalType: "uint256";
|
|
1553
|
+
}, {
|
|
1554
|
+
readonly name: "orderType";
|
|
1555
|
+
readonly type: "uint8";
|
|
1556
|
+
readonly internalType: "enum OrderType";
|
|
1557
|
+
}, {
|
|
1558
|
+
readonly name: "token";
|
|
1559
|
+
readonly type: "address";
|
|
1560
|
+
readonly internalType: "address";
|
|
1561
|
+
}, {
|
|
1562
|
+
readonly name: "YT";
|
|
1563
|
+
readonly type: "address";
|
|
1564
|
+
readonly internalType: "address";
|
|
1565
|
+
}, {
|
|
1566
|
+
readonly name: "maker";
|
|
1567
|
+
readonly type: "address";
|
|
1568
|
+
readonly internalType: "address";
|
|
1569
|
+
}, {
|
|
1570
|
+
readonly name: "receiver";
|
|
1571
|
+
readonly type: "address";
|
|
1572
|
+
readonly internalType: "address";
|
|
1573
|
+
}, {
|
|
1574
|
+
readonly name: "makingAmount";
|
|
1575
|
+
readonly type: "uint256";
|
|
1576
|
+
readonly internalType: "uint256";
|
|
1577
|
+
}, {
|
|
1578
|
+
readonly name: "lnImpliedRate";
|
|
1579
|
+
readonly type: "uint256";
|
|
1580
|
+
readonly internalType: "uint256";
|
|
1581
|
+
}, {
|
|
1582
|
+
readonly name: "failSafeRate";
|
|
1583
|
+
readonly type: "uint256";
|
|
1584
|
+
readonly internalType: "uint256";
|
|
1585
|
+
}, {
|
|
1586
|
+
readonly name: "permit";
|
|
1587
|
+
readonly type: "bytes";
|
|
1588
|
+
readonly internalType: "bytes";
|
|
1589
|
+
}];
|
|
1590
|
+
}, {
|
|
1591
|
+
readonly name: "signature";
|
|
1592
|
+
readonly type: "bytes";
|
|
1593
|
+
readonly internalType: "bytes";
|
|
1594
|
+
}, {
|
|
1595
|
+
readonly name: "makingAmount";
|
|
1596
|
+
readonly type: "uint256";
|
|
1597
|
+
readonly internalType: "uint256";
|
|
1598
|
+
}];
|
|
1599
|
+
}, {
|
|
1600
|
+
readonly name: "optData";
|
|
1601
|
+
readonly type: "bytes";
|
|
1602
|
+
readonly internalType: "bytes";
|
|
1603
|
+
}];
|
|
1604
|
+
}];
|
|
1605
|
+
readonly outputs: readonly [{
|
|
1606
|
+
readonly name: "netLpOut";
|
|
1607
|
+
readonly type: "uint256";
|
|
1608
|
+
readonly internalType: "uint256";
|
|
1609
|
+
}, {
|
|
1610
|
+
readonly name: "netSyFee";
|
|
1611
|
+
readonly type: "uint256";
|
|
1612
|
+
readonly internalType: "uint256";
|
|
1613
|
+
}, {
|
|
1614
|
+
readonly name: "netSyInterm";
|
|
1615
|
+
readonly type: "uint256";
|
|
1616
|
+
readonly internalType: "uint256";
|
|
1617
|
+
}];
|
|
1618
|
+
readonly stateMutability: "payable";
|
|
1619
|
+
}, {
|
|
1620
|
+
readonly type: "function";
|
|
1621
|
+
readonly name: "redeemPyToToken";
|
|
1622
|
+
readonly inputs: readonly [{
|
|
1623
|
+
readonly name: "receiver";
|
|
1624
|
+
readonly type: "address";
|
|
1625
|
+
readonly internalType: "address";
|
|
1626
|
+
}, {
|
|
1627
|
+
readonly name: "YT";
|
|
1628
|
+
readonly type: "address";
|
|
1629
|
+
readonly internalType: "address";
|
|
1630
|
+
}, {
|
|
1631
|
+
readonly name: "netPyIn";
|
|
1632
|
+
readonly type: "uint256";
|
|
1633
|
+
readonly internalType: "uint256";
|
|
1634
|
+
}, {
|
|
1635
|
+
readonly name: "output";
|
|
1636
|
+
readonly type: "tuple";
|
|
1637
|
+
readonly internalType: "struct TokenOutput";
|
|
1638
|
+
readonly components: readonly [{
|
|
1639
|
+
readonly name: "tokenOut";
|
|
1640
|
+
readonly type: "address";
|
|
1641
|
+
readonly internalType: "address";
|
|
1642
|
+
}, {
|
|
1643
|
+
readonly name: "minTokenOut";
|
|
1644
|
+
readonly type: "uint256";
|
|
1645
|
+
readonly internalType: "uint256";
|
|
1646
|
+
}, {
|
|
1647
|
+
readonly name: "tokenRedeemSy";
|
|
1648
|
+
readonly type: "address";
|
|
1649
|
+
readonly internalType: "address";
|
|
1650
|
+
}, {
|
|
1651
|
+
readonly name: "pendleSwap";
|
|
1652
|
+
readonly type: "address";
|
|
1653
|
+
readonly internalType: "address";
|
|
1654
|
+
}, {
|
|
1655
|
+
readonly name: "swapData";
|
|
1656
|
+
readonly type: "tuple";
|
|
1657
|
+
readonly internalType: "struct SwapData";
|
|
1658
|
+
readonly components: readonly [{
|
|
1659
|
+
readonly name: "swapType";
|
|
1660
|
+
readonly type: "uint8";
|
|
1661
|
+
readonly internalType: "enum SwapType";
|
|
1662
|
+
}, {
|
|
1663
|
+
readonly name: "extRouter";
|
|
1664
|
+
readonly type: "address";
|
|
1665
|
+
readonly internalType: "address";
|
|
1666
|
+
}, {
|
|
1667
|
+
readonly name: "extCalldata";
|
|
1668
|
+
readonly type: "bytes";
|
|
1669
|
+
readonly internalType: "bytes";
|
|
1670
|
+
}, {
|
|
1671
|
+
readonly name: "needScale";
|
|
1672
|
+
readonly type: "bool";
|
|
1673
|
+
readonly internalType: "bool";
|
|
1674
|
+
}];
|
|
1675
|
+
}];
|
|
1676
|
+
}];
|
|
1677
|
+
readonly outputs: readonly [{
|
|
1678
|
+
readonly name: "netTokenOut";
|
|
1679
|
+
readonly type: "uint256";
|
|
1680
|
+
readonly internalType: "uint256";
|
|
1681
|
+
}, {
|
|
1682
|
+
readonly name: "netSyInterm";
|
|
1683
|
+
readonly type: "uint256";
|
|
1684
|
+
readonly internalType: "uint256";
|
|
1685
|
+
}];
|
|
1686
|
+
readonly stateMutability: "nonpayable";
|
|
1687
|
+
}, {
|
|
1688
|
+
readonly type: "function";
|
|
1689
|
+
readonly name: "removeLiquiditySingleToken";
|
|
1690
|
+
readonly inputs: readonly [{
|
|
1691
|
+
readonly name: "receiver";
|
|
1692
|
+
readonly type: "address";
|
|
1693
|
+
readonly internalType: "address";
|
|
1694
|
+
}, {
|
|
1695
|
+
readonly name: "market";
|
|
1696
|
+
readonly type: "address";
|
|
1697
|
+
readonly internalType: "address";
|
|
1698
|
+
}, {
|
|
1699
|
+
readonly name: "netLpToRemove";
|
|
1700
|
+
readonly type: "uint256";
|
|
1701
|
+
readonly internalType: "uint256";
|
|
1702
|
+
}, {
|
|
1703
|
+
readonly name: "output";
|
|
1704
|
+
readonly type: "tuple";
|
|
1705
|
+
readonly internalType: "struct TokenOutput";
|
|
1706
|
+
readonly components: readonly [{
|
|
1707
|
+
readonly name: "tokenOut";
|
|
1708
|
+
readonly type: "address";
|
|
1709
|
+
readonly internalType: "address";
|
|
1710
|
+
}, {
|
|
1711
|
+
readonly name: "minTokenOut";
|
|
1712
|
+
readonly type: "uint256";
|
|
1713
|
+
readonly internalType: "uint256";
|
|
1714
|
+
}, {
|
|
1715
|
+
readonly name: "tokenRedeemSy";
|
|
1716
|
+
readonly type: "address";
|
|
1717
|
+
readonly internalType: "address";
|
|
1718
|
+
}, {
|
|
1719
|
+
readonly name: "pendleSwap";
|
|
1720
|
+
readonly type: "address";
|
|
1721
|
+
readonly internalType: "address";
|
|
1722
|
+
}, {
|
|
1723
|
+
readonly name: "swapData";
|
|
1724
|
+
readonly type: "tuple";
|
|
1725
|
+
readonly internalType: "struct SwapData";
|
|
1726
|
+
readonly components: readonly [{
|
|
1727
|
+
readonly name: "swapType";
|
|
1728
|
+
readonly type: "uint8";
|
|
1729
|
+
readonly internalType: "enum SwapType";
|
|
1730
|
+
}, {
|
|
1731
|
+
readonly name: "extRouter";
|
|
1732
|
+
readonly type: "address";
|
|
1733
|
+
readonly internalType: "address";
|
|
1734
|
+
}, {
|
|
1735
|
+
readonly name: "extCalldata";
|
|
1736
|
+
readonly type: "bytes";
|
|
1737
|
+
readonly internalType: "bytes";
|
|
1738
|
+
}, {
|
|
1739
|
+
readonly name: "needScale";
|
|
1740
|
+
readonly type: "bool";
|
|
1741
|
+
readonly internalType: "bool";
|
|
1742
|
+
}];
|
|
1743
|
+
}];
|
|
1744
|
+
}, {
|
|
1745
|
+
readonly name: "limit";
|
|
1746
|
+
readonly type: "tuple";
|
|
1747
|
+
readonly internalType: "struct LimitOrderData";
|
|
1748
|
+
readonly components: readonly [{
|
|
1749
|
+
readonly name: "limitRouter";
|
|
1750
|
+
readonly type: "address";
|
|
1751
|
+
readonly internalType: "address";
|
|
1752
|
+
}, {
|
|
1753
|
+
readonly name: "epsSkipMarket";
|
|
1754
|
+
readonly type: "uint256";
|
|
1755
|
+
readonly internalType: "uint256";
|
|
1756
|
+
}, {
|
|
1757
|
+
readonly name: "normalFills";
|
|
1758
|
+
readonly type: "tuple[]";
|
|
1759
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
1760
|
+
readonly components: readonly [{
|
|
1761
|
+
readonly name: "order";
|
|
1762
|
+
readonly type: "tuple";
|
|
1763
|
+
readonly internalType: "struct Order";
|
|
1764
|
+
readonly components: readonly [{
|
|
1765
|
+
readonly name: "salt";
|
|
1766
|
+
readonly type: "uint256";
|
|
1767
|
+
readonly internalType: "uint256";
|
|
1768
|
+
}, {
|
|
1769
|
+
readonly name: "expiry";
|
|
1770
|
+
readonly type: "uint256";
|
|
1771
|
+
readonly internalType: "uint256";
|
|
1772
|
+
}, {
|
|
1773
|
+
readonly name: "nonce";
|
|
1774
|
+
readonly type: "uint256";
|
|
1775
|
+
readonly internalType: "uint256";
|
|
1776
|
+
}, {
|
|
1777
|
+
readonly name: "orderType";
|
|
1778
|
+
readonly type: "uint8";
|
|
1779
|
+
readonly internalType: "enum OrderType";
|
|
1780
|
+
}, {
|
|
1781
|
+
readonly name: "token";
|
|
1782
|
+
readonly type: "address";
|
|
1783
|
+
readonly internalType: "address";
|
|
1784
|
+
}, {
|
|
1785
|
+
readonly name: "YT";
|
|
1786
|
+
readonly type: "address";
|
|
1787
|
+
readonly internalType: "address";
|
|
1788
|
+
}, {
|
|
1789
|
+
readonly name: "maker";
|
|
1790
|
+
readonly type: "address";
|
|
1791
|
+
readonly internalType: "address";
|
|
1792
|
+
}, {
|
|
1793
|
+
readonly name: "receiver";
|
|
1794
|
+
readonly type: "address";
|
|
1795
|
+
readonly internalType: "address";
|
|
1796
|
+
}, {
|
|
1797
|
+
readonly name: "makingAmount";
|
|
1798
|
+
readonly type: "uint256";
|
|
1799
|
+
readonly internalType: "uint256";
|
|
1800
|
+
}, {
|
|
1801
|
+
readonly name: "lnImpliedRate";
|
|
1802
|
+
readonly type: "uint256";
|
|
1803
|
+
readonly internalType: "uint256";
|
|
1804
|
+
}, {
|
|
1805
|
+
readonly name: "failSafeRate";
|
|
1806
|
+
readonly type: "uint256";
|
|
1807
|
+
readonly internalType: "uint256";
|
|
1808
|
+
}, {
|
|
1809
|
+
readonly name: "permit";
|
|
1810
|
+
readonly type: "bytes";
|
|
1811
|
+
readonly internalType: "bytes";
|
|
1812
|
+
}];
|
|
1813
|
+
}, {
|
|
1814
|
+
readonly name: "signature";
|
|
1815
|
+
readonly type: "bytes";
|
|
1816
|
+
readonly internalType: "bytes";
|
|
1817
|
+
}, {
|
|
1818
|
+
readonly name: "makingAmount";
|
|
1819
|
+
readonly type: "uint256";
|
|
1820
|
+
readonly internalType: "uint256";
|
|
1821
|
+
}];
|
|
1822
|
+
}, {
|
|
1823
|
+
readonly name: "flashFills";
|
|
1824
|
+
readonly type: "tuple[]";
|
|
1825
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
1826
|
+
readonly components: readonly [{
|
|
1827
|
+
readonly name: "order";
|
|
1828
|
+
readonly type: "tuple";
|
|
1829
|
+
readonly internalType: "struct Order";
|
|
1830
|
+
readonly components: readonly [{
|
|
1831
|
+
readonly name: "salt";
|
|
1832
|
+
readonly type: "uint256";
|
|
1833
|
+
readonly internalType: "uint256";
|
|
1834
|
+
}, {
|
|
1835
|
+
readonly name: "expiry";
|
|
1836
|
+
readonly type: "uint256";
|
|
1837
|
+
readonly internalType: "uint256";
|
|
1838
|
+
}, {
|
|
1839
|
+
readonly name: "nonce";
|
|
1840
|
+
readonly type: "uint256";
|
|
1841
|
+
readonly internalType: "uint256";
|
|
1842
|
+
}, {
|
|
1843
|
+
readonly name: "orderType";
|
|
1844
|
+
readonly type: "uint8";
|
|
1845
|
+
readonly internalType: "enum OrderType";
|
|
1846
|
+
}, {
|
|
1847
|
+
readonly name: "token";
|
|
1848
|
+
readonly type: "address";
|
|
1849
|
+
readonly internalType: "address";
|
|
1850
|
+
}, {
|
|
1851
|
+
readonly name: "YT";
|
|
1852
|
+
readonly type: "address";
|
|
1853
|
+
readonly internalType: "address";
|
|
1854
|
+
}, {
|
|
1855
|
+
readonly name: "maker";
|
|
1856
|
+
readonly type: "address";
|
|
1857
|
+
readonly internalType: "address";
|
|
1858
|
+
}, {
|
|
1859
|
+
readonly name: "receiver";
|
|
1860
|
+
readonly type: "address";
|
|
1861
|
+
readonly internalType: "address";
|
|
1862
|
+
}, {
|
|
1863
|
+
readonly name: "makingAmount";
|
|
1864
|
+
readonly type: "uint256";
|
|
1865
|
+
readonly internalType: "uint256";
|
|
1866
|
+
}, {
|
|
1867
|
+
readonly name: "lnImpliedRate";
|
|
1868
|
+
readonly type: "uint256";
|
|
1869
|
+
readonly internalType: "uint256";
|
|
1870
|
+
}, {
|
|
1871
|
+
readonly name: "failSafeRate";
|
|
1872
|
+
readonly type: "uint256";
|
|
1873
|
+
readonly internalType: "uint256";
|
|
1874
|
+
}, {
|
|
1875
|
+
readonly name: "permit";
|
|
1876
|
+
readonly type: "bytes";
|
|
1877
|
+
readonly internalType: "bytes";
|
|
1878
|
+
}];
|
|
1879
|
+
}, {
|
|
1880
|
+
readonly name: "signature";
|
|
1881
|
+
readonly type: "bytes";
|
|
1882
|
+
readonly internalType: "bytes";
|
|
1883
|
+
}, {
|
|
1884
|
+
readonly name: "makingAmount";
|
|
1885
|
+
readonly type: "uint256";
|
|
1886
|
+
readonly internalType: "uint256";
|
|
1887
|
+
}];
|
|
1888
|
+
}, {
|
|
1889
|
+
readonly name: "optData";
|
|
1890
|
+
readonly type: "bytes";
|
|
1891
|
+
readonly internalType: "bytes";
|
|
1892
|
+
}];
|
|
1893
|
+
}];
|
|
1894
|
+
readonly outputs: readonly [{
|
|
1895
|
+
readonly name: "netTokenOut";
|
|
1896
|
+
readonly type: "uint256";
|
|
1897
|
+
readonly internalType: "uint256";
|
|
1898
|
+
}, {
|
|
1899
|
+
readonly name: "netSyFee";
|
|
1900
|
+
readonly type: "uint256";
|
|
1901
|
+
readonly internalType: "uint256";
|
|
1902
|
+
}, {
|
|
1903
|
+
readonly name: "netSyInterm";
|
|
1904
|
+
readonly type: "uint256";
|
|
1905
|
+
readonly internalType: "uint256";
|
|
1906
|
+
}];
|
|
1907
|
+
readonly stateMutability: "nonpayable";
|
|
1908
|
+
}, {
|
|
1909
|
+
readonly type: "function";
|
|
1910
|
+
readonly name: "swapExactPtForToken";
|
|
1911
|
+
readonly inputs: readonly [{
|
|
1912
|
+
readonly name: "receiver";
|
|
1913
|
+
readonly type: "address";
|
|
1914
|
+
readonly internalType: "address";
|
|
1915
|
+
}, {
|
|
1916
|
+
readonly name: "market";
|
|
1917
|
+
readonly type: "address";
|
|
1918
|
+
readonly internalType: "address";
|
|
1919
|
+
}, {
|
|
1920
|
+
readonly name: "exactPtIn";
|
|
1921
|
+
readonly type: "uint256";
|
|
1922
|
+
readonly internalType: "uint256";
|
|
1923
|
+
}, {
|
|
1924
|
+
readonly name: "output";
|
|
1925
|
+
readonly type: "tuple";
|
|
1926
|
+
readonly internalType: "struct TokenOutput";
|
|
1927
|
+
readonly components: readonly [{
|
|
1928
|
+
readonly name: "tokenOut";
|
|
1929
|
+
readonly type: "address";
|
|
1930
|
+
readonly internalType: "address";
|
|
1931
|
+
}, {
|
|
1932
|
+
readonly name: "minTokenOut";
|
|
1933
|
+
readonly type: "uint256";
|
|
1934
|
+
readonly internalType: "uint256";
|
|
1935
|
+
}, {
|
|
1936
|
+
readonly name: "tokenRedeemSy";
|
|
1937
|
+
readonly type: "address";
|
|
1938
|
+
readonly internalType: "address";
|
|
1939
|
+
}, {
|
|
1940
|
+
readonly name: "pendleSwap";
|
|
1941
|
+
readonly type: "address";
|
|
1942
|
+
readonly internalType: "address";
|
|
1943
|
+
}, {
|
|
1944
|
+
readonly name: "swapData";
|
|
1945
|
+
readonly type: "tuple";
|
|
1946
|
+
readonly internalType: "struct SwapData";
|
|
1947
|
+
readonly components: readonly [{
|
|
1948
|
+
readonly name: "swapType";
|
|
1949
|
+
readonly type: "uint8";
|
|
1950
|
+
readonly internalType: "enum SwapType";
|
|
1951
|
+
}, {
|
|
1952
|
+
readonly name: "extRouter";
|
|
1953
|
+
readonly type: "address";
|
|
1954
|
+
readonly internalType: "address";
|
|
1955
|
+
}, {
|
|
1956
|
+
readonly name: "extCalldata";
|
|
1957
|
+
readonly type: "bytes";
|
|
1958
|
+
readonly internalType: "bytes";
|
|
1959
|
+
}, {
|
|
1960
|
+
readonly name: "needScale";
|
|
1961
|
+
readonly type: "bool";
|
|
1962
|
+
readonly internalType: "bool";
|
|
1963
|
+
}];
|
|
1964
|
+
}];
|
|
1965
|
+
}, {
|
|
1966
|
+
readonly name: "limit";
|
|
1967
|
+
readonly type: "tuple";
|
|
1968
|
+
readonly internalType: "struct LimitOrderData";
|
|
1969
|
+
readonly components: readonly [{
|
|
1970
|
+
readonly name: "limitRouter";
|
|
1971
|
+
readonly type: "address";
|
|
1972
|
+
readonly internalType: "address";
|
|
1973
|
+
}, {
|
|
1974
|
+
readonly name: "epsSkipMarket";
|
|
1975
|
+
readonly type: "uint256";
|
|
1976
|
+
readonly internalType: "uint256";
|
|
1977
|
+
}, {
|
|
1978
|
+
readonly name: "normalFills";
|
|
1979
|
+
readonly type: "tuple[]";
|
|
1980
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
1981
|
+
readonly components: readonly [{
|
|
1982
|
+
readonly name: "order";
|
|
1983
|
+
readonly type: "tuple";
|
|
1984
|
+
readonly internalType: "struct Order";
|
|
1985
|
+
readonly components: readonly [{
|
|
1986
|
+
readonly name: "salt";
|
|
1987
|
+
readonly type: "uint256";
|
|
1988
|
+
readonly internalType: "uint256";
|
|
1989
|
+
}, {
|
|
1990
|
+
readonly name: "expiry";
|
|
1991
|
+
readonly type: "uint256";
|
|
1992
|
+
readonly internalType: "uint256";
|
|
1993
|
+
}, {
|
|
1994
|
+
readonly name: "nonce";
|
|
1995
|
+
readonly type: "uint256";
|
|
1996
|
+
readonly internalType: "uint256";
|
|
1997
|
+
}, {
|
|
1998
|
+
readonly name: "orderType";
|
|
1999
|
+
readonly type: "uint8";
|
|
2000
|
+
readonly internalType: "enum OrderType";
|
|
2001
|
+
}, {
|
|
2002
|
+
readonly name: "token";
|
|
2003
|
+
readonly type: "address";
|
|
2004
|
+
readonly internalType: "address";
|
|
2005
|
+
}, {
|
|
2006
|
+
readonly name: "YT";
|
|
2007
|
+
readonly type: "address";
|
|
2008
|
+
readonly internalType: "address";
|
|
2009
|
+
}, {
|
|
2010
|
+
readonly name: "maker";
|
|
2011
|
+
readonly type: "address";
|
|
2012
|
+
readonly internalType: "address";
|
|
2013
|
+
}, {
|
|
2014
|
+
readonly name: "receiver";
|
|
2015
|
+
readonly type: "address";
|
|
2016
|
+
readonly internalType: "address";
|
|
2017
|
+
}, {
|
|
2018
|
+
readonly name: "makingAmount";
|
|
2019
|
+
readonly type: "uint256";
|
|
2020
|
+
readonly internalType: "uint256";
|
|
2021
|
+
}, {
|
|
2022
|
+
readonly name: "lnImpliedRate";
|
|
2023
|
+
readonly type: "uint256";
|
|
2024
|
+
readonly internalType: "uint256";
|
|
2025
|
+
}, {
|
|
2026
|
+
readonly name: "failSafeRate";
|
|
2027
|
+
readonly type: "uint256";
|
|
2028
|
+
readonly internalType: "uint256";
|
|
2029
|
+
}, {
|
|
2030
|
+
readonly name: "permit";
|
|
2031
|
+
readonly type: "bytes";
|
|
2032
|
+
readonly internalType: "bytes";
|
|
2033
|
+
}];
|
|
2034
|
+
}, {
|
|
2035
|
+
readonly name: "signature";
|
|
2036
|
+
readonly type: "bytes";
|
|
2037
|
+
readonly internalType: "bytes";
|
|
2038
|
+
}, {
|
|
2039
|
+
readonly name: "makingAmount";
|
|
2040
|
+
readonly type: "uint256";
|
|
2041
|
+
readonly internalType: "uint256";
|
|
2042
|
+
}];
|
|
2043
|
+
}, {
|
|
2044
|
+
readonly name: "flashFills";
|
|
2045
|
+
readonly type: "tuple[]";
|
|
2046
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
2047
|
+
readonly components: readonly [{
|
|
2048
|
+
readonly name: "order";
|
|
2049
|
+
readonly type: "tuple";
|
|
2050
|
+
readonly internalType: "struct Order";
|
|
2051
|
+
readonly components: readonly [{
|
|
2052
|
+
readonly name: "salt";
|
|
2053
|
+
readonly type: "uint256";
|
|
2054
|
+
readonly internalType: "uint256";
|
|
2055
|
+
}, {
|
|
2056
|
+
readonly name: "expiry";
|
|
2057
|
+
readonly type: "uint256";
|
|
2058
|
+
readonly internalType: "uint256";
|
|
2059
|
+
}, {
|
|
2060
|
+
readonly name: "nonce";
|
|
2061
|
+
readonly type: "uint256";
|
|
2062
|
+
readonly internalType: "uint256";
|
|
2063
|
+
}, {
|
|
2064
|
+
readonly name: "orderType";
|
|
2065
|
+
readonly type: "uint8";
|
|
2066
|
+
readonly internalType: "enum OrderType";
|
|
2067
|
+
}, {
|
|
2068
|
+
readonly name: "token";
|
|
2069
|
+
readonly type: "address";
|
|
2070
|
+
readonly internalType: "address";
|
|
2071
|
+
}, {
|
|
2072
|
+
readonly name: "YT";
|
|
2073
|
+
readonly type: "address";
|
|
2074
|
+
readonly internalType: "address";
|
|
2075
|
+
}, {
|
|
2076
|
+
readonly name: "maker";
|
|
2077
|
+
readonly type: "address";
|
|
2078
|
+
readonly internalType: "address";
|
|
2079
|
+
}, {
|
|
2080
|
+
readonly name: "receiver";
|
|
2081
|
+
readonly type: "address";
|
|
2082
|
+
readonly internalType: "address";
|
|
2083
|
+
}, {
|
|
2084
|
+
readonly name: "makingAmount";
|
|
2085
|
+
readonly type: "uint256";
|
|
2086
|
+
readonly internalType: "uint256";
|
|
2087
|
+
}, {
|
|
2088
|
+
readonly name: "lnImpliedRate";
|
|
2089
|
+
readonly type: "uint256";
|
|
2090
|
+
readonly internalType: "uint256";
|
|
2091
|
+
}, {
|
|
2092
|
+
readonly name: "failSafeRate";
|
|
2093
|
+
readonly type: "uint256";
|
|
2094
|
+
readonly internalType: "uint256";
|
|
2095
|
+
}, {
|
|
2096
|
+
readonly name: "permit";
|
|
2097
|
+
readonly type: "bytes";
|
|
2098
|
+
readonly internalType: "bytes";
|
|
2099
|
+
}];
|
|
2100
|
+
}, {
|
|
2101
|
+
readonly name: "signature";
|
|
2102
|
+
readonly type: "bytes";
|
|
2103
|
+
readonly internalType: "bytes";
|
|
2104
|
+
}, {
|
|
2105
|
+
readonly name: "makingAmount";
|
|
2106
|
+
readonly type: "uint256";
|
|
2107
|
+
readonly internalType: "uint256";
|
|
2108
|
+
}];
|
|
2109
|
+
}, {
|
|
2110
|
+
readonly name: "optData";
|
|
2111
|
+
readonly type: "bytes";
|
|
2112
|
+
readonly internalType: "bytes";
|
|
2113
|
+
}];
|
|
2114
|
+
}];
|
|
2115
|
+
readonly outputs: readonly [{
|
|
2116
|
+
readonly name: "netTokenOut";
|
|
2117
|
+
readonly type: "uint256";
|
|
2118
|
+
readonly internalType: "uint256";
|
|
2119
|
+
}, {
|
|
2120
|
+
readonly name: "netSyFee";
|
|
2121
|
+
readonly type: "uint256";
|
|
2122
|
+
readonly internalType: "uint256";
|
|
2123
|
+
}, {
|
|
2124
|
+
readonly name: "netSyInterm";
|
|
2125
|
+
readonly type: "uint256";
|
|
2126
|
+
readonly internalType: "uint256";
|
|
2127
|
+
}];
|
|
2128
|
+
readonly stateMutability: "nonpayable";
|
|
2129
|
+
}, {
|
|
2130
|
+
readonly type: "function";
|
|
2131
|
+
readonly name: "swapExactTokenForPt";
|
|
2132
|
+
readonly inputs: readonly [{
|
|
2133
|
+
readonly name: "receiver";
|
|
2134
|
+
readonly type: "address";
|
|
2135
|
+
readonly internalType: "address";
|
|
2136
|
+
}, {
|
|
2137
|
+
readonly name: "market";
|
|
2138
|
+
readonly type: "address";
|
|
2139
|
+
readonly internalType: "address";
|
|
2140
|
+
}, {
|
|
2141
|
+
readonly name: "minPtOut";
|
|
2142
|
+
readonly type: "uint256";
|
|
2143
|
+
readonly internalType: "uint256";
|
|
2144
|
+
}, {
|
|
2145
|
+
readonly name: "guessPtOut";
|
|
2146
|
+
readonly type: "tuple";
|
|
2147
|
+
readonly internalType: "struct ApproxParams";
|
|
2148
|
+
readonly components: readonly [{
|
|
2149
|
+
readonly name: "guessMin";
|
|
2150
|
+
readonly type: "uint256";
|
|
2151
|
+
readonly internalType: "uint256";
|
|
2152
|
+
}, {
|
|
2153
|
+
readonly name: "guessMax";
|
|
2154
|
+
readonly type: "uint256";
|
|
2155
|
+
readonly internalType: "uint256";
|
|
2156
|
+
}, {
|
|
2157
|
+
readonly name: "guessOffchain";
|
|
2158
|
+
readonly type: "uint256";
|
|
2159
|
+
readonly internalType: "uint256";
|
|
2160
|
+
}, {
|
|
2161
|
+
readonly name: "maxIteration";
|
|
2162
|
+
readonly type: "uint256";
|
|
2163
|
+
readonly internalType: "uint256";
|
|
2164
|
+
}, {
|
|
2165
|
+
readonly name: "eps";
|
|
2166
|
+
readonly type: "uint256";
|
|
2167
|
+
readonly internalType: "uint256";
|
|
2168
|
+
}];
|
|
2169
|
+
}, {
|
|
2170
|
+
readonly name: "input";
|
|
2171
|
+
readonly type: "tuple";
|
|
2172
|
+
readonly internalType: "struct TokenInput";
|
|
2173
|
+
readonly components: readonly [{
|
|
2174
|
+
readonly name: "tokenIn";
|
|
2175
|
+
readonly type: "address";
|
|
2176
|
+
readonly internalType: "address";
|
|
2177
|
+
}, {
|
|
2178
|
+
readonly name: "netTokenIn";
|
|
2179
|
+
readonly type: "uint256";
|
|
2180
|
+
readonly internalType: "uint256";
|
|
2181
|
+
}, {
|
|
2182
|
+
readonly name: "tokenMintSy";
|
|
2183
|
+
readonly type: "address";
|
|
2184
|
+
readonly internalType: "address";
|
|
2185
|
+
}, {
|
|
2186
|
+
readonly name: "pendleSwap";
|
|
2187
|
+
readonly type: "address";
|
|
2188
|
+
readonly internalType: "address";
|
|
2189
|
+
}, {
|
|
2190
|
+
readonly name: "swapData";
|
|
2191
|
+
readonly type: "tuple";
|
|
2192
|
+
readonly internalType: "struct SwapData";
|
|
2193
|
+
readonly components: readonly [{
|
|
2194
|
+
readonly name: "swapType";
|
|
2195
|
+
readonly type: "uint8";
|
|
2196
|
+
readonly internalType: "enum SwapType";
|
|
2197
|
+
}, {
|
|
2198
|
+
readonly name: "extRouter";
|
|
2199
|
+
readonly type: "address";
|
|
2200
|
+
readonly internalType: "address";
|
|
2201
|
+
}, {
|
|
2202
|
+
readonly name: "extCalldata";
|
|
2203
|
+
readonly type: "bytes";
|
|
2204
|
+
readonly internalType: "bytes";
|
|
2205
|
+
}, {
|
|
2206
|
+
readonly name: "needScale";
|
|
2207
|
+
readonly type: "bool";
|
|
2208
|
+
readonly internalType: "bool";
|
|
2209
|
+
}];
|
|
2210
|
+
}];
|
|
2211
|
+
}, {
|
|
2212
|
+
readonly name: "limit";
|
|
2213
|
+
readonly type: "tuple";
|
|
2214
|
+
readonly internalType: "struct LimitOrderData";
|
|
2215
|
+
readonly components: readonly [{
|
|
2216
|
+
readonly name: "limitRouter";
|
|
2217
|
+
readonly type: "address";
|
|
2218
|
+
readonly internalType: "address";
|
|
2219
|
+
}, {
|
|
2220
|
+
readonly name: "epsSkipMarket";
|
|
2221
|
+
readonly type: "uint256";
|
|
2222
|
+
readonly internalType: "uint256";
|
|
2223
|
+
}, {
|
|
2224
|
+
readonly name: "normalFills";
|
|
2225
|
+
readonly type: "tuple[]";
|
|
2226
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
2227
|
+
readonly components: readonly [{
|
|
2228
|
+
readonly name: "order";
|
|
2229
|
+
readonly type: "tuple";
|
|
2230
|
+
readonly internalType: "struct Order";
|
|
2231
|
+
readonly components: readonly [{
|
|
2232
|
+
readonly name: "salt";
|
|
2233
|
+
readonly type: "uint256";
|
|
2234
|
+
readonly internalType: "uint256";
|
|
2235
|
+
}, {
|
|
2236
|
+
readonly name: "expiry";
|
|
2237
|
+
readonly type: "uint256";
|
|
2238
|
+
readonly internalType: "uint256";
|
|
2239
|
+
}, {
|
|
2240
|
+
readonly name: "nonce";
|
|
2241
|
+
readonly type: "uint256";
|
|
2242
|
+
readonly internalType: "uint256";
|
|
2243
|
+
}, {
|
|
2244
|
+
readonly name: "orderType";
|
|
2245
|
+
readonly type: "uint8";
|
|
2246
|
+
readonly internalType: "enum OrderType";
|
|
2247
|
+
}, {
|
|
2248
|
+
readonly name: "token";
|
|
2249
|
+
readonly type: "address";
|
|
2250
|
+
readonly internalType: "address";
|
|
2251
|
+
}, {
|
|
2252
|
+
readonly name: "YT";
|
|
2253
|
+
readonly type: "address";
|
|
2254
|
+
readonly internalType: "address";
|
|
2255
|
+
}, {
|
|
2256
|
+
readonly name: "maker";
|
|
2257
|
+
readonly type: "address";
|
|
2258
|
+
readonly internalType: "address";
|
|
2259
|
+
}, {
|
|
2260
|
+
readonly name: "receiver";
|
|
2261
|
+
readonly type: "address";
|
|
2262
|
+
readonly internalType: "address";
|
|
2263
|
+
}, {
|
|
2264
|
+
readonly name: "makingAmount";
|
|
2265
|
+
readonly type: "uint256";
|
|
2266
|
+
readonly internalType: "uint256";
|
|
2267
|
+
}, {
|
|
2268
|
+
readonly name: "lnImpliedRate";
|
|
2269
|
+
readonly type: "uint256";
|
|
2270
|
+
readonly internalType: "uint256";
|
|
2271
|
+
}, {
|
|
2272
|
+
readonly name: "failSafeRate";
|
|
2273
|
+
readonly type: "uint256";
|
|
2274
|
+
readonly internalType: "uint256";
|
|
2275
|
+
}, {
|
|
2276
|
+
readonly name: "permit";
|
|
2277
|
+
readonly type: "bytes";
|
|
2278
|
+
readonly internalType: "bytes";
|
|
2279
|
+
}];
|
|
2280
|
+
}, {
|
|
2281
|
+
readonly name: "signature";
|
|
2282
|
+
readonly type: "bytes";
|
|
2283
|
+
readonly internalType: "bytes";
|
|
2284
|
+
}, {
|
|
2285
|
+
readonly name: "makingAmount";
|
|
2286
|
+
readonly type: "uint256";
|
|
2287
|
+
readonly internalType: "uint256";
|
|
2288
|
+
}];
|
|
2289
|
+
}, {
|
|
2290
|
+
readonly name: "flashFills";
|
|
2291
|
+
readonly type: "tuple[]";
|
|
2292
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
2293
|
+
readonly components: readonly [{
|
|
2294
|
+
readonly name: "order";
|
|
2295
|
+
readonly type: "tuple";
|
|
2296
|
+
readonly internalType: "struct Order";
|
|
2297
|
+
readonly components: readonly [{
|
|
2298
|
+
readonly name: "salt";
|
|
2299
|
+
readonly type: "uint256";
|
|
2300
|
+
readonly internalType: "uint256";
|
|
2301
|
+
}, {
|
|
2302
|
+
readonly name: "expiry";
|
|
2303
|
+
readonly type: "uint256";
|
|
2304
|
+
readonly internalType: "uint256";
|
|
2305
|
+
}, {
|
|
2306
|
+
readonly name: "nonce";
|
|
2307
|
+
readonly type: "uint256";
|
|
2308
|
+
readonly internalType: "uint256";
|
|
2309
|
+
}, {
|
|
2310
|
+
readonly name: "orderType";
|
|
2311
|
+
readonly type: "uint8";
|
|
2312
|
+
readonly internalType: "enum OrderType";
|
|
2313
|
+
}, {
|
|
2314
|
+
readonly name: "token";
|
|
2315
|
+
readonly type: "address";
|
|
2316
|
+
readonly internalType: "address";
|
|
2317
|
+
}, {
|
|
2318
|
+
readonly name: "YT";
|
|
2319
|
+
readonly type: "address";
|
|
2320
|
+
readonly internalType: "address";
|
|
2321
|
+
}, {
|
|
2322
|
+
readonly name: "maker";
|
|
2323
|
+
readonly type: "address";
|
|
2324
|
+
readonly internalType: "address";
|
|
2325
|
+
}, {
|
|
2326
|
+
readonly name: "receiver";
|
|
2327
|
+
readonly type: "address";
|
|
2328
|
+
readonly internalType: "address";
|
|
2329
|
+
}, {
|
|
2330
|
+
readonly name: "makingAmount";
|
|
2331
|
+
readonly type: "uint256";
|
|
2332
|
+
readonly internalType: "uint256";
|
|
2333
|
+
}, {
|
|
2334
|
+
readonly name: "lnImpliedRate";
|
|
2335
|
+
readonly type: "uint256";
|
|
2336
|
+
readonly internalType: "uint256";
|
|
2337
|
+
}, {
|
|
2338
|
+
readonly name: "failSafeRate";
|
|
2339
|
+
readonly type: "uint256";
|
|
2340
|
+
readonly internalType: "uint256";
|
|
2341
|
+
}, {
|
|
2342
|
+
readonly name: "permit";
|
|
2343
|
+
readonly type: "bytes";
|
|
2344
|
+
readonly internalType: "bytes";
|
|
2345
|
+
}];
|
|
2346
|
+
}, {
|
|
2347
|
+
readonly name: "signature";
|
|
2348
|
+
readonly type: "bytes";
|
|
2349
|
+
readonly internalType: "bytes";
|
|
2350
|
+
}, {
|
|
2351
|
+
readonly name: "makingAmount";
|
|
2352
|
+
readonly type: "uint256";
|
|
2353
|
+
readonly internalType: "uint256";
|
|
2354
|
+
}];
|
|
2355
|
+
}, {
|
|
2356
|
+
readonly name: "optData";
|
|
2357
|
+
readonly type: "bytes";
|
|
2358
|
+
readonly internalType: "bytes";
|
|
2359
|
+
}];
|
|
2360
|
+
}];
|
|
2361
|
+
readonly outputs: readonly [{
|
|
2362
|
+
readonly name: "netPtOut";
|
|
2363
|
+
readonly type: "uint256";
|
|
2364
|
+
readonly internalType: "uint256";
|
|
2365
|
+
}, {
|
|
2366
|
+
readonly name: "netSyFee";
|
|
2367
|
+
readonly type: "uint256";
|
|
2368
|
+
readonly internalType: "uint256";
|
|
2369
|
+
}, {
|
|
2370
|
+
readonly name: "netSyInterm";
|
|
2371
|
+
readonly type: "uint256";
|
|
2372
|
+
readonly internalType: "uint256";
|
|
2373
|
+
}];
|
|
2374
|
+
readonly stateMutability: "payable";
|
|
2375
|
+
}];
|
|
2376
|
+
type protocolAbi = typeof protocolAbi;
|
|
2377
|
+
export declare class PendleRouterAdapterContract extends AbstractAdapterContract<abi, protocolAbi> {
|
|
2378
|
+
#private;
|
|
2379
|
+
constructor(options: ConstructOptions, args: ConcreteAdapterContractOptions);
|
|
2380
|
+
get allowedPairs(): {
|
|
1375
2381
|
market: Address;
|
|
1376
2382
|
inputToken: Address;
|
|
1377
2383
|
pendleToken: Address;
|
|
@@ -1383,6 +2389,5 @@ export declare class PendleRouterAdapterContract extends AbstractAdapterContract
|
|
|
1383
2389
|
pendleTokenType: PendleTokenType;
|
|
1384
2390
|
status: PendlePairStatus;
|
|
1385
2391
|
}[];
|
|
1386
|
-
constructor(options: ConstructOptions, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
|
|
1387
2392
|
}
|
|
1388
2393
|
export {};
|