upshift-config 0.5.14
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/LICENSE +21 -0
- package/README.md +349 -0
- package/lib/abis/AddressResolver.d.ts +28 -0
- package/lib/abis/AddressResolver.js +23 -0
- package/lib/abis/ChainlinkV3.d.ts +87 -0
- package/lib/abis/ChainlinkV3.js +117 -0
- package/lib/abis/ERC20.d.ts +168 -0
- package/lib/abis/ERC20.js +226 -0
- package/lib/abis/ERC20_Bytes32.d.ts +139 -0
- package/lib/abis/ERC20_Bytes32.js +196 -0
- package/lib/abis/ERC4626.d.ts +364 -0
- package/lib/abis/ERC4626.js +507 -0
- package/lib/abis/ERC721.d.ts +231 -0
- package/lib/abis/ERC721.js +321 -0
- package/lib/abis/FeeOracle.d.ts +120 -0
- package/lib/abis/FeeOracle.js +162 -0
- package/lib/abis/LendingPool.d.ts +1393 -0
- package/lib/abis/LendingPool.js +1807 -0
- package/lib/abis/LendingPoolV2.d.ts +1413 -0
- package/lib/abis/LendingPoolV2.js +1833 -0
- package/lib/abis/LendingPoolV3.d.ts +1677 -0
- package/lib/abis/LendingPoolV3.js +1160 -0
- package/lib/abis/Loan.d.ts +837 -0
- package/lib/abis/Loan.js +1080 -0
- package/lib/abis/MultiAssetNativeDepositWrapper.d.ts +137 -0
- package/lib/abis/MultiAssetNativeDepositWrapper.js +125 -0
- package/lib/abis/Multicall3.d.ts +30 -0
- package/lib/abis/Multicall3.js +97 -0
- package/lib/abis/OFT.d.ts +116 -0
- package/lib/abis/OFT.js +85 -0
- package/lib/abis/PoolAdapter.d.ts +36 -0
- package/lib/abis/PoolAdapter.js +51 -0
- package/lib/abis/RewardDistributor.d.ts +267 -0
- package/lib/abis/RewardDistributor.js +352 -0
- package/lib/abis/RwaRedeemSubaccount.d.ts +747 -0
- package/lib/abis/RwaRedeemSubaccount.js +548 -0
- package/lib/abis/SmartAccount.d.ts +17 -0
- package/lib/abis/SmartAccount.js +19 -0
- package/lib/abis/SwapRouter.d.ts +1043 -0
- package/lib/abis/SwapRouter.js +740 -0
- package/lib/abis/TextResolver.d.ts +16 -0
- package/lib/abis/TextResolver.js +16 -0
- package/lib/abis/TokenizedVaultV2.d.ts +1364 -0
- package/lib/abis/TokenizedVaultV2.js +1041 -0
- package/lib/abis/TokenizedVaultV2DepositWithPermit.d.ts +1456 -0
- package/lib/abis/TokenizedVaultV2DepositWithPermit.js +1878 -0
- package/lib/abis/TokenizedVaultV2Receipt.d.ts +1568 -0
- package/lib/abis/TokenizedVaultV2Receipt.js +1061 -0
- package/lib/abis/TokenizedVaultV2SenderAllocationWhitelist.d.ts +454 -0
- package/lib/abis/TokenizedVaultV2SenderAllocationWhitelist.js +327 -0
- package/lib/abis/TokenizedVaultV2WhitelistedAllocation.d.ts +1466 -0
- package/lib/abis/TokenizedVaultV2WhitelistedAllocation.js +1092 -0
- package/lib/abis/TokenizedVaultV2WhitelistedAssets.d.ts +274 -0
- package/lib/abis/TokenizedVaultV2WhitelistedAssets.js +167 -0
- package/lib/abis/UniversalResolverResolve.d.ts +69 -0
- package/lib/abis/UniversalResolverResolve.js +35 -0
- package/lib/abis/UniversalSignatureValidator.d.ts +17 -0
- package/lib/abis/UniversalSignatureValidator.js +30 -0
- package/lib/abis/WrapperAdapter.d.ts +71 -0
- package/lib/abis/WrapperAdapter.js +77 -0
- package/lib/abis/index.d.ts +34 -0
- package/lib/abis/index.js +51 -0
- package/lib/adapters/evm/getters.d.ts +19 -0
- package/lib/adapters/evm/getters.js +209 -0
- package/lib/adapters/evm/index.d.ts +353 -0
- package/lib/adapters/evm/index.js +434 -0
- package/lib/adapters/evm/utils.d.ts +8 -0
- package/lib/adapters/evm/utils.js +51 -0
- package/lib/adapters/solana/constants.d.ts +33 -0
- package/lib/adapters/solana/constants.js +52 -0
- package/lib/adapters/solana/getters.d.ts +11 -0
- package/lib/adapters/solana/getters.js +165 -0
- package/lib/adapters/solana/idl/vault-idl.d.ts +272 -0
- package/lib/adapters/solana/idl/vault-idl.js +1084 -0
- package/lib/adapters/solana/index.d.ts +233 -0
- package/lib/adapters/solana/index.js +291 -0
- package/lib/adapters/solana/types.d.ts +67 -0
- package/lib/adapters/solana/types.js +3 -0
- package/lib/adapters/solana/utils.d.ts +141 -0
- package/lib/adapters/solana/utils.js +595 -0
- package/lib/adapters/solana/vault.actions.d.ts +57 -0
- package/lib/adapters/solana/vault.actions.js +379 -0
- package/lib/adapters/stellar/actions.d.ts +28 -0
- package/lib/adapters/stellar/actions.js +77 -0
- package/lib/adapters/stellar/constants.d.ts +43 -0
- package/lib/adapters/stellar/constants.js +53 -0
- package/lib/adapters/stellar/getters.d.ts +68 -0
- package/lib/adapters/stellar/getters.js +290 -0
- package/lib/adapters/stellar/index.d.ts +114 -0
- package/lib/adapters/stellar/index.js +175 -0
- package/lib/adapters/stellar/soroban.d.ts +123 -0
- package/lib/adapters/stellar/soroban.js +613 -0
- package/lib/adapters/stellar/submit.d.ts +34 -0
- package/lib/adapters/stellar/submit.js +149 -0
- package/lib/adapters/stellar/types.d.ts +58 -0
- package/lib/adapters/stellar/types.js +6 -0
- package/lib/adapters/stellar/utils.d.ts +24 -0
- package/lib/adapters/stellar/utils.js +34 -0
- package/lib/adapters/sui/constants.d.ts +14 -0
- package/lib/adapters/sui/constants.js +29 -0
- package/lib/adapters/sui/getters.d.ts +9 -0
- package/lib/adapters/sui/getters.js +60 -0
- package/lib/adapters/sui/index.d.ts +45 -0
- package/lib/adapters/sui/index.js +101 -0
- package/lib/adapters/sui/transformer.d.ts +10 -0
- package/lib/adapters/sui/transformer.js +107 -0
- package/lib/adapters/sui/types.d.ts +66 -0
- package/lib/adapters/sui/types.js +3 -0
- package/lib/adapters/sui/utils.d.ts +10 -0
- package/lib/adapters/sui/utils.js +29 -0
- package/lib/core/analytics/chain-name.d.ts +9 -0
- package/lib/core/analytics/chain-name.js +34 -0
- package/lib/core/analytics/constants.d.ts +5 -0
- package/lib/core/analytics/constants.js +9 -0
- package/lib/core/analytics/env.d.ts +29 -0
- package/lib/core/analytics/env.js +59 -0
- package/lib/core/analytics/index.d.ts +36 -0
- package/lib/core/analytics/index.js +79 -0
- package/lib/core/analytics/instrumentation.d.ts +29 -0
- package/lib/core/analytics/instrumentation.js +277 -0
- package/lib/core/analytics/method-taxonomy.d.ts +19 -0
- package/lib/core/analytics/method-taxonomy.js +128 -0
- package/lib/core/analytics/metrics.d.ts +33 -0
- package/lib/core/analytics/metrics.js +116 -0
- package/lib/core/analytics/sanitize.d.ts +44 -0
- package/lib/core/analytics/sanitize.js +260 -0
- package/lib/core/analytics/sentry-runtime.d.ts +15 -0
- package/lib/core/analytics/sentry-runtime.js +97 -0
- package/lib/core/analytics/sentry.d.ts +67 -0
- package/lib/core/analytics/sentry.js +613 -0
- package/lib/core/analytics/types.d.ts +48 -0
- package/lib/core/analytics/types.js +3 -0
- package/lib/core/analytics/user-identity.d.ts +41 -0
- package/lib/core/analytics/user-identity.js +141 -0
- package/lib/core/analytics/version.d.ts +6 -0
- package/lib/core/analytics/version.js +10 -0
- package/lib/core/attribution.d.ts +111 -0
- package/lib/core/attribution.js +142 -0
- package/lib/core/auth/index.d.ts +1 -0
- package/lib/core/auth/index.js +18 -0
- package/lib/core/auth/verify.d.ts +2 -0
- package/lib/core/auth/verify.js +31 -0
- package/lib/core/base.class.d.ts +152 -0
- package/lib/core/base.class.js +172 -0
- package/lib/core/cache.d.ts +9 -0
- package/lib/core/cache.js +31 -0
- package/lib/core/constants/adapters.d.ts +103 -0
- package/lib/core/constants/adapters.js +180 -0
- package/lib/core/constants/core.d.ts +133 -0
- package/lib/core/constants/core.js +209 -0
- package/lib/core/constants/swap-router.d.ts +150 -0
- package/lib/core/constants/swap-router.js +169 -0
- package/lib/core/constants/vaults.d.ts +93 -0
- package/lib/core/constants/vaults.js +273 -0
- package/lib/core/constants/web3.d.ts +91 -0
- package/lib/core/constants/web3.js +229 -0
- package/lib/core/errors/index.d.ts +114 -0
- package/lib/core/errors/index.js +183 -0
- package/lib/core/fetcher.d.ts +198 -0
- package/lib/core/fetcher.js +903 -0
- package/lib/core/helpers/adapters.d.ts +13 -0
- package/lib/core/helpers/adapters.js +39 -0
- package/lib/core/helpers/chain-address.d.ts +13 -0
- package/lib/core/helpers/chain-address.js +47 -0
- package/lib/core/helpers/chain-error.d.ts +207 -0
- package/lib/core/helpers/chain-error.js +682 -0
- package/lib/core/helpers/chain-support.d.ts +80 -0
- package/lib/core/helpers/chain-support.js +115 -0
- package/lib/core/helpers/core.d.ts +68 -0
- package/lib/core/helpers/core.js +285 -0
- package/lib/core/helpers/explorer-link.d.ts +16 -0
- package/lib/core/helpers/explorer-link.js +26 -0
- package/lib/core/helpers/multicall.d.ts +68 -0
- package/lib/core/helpers/multicall.js +103 -0
- package/lib/core/helpers/revert-decode.d.ts +248 -0
- package/lib/core/helpers/revert-decode.js +515 -0
- package/lib/core/helpers/signer.d.ts +52 -0
- package/lib/core/helpers/signer.js +145 -0
- package/lib/core/helpers/swap-router.d.ts +211 -0
- package/lib/core/helpers/swap-router.js +480 -0
- package/lib/core/helpers/vault-version.d.ts +23 -0
- package/lib/core/helpers/vault-version.js +75 -0
- package/lib/core/helpers/vaults.d.ts +89 -0
- package/lib/core/helpers/vaults.js +235 -0
- package/lib/core/helpers/web3.d.ts +353 -0
- package/lib/core/helpers/web3.js +992 -0
- package/lib/core/index.d.ts +23 -0
- package/lib/core/index.js +40 -0
- package/lib/core/logger/index.d.ts +98 -0
- package/lib/core/logger/index.js +144 -0
- package/lib/core/logger/slack.d.ts +16 -0
- package/lib/core/logger/slack.js +57 -0
- package/lib/core/vault-metadata.d.ts +12 -0
- package/lib/core/vault-metadata.js +42 -0
- package/lib/core/version-check.d.ts +58 -0
- package/lib/core/version-check.js +182 -0
- package/lib/evm/index.d.ts +2 -0
- package/lib/evm/index.js +19 -0
- package/lib/evm/methods/crossChainVault.d.ts +128 -0
- package/lib/evm/methods/crossChainVault.js +853 -0
- package/lib/evm/methods/crossChainVaultRegistry.d.ts +93 -0
- package/lib/evm/methods/crossChainVaultRegistry.js +240 -0
- package/lib/evm/methods/index.d.ts +2 -0
- package/lib/evm/methods/index.js +19 -0
- package/lib/evm/types/crossChain.d.ts +363 -0
- package/lib/evm/types/crossChain.js +20 -0
- package/lib/evm/types/index.d.ts +1 -0
- package/lib/evm/types/index.js +18 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.js +52 -0
- package/lib/main.d.ts +527 -0
- package/lib/main.js +601 -0
- package/lib/modules/api/fetcher.d.ts +82 -0
- package/lib/modules/api/fetcher.js +150 -0
- package/lib/modules/api/index.d.ts +1 -0
- package/lib/modules/api/index.js +6 -0
- package/lib/modules/api/main.d.ts +313 -0
- package/lib/modules/api/main.js +479 -0
- package/lib/modules/sub-accounts/fetcher.d.ts +53 -0
- package/lib/modules/sub-accounts/fetcher.js +120 -0
- package/lib/modules/sub-accounts/index.d.ts +2 -0
- package/lib/modules/sub-accounts/index.js +19 -0
- package/lib/modules/sub-accounts/main.d.ts +243 -0
- package/lib/modules/sub-accounts/main.js +205 -0
- package/lib/modules/sub-accounts/utils.d.ts +106 -0
- package/lib/modules/sub-accounts/utils.js +112 -0
- package/lib/modules/vaults/adapter.helpers.d.ts +64 -0
- package/lib/modules/vaults/adapter.helpers.js +184 -0
- package/lib/modules/vaults/fetcher.d.ts +147 -0
- package/lib/modules/vaults/fetcher.js +368 -0
- package/lib/modules/vaults/getters.d.ts +570 -0
- package/lib/modules/vaults/getters.js +3051 -0
- package/lib/modules/vaults/index.d.ts +20 -0
- package/lib/modules/vaults/index.js +44 -0
- package/lib/modules/vaults/main.d.ts +601 -0
- package/lib/modules/vaults/main.js +1623 -0
- package/lib/modules/vaults/prefetch.d.ts +65 -0
- package/lib/modules/vaults/prefetch.js +120 -0
- package/lib/modules/vaults/read.actions.d.ts +225 -0
- package/lib/modules/vaults/read.actions.js +596 -0
- package/lib/modules/vaults/types.d.ts +71 -0
- package/lib/modules/vaults/types.js +3 -0
- package/lib/modules/vaults/utils/call-data-decoder.d.ts +61 -0
- package/lib/modules/vaults/utils/call-data-decoder.js +194 -0
- package/lib/modules/vaults/utils/date-utils.d.ts +50 -0
- package/lib/modules/vaults/utils/date-utils.js +84 -0
- package/lib/modules/vaults/utils.d.ts +140 -0
- package/lib/modules/vaults/utils.js +799 -0
- package/lib/modules/vaults/write.actions.d.ts +529 -0
- package/lib/modules/vaults/write.actions.js +1749 -0
- package/lib/polyfills.d.ts +1 -0
- package/lib/polyfills.js +12 -0
- package/lib/sdk.d.ts +26721 -0
- package/lib/services/coingecko/fetcher.d.ts +15 -0
- package/lib/services/coingecko/fetcher.js +67 -0
- package/lib/services/coingecko/index.d.ts +2 -0
- package/lib/services/coingecko/index.js +19 -0
- package/lib/services/coingecko/utils.d.ts +1 -0
- package/lib/services/coingecko/utils.js +24 -0
- package/lib/services/debank/fetcher.d.ts +126 -0
- package/lib/services/debank/fetcher.js +47 -0
- package/lib/services/debank/index.d.ts +2 -0
- package/lib/services/debank/index.js +19 -0
- package/lib/services/debank/utils.d.ts +38 -0
- package/lib/services/debank/utils.js +297 -0
- package/lib/services/layerzero/deposits.d.ts +49 -0
- package/lib/services/layerzero/deposits.js +166 -0
- package/lib/services/layerzero/redeems.d.ts +20 -0
- package/lib/services/layerzero/redeems.js +92 -0
- package/lib/services/layerzero/utils.d.ts +9 -0
- package/lib/services/layerzero/utils.js +22 -0
- package/lib/services/octavfi/fetcher.d.ts +9 -0
- package/lib/services/octavfi/fetcher.js +103 -0
- package/lib/services/octavfi/index.d.ts +3 -0
- package/lib/services/octavfi/index.js +20 -0
- package/lib/services/octavfi/types.d.ts +34 -0
- package/lib/services/octavfi/types.js +3 -0
- package/lib/services/octavfi/utils.d.ts +16 -0
- package/lib/services/octavfi/utils.js +212 -0
- package/lib/services/subgraph/fetcher.d.ts +2 -0
- package/lib/services/subgraph/fetcher.js +61 -0
- package/lib/services/subgraph/index.d.ts +2 -0
- package/lib/services/subgraph/index.js +19 -0
- package/lib/services/subgraph/schema.d.ts +45 -0
- package/lib/services/subgraph/schema.js +75 -0
- package/lib/services/subgraph/vaults.d.ts +25 -0
- package/lib/services/subgraph/vaults.js +1106 -0
- package/lib/services/swap-quotes/index.d.ts +105 -0
- package/lib/services/swap-quotes/index.js +77 -0
- package/lib/services/swap-quotes/paraswap.d.ts +51 -0
- package/lib/services/swap-quotes/paraswap.js +138 -0
- package/lib/types/api.d.ts +280 -0
- package/lib/types/api.js +3 -0
- package/lib/types/index.d.ts +12 -0
- package/lib/types/index.js +28 -0
- package/lib/types/points.d.ts +28 -0
- package/lib/types/points.js +3 -0
- package/lib/types/pools.d.ts +144 -0
- package/lib/types/pools.js +3 -0
- package/lib/types/staking.d.ts +28 -0
- package/lib/types/staking.js +3 -0
- package/lib/types/sub-accounts.d.ts +140 -0
- package/lib/types/sub-accounts.js +3 -0
- package/lib/types/subgraph.d.ts +74 -0
- package/lib/types/subgraph.js +3 -0
- package/lib/types/typed-contract.d.ts +102 -0
- package/lib/types/typed-contract.js +3 -0
- package/lib/types/user.d.ts +1 -0
- package/lib/types/user.js +3 -0
- package/lib/types/vaults.d.ts +714 -0
- package/lib/types/vaults.js +24 -0
- package/lib/types/web3.d.ts +51 -0
- package/lib/types/web3.js +14 -0
- package/lib/types/webserver.d.ts +698 -0
- package/lib/types/webserver.js +3 -0
- package/package.json +78 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
export declare const ABI_MULTI_ASSET_NATIVE_DEPOSIT_WRAPPER: readonly [{
|
|
2
|
+
readonly type: "constructor";
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly name: "ownerAddr";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
readonly internalType: "address";
|
|
7
|
+
}, {
|
|
8
|
+
readonly name: "_wrappedToken";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
readonly internalType: "contract IWETH";
|
|
11
|
+
}, {
|
|
12
|
+
readonly name: "_vault";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
readonly internalType: "contract IOraclizedMultiAssetVault";
|
|
15
|
+
}];
|
|
16
|
+
readonly stateMutability: "nonpayable";
|
|
17
|
+
}, {
|
|
18
|
+
readonly type: "function";
|
|
19
|
+
readonly name: "depositNative";
|
|
20
|
+
readonly inputs: readonly [{
|
|
21
|
+
readonly name: "receiver";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
readonly internalType: "address";
|
|
24
|
+
}];
|
|
25
|
+
readonly outputs: readonly [{
|
|
26
|
+
readonly name: "shares";
|
|
27
|
+
readonly type: "uint256";
|
|
28
|
+
readonly internalType: "uint256";
|
|
29
|
+
}];
|
|
30
|
+
readonly stateMutability: "payable";
|
|
31
|
+
}, {
|
|
32
|
+
readonly type: "function";
|
|
33
|
+
readonly name: "depositNative";
|
|
34
|
+
readonly inputs: readonly [];
|
|
35
|
+
readonly outputs: readonly [{
|
|
36
|
+
readonly name: "shares";
|
|
37
|
+
readonly type: "uint256";
|
|
38
|
+
readonly internalType: "uint256";
|
|
39
|
+
}];
|
|
40
|
+
readonly stateMutability: "payable";
|
|
41
|
+
}, {
|
|
42
|
+
readonly type: "function";
|
|
43
|
+
readonly name: "owner";
|
|
44
|
+
readonly inputs: readonly [];
|
|
45
|
+
readonly outputs: readonly [{
|
|
46
|
+
readonly name: "";
|
|
47
|
+
readonly type: "address";
|
|
48
|
+
readonly internalType: "address";
|
|
49
|
+
}];
|
|
50
|
+
readonly stateMutability: "view";
|
|
51
|
+
}, {
|
|
52
|
+
readonly type: "function";
|
|
53
|
+
readonly name: "transferOwnership";
|
|
54
|
+
readonly inputs: readonly [{
|
|
55
|
+
readonly name: "newOwner";
|
|
56
|
+
readonly type: "address";
|
|
57
|
+
readonly internalType: "address";
|
|
58
|
+
}];
|
|
59
|
+
readonly outputs: readonly [];
|
|
60
|
+
readonly stateMutability: "nonpayable";
|
|
61
|
+
}, {
|
|
62
|
+
readonly type: "function";
|
|
63
|
+
readonly name: "vault";
|
|
64
|
+
readonly inputs: readonly [];
|
|
65
|
+
readonly outputs: readonly [{
|
|
66
|
+
readonly name: "";
|
|
67
|
+
readonly type: "address";
|
|
68
|
+
readonly internalType: "contract IOraclizedMultiAssetVault";
|
|
69
|
+
}];
|
|
70
|
+
readonly stateMutability: "view";
|
|
71
|
+
}, {
|
|
72
|
+
readonly type: "function";
|
|
73
|
+
readonly name: "wrappedToken";
|
|
74
|
+
readonly inputs: readonly [];
|
|
75
|
+
readonly outputs: readonly [{
|
|
76
|
+
readonly name: "";
|
|
77
|
+
readonly type: "address";
|
|
78
|
+
readonly internalType: "contract IWETH";
|
|
79
|
+
}];
|
|
80
|
+
readonly stateMutability: "view";
|
|
81
|
+
}, {
|
|
82
|
+
readonly type: "event";
|
|
83
|
+
readonly name: "DepositNative";
|
|
84
|
+
readonly inputs: readonly [{
|
|
85
|
+
readonly name: "caller";
|
|
86
|
+
readonly type: "address";
|
|
87
|
+
readonly indexed: true;
|
|
88
|
+
readonly internalType: "address";
|
|
89
|
+
}, {
|
|
90
|
+
readonly name: "receiver";
|
|
91
|
+
readonly type: "address";
|
|
92
|
+
readonly indexed: true;
|
|
93
|
+
readonly internalType: "address";
|
|
94
|
+
}, {
|
|
95
|
+
readonly name: "amountInNative";
|
|
96
|
+
readonly type: "uint256";
|
|
97
|
+
readonly indexed: false;
|
|
98
|
+
readonly internalType: "uint256";
|
|
99
|
+
}, {
|
|
100
|
+
readonly name: "sharesOut";
|
|
101
|
+
readonly type: "uint256";
|
|
102
|
+
readonly indexed: false;
|
|
103
|
+
readonly internalType: "uint256";
|
|
104
|
+
}];
|
|
105
|
+
readonly anonymous: false;
|
|
106
|
+
}, {
|
|
107
|
+
readonly type: "event";
|
|
108
|
+
readonly name: "OwnershipTransferred";
|
|
109
|
+
readonly inputs: readonly [{
|
|
110
|
+
readonly name: "previousOwner";
|
|
111
|
+
readonly type: "address";
|
|
112
|
+
readonly indexed: true;
|
|
113
|
+
readonly internalType: "address";
|
|
114
|
+
}, {
|
|
115
|
+
readonly name: "newOwner";
|
|
116
|
+
readonly type: "address";
|
|
117
|
+
readonly indexed: true;
|
|
118
|
+
readonly internalType: "address";
|
|
119
|
+
}];
|
|
120
|
+
readonly anonymous: false;
|
|
121
|
+
}, {
|
|
122
|
+
readonly type: "error";
|
|
123
|
+
readonly name: "OwnerAddressRequired";
|
|
124
|
+
readonly inputs: readonly [];
|
|
125
|
+
}, {
|
|
126
|
+
readonly type: "error";
|
|
127
|
+
readonly name: "OwnerOnly";
|
|
128
|
+
readonly inputs: readonly [];
|
|
129
|
+
}, {
|
|
130
|
+
readonly type: "error";
|
|
131
|
+
readonly name: "ReentrancyGuardReentrantCall";
|
|
132
|
+
readonly inputs: readonly [];
|
|
133
|
+
}, {
|
|
134
|
+
readonly type: "error";
|
|
135
|
+
readonly name: "ZeroAmount";
|
|
136
|
+
readonly inputs: readonly [];
|
|
137
|
+
}];
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ABI_MULTI_ASSET_NATIVE_DEPOSIT_WRAPPER = void 0;
|
|
4
|
+
exports.ABI_MULTI_ASSET_NATIVE_DEPOSIT_WRAPPER = [
|
|
5
|
+
{
|
|
6
|
+
type: 'constructor',
|
|
7
|
+
inputs: [
|
|
8
|
+
{ name: 'ownerAddr', type: 'address', internalType: 'address' },
|
|
9
|
+
{
|
|
10
|
+
name: '_wrappedToken',
|
|
11
|
+
type: 'address',
|
|
12
|
+
internalType: 'contract IWETH',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: '_vault',
|
|
16
|
+
type: 'address',
|
|
17
|
+
internalType: 'contract IOraclizedMultiAssetVault',
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
stateMutability: 'nonpayable',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
type: 'function',
|
|
24
|
+
name: 'depositNative',
|
|
25
|
+
inputs: [{ name: 'receiver', type: 'address', internalType: 'address' }],
|
|
26
|
+
outputs: [{ name: 'shares', type: 'uint256', internalType: 'uint256' }],
|
|
27
|
+
stateMutability: 'payable',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
type: 'function',
|
|
31
|
+
name: 'depositNative',
|
|
32
|
+
inputs: [],
|
|
33
|
+
outputs: [{ name: 'shares', type: 'uint256', internalType: 'uint256' }],
|
|
34
|
+
stateMutability: 'payable',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
type: 'function',
|
|
38
|
+
name: 'owner',
|
|
39
|
+
inputs: [],
|
|
40
|
+
outputs: [{ name: '', type: 'address', internalType: 'address' }],
|
|
41
|
+
stateMutability: 'view',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
type: 'function',
|
|
45
|
+
name: 'transferOwnership',
|
|
46
|
+
inputs: [{ name: 'newOwner', type: 'address', internalType: 'address' }],
|
|
47
|
+
outputs: [],
|
|
48
|
+
stateMutability: 'nonpayable',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
type: 'function',
|
|
52
|
+
name: 'vault',
|
|
53
|
+
inputs: [],
|
|
54
|
+
outputs: [
|
|
55
|
+
{
|
|
56
|
+
name: '',
|
|
57
|
+
type: 'address',
|
|
58
|
+
internalType: 'contract IOraclizedMultiAssetVault',
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
stateMutability: 'view',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
type: 'function',
|
|
65
|
+
name: 'wrappedToken',
|
|
66
|
+
inputs: [],
|
|
67
|
+
outputs: [{ name: '', type: 'address', internalType: 'contract IWETH' }],
|
|
68
|
+
stateMutability: 'view',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
type: 'event',
|
|
72
|
+
name: 'DepositNative',
|
|
73
|
+
inputs: [
|
|
74
|
+
{
|
|
75
|
+
name: 'caller',
|
|
76
|
+
type: 'address',
|
|
77
|
+
indexed: true,
|
|
78
|
+
internalType: 'address',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'receiver',
|
|
82
|
+
type: 'address',
|
|
83
|
+
indexed: true,
|
|
84
|
+
internalType: 'address',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: 'amountInNative',
|
|
88
|
+
type: 'uint256',
|
|
89
|
+
indexed: false,
|
|
90
|
+
internalType: 'uint256',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: 'sharesOut',
|
|
94
|
+
type: 'uint256',
|
|
95
|
+
indexed: false,
|
|
96
|
+
internalType: 'uint256',
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
anonymous: false,
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
type: 'event',
|
|
103
|
+
name: 'OwnershipTransferred',
|
|
104
|
+
inputs: [
|
|
105
|
+
{
|
|
106
|
+
name: 'previousOwner',
|
|
107
|
+
type: 'address',
|
|
108
|
+
indexed: true,
|
|
109
|
+
internalType: 'address',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'newOwner',
|
|
113
|
+
type: 'address',
|
|
114
|
+
indexed: true,
|
|
115
|
+
internalType: 'address',
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
anonymous: false,
|
|
119
|
+
},
|
|
120
|
+
{ type: 'error', name: 'OwnerAddressRequired', inputs: [] },
|
|
121
|
+
{ type: 'error', name: 'OwnerOnly', inputs: [] },
|
|
122
|
+
{ type: 'error', name: 'ReentrancyGuardReentrantCall', inputs: [] },
|
|
123
|
+
{ type: 'error', name: 'ZeroAmount', inputs: [] },
|
|
124
|
+
];
|
|
125
|
+
//# sourceMappingURL=MultiAssetNativeDepositWrapper.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const ABI_MULTICALL3: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly components: readonly [{
|
|
4
|
+
readonly name: "target";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}, {
|
|
7
|
+
readonly name: "allowFailure";
|
|
8
|
+
readonly type: "bool";
|
|
9
|
+
}, {
|
|
10
|
+
readonly name: "callData";
|
|
11
|
+
readonly type: "bytes";
|
|
12
|
+
}];
|
|
13
|
+
readonly name: "calls";
|
|
14
|
+
readonly type: "tuple[]";
|
|
15
|
+
}];
|
|
16
|
+
readonly name: "aggregate3";
|
|
17
|
+
readonly outputs: readonly [{
|
|
18
|
+
readonly components: readonly [{
|
|
19
|
+
readonly name: "success";
|
|
20
|
+
readonly type: "bool";
|
|
21
|
+
}, {
|
|
22
|
+
readonly name: "returnData";
|
|
23
|
+
readonly type: "bytes";
|
|
24
|
+
}];
|
|
25
|
+
readonly name: "returnData";
|
|
26
|
+
readonly type: "tuple[]";
|
|
27
|
+
}];
|
|
28
|
+
readonly stateMutability: "view";
|
|
29
|
+
readonly type: "function";
|
|
30
|
+
}];
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ABI_MULTICALL3 = void 0;
|
|
4
|
+
/* [Multicall3](https://github.com/mds1/multicall) */
|
|
5
|
+
exports.ABI_MULTICALL3 = [
|
|
6
|
+
{
|
|
7
|
+
inputs: [
|
|
8
|
+
{
|
|
9
|
+
components: [
|
|
10
|
+
{
|
|
11
|
+
name: 'target',
|
|
12
|
+
type: 'address',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: 'allowFailure',
|
|
16
|
+
type: 'bool',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: 'callData',
|
|
20
|
+
type: 'bytes',
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
name: 'calls',
|
|
24
|
+
type: 'tuple[]',
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
name: 'aggregate3',
|
|
28
|
+
outputs: [
|
|
29
|
+
{
|
|
30
|
+
components: [
|
|
31
|
+
{
|
|
32
|
+
name: 'success',
|
|
33
|
+
type: 'bool',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'returnData',
|
|
37
|
+
type: 'bytes',
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
name: 'returnData',
|
|
41
|
+
type: 'tuple[]',
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
stateMutability: 'view',
|
|
45
|
+
type: 'function',
|
|
46
|
+
},
|
|
47
|
+
];
|
|
48
|
+
// Universal resolver error definitions (reserved for future use)
|
|
49
|
+
// @ts-expect-error - Reserved for future ENS integration
|
|
50
|
+
const universalResolverErrors = [
|
|
51
|
+
{
|
|
52
|
+
inputs: [],
|
|
53
|
+
name: 'ResolverNotFound',
|
|
54
|
+
type: 'error',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
inputs: [],
|
|
58
|
+
name: 'ResolverWildcardNotSupported',
|
|
59
|
+
type: 'error',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
inputs: [],
|
|
63
|
+
name: 'ResolverNotContract',
|
|
64
|
+
type: 'error',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
inputs: [
|
|
68
|
+
{
|
|
69
|
+
name: 'returnData',
|
|
70
|
+
type: 'bytes',
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
name: 'ResolverError',
|
|
74
|
+
type: 'error',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
inputs: [
|
|
78
|
+
{
|
|
79
|
+
components: [
|
|
80
|
+
{
|
|
81
|
+
name: 'status',
|
|
82
|
+
type: 'uint16',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'message',
|
|
86
|
+
type: 'string',
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
name: 'errors',
|
|
90
|
+
type: 'tuple[]',
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
name: 'HttpError',
|
|
94
|
+
type: 'error',
|
|
95
|
+
},
|
|
96
|
+
];
|
|
97
|
+
//# sourceMappingURL=Multicall3.js.map
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ABI fragments for OFT (Omnichain Fungible Token) and related contracts
|
|
3
|
+
* used in LayerZero cross-chain vault operations.
|
|
4
|
+
*
|
|
5
|
+
* @module ABIs/OFT
|
|
6
|
+
*/
|
|
7
|
+
/** ERC20 allowance + approve ABI for cross-chain approval checks */
|
|
8
|
+
export declare const ABI_CROSS_CHAIN_ERC20: readonly [{
|
|
9
|
+
readonly inputs: readonly [{
|
|
10
|
+
readonly internalType: "address";
|
|
11
|
+
readonly name: "owner";
|
|
12
|
+
readonly type: "address";
|
|
13
|
+
}, {
|
|
14
|
+
readonly internalType: "address";
|
|
15
|
+
readonly name: "spender";
|
|
16
|
+
readonly type: "address";
|
|
17
|
+
}];
|
|
18
|
+
readonly name: "allowance";
|
|
19
|
+
readonly outputs: readonly [{
|
|
20
|
+
readonly internalType: "uint256";
|
|
21
|
+
readonly name: "";
|
|
22
|
+
readonly type: "uint256";
|
|
23
|
+
}];
|
|
24
|
+
readonly stateMutability: "view";
|
|
25
|
+
readonly type: "function";
|
|
26
|
+
}, {
|
|
27
|
+
readonly inputs: readonly [{
|
|
28
|
+
readonly internalType: "address";
|
|
29
|
+
readonly name: "spender";
|
|
30
|
+
readonly type: "address";
|
|
31
|
+
}, {
|
|
32
|
+
readonly internalType: "uint256";
|
|
33
|
+
readonly name: "amount";
|
|
34
|
+
readonly type: "uint256";
|
|
35
|
+
}];
|
|
36
|
+
readonly name: "approve";
|
|
37
|
+
readonly outputs: readonly [{
|
|
38
|
+
readonly internalType: "bool";
|
|
39
|
+
readonly name: "";
|
|
40
|
+
readonly type: "bool";
|
|
41
|
+
}];
|
|
42
|
+
readonly stateMutability: "nonpayable";
|
|
43
|
+
readonly type: "function";
|
|
44
|
+
}];
|
|
45
|
+
/**
|
|
46
|
+
* Multi-asset vault previewDeposit ABI.
|
|
47
|
+
* Uses `previewDeposit(address, uint256)` instead of standard ERC4626's
|
|
48
|
+
* `previewDeposit(uint256)` to specify which asset is being deposited.
|
|
49
|
+
*/
|
|
50
|
+
export declare const ABI_MULTI_ASSET_PREVIEW_DEPOSIT: readonly [{
|
|
51
|
+
readonly type: "function";
|
|
52
|
+
readonly name: "previewDeposit";
|
|
53
|
+
readonly inputs: readonly [{
|
|
54
|
+
readonly name: "assetIn";
|
|
55
|
+
readonly type: "address";
|
|
56
|
+
readonly internalType: "address";
|
|
57
|
+
}, {
|
|
58
|
+
readonly name: "amountIn";
|
|
59
|
+
readonly type: "uint256";
|
|
60
|
+
readonly internalType: "uint256";
|
|
61
|
+
}];
|
|
62
|
+
readonly outputs: readonly [{
|
|
63
|
+
readonly name: "";
|
|
64
|
+
readonly type: "uint256";
|
|
65
|
+
readonly internalType: "uint256";
|
|
66
|
+
}, {
|
|
67
|
+
readonly name: "";
|
|
68
|
+
readonly type: "uint256";
|
|
69
|
+
readonly internalType: "uint256";
|
|
70
|
+
}];
|
|
71
|
+
readonly stateMutability: "view";
|
|
72
|
+
}];
|
|
73
|
+
/**
|
|
74
|
+
* Multi-asset vault previewRedemption ABI.
|
|
75
|
+
* Uses `previewRedemption(uint256, bool)` to preview redeem output
|
|
76
|
+
* with an `isInstant` flag.
|
|
77
|
+
*/
|
|
78
|
+
export declare const ABI_MULTI_ASSET_PREVIEW_REDEEM: readonly [{
|
|
79
|
+
readonly type: "function";
|
|
80
|
+
readonly name: "previewRedemption";
|
|
81
|
+
readonly inputs: readonly [{
|
|
82
|
+
readonly name: "shares";
|
|
83
|
+
readonly type: "uint256";
|
|
84
|
+
readonly internalType: "uint256";
|
|
85
|
+
}, {
|
|
86
|
+
readonly name: "isInstant";
|
|
87
|
+
readonly type: "bool";
|
|
88
|
+
readonly internalType: "bool";
|
|
89
|
+
}];
|
|
90
|
+
readonly outputs: readonly [{
|
|
91
|
+
readonly name: "assetsAmount";
|
|
92
|
+
readonly type: "uint256";
|
|
93
|
+
readonly internalType: "uint256";
|
|
94
|
+
}, {
|
|
95
|
+
readonly name: "assetsAfterFee";
|
|
96
|
+
readonly type: "uint256";
|
|
97
|
+
readonly internalType: "uint256";
|
|
98
|
+
}];
|
|
99
|
+
readonly stateMutability: "view";
|
|
100
|
+
}];
|
|
101
|
+
/**
|
|
102
|
+
* Standard ERC4626 previewRedeem ABI.
|
|
103
|
+
*/
|
|
104
|
+
export declare const ABI_STANDARD_PREVIEW_REDEEM: readonly [{
|
|
105
|
+
readonly type: "function";
|
|
106
|
+
readonly name: "previewRedeem";
|
|
107
|
+
readonly inputs: readonly [{
|
|
108
|
+
readonly name: "shares";
|
|
109
|
+
readonly type: "uint256";
|
|
110
|
+
}];
|
|
111
|
+
readonly outputs: readonly [{
|
|
112
|
+
readonly name: "";
|
|
113
|
+
readonly type: "uint256";
|
|
114
|
+
}];
|
|
115
|
+
readonly stateMutability: "view";
|
|
116
|
+
}];
|
package/lib/abis/OFT.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* ABI fragments for OFT (Omnichain Fungible Token) and related contracts
|
|
4
|
+
* used in LayerZero cross-chain vault operations.
|
|
5
|
+
*
|
|
6
|
+
* @module ABIs/OFT
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.ABI_STANDARD_PREVIEW_REDEEM = exports.ABI_MULTI_ASSET_PREVIEW_REDEEM = exports.ABI_MULTI_ASSET_PREVIEW_DEPOSIT = exports.ABI_CROSS_CHAIN_ERC20 = void 0;
|
|
10
|
+
/** ERC20 allowance + approve ABI for cross-chain approval checks */
|
|
11
|
+
exports.ABI_CROSS_CHAIN_ERC20 = [
|
|
12
|
+
{
|
|
13
|
+
inputs: [
|
|
14
|
+
{ internalType: 'address', name: 'owner', type: 'address' },
|
|
15
|
+
{ internalType: 'address', name: 'spender', type: 'address' },
|
|
16
|
+
],
|
|
17
|
+
name: 'allowance',
|
|
18
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
19
|
+
stateMutability: 'view',
|
|
20
|
+
type: 'function',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
inputs: [
|
|
24
|
+
{ internalType: 'address', name: 'spender', type: 'address' },
|
|
25
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
26
|
+
],
|
|
27
|
+
name: 'approve',
|
|
28
|
+
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
29
|
+
stateMutability: 'nonpayable',
|
|
30
|
+
type: 'function',
|
|
31
|
+
},
|
|
32
|
+
];
|
|
33
|
+
/**
|
|
34
|
+
* Multi-asset vault previewDeposit ABI.
|
|
35
|
+
* Uses `previewDeposit(address, uint256)` instead of standard ERC4626's
|
|
36
|
+
* `previewDeposit(uint256)` to specify which asset is being deposited.
|
|
37
|
+
*/
|
|
38
|
+
exports.ABI_MULTI_ASSET_PREVIEW_DEPOSIT = [
|
|
39
|
+
{
|
|
40
|
+
type: 'function',
|
|
41
|
+
name: 'previewDeposit',
|
|
42
|
+
inputs: [
|
|
43
|
+
{ name: 'assetIn', type: 'address', internalType: 'address' },
|
|
44
|
+
{ name: 'amountIn', type: 'uint256', internalType: 'uint256' },
|
|
45
|
+
],
|
|
46
|
+
outputs: [
|
|
47
|
+
{ name: '', type: 'uint256', internalType: 'uint256' },
|
|
48
|
+
{ name: '', type: 'uint256', internalType: 'uint256' },
|
|
49
|
+
],
|
|
50
|
+
stateMutability: 'view',
|
|
51
|
+
},
|
|
52
|
+
];
|
|
53
|
+
/**
|
|
54
|
+
* Multi-asset vault previewRedemption ABI.
|
|
55
|
+
* Uses `previewRedemption(uint256, bool)` to preview redeem output
|
|
56
|
+
* with an `isInstant` flag.
|
|
57
|
+
*/
|
|
58
|
+
exports.ABI_MULTI_ASSET_PREVIEW_REDEEM = [
|
|
59
|
+
{
|
|
60
|
+
type: 'function',
|
|
61
|
+
name: 'previewRedemption',
|
|
62
|
+
inputs: [
|
|
63
|
+
{ name: 'shares', type: 'uint256', internalType: 'uint256' },
|
|
64
|
+
{ name: 'isInstant', type: 'bool', internalType: 'bool' },
|
|
65
|
+
],
|
|
66
|
+
outputs: [
|
|
67
|
+
{ name: 'assetsAmount', type: 'uint256', internalType: 'uint256' },
|
|
68
|
+
{ name: 'assetsAfterFee', type: 'uint256', internalType: 'uint256' },
|
|
69
|
+
],
|
|
70
|
+
stateMutability: 'view',
|
|
71
|
+
},
|
|
72
|
+
];
|
|
73
|
+
/**
|
|
74
|
+
* Standard ERC4626 previewRedeem ABI.
|
|
75
|
+
*/
|
|
76
|
+
exports.ABI_STANDARD_PREVIEW_REDEEM = [
|
|
77
|
+
{
|
|
78
|
+
type: 'function',
|
|
79
|
+
name: 'previewRedeem',
|
|
80
|
+
inputs: [{ name: 'shares', type: 'uint256' }],
|
|
81
|
+
outputs: [{ name: '', type: 'uint256' }],
|
|
82
|
+
stateMutability: 'view',
|
|
83
|
+
},
|
|
84
|
+
];
|
|
85
|
+
//# sourceMappingURL=OFT.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const ABI_POOL_ADAPTER: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly components: readonly [{
|
|
4
|
+
readonly internalType: "uint256";
|
|
5
|
+
readonly name: "amountIn";
|
|
6
|
+
readonly type: "uint256";
|
|
7
|
+
}, {
|
|
8
|
+
readonly internalType: "uint256";
|
|
9
|
+
readonly name: "minAmountOut";
|
|
10
|
+
readonly type: "uint256";
|
|
11
|
+
}, {
|
|
12
|
+
readonly internalType: "address";
|
|
13
|
+
readonly name: "srcToken";
|
|
14
|
+
readonly type: "address";
|
|
15
|
+
}, {
|
|
16
|
+
readonly internalType: "address";
|
|
17
|
+
readonly name: "dstToken";
|
|
18
|
+
readonly type: "address";
|
|
19
|
+
}, {
|
|
20
|
+
readonly internalType: "uint256";
|
|
21
|
+
readonly name: "bridgeId";
|
|
22
|
+
readonly type: "uint256";
|
|
23
|
+
}, {
|
|
24
|
+
readonly internalType: "bytes";
|
|
25
|
+
readonly name: "quoteData";
|
|
26
|
+
readonly type: "bytes";
|
|
27
|
+
}];
|
|
28
|
+
readonly internalType: "struct PoolAdapter.SwapAndDepositParams";
|
|
29
|
+
readonly name: "params";
|
|
30
|
+
readonly type: "tuple";
|
|
31
|
+
}];
|
|
32
|
+
readonly name: "swapAndDeposit";
|
|
33
|
+
readonly outputs: readonly [];
|
|
34
|
+
readonly stateMutability: "nonpayable";
|
|
35
|
+
readonly type: "function";
|
|
36
|
+
}];
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ABI_POOL_ADAPTER = void 0;
|
|
4
|
+
exports.ABI_POOL_ADAPTER = [
|
|
5
|
+
{
|
|
6
|
+
inputs: [
|
|
7
|
+
{
|
|
8
|
+
components: [
|
|
9
|
+
{
|
|
10
|
+
internalType: 'uint256',
|
|
11
|
+
name: 'amountIn',
|
|
12
|
+
type: 'uint256',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
internalType: 'uint256',
|
|
16
|
+
name: 'minAmountOut',
|
|
17
|
+
type: 'uint256',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
internalType: 'address',
|
|
21
|
+
name: 'srcToken',
|
|
22
|
+
type: 'address',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
internalType: 'address',
|
|
26
|
+
name: 'dstToken',
|
|
27
|
+
type: 'address',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
internalType: 'uint256',
|
|
31
|
+
name: 'bridgeId',
|
|
32
|
+
type: 'uint256',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
internalType: 'bytes',
|
|
36
|
+
name: 'quoteData',
|
|
37
|
+
type: 'bytes',
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
internalType: 'struct PoolAdapter.SwapAndDepositParams',
|
|
41
|
+
name: 'params',
|
|
42
|
+
type: 'tuple',
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
name: 'swapAndDeposit',
|
|
46
|
+
outputs: [],
|
|
47
|
+
stateMutability: 'nonpayable',
|
|
48
|
+
type: 'function',
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
//# sourceMappingURL=PoolAdapter.js.map
|