@gearbox-protocol/sdk 9.12.14 → 9.13.0
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/abi/310/configure/creditSuiteParams.js +130 -0
- package/dist/cjs/abi/310/configure/iCreditConfigureActions.js +181 -0
- package/dist/cjs/abi/310/configure/iPoolConfigureActions.js +80 -0
- package/dist/cjs/abi/310/configure/iPriceOracleConfigureActions.js +49 -0
- package/dist/cjs/abi/310/crossChainMultisig.js +540 -0
- package/dist/cjs/abi/{v310.js → 310/generated.js} +3 -3
- package/dist/cjs/abi/310/iBytecodeRepository.js +897 -0
- package/dist/cjs/abi/310/iMarketConfiguratorFactory.js +189 -0
- package/dist/cjs/abi/310/iPriceFeedStore.js +417 -0
- package/dist/cjs/abi/310/iTreasurySplitter.js +36 -0
- package/dist/cjs/abi/310/instanceManager.js +274 -0
- package/dist/cjs/abi/compressors/creditAccountCompressor.js +456 -0
- package/dist/cjs/abi/compressors/creditSuiteCompressor.js +774 -0
- package/dist/cjs/abi/compressors/defillamaCompressor.js +183 -0
- package/dist/cjs/abi/compressors/gaugeCompressor.js +184 -0
- package/dist/cjs/abi/compressors/marketCompressor.js +2477 -0
- package/dist/cjs/abi/compressors/peripheryCompressor.js +202 -0
- package/dist/cjs/abi/compressors/priceFeedCompressor.js +581 -0
- package/dist/cjs/abi/compressors/rewardsCompressor.js +82 -0
- package/dist/cjs/abi/compressors/subcompressors/infinifiWithdrawalSubcompressor.js +187 -0
- package/dist/cjs/abi/compressors/subcompressors/mellowWithdrawalSubcompressor.js +187 -0
- package/dist/cjs/abi/compressors/subcompressors/midasWithdrawalSubcompressor.js +187 -0
- package/dist/cjs/abi/compressors/subcompressors/upshiftWithdrawalSubcompressor.js +187 -0
- package/dist/cjs/abi/compressors/tokenCompressor.js +95 -0
- package/dist/cjs/abi/compressors/withdrawalCompressor.js +272 -0
- package/dist/cjs/abi/governance/batchesChain.js +68 -0
- package/dist/cjs/abi/governance/governor.js +472 -0
- package/dist/cjs/abi/governance/iTimeLock.js +257 -0
- package/dist/cjs/abi/router/balancerV2Worker.js +730 -0
- package/dist/cjs/abi/router/balancerV3Worker.js +734 -0
- package/dist/cjs/abi/router/camelotV3Worker.js +558 -0
- package/dist/cjs/abi/router/convexWorker.js +541 -0
- package/dist/cjs/abi/router/curveWorker.js +718 -0
- package/dist/cjs/abi/router/daiUsdsWorker.js +541 -0
- package/dist/cjs/abi/router/equalizerRouterWorker.js +541 -0
- package/dist/cjs/abi/router/erc4626Worker.js +572 -0
- package/dist/cjs/abi/router/fluidDexWorker.js +551 -0
- package/dist/cjs/abi/router/gearboxRouter.js +651 -0
- package/dist/cjs/abi/router/infraredVaultWorker.js +541 -0
- package/dist/cjs/abi/router/kodiakWorker.js +732 -0
- package/dist/cjs/abi/router/lidoWorker.js +541 -0
- package/dist/cjs/abi/router/mellow4626Worker.js +541 -0
- package/dist/cjs/abi/router/mellowDVVWorker.js +541 -0
- package/dist/cjs/abi/router/mellowVaultWorker.js +551 -0
- package/dist/cjs/abi/router/pendleRouterWorker.js +567 -0
- package/dist/cjs/abi/router/routingManager.js +397 -0
- package/dist/cjs/abi/router/stakingRewardsWorker.js +541 -0
- package/dist/cjs/abi/router/traderJoeWorker.js +541 -0
- package/dist/cjs/abi/router/uniswapV2Worker.js +541 -0
- package/dist/cjs/abi/router/uniswapV3Worker.js +568 -0
- package/dist/cjs/abi/router/upshiftWorker.js +541 -0
- package/dist/cjs/abi/router/velodromeV2Worker.js +541 -0
- package/dist/cjs/abi/router/wstETHWorker.js +541 -0
- package/dist/cjs/abi/router/yearnV2Worker.js +541 -0
- package/dist/cjs/dev/migrateFaucet.js +6 -6
- package/dist/cjs/plugins/accounts-counter/AccountsCounterPlugin.js +3 -3
- package/dist/cjs/plugins/bots/BotsPlugin.js +2 -2
- package/dist/cjs/plugins/pools-history/Pools7DAgoPlugin.js +2 -2
- package/dist/cjs/plugins/zappers/ZappersPlugin.js +2 -2
- package/dist/cjs/sdk/accounts/AbstractCreditAccountsService.js +11 -9
- package/dist/cjs/sdk/accounts/CreditAccountsServiceV310.js +2 -2
- package/dist/cjs/sdk/chain/detectNetwork.js +2 -2
- package/dist/cjs/sdk/core/address-provider/AddressProviderV310Contract.js +2 -2
- package/dist/cjs/sdk/gauges/GaugeStakingService.js +2 -2
- package/dist/cjs/sdk/market/MarketConfiguratorContract.js +2 -2
- package/dist/cjs/sdk/market/MarketRegister.js +3 -3
- package/dist/cjs/sdk/market/credit/CreditConfiguratorV310Contract.js +2 -2
- package/dist/cjs/sdk/market/credit/CreditFacadeV310Contract.js +3 -3
- package/dist/cjs/sdk/market/credit/CreditManagerV310Contract.js +2 -2
- package/dist/cjs/sdk/market/oracle/PriceOracleBaseContract.js +2 -2
- package/dist/cjs/sdk/market/oracle/PriceOracleV310Contract.js +3 -3
- package/dist/cjs/sdk/market/pool/PoolQuotaKeeperV310Contract.js +2 -2
- package/dist/cjs/sdk/market/pool/PoolV310Contract.js +2 -2
- package/dist/cjs/sdk/market/pool/TumblerContract.js +2 -2
- package/dist/cjs/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -3
- package/dist/cjs/sdk/router/RouterV310Contract.js +2 -2
- package/dist/cjs/sdk/utils/viem/simulateWithPriceUpdates.js +3 -2
- package/dist/esm/abi/310/configure/creditSuiteParams.js +104 -0
- package/dist/esm/abi/310/configure/iCreditConfigureActions.js +157 -0
- package/dist/esm/abi/310/configure/iPoolConfigureActions.js +56 -0
- package/dist/esm/abi/310/configure/iPriceOracleConfigureActions.js +25 -0
- package/dist/esm/abi/310/crossChainMultisig.js +516 -0
- package/dist/esm/abi/310/iBytecodeRepository.js +873 -0
- package/dist/esm/abi/310/iMarketConfiguratorFactory.js +165 -0
- package/dist/esm/abi/310/iPriceFeedStore.js +393 -0
- package/dist/esm/abi/310/iTreasurySplitter.js +12 -0
- package/dist/esm/abi/310/instanceManager.js +250 -0
- package/dist/esm/abi/compressors/creditAccountCompressor.js +432 -0
- package/dist/esm/abi/compressors/creditSuiteCompressor.js +750 -0
- package/dist/esm/abi/compressors/defillamaCompressor.js +159 -0
- package/dist/esm/abi/compressors/gaugeCompressor.js +160 -0
- package/dist/esm/abi/compressors/marketCompressor.js +2453 -0
- package/dist/esm/abi/compressors/peripheryCompressor.js +178 -0
- package/dist/esm/abi/compressors/priceFeedCompressor.js +557 -0
- package/dist/esm/abi/compressors/rewardsCompressor.js +58 -0
- package/dist/esm/abi/compressors/subcompressors/infinifiWithdrawalSubcompressor.js +163 -0
- package/dist/esm/abi/compressors/subcompressors/mellowWithdrawalSubcompressor.js +163 -0
- package/dist/esm/abi/compressors/subcompressors/midasWithdrawalSubcompressor.js +163 -0
- package/dist/esm/abi/compressors/subcompressors/upshiftWithdrawalSubcompressor.js +163 -0
- package/dist/esm/abi/compressors/tokenCompressor.js +71 -0
- package/dist/esm/abi/compressors/withdrawalCompressor.js +248 -0
- package/dist/esm/abi/governance/batchesChain.js +44 -0
- package/dist/esm/abi/governance/governor.js +448 -0
- package/dist/esm/abi/governance/iTimeLock.js +233 -0
- package/dist/esm/abi/router/balancerV2Worker.js +706 -0
- package/dist/esm/abi/router/balancerV3Worker.js +710 -0
- package/dist/esm/abi/router/camelotV3Worker.js +534 -0
- package/dist/esm/abi/router/convexWorker.js +517 -0
- package/dist/esm/abi/router/curveWorker.js +694 -0
- package/dist/esm/abi/router/daiUsdsWorker.js +517 -0
- package/dist/esm/abi/router/equalizerRouterWorker.js +517 -0
- package/dist/esm/abi/router/erc4626Worker.js +548 -0
- package/dist/esm/abi/router/fluidDexWorker.js +527 -0
- package/dist/esm/abi/router/gearboxRouter.js +627 -0
- package/dist/esm/abi/router/infraredVaultWorker.js +517 -0
- package/dist/esm/abi/router/kodiakWorker.js +708 -0
- package/dist/esm/abi/router/lidoWorker.js +517 -0
- package/dist/esm/abi/router/mellow4626Worker.js +517 -0
- package/dist/esm/abi/router/mellowDVVWorker.js +517 -0
- package/dist/esm/abi/router/mellowVaultWorker.js +527 -0
- package/dist/esm/abi/router/pendleRouterWorker.js +543 -0
- package/dist/esm/abi/router/routingManager.js +373 -0
- package/dist/esm/abi/router/stakingRewardsWorker.js +517 -0
- package/dist/esm/abi/router/traderJoeWorker.js +517 -0
- package/dist/esm/abi/router/uniswapV2Worker.js +517 -0
- package/dist/esm/abi/router/uniswapV3Worker.js +544 -0
- package/dist/esm/abi/router/upshiftWorker.js +517 -0
- package/dist/esm/abi/router/velodromeV2Worker.js +517 -0
- package/dist/esm/abi/router/wstETHWorker.js +517 -0
- package/dist/esm/abi/router/yearnV2Worker.js +517 -0
- package/dist/esm/dev/migrateFaucet.js +1 -1
- package/dist/esm/plugins/accounts-counter/AccountsCounterPlugin.js +3 -3
- package/dist/esm/plugins/bots/BotsPlugin.js +2 -2
- package/dist/esm/plugins/pools-history/Pools7DAgoPlugin.js +2 -2
- package/dist/esm/plugins/zappers/ZappersPlugin.js +2 -2
- package/dist/esm/sdk/accounts/AbstractCreditAccountsService.js +10 -12
- package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +1 -1
- package/dist/esm/sdk/chain/detectNetwork.js +1 -1
- package/dist/esm/sdk/core/address-provider/AddressProviderV310Contract.js +1 -1
- package/dist/esm/sdk/gauges/GaugeStakingService.js +2 -2
- package/dist/esm/sdk/market/MarketConfiguratorContract.js +1 -1
- package/dist/esm/sdk/market/MarketRegister.js +3 -3
- package/dist/esm/sdk/market/credit/CreditConfiguratorV310Contract.js +1 -1
- package/dist/esm/sdk/market/credit/CreditFacadeV310Contract.js +2 -2
- package/dist/esm/sdk/market/credit/CreditManagerV310Contract.js +1 -1
- package/dist/esm/sdk/market/oracle/PriceOracleBaseContract.js +2 -2
- package/dist/esm/sdk/market/oracle/PriceOracleV310Contract.js +1 -1
- package/dist/esm/sdk/market/pool/PoolQuotaKeeperV310Contract.js +1 -1
- package/dist/esm/sdk/market/pool/PoolV310Contract.js +1 -1
- package/dist/esm/sdk/market/pool/TumblerContract.js +1 -1
- package/dist/esm/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -3
- package/dist/esm/sdk/router/RouterV310Contract.js +2 -2
- package/dist/esm/sdk/utils/viem/simulateWithPriceUpdates.js +2 -1
- package/dist/types/abi/310/configure/creditSuiteParams.d.ts +92 -0
- package/dist/types/abi/310/configure/iCreditConfigureActions.d.ts +187 -0
- package/dist/types/abi/310/configure/iPoolConfigureActions.d.ts +65 -0
- package/dist/types/abi/310/configure/iPriceOracleConfigureActions.d.ts +29 -0
- package/dist/types/abi/310/crossChainMultisig.d.ts +709 -0
- package/dist/types/abi/310/iBytecodeRepository.d.ts +1139 -0
- package/dist/types/abi/310/iMarketConfiguratorFactory.d.ts +218 -0
- package/dist/types/abi/310/iPriceFeedStore.d.ts +526 -0
- package/dist/types/abi/310/iTreasurySplitter.d.ts +11 -0
- package/dist/types/abi/{iPriceFeedStore.d.ts → 310/instanceManager.d.ts} +183 -143
- package/dist/types/abi/compressors/creditAccountCompressor.d.ts +828 -0
- package/dist/types/abi/compressors/creditSuiteCompressor.d.ts +829 -0
- package/dist/types/abi/compressors/defillamaCompressor.d.ts +201 -0
- package/dist/types/abi/compressors/gaugeCompressor.d.ts +228 -0
- package/dist/types/abi/{compressors.d.ts → compressors/marketCompressor.d.ts} +1322 -4121
- package/dist/types/abi/compressors/peripheryCompressor.d.ts +217 -0
- package/dist/types/abi/compressors/priceFeedCompressor.d.ts +684 -0
- package/dist/types/abi/compressors/rewardsCompressor.d.ts +70 -0
- package/dist/types/abi/compressors/subcompressors/infinifiWithdrawalSubcompressor.d.ts +220 -0
- package/dist/types/abi/compressors/subcompressors/mellowWithdrawalSubcompressor.d.ts +220 -0
- package/dist/types/abi/compressors/subcompressors/midasWithdrawalSubcompressor.d.ts +220 -0
- package/dist/types/abi/compressors/subcompressors/upshiftWithdrawalSubcompressor.d.ts +220 -0
- package/dist/types/abi/compressors/tokenCompressor.d.ts +101 -0
- package/dist/types/abi/{routerV310.d.ts → compressors/withdrawalCompressor.d.ts} +175 -253
- package/dist/types/abi/governance/batchesChain.d.ts +31 -0
- package/dist/types/abi/governance/governor.d.ts +584 -0
- package/dist/types/abi/governance/iTimeLock.d.ts +328 -0
- package/dist/types/abi/router/balancerV2Worker.d.ts +961 -0
- package/dist/types/abi/router/balancerV3Worker.d.ts +961 -0
- package/dist/types/abi/router/camelotV3Worker.d.ts +754 -0
- package/dist/types/abi/router/convexWorker.d.ts +726 -0
- package/dist/types/abi/router/curveWorker.d.ts +947 -0
- package/dist/types/abi/router/daiUsdsWorker.d.ts +726 -0
- package/dist/types/abi/router/equalizerRouterWorker.d.ts +726 -0
- package/dist/types/abi/router/erc4626Worker.d.ts +769 -0
- package/dist/types/abi/router/fluidDexWorker.d.ts +740 -0
- package/dist/types/abi/router/gearboxRouter.d.ts +881 -0
- package/dist/types/abi/router/infraredVaultWorker.d.ts +726 -0
- package/dist/types/abi/router/kodiakWorker.d.ts +967 -0
- package/dist/types/abi/router/lidoWorker.d.ts +726 -0
- package/dist/types/abi/router/mellow4626Worker.d.ts +726 -0
- package/dist/types/abi/router/mellowDVVWorker.d.ts +726 -0
- package/dist/types/abi/router/mellowVaultWorker.d.ts +740 -0
- package/dist/types/abi/router/pendleRouterWorker.d.ts +760 -0
- package/dist/types/abi/router/routingManager.d.ts +494 -0
- package/dist/types/abi/router/stakingRewardsWorker.d.ts +726 -0
- package/dist/types/abi/router/traderJoeWorker.d.ts +726 -0
- package/dist/types/abi/router/uniswapV2Worker.d.ts +726 -0
- package/dist/types/abi/router/uniswapV3Worker.d.ts +774 -0
- package/dist/types/abi/router/upshiftWorker.d.ts +726 -0
- package/dist/types/abi/router/velodromeV2Worker.d.ts +726 -0
- package/dist/types/abi/router/wstETHWorker.d.ts +726 -0
- package/dist/types/abi/router/yearnV2Worker.d.ts +726 -0
- package/dist/types/plugins/bots/types.d.ts +2 -2
- package/dist/types/plugins/zappers/types.d.ts +2 -2
- package/dist/types/sdk/accounts/types.d.ts +2 -2
- package/dist/types/sdk/base/types.d.ts +11 -7
- package/dist/types/sdk/market/credit/CreditManagerV310Contract.d.ts +1 -1
- package/dist/types/sdk/market/oracle/types.d.ts +3 -3
- package/dist/types/sdk/router/RouterV310Contract.d.ts +481 -1
- package/dist/types/sdk/sdk-legacy/payload/pool.d.ts +2 -2
- package/package.json +1 -1
- package/dist/cjs/abi/compressors.js +0 -4555
- package/dist/cjs/abi/iPriceFeedStore.js +0 -254
- package/dist/cjs/abi/index.js +0 -46
- package/dist/cjs/abi/package.json +0 -1
- package/dist/cjs/abi/routerV310.js +0 -276
- package/dist/esm/abi/compressors.js +0 -4524
- package/dist/esm/abi/iPriceFeedStore.js +0 -230
- package/dist/esm/abi/index.js +0 -13
- package/dist/esm/abi/package.json +0 -1
- package/dist/esm/abi/routerV310.js +0 -252
- package/dist/types/abi/index.d.ts +0 -13
- /package/dist/esm/abi/{v310.js → 310/generated.js} +0 -0
- /package/dist/types/abi/{v310.d.ts → 310/generated.d.ts} +0 -0
|
@@ -1,30 +1,18 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
readonly type: "
|
|
3
|
-
readonly name: "componentAddressByType";
|
|
1
|
+
export declare const withdrawalCompressorAbi: readonly [{
|
|
2
|
+
readonly type: "constructor";
|
|
4
3
|
readonly inputs: readonly [{
|
|
5
|
-
readonly name: "";
|
|
6
|
-
readonly type: "
|
|
7
|
-
readonly internalType: "
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
readonly name: "";
|
|
4
|
+
readonly name: "_owner";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
readonly internalType: "address";
|
|
7
|
+
}, {
|
|
8
|
+
readonly name: "addressProvider_";
|
|
11
9
|
readonly type: "address";
|
|
12
10
|
readonly internalType: "address";
|
|
13
11
|
}];
|
|
14
|
-
readonly stateMutability: "
|
|
15
|
-
}, {
|
|
16
|
-
readonly type: "function";
|
|
17
|
-
readonly name: "contractType";
|
|
18
|
-
readonly inputs: readonly [];
|
|
19
|
-
readonly outputs: readonly [{
|
|
20
|
-
readonly name: "";
|
|
21
|
-
readonly type: "bytes32";
|
|
22
|
-
readonly internalType: "bytes32";
|
|
23
|
-
}];
|
|
24
|
-
readonly stateMutability: "view";
|
|
12
|
+
readonly stateMutability: "nonpayable";
|
|
25
13
|
}, {
|
|
26
14
|
readonly type: "function";
|
|
27
|
-
readonly name: "
|
|
15
|
+
readonly name: "addressProvider";
|
|
28
16
|
readonly inputs: readonly [];
|
|
29
17
|
readonly outputs: readonly [{
|
|
30
18
|
readonly name: "";
|
|
@@ -34,247 +22,197 @@ export declare const iGearboxRouterV310Abi: readonly [{
|
|
|
34
22
|
readonly stateMutability: "view";
|
|
35
23
|
}, {
|
|
36
24
|
readonly type: "function";
|
|
37
|
-
readonly name: "
|
|
25
|
+
readonly name: "compressorTypeToCompressor";
|
|
38
26
|
readonly inputs: readonly [{
|
|
39
|
-
readonly name: "
|
|
40
|
-
readonly type: "
|
|
41
|
-
readonly internalType: "
|
|
27
|
+
readonly name: "";
|
|
28
|
+
readonly type: "bytes32";
|
|
29
|
+
readonly internalType: "bytes32";
|
|
42
30
|
}];
|
|
43
31
|
readonly outputs: readonly [{
|
|
44
32
|
readonly name: "";
|
|
45
|
-
readonly type: "
|
|
46
|
-
readonly internalType: "
|
|
33
|
+
readonly type: "address";
|
|
34
|
+
readonly internalType: "address";
|
|
47
35
|
}];
|
|
48
36
|
readonly stateMutability: "view";
|
|
49
37
|
}, {
|
|
50
38
|
readonly type: "function";
|
|
51
|
-
readonly name: "
|
|
39
|
+
readonly name: "contractType";
|
|
52
40
|
readonly inputs: readonly [];
|
|
53
41
|
readonly outputs: readonly [{
|
|
54
42
|
readonly name: "";
|
|
55
|
-
readonly type: "bytes32
|
|
56
|
-
readonly internalType: "bytes32
|
|
43
|
+
readonly type: "bytes32";
|
|
44
|
+
readonly internalType: "bytes32";
|
|
57
45
|
}];
|
|
58
46
|
readonly stateMutability: "view";
|
|
59
47
|
}, {
|
|
60
48
|
readonly type: "function";
|
|
61
|
-
readonly name: "
|
|
49
|
+
readonly name: "getCurrentWithdrawals";
|
|
62
50
|
readonly inputs: readonly [{
|
|
63
51
|
readonly name: "creditAccount";
|
|
64
52
|
readonly type: "address";
|
|
65
53
|
readonly internalType: "address";
|
|
66
|
-
}
|
|
67
|
-
|
|
54
|
+
}];
|
|
55
|
+
readonly outputs: readonly [{
|
|
56
|
+
readonly name: "";
|
|
68
57
|
readonly type: "tuple[]";
|
|
69
|
-
readonly internalType: "struct
|
|
58
|
+
readonly internalType: "struct ClaimableWithdrawal[]";
|
|
70
59
|
readonly components: readonly [{
|
|
71
60
|
readonly name: "token";
|
|
72
61
|
readonly type: "address";
|
|
73
62
|
readonly internalType: "address";
|
|
74
63
|
}, {
|
|
75
|
-
readonly name: "
|
|
76
|
-
readonly type: "
|
|
77
|
-
readonly internalType: "
|
|
64
|
+
readonly name: "withdrawalPhantomToken";
|
|
65
|
+
readonly type: "address";
|
|
66
|
+
readonly internalType: "address";
|
|
78
67
|
}, {
|
|
79
|
-
readonly name: "
|
|
68
|
+
readonly name: "withdrawalTokenSpent";
|
|
80
69
|
readonly type: "uint256";
|
|
81
70
|
readonly internalType: "uint256";
|
|
82
71
|
}, {
|
|
83
|
-
readonly name: "
|
|
84
|
-
readonly type: "
|
|
85
|
-
readonly internalType: "
|
|
72
|
+
readonly name: "outputs";
|
|
73
|
+
readonly type: "tuple[]";
|
|
74
|
+
readonly internalType: "struct WithdrawalOutput[]";
|
|
75
|
+
readonly components: readonly [{
|
|
76
|
+
readonly name: "token";
|
|
77
|
+
readonly type: "address";
|
|
78
|
+
readonly internalType: "address";
|
|
79
|
+
}, {
|
|
80
|
+
readonly name: "isDelayed";
|
|
81
|
+
readonly type: "bool";
|
|
82
|
+
readonly internalType: "bool";
|
|
83
|
+
}, {
|
|
84
|
+
readonly name: "amount";
|
|
85
|
+
readonly type: "uint256";
|
|
86
|
+
readonly internalType: "uint256";
|
|
87
|
+
}];
|
|
86
88
|
}, {
|
|
87
|
-
readonly name: "
|
|
88
|
-
readonly type: "
|
|
89
|
-
readonly internalType: "
|
|
89
|
+
readonly name: "claimCalls";
|
|
90
|
+
readonly type: "tuple[]";
|
|
91
|
+
readonly internalType: "struct MultiCall[]";
|
|
92
|
+
readonly components: readonly [{
|
|
93
|
+
readonly name: "target";
|
|
94
|
+
readonly type: "address";
|
|
95
|
+
readonly internalType: "address";
|
|
96
|
+
}, {
|
|
97
|
+
readonly name: "callData";
|
|
98
|
+
readonly type: "bytes";
|
|
99
|
+
readonly internalType: "bytes";
|
|
100
|
+
}];
|
|
90
101
|
}];
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
readonly name: "calls";
|
|
102
|
+
}, {
|
|
103
|
+
readonly name: "";
|
|
94
104
|
readonly type: "tuple[]";
|
|
95
|
-
readonly internalType: "struct
|
|
105
|
+
readonly internalType: "struct PendingWithdrawal[]";
|
|
96
106
|
readonly components: readonly [{
|
|
97
|
-
readonly name: "
|
|
107
|
+
readonly name: "token";
|
|
108
|
+
readonly type: "address";
|
|
109
|
+
readonly internalType: "address";
|
|
110
|
+
}, {
|
|
111
|
+
readonly name: "withdrawalPhantomToken";
|
|
98
112
|
readonly type: "address";
|
|
99
113
|
readonly internalType: "address";
|
|
100
114
|
}, {
|
|
101
|
-
readonly name: "
|
|
102
|
-
readonly type: "
|
|
103
|
-
readonly internalType: "
|
|
115
|
+
readonly name: "expectedOutputs";
|
|
116
|
+
readonly type: "tuple[]";
|
|
117
|
+
readonly internalType: "struct WithdrawalOutput[]";
|
|
118
|
+
readonly components: readonly [{
|
|
119
|
+
readonly name: "token";
|
|
120
|
+
readonly type: "address";
|
|
121
|
+
readonly internalType: "address";
|
|
122
|
+
}, {
|
|
123
|
+
readonly name: "isDelayed";
|
|
124
|
+
readonly type: "bool";
|
|
125
|
+
readonly internalType: "bool";
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "amount";
|
|
128
|
+
readonly type: "uint256";
|
|
129
|
+
readonly internalType: "uint256";
|
|
130
|
+
}];
|
|
131
|
+
}, {
|
|
132
|
+
readonly name: "claimableAt";
|
|
133
|
+
readonly type: "uint256";
|
|
134
|
+
readonly internalType: "uint256";
|
|
104
135
|
}];
|
|
105
136
|
}];
|
|
106
|
-
readonly stateMutability: "
|
|
137
|
+
readonly stateMutability: "view";
|
|
107
138
|
}, {
|
|
108
139
|
readonly type: "function";
|
|
109
|
-
readonly name: "
|
|
140
|
+
readonly name: "getWithdrawableAssets";
|
|
110
141
|
readonly inputs: readonly [{
|
|
111
|
-
readonly name: "
|
|
112
|
-
readonly type: "address";
|
|
113
|
-
readonly internalType: "address";
|
|
114
|
-
}, {
|
|
115
|
-
readonly name: "target";
|
|
142
|
+
readonly name: "creditManager";
|
|
116
143
|
readonly type: "address";
|
|
117
144
|
readonly internalType: "address";
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
readonly
|
|
121
|
-
readonly internalType: "uint256";
|
|
122
|
-
}, {
|
|
123
|
-
readonly name: "tData";
|
|
145
|
+
}];
|
|
146
|
+
readonly outputs: readonly [{
|
|
147
|
+
readonly name: "";
|
|
124
148
|
readonly type: "tuple[]";
|
|
125
|
-
readonly internalType: "struct
|
|
149
|
+
readonly internalType: "struct WithdrawableAsset[]";
|
|
126
150
|
readonly components: readonly [{
|
|
127
151
|
readonly name: "token";
|
|
128
152
|
readonly type: "address";
|
|
129
153
|
readonly internalType: "address";
|
|
130
154
|
}, {
|
|
131
|
-
readonly name: "
|
|
132
|
-
readonly type: "
|
|
133
|
-
readonly internalType: "
|
|
134
|
-
}, {
|
|
135
|
-
readonly name: "leftoverBalance";
|
|
136
|
-
readonly type: "uint256";
|
|
137
|
-
readonly internalType: "uint256";
|
|
138
|
-
}, {
|
|
139
|
-
readonly name: "numSplits";
|
|
140
|
-
readonly type: "uint256";
|
|
141
|
-
readonly internalType: "uint256";
|
|
155
|
+
readonly name: "withdrawalPhantomToken";
|
|
156
|
+
readonly type: "address";
|
|
157
|
+
readonly internalType: "address";
|
|
142
158
|
}, {
|
|
143
|
-
readonly name: "
|
|
144
|
-
readonly type: "
|
|
145
|
-
readonly internalType: "
|
|
146
|
-
}];
|
|
147
|
-
}];
|
|
148
|
-
readonly outputs: readonly [{
|
|
149
|
-
readonly name: "";
|
|
150
|
-
readonly type: "tuple";
|
|
151
|
-
readonly internalType: "struct RouterResult";
|
|
152
|
-
readonly components: readonly [{
|
|
153
|
-
readonly name: "amount";
|
|
154
|
-
readonly type: "uint256";
|
|
155
|
-
readonly internalType: "uint256";
|
|
159
|
+
readonly name: "underlying";
|
|
160
|
+
readonly type: "address";
|
|
161
|
+
readonly internalType: "address";
|
|
156
162
|
}, {
|
|
157
|
-
readonly name: "
|
|
163
|
+
readonly name: "withdrawalLength";
|
|
158
164
|
readonly type: "uint256";
|
|
159
165
|
readonly internalType: "uint256";
|
|
160
|
-
}, {
|
|
161
|
-
readonly name: "calls";
|
|
162
|
-
readonly type: "tuple[]";
|
|
163
|
-
readonly internalType: "struct MultiCall[]";
|
|
164
|
-
readonly components: readonly [{
|
|
165
|
-
readonly name: "target";
|
|
166
|
-
readonly type: "address";
|
|
167
|
-
readonly internalType: "address";
|
|
168
|
-
}, {
|
|
169
|
-
readonly name: "callData";
|
|
170
|
-
readonly type: "bytes";
|
|
171
|
-
readonly internalType: "bytes";
|
|
172
|
-
}];
|
|
173
166
|
}];
|
|
174
167
|
}];
|
|
175
|
-
readonly stateMutability: "
|
|
168
|
+
readonly stateMutability: "view";
|
|
176
169
|
}, {
|
|
177
170
|
readonly type: "function";
|
|
178
|
-
readonly name: "
|
|
171
|
+
readonly name: "getWithdrawalRequestResult";
|
|
179
172
|
readonly inputs: readonly [{
|
|
180
173
|
readonly name: "creditAccount";
|
|
181
174
|
readonly type: "address";
|
|
182
175
|
readonly internalType: "address";
|
|
183
176
|
}, {
|
|
184
|
-
readonly name: "
|
|
177
|
+
readonly name: "token";
|
|
185
178
|
readonly type: "address";
|
|
186
179
|
readonly internalType: "address";
|
|
187
180
|
}, {
|
|
188
181
|
readonly name: "amount";
|
|
189
182
|
readonly type: "uint256";
|
|
190
183
|
readonly internalType: "uint256";
|
|
191
|
-
}, {
|
|
192
|
-
readonly name: "target";
|
|
193
|
-
readonly type: "address";
|
|
194
|
-
readonly internalType: "address";
|
|
195
|
-
}, {
|
|
196
|
-
readonly name: "slippage";
|
|
197
|
-
readonly type: "uint256";
|
|
198
|
-
readonly internalType: "uint256";
|
|
199
|
-
}, {
|
|
200
|
-
readonly name: "numSplits";
|
|
201
|
-
readonly type: "uint256";
|
|
202
|
-
readonly internalType: "uint256";
|
|
203
184
|
}];
|
|
204
185
|
readonly outputs: readonly [{
|
|
205
|
-
readonly name: "";
|
|
186
|
+
readonly name: "withdrawal";
|
|
206
187
|
readonly type: "tuple";
|
|
207
|
-
readonly internalType: "struct
|
|
188
|
+
readonly internalType: "struct RequestableWithdrawal";
|
|
208
189
|
readonly components: readonly [{
|
|
209
|
-
readonly name: "
|
|
210
|
-
readonly type: "
|
|
211
|
-
readonly internalType: "
|
|
190
|
+
readonly name: "token";
|
|
191
|
+
readonly type: "address";
|
|
192
|
+
readonly internalType: "address";
|
|
212
193
|
}, {
|
|
213
|
-
readonly name: "
|
|
194
|
+
readonly name: "amountIn";
|
|
214
195
|
readonly type: "uint256";
|
|
215
196
|
readonly internalType: "uint256";
|
|
216
197
|
}, {
|
|
217
|
-
readonly name: "
|
|
198
|
+
readonly name: "outputs";
|
|
218
199
|
readonly type: "tuple[]";
|
|
219
|
-
readonly internalType: "struct
|
|
200
|
+
readonly internalType: "struct WithdrawalOutput[]";
|
|
220
201
|
readonly components: readonly [{
|
|
221
|
-
readonly name: "
|
|
202
|
+
readonly name: "token";
|
|
222
203
|
readonly type: "address";
|
|
223
204
|
readonly internalType: "address";
|
|
224
205
|
}, {
|
|
225
|
-
readonly name: "
|
|
226
|
-
readonly type: "
|
|
227
|
-
readonly internalType: "
|
|
206
|
+
readonly name: "isDelayed";
|
|
207
|
+
readonly type: "bool";
|
|
208
|
+
readonly internalType: "bool";
|
|
209
|
+
}, {
|
|
210
|
+
readonly name: "amount";
|
|
211
|
+
readonly type: "uint256";
|
|
212
|
+
readonly internalType: "uint256";
|
|
228
213
|
}];
|
|
229
|
-
}];
|
|
230
|
-
}];
|
|
231
|
-
readonly stateMutability: "nonpayable";
|
|
232
|
-
}, {
|
|
233
|
-
readonly type: "function";
|
|
234
|
-
readonly name: "routeOneToOneDiff";
|
|
235
|
-
readonly inputs: readonly [{
|
|
236
|
-
readonly name: "creditAccount";
|
|
237
|
-
readonly type: "address";
|
|
238
|
-
readonly internalType: "address";
|
|
239
|
-
}, {
|
|
240
|
-
readonly name: "tokenIn";
|
|
241
|
-
readonly type: "address";
|
|
242
|
-
readonly internalType: "address";
|
|
243
|
-
}, {
|
|
244
|
-
readonly name: "balance";
|
|
245
|
-
readonly type: "uint256";
|
|
246
|
-
readonly internalType: "uint256";
|
|
247
|
-
}, {
|
|
248
|
-
readonly name: "leftoverBalance";
|
|
249
|
-
readonly type: "uint256";
|
|
250
|
-
readonly internalType: "uint256";
|
|
251
|
-
}, {
|
|
252
|
-
readonly name: "target";
|
|
253
|
-
readonly type: "address";
|
|
254
|
-
readonly internalType: "address";
|
|
255
|
-
}, {
|
|
256
|
-
readonly name: "slippage";
|
|
257
|
-
readonly type: "uint256";
|
|
258
|
-
readonly internalType: "uint256";
|
|
259
|
-
}, {
|
|
260
|
-
readonly name: "numSplits";
|
|
261
|
-
readonly type: "uint256";
|
|
262
|
-
readonly internalType: "uint256";
|
|
263
|
-
}];
|
|
264
|
-
readonly outputs: readonly [{
|
|
265
|
-
readonly name: "";
|
|
266
|
-
readonly type: "tuple";
|
|
267
|
-
readonly internalType: "struct RouterResult";
|
|
268
|
-
readonly components: readonly [{
|
|
269
|
-
readonly name: "amount";
|
|
270
|
-
readonly type: "uint256";
|
|
271
|
-
readonly internalType: "uint256";
|
|
272
|
-
}, {
|
|
273
|
-
readonly name: "minAmount";
|
|
274
|
-
readonly type: "uint256";
|
|
275
|
-
readonly internalType: "uint256";
|
|
276
214
|
}, {
|
|
277
|
-
readonly name: "
|
|
215
|
+
readonly name: "requestCalls";
|
|
278
216
|
readonly type: "tuple[]";
|
|
279
217
|
readonly internalType: "struct MultiCall[]";
|
|
280
218
|
readonly components: readonly [{
|
|
@@ -286,77 +224,62 @@ export declare const iGearboxRouterV310Abi: readonly [{
|
|
|
286
224
|
readonly type: "bytes";
|
|
287
225
|
readonly internalType: "bytes";
|
|
288
226
|
}];
|
|
227
|
+
}, {
|
|
228
|
+
readonly name: "claimableAt";
|
|
229
|
+
readonly type: "uint256";
|
|
230
|
+
readonly internalType: "uint256";
|
|
289
231
|
}];
|
|
290
232
|
}];
|
|
233
|
+
readonly stateMutability: "view";
|
|
234
|
+
}, {
|
|
235
|
+
readonly type: "function";
|
|
236
|
+
readonly name: "owner";
|
|
237
|
+
readonly inputs: readonly [];
|
|
238
|
+
readonly outputs: readonly [{
|
|
239
|
+
readonly name: "";
|
|
240
|
+
readonly type: "address";
|
|
241
|
+
readonly internalType: "address";
|
|
242
|
+
}];
|
|
243
|
+
readonly stateMutability: "view";
|
|
244
|
+
}, {
|
|
245
|
+
readonly type: "function";
|
|
246
|
+
readonly name: "renounceOwnership";
|
|
247
|
+
readonly inputs: readonly [];
|
|
248
|
+
readonly outputs: readonly [];
|
|
291
249
|
readonly stateMutability: "nonpayable";
|
|
292
250
|
}, {
|
|
293
251
|
readonly type: "function";
|
|
294
|
-
readonly name: "
|
|
252
|
+
readonly name: "setSubcompressor";
|
|
295
253
|
readonly inputs: readonly [{
|
|
296
|
-
readonly name: "
|
|
254
|
+
readonly name: "subcompressor";
|
|
297
255
|
readonly type: "address";
|
|
298
256
|
readonly internalType: "address";
|
|
257
|
+
}];
|
|
258
|
+
readonly outputs: readonly [];
|
|
259
|
+
readonly stateMutability: "nonpayable";
|
|
260
|
+
}, {
|
|
261
|
+
readonly type: "function";
|
|
262
|
+
readonly name: "setWithdrawableTypeToCompressorType";
|
|
263
|
+
readonly inputs: readonly [{
|
|
264
|
+
readonly name: "withdrawableType";
|
|
265
|
+
readonly type: "bytes32";
|
|
266
|
+
readonly internalType: "bytes32";
|
|
299
267
|
}, {
|
|
300
|
-
readonly name: "
|
|
268
|
+
readonly name: "compressorType";
|
|
269
|
+
readonly type: "bytes32";
|
|
270
|
+
readonly internalType: "bytes32";
|
|
271
|
+
}];
|
|
272
|
+
readonly outputs: readonly [];
|
|
273
|
+
readonly stateMutability: "nonpayable";
|
|
274
|
+
}, {
|
|
275
|
+
readonly type: "function";
|
|
276
|
+
readonly name: "transferOwnership";
|
|
277
|
+
readonly inputs: readonly [{
|
|
278
|
+
readonly name: "newOwner";
|
|
301
279
|
readonly type: "address";
|
|
302
280
|
readonly internalType: "address";
|
|
303
|
-
}, {
|
|
304
|
-
readonly name: "slippage";
|
|
305
|
-
readonly type: "uint256";
|
|
306
|
-
readonly internalType: "uint256";
|
|
307
|
-
}, {
|
|
308
|
-
readonly name: "tData";
|
|
309
|
-
readonly type: "tuple[]";
|
|
310
|
-
readonly internalType: "struct TokenData[]";
|
|
311
|
-
readonly components: readonly [{
|
|
312
|
-
readonly name: "token";
|
|
313
|
-
readonly type: "address";
|
|
314
|
-
readonly internalType: "address";
|
|
315
|
-
}, {
|
|
316
|
-
readonly name: "balance";
|
|
317
|
-
readonly type: "uint256";
|
|
318
|
-
readonly internalType: "uint256";
|
|
319
|
-
}, {
|
|
320
|
-
readonly name: "leftoverBalance";
|
|
321
|
-
readonly type: "uint256";
|
|
322
|
-
readonly internalType: "uint256";
|
|
323
|
-
}, {
|
|
324
|
-
readonly name: "numSplits";
|
|
325
|
-
readonly type: "uint256";
|
|
326
|
-
readonly internalType: "uint256";
|
|
327
|
-
}, {
|
|
328
|
-
readonly name: "claimRewards";
|
|
329
|
-
readonly type: "bool";
|
|
330
|
-
readonly internalType: "bool";
|
|
331
|
-
}];
|
|
332
|
-
}];
|
|
333
|
-
readonly outputs: readonly [{
|
|
334
|
-
readonly name: "";
|
|
335
|
-
readonly type: "tuple";
|
|
336
|
-
readonly internalType: "struct RouterResult";
|
|
337
|
-
readonly components: readonly [{
|
|
338
|
-
readonly name: "amount";
|
|
339
|
-
readonly type: "uint256";
|
|
340
|
-
readonly internalType: "uint256";
|
|
341
|
-
}, {
|
|
342
|
-
readonly name: "minAmount";
|
|
343
|
-
readonly type: "uint256";
|
|
344
|
-
readonly internalType: "uint256";
|
|
345
|
-
}, {
|
|
346
|
-
readonly name: "calls";
|
|
347
|
-
readonly type: "tuple[]";
|
|
348
|
-
readonly internalType: "struct MultiCall[]";
|
|
349
|
-
readonly components: readonly [{
|
|
350
|
-
readonly name: "target";
|
|
351
|
-
readonly type: "address";
|
|
352
|
-
readonly internalType: "address";
|
|
353
|
-
}, {
|
|
354
|
-
readonly name: "callData";
|
|
355
|
-
readonly type: "bytes";
|
|
356
|
-
readonly internalType: "bytes";
|
|
357
|
-
}];
|
|
358
|
-
}];
|
|
359
281
|
}];
|
|
282
|
+
readonly outputs: readonly [];
|
|
360
283
|
readonly stateMutability: "nonpayable";
|
|
361
284
|
}, {
|
|
362
285
|
readonly type: "function";
|
|
@@ -369,30 +292,29 @@ export declare const iGearboxRouterV310Abi: readonly [{
|
|
|
369
292
|
}];
|
|
370
293
|
readonly stateMutability: "view";
|
|
371
294
|
}, {
|
|
372
|
-
readonly type: "
|
|
373
|
-
readonly name: "
|
|
295
|
+
readonly type: "function";
|
|
296
|
+
readonly name: "withdrawableTypeToCompressorType";
|
|
374
297
|
readonly inputs: readonly [{
|
|
375
298
|
readonly name: "";
|
|
376
299
|
readonly type: "bytes32";
|
|
377
|
-
readonly indexed: true;
|
|
378
300
|
readonly internalType: "bytes32";
|
|
379
|
-
}
|
|
301
|
+
}];
|
|
302
|
+
readonly outputs: readonly [{
|
|
380
303
|
readonly name: "";
|
|
381
|
-
readonly type: "
|
|
382
|
-
readonly
|
|
383
|
-
readonly internalType: "address";
|
|
384
|
-
}, {
|
|
385
|
-
readonly name: "version";
|
|
386
|
-
readonly type: "uint256";
|
|
387
|
-
readonly indexed: false;
|
|
388
|
-
readonly internalType: "uint256";
|
|
304
|
+
readonly type: "bytes32";
|
|
305
|
+
readonly internalType: "bytes32";
|
|
389
306
|
}];
|
|
390
|
-
readonly
|
|
307
|
+
readonly stateMutability: "view";
|
|
391
308
|
}, {
|
|
392
309
|
readonly type: "event";
|
|
393
|
-
readonly name: "
|
|
310
|
+
readonly name: "OwnershipTransferred";
|
|
394
311
|
readonly inputs: readonly [{
|
|
395
|
-
readonly name: "";
|
|
312
|
+
readonly name: "previousOwner";
|
|
313
|
+
readonly type: "address";
|
|
314
|
+
readonly indexed: true;
|
|
315
|
+
readonly internalType: "address";
|
|
316
|
+
}, {
|
|
317
|
+
readonly name: "newOwner";
|
|
396
318
|
readonly type: "address";
|
|
397
319
|
readonly indexed: true;
|
|
398
320
|
readonly internalType: "address";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const batchesChainAbi: readonly [{
|
|
2
|
+
readonly type: "function";
|
|
3
|
+
readonly name: "contractType";
|
|
4
|
+
readonly inputs: readonly [];
|
|
5
|
+
readonly outputs: readonly [{
|
|
6
|
+
readonly name: "";
|
|
7
|
+
readonly type: "bytes32";
|
|
8
|
+
readonly internalType: "bytes32";
|
|
9
|
+
}];
|
|
10
|
+
readonly stateMutability: "view";
|
|
11
|
+
}, {
|
|
12
|
+
readonly type: "function";
|
|
13
|
+
readonly name: "revertIfQueued";
|
|
14
|
+
readonly inputs: readonly [{
|
|
15
|
+
readonly name: "txHash";
|
|
16
|
+
readonly type: "bytes32";
|
|
17
|
+
readonly internalType: "bytes32";
|
|
18
|
+
}];
|
|
19
|
+
readonly outputs: readonly [];
|
|
20
|
+
readonly stateMutability: "view";
|
|
21
|
+
}, {
|
|
22
|
+
readonly type: "function";
|
|
23
|
+
readonly name: "version";
|
|
24
|
+
readonly inputs: readonly [];
|
|
25
|
+
readonly outputs: readonly [{
|
|
26
|
+
readonly name: "";
|
|
27
|
+
readonly type: "uint256";
|
|
28
|
+
readonly internalType: "uint256";
|
|
29
|
+
}];
|
|
30
|
+
readonly stateMutability: "view";
|
|
31
|
+
}];
|