@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
|
@@ -0,0 +1,881 @@
|
|
|
1
|
+
export declare const gearboxRouterAbi: readonly [{
|
|
2
|
+
readonly type: "constructor";
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly name: "owner";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
readonly internalType: "address";
|
|
7
|
+
}];
|
|
8
|
+
readonly stateMutability: "nonpayable";
|
|
9
|
+
}, {
|
|
10
|
+
readonly type: "function";
|
|
11
|
+
readonly name: "componentAddressByType";
|
|
12
|
+
readonly inputs: readonly [{
|
|
13
|
+
readonly name: "";
|
|
14
|
+
readonly type: "bytes32";
|
|
15
|
+
readonly internalType: "bytes32";
|
|
16
|
+
}];
|
|
17
|
+
readonly outputs: readonly [{
|
|
18
|
+
readonly name: "";
|
|
19
|
+
readonly type: "address";
|
|
20
|
+
readonly internalType: "address";
|
|
21
|
+
}];
|
|
22
|
+
readonly stateMutability: "view";
|
|
23
|
+
}, {
|
|
24
|
+
readonly type: "function";
|
|
25
|
+
readonly name: "contractType";
|
|
26
|
+
readonly inputs: readonly [];
|
|
27
|
+
readonly outputs: readonly [{
|
|
28
|
+
readonly name: "";
|
|
29
|
+
readonly type: "bytes32";
|
|
30
|
+
readonly internalType: "bytes32";
|
|
31
|
+
}];
|
|
32
|
+
readonly stateMutability: "view";
|
|
33
|
+
}, {
|
|
34
|
+
readonly type: "function";
|
|
35
|
+
readonly name: "createOpenStrategyPathTask";
|
|
36
|
+
readonly inputs: readonly [{
|
|
37
|
+
readonly name: "creditManager";
|
|
38
|
+
readonly type: "address";
|
|
39
|
+
readonly internalType: "contract ICreditManagerV3";
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "target";
|
|
42
|
+
readonly type: "address";
|
|
43
|
+
readonly internalType: "address";
|
|
44
|
+
}, {
|
|
45
|
+
readonly name: "slippage";
|
|
46
|
+
readonly type: "uint256";
|
|
47
|
+
readonly internalType: "uint256";
|
|
48
|
+
}, {
|
|
49
|
+
readonly name: "tData";
|
|
50
|
+
readonly type: "tuple[]";
|
|
51
|
+
readonly internalType: "struct TokenData[]";
|
|
52
|
+
readonly components: readonly [{
|
|
53
|
+
readonly name: "token";
|
|
54
|
+
readonly type: "address";
|
|
55
|
+
readonly internalType: "address";
|
|
56
|
+
}, {
|
|
57
|
+
readonly name: "balance";
|
|
58
|
+
readonly type: "uint256";
|
|
59
|
+
readonly internalType: "uint256";
|
|
60
|
+
}, {
|
|
61
|
+
readonly name: "leftoverBalance";
|
|
62
|
+
readonly type: "uint256";
|
|
63
|
+
readonly internalType: "uint256";
|
|
64
|
+
}, {
|
|
65
|
+
readonly name: "numSplits";
|
|
66
|
+
readonly type: "uint256";
|
|
67
|
+
readonly internalType: "uint256";
|
|
68
|
+
}, {
|
|
69
|
+
readonly name: "claimRewards";
|
|
70
|
+
readonly type: "bool";
|
|
71
|
+
readonly internalType: "bool";
|
|
72
|
+
}];
|
|
73
|
+
}];
|
|
74
|
+
readonly outputs: readonly [{
|
|
75
|
+
readonly name: "task";
|
|
76
|
+
readonly type: "tuple";
|
|
77
|
+
readonly internalType: "struct StrategyPathTask";
|
|
78
|
+
readonly components: readonly [{
|
|
79
|
+
readonly name: "creditAccount";
|
|
80
|
+
readonly type: "address";
|
|
81
|
+
readonly internalType: "address";
|
|
82
|
+
}, {
|
|
83
|
+
readonly name: "graph";
|
|
84
|
+
readonly type: "tuple";
|
|
85
|
+
readonly internalType: "struct Graph";
|
|
86
|
+
readonly components: readonly [{
|
|
87
|
+
readonly name: "vertices";
|
|
88
|
+
readonly type: "tuple[]";
|
|
89
|
+
readonly internalType: "struct Vertex[]";
|
|
90
|
+
readonly components: readonly [{
|
|
91
|
+
readonly name: "token";
|
|
92
|
+
readonly type: "address";
|
|
93
|
+
readonly internalType: "address";
|
|
94
|
+
}, {
|
|
95
|
+
readonly name: "balance";
|
|
96
|
+
readonly type: "uint256";
|
|
97
|
+
readonly internalType: "uint256";
|
|
98
|
+
}, {
|
|
99
|
+
readonly name: "leftoverBalance";
|
|
100
|
+
readonly type: "uint256";
|
|
101
|
+
readonly internalType: "uint256";
|
|
102
|
+
}, {
|
|
103
|
+
readonly name: "numSplits";
|
|
104
|
+
readonly type: "uint256";
|
|
105
|
+
readonly internalType: "uint256";
|
|
106
|
+
}, {
|
|
107
|
+
readonly name: "currentOptimalEdge";
|
|
108
|
+
readonly type: "uint256";
|
|
109
|
+
readonly internalType: "uint256";
|
|
110
|
+
}];
|
|
111
|
+
}, {
|
|
112
|
+
readonly name: "edges";
|
|
113
|
+
readonly type: "tuple[]";
|
|
114
|
+
readonly internalType: "struct Edge[]";
|
|
115
|
+
readonly components: readonly [{
|
|
116
|
+
readonly name: "id";
|
|
117
|
+
readonly type: "uint256";
|
|
118
|
+
readonly internalType: "uint256";
|
|
119
|
+
}, {
|
|
120
|
+
readonly name: "tokenIn";
|
|
121
|
+
readonly type: "address";
|
|
122
|
+
readonly internalType: "address";
|
|
123
|
+
}, {
|
|
124
|
+
readonly name: "tokenOut";
|
|
125
|
+
readonly type: "address";
|
|
126
|
+
readonly internalType: "address";
|
|
127
|
+
}, {
|
|
128
|
+
readonly name: "adapter";
|
|
129
|
+
readonly type: "address";
|
|
130
|
+
readonly internalType: "address";
|
|
131
|
+
}, {
|
|
132
|
+
readonly name: "worker";
|
|
133
|
+
readonly type: "address";
|
|
134
|
+
readonly internalType: "address";
|
|
135
|
+
}, {
|
|
136
|
+
readonly name: "extraData";
|
|
137
|
+
readonly type: "bytes";
|
|
138
|
+
readonly internalType: "bytes";
|
|
139
|
+
}, {
|
|
140
|
+
readonly name: "amountInTotal";
|
|
141
|
+
readonly type: "uint256";
|
|
142
|
+
readonly internalType: "uint256";
|
|
143
|
+
}, {
|
|
144
|
+
readonly name: "amountOutTotal";
|
|
145
|
+
readonly type: "uint256";
|
|
146
|
+
readonly internalType: "uint256";
|
|
147
|
+
}, {
|
|
148
|
+
readonly name: "amountInCurrent";
|
|
149
|
+
readonly type: "uint256";
|
|
150
|
+
readonly internalType: "uint256";
|
|
151
|
+
}, {
|
|
152
|
+
readonly name: "amountOutCurrent";
|
|
153
|
+
readonly type: "uint256";
|
|
154
|
+
readonly internalType: "uint256";
|
|
155
|
+
}];
|
|
156
|
+
}];
|
|
157
|
+
}, {
|
|
158
|
+
readonly name: "target";
|
|
159
|
+
readonly type: "address";
|
|
160
|
+
readonly internalType: "address";
|
|
161
|
+
}, {
|
|
162
|
+
readonly name: "adapters";
|
|
163
|
+
readonly type: "address[]";
|
|
164
|
+
readonly internalType: "address[]";
|
|
165
|
+
}, {
|
|
166
|
+
readonly name: "slippage";
|
|
167
|
+
readonly type: "uint256";
|
|
168
|
+
readonly internalType: "uint256";
|
|
169
|
+
}, {
|
|
170
|
+
readonly name: "force";
|
|
171
|
+
readonly type: "bool";
|
|
172
|
+
readonly internalType: "bool";
|
|
173
|
+
}, {
|
|
174
|
+
readonly name: "initTargetBalance";
|
|
175
|
+
readonly type: "uint256";
|
|
176
|
+
readonly internalType: "uint256";
|
|
177
|
+
}, {
|
|
178
|
+
readonly name: "calls";
|
|
179
|
+
readonly type: "tuple[]";
|
|
180
|
+
readonly internalType: "struct MultiCall[]";
|
|
181
|
+
readonly components: readonly [{
|
|
182
|
+
readonly name: "target";
|
|
183
|
+
readonly type: "address";
|
|
184
|
+
readonly internalType: "address";
|
|
185
|
+
}, {
|
|
186
|
+
readonly name: "callData";
|
|
187
|
+
readonly type: "bytes";
|
|
188
|
+
readonly internalType: "bytes";
|
|
189
|
+
}];
|
|
190
|
+
}];
|
|
191
|
+
}];
|
|
192
|
+
readonly stateMutability: "nonpayable";
|
|
193
|
+
}, {
|
|
194
|
+
readonly type: "function";
|
|
195
|
+
readonly name: "createStrategyPathTask";
|
|
196
|
+
readonly inputs: readonly [{
|
|
197
|
+
readonly name: "creditAccount";
|
|
198
|
+
readonly type: "address";
|
|
199
|
+
readonly internalType: "address";
|
|
200
|
+
}, {
|
|
201
|
+
readonly name: "target";
|
|
202
|
+
readonly type: "address";
|
|
203
|
+
readonly internalType: "address";
|
|
204
|
+
}, {
|
|
205
|
+
readonly name: "slippage";
|
|
206
|
+
readonly type: "uint256";
|
|
207
|
+
readonly internalType: "uint256";
|
|
208
|
+
}, {
|
|
209
|
+
readonly name: "force";
|
|
210
|
+
readonly type: "bool";
|
|
211
|
+
readonly internalType: "bool";
|
|
212
|
+
}, {
|
|
213
|
+
readonly name: "tData";
|
|
214
|
+
readonly type: "tuple[]";
|
|
215
|
+
readonly internalType: "struct TokenData[]";
|
|
216
|
+
readonly components: readonly [{
|
|
217
|
+
readonly name: "token";
|
|
218
|
+
readonly type: "address";
|
|
219
|
+
readonly internalType: "address";
|
|
220
|
+
}, {
|
|
221
|
+
readonly name: "balance";
|
|
222
|
+
readonly type: "uint256";
|
|
223
|
+
readonly internalType: "uint256";
|
|
224
|
+
}, {
|
|
225
|
+
readonly name: "leftoverBalance";
|
|
226
|
+
readonly type: "uint256";
|
|
227
|
+
readonly internalType: "uint256";
|
|
228
|
+
}, {
|
|
229
|
+
readonly name: "numSplits";
|
|
230
|
+
readonly type: "uint256";
|
|
231
|
+
readonly internalType: "uint256";
|
|
232
|
+
}, {
|
|
233
|
+
readonly name: "claimRewards";
|
|
234
|
+
readonly type: "bool";
|
|
235
|
+
readonly internalType: "bool";
|
|
236
|
+
}];
|
|
237
|
+
}];
|
|
238
|
+
readonly outputs: readonly [{
|
|
239
|
+
readonly name: "task";
|
|
240
|
+
readonly type: "tuple";
|
|
241
|
+
readonly internalType: "struct StrategyPathTask";
|
|
242
|
+
readonly components: readonly [{
|
|
243
|
+
readonly name: "creditAccount";
|
|
244
|
+
readonly type: "address";
|
|
245
|
+
readonly internalType: "address";
|
|
246
|
+
}, {
|
|
247
|
+
readonly name: "graph";
|
|
248
|
+
readonly type: "tuple";
|
|
249
|
+
readonly internalType: "struct Graph";
|
|
250
|
+
readonly components: readonly [{
|
|
251
|
+
readonly name: "vertices";
|
|
252
|
+
readonly type: "tuple[]";
|
|
253
|
+
readonly internalType: "struct Vertex[]";
|
|
254
|
+
readonly components: readonly [{
|
|
255
|
+
readonly name: "token";
|
|
256
|
+
readonly type: "address";
|
|
257
|
+
readonly internalType: "address";
|
|
258
|
+
}, {
|
|
259
|
+
readonly name: "balance";
|
|
260
|
+
readonly type: "uint256";
|
|
261
|
+
readonly internalType: "uint256";
|
|
262
|
+
}, {
|
|
263
|
+
readonly name: "leftoverBalance";
|
|
264
|
+
readonly type: "uint256";
|
|
265
|
+
readonly internalType: "uint256";
|
|
266
|
+
}, {
|
|
267
|
+
readonly name: "numSplits";
|
|
268
|
+
readonly type: "uint256";
|
|
269
|
+
readonly internalType: "uint256";
|
|
270
|
+
}, {
|
|
271
|
+
readonly name: "currentOptimalEdge";
|
|
272
|
+
readonly type: "uint256";
|
|
273
|
+
readonly internalType: "uint256";
|
|
274
|
+
}];
|
|
275
|
+
}, {
|
|
276
|
+
readonly name: "edges";
|
|
277
|
+
readonly type: "tuple[]";
|
|
278
|
+
readonly internalType: "struct Edge[]";
|
|
279
|
+
readonly components: readonly [{
|
|
280
|
+
readonly name: "id";
|
|
281
|
+
readonly type: "uint256";
|
|
282
|
+
readonly internalType: "uint256";
|
|
283
|
+
}, {
|
|
284
|
+
readonly name: "tokenIn";
|
|
285
|
+
readonly type: "address";
|
|
286
|
+
readonly internalType: "address";
|
|
287
|
+
}, {
|
|
288
|
+
readonly name: "tokenOut";
|
|
289
|
+
readonly type: "address";
|
|
290
|
+
readonly internalType: "address";
|
|
291
|
+
}, {
|
|
292
|
+
readonly name: "adapter";
|
|
293
|
+
readonly type: "address";
|
|
294
|
+
readonly internalType: "address";
|
|
295
|
+
}, {
|
|
296
|
+
readonly name: "worker";
|
|
297
|
+
readonly type: "address";
|
|
298
|
+
readonly internalType: "address";
|
|
299
|
+
}, {
|
|
300
|
+
readonly name: "extraData";
|
|
301
|
+
readonly type: "bytes";
|
|
302
|
+
readonly internalType: "bytes";
|
|
303
|
+
}, {
|
|
304
|
+
readonly name: "amountInTotal";
|
|
305
|
+
readonly type: "uint256";
|
|
306
|
+
readonly internalType: "uint256";
|
|
307
|
+
}, {
|
|
308
|
+
readonly name: "amountOutTotal";
|
|
309
|
+
readonly type: "uint256";
|
|
310
|
+
readonly internalType: "uint256";
|
|
311
|
+
}, {
|
|
312
|
+
readonly name: "amountInCurrent";
|
|
313
|
+
readonly type: "uint256";
|
|
314
|
+
readonly internalType: "uint256";
|
|
315
|
+
}, {
|
|
316
|
+
readonly name: "amountOutCurrent";
|
|
317
|
+
readonly type: "uint256";
|
|
318
|
+
readonly internalType: "uint256";
|
|
319
|
+
}];
|
|
320
|
+
}];
|
|
321
|
+
}, {
|
|
322
|
+
readonly name: "target";
|
|
323
|
+
readonly type: "address";
|
|
324
|
+
readonly internalType: "address";
|
|
325
|
+
}, {
|
|
326
|
+
readonly name: "adapters";
|
|
327
|
+
readonly type: "address[]";
|
|
328
|
+
readonly internalType: "address[]";
|
|
329
|
+
}, {
|
|
330
|
+
readonly name: "slippage";
|
|
331
|
+
readonly type: "uint256";
|
|
332
|
+
readonly internalType: "uint256";
|
|
333
|
+
}, {
|
|
334
|
+
readonly name: "force";
|
|
335
|
+
readonly type: "bool";
|
|
336
|
+
readonly internalType: "bool";
|
|
337
|
+
}, {
|
|
338
|
+
readonly name: "initTargetBalance";
|
|
339
|
+
readonly type: "uint256";
|
|
340
|
+
readonly internalType: "uint256";
|
|
341
|
+
}, {
|
|
342
|
+
readonly name: "calls";
|
|
343
|
+
readonly type: "tuple[]";
|
|
344
|
+
readonly internalType: "struct MultiCall[]";
|
|
345
|
+
readonly components: readonly [{
|
|
346
|
+
readonly name: "target";
|
|
347
|
+
readonly type: "address";
|
|
348
|
+
readonly internalType: "address";
|
|
349
|
+
}, {
|
|
350
|
+
readonly name: "callData";
|
|
351
|
+
readonly type: "bytes";
|
|
352
|
+
readonly internalType: "bytes";
|
|
353
|
+
}];
|
|
354
|
+
}];
|
|
355
|
+
}];
|
|
356
|
+
readonly stateMutability: "nonpayable";
|
|
357
|
+
}, {
|
|
358
|
+
readonly type: "function";
|
|
359
|
+
readonly name: "futureRouter";
|
|
360
|
+
readonly inputs: readonly [];
|
|
361
|
+
readonly outputs: readonly [{
|
|
362
|
+
readonly name: "";
|
|
363
|
+
readonly type: "address";
|
|
364
|
+
readonly internalType: "address";
|
|
365
|
+
}];
|
|
366
|
+
readonly stateMutability: "view";
|
|
367
|
+
}, {
|
|
368
|
+
readonly type: "function";
|
|
369
|
+
readonly name: "getAdapters";
|
|
370
|
+
readonly inputs: readonly [{
|
|
371
|
+
readonly name: "creditManager";
|
|
372
|
+
readonly type: "address";
|
|
373
|
+
readonly internalType: "contract ICreditManagerV3";
|
|
374
|
+
}];
|
|
375
|
+
readonly outputs: readonly [{
|
|
376
|
+
readonly name: "result";
|
|
377
|
+
readonly type: "address[]";
|
|
378
|
+
readonly internalType: "address[]";
|
|
379
|
+
}];
|
|
380
|
+
readonly stateMutability: "view";
|
|
381
|
+
}, {
|
|
382
|
+
readonly type: "function";
|
|
383
|
+
readonly name: "getDefaultTokenData";
|
|
384
|
+
readonly inputs: readonly [{
|
|
385
|
+
readonly name: "creditAccount";
|
|
386
|
+
readonly type: "address";
|
|
387
|
+
readonly internalType: "address";
|
|
388
|
+
}];
|
|
389
|
+
readonly outputs: readonly [{
|
|
390
|
+
readonly name: "tData";
|
|
391
|
+
readonly type: "tuple[]";
|
|
392
|
+
readonly internalType: "struct TokenData[]";
|
|
393
|
+
readonly components: readonly [{
|
|
394
|
+
readonly name: "token";
|
|
395
|
+
readonly type: "address";
|
|
396
|
+
readonly internalType: "address";
|
|
397
|
+
}, {
|
|
398
|
+
readonly name: "balance";
|
|
399
|
+
readonly type: "uint256";
|
|
400
|
+
readonly internalType: "uint256";
|
|
401
|
+
}, {
|
|
402
|
+
readonly name: "leftoverBalance";
|
|
403
|
+
readonly type: "uint256";
|
|
404
|
+
readonly internalType: "uint256";
|
|
405
|
+
}, {
|
|
406
|
+
readonly name: "numSplits";
|
|
407
|
+
readonly type: "uint256";
|
|
408
|
+
readonly internalType: "uint256";
|
|
409
|
+
}, {
|
|
410
|
+
readonly name: "claimRewards";
|
|
411
|
+
readonly type: "bool";
|
|
412
|
+
readonly internalType: "bool";
|
|
413
|
+
}];
|
|
414
|
+
}];
|
|
415
|
+
readonly stateMutability: "view";
|
|
416
|
+
}, {
|
|
417
|
+
readonly type: "function";
|
|
418
|
+
readonly name: "isRouterConfigurator";
|
|
419
|
+
readonly inputs: readonly [{
|
|
420
|
+
readonly name: "account";
|
|
421
|
+
readonly type: "address";
|
|
422
|
+
readonly internalType: "address";
|
|
423
|
+
}];
|
|
424
|
+
readonly outputs: readonly [{
|
|
425
|
+
readonly name: "";
|
|
426
|
+
readonly type: "bool";
|
|
427
|
+
readonly internalType: "bool";
|
|
428
|
+
}];
|
|
429
|
+
readonly stateMutability: "view";
|
|
430
|
+
}, {
|
|
431
|
+
readonly type: "function";
|
|
432
|
+
readonly name: "knownComponentTypes";
|
|
433
|
+
readonly inputs: readonly [];
|
|
434
|
+
readonly outputs: readonly [{
|
|
435
|
+
readonly name: "knownTypes";
|
|
436
|
+
readonly type: "bytes32[]";
|
|
437
|
+
readonly internalType: "bytes32[]";
|
|
438
|
+
}];
|
|
439
|
+
readonly stateMutability: "view";
|
|
440
|
+
}, {
|
|
441
|
+
readonly type: "function";
|
|
442
|
+
readonly name: "migrateRouterComponents";
|
|
443
|
+
readonly inputs: readonly [{
|
|
444
|
+
readonly name: "_prevRouter";
|
|
445
|
+
readonly type: "address";
|
|
446
|
+
readonly internalType: "address";
|
|
447
|
+
}];
|
|
448
|
+
readonly outputs: readonly [];
|
|
449
|
+
readonly stateMutability: "nonpayable";
|
|
450
|
+
}, {
|
|
451
|
+
readonly type: "function";
|
|
452
|
+
readonly name: "owner";
|
|
453
|
+
readonly inputs: readonly [];
|
|
454
|
+
readonly outputs: readonly [{
|
|
455
|
+
readonly name: "";
|
|
456
|
+
readonly type: "address";
|
|
457
|
+
readonly internalType: "address";
|
|
458
|
+
}];
|
|
459
|
+
readonly stateMutability: "view";
|
|
460
|
+
}, {
|
|
461
|
+
readonly type: "function";
|
|
462
|
+
readonly name: "processClaims";
|
|
463
|
+
readonly inputs: readonly [{
|
|
464
|
+
readonly name: "creditAccount";
|
|
465
|
+
readonly type: "address";
|
|
466
|
+
readonly internalType: "address";
|
|
467
|
+
}, {
|
|
468
|
+
readonly name: "tData";
|
|
469
|
+
readonly type: "tuple[]";
|
|
470
|
+
readonly internalType: "struct TokenData[]";
|
|
471
|
+
readonly components: readonly [{
|
|
472
|
+
readonly name: "token";
|
|
473
|
+
readonly type: "address";
|
|
474
|
+
readonly internalType: "address";
|
|
475
|
+
}, {
|
|
476
|
+
readonly name: "balance";
|
|
477
|
+
readonly type: "uint256";
|
|
478
|
+
readonly internalType: "uint256";
|
|
479
|
+
}, {
|
|
480
|
+
readonly name: "leftoverBalance";
|
|
481
|
+
readonly type: "uint256";
|
|
482
|
+
readonly internalType: "uint256";
|
|
483
|
+
}, {
|
|
484
|
+
readonly name: "numSplits";
|
|
485
|
+
readonly type: "uint256";
|
|
486
|
+
readonly internalType: "uint256";
|
|
487
|
+
}, {
|
|
488
|
+
readonly name: "claimRewards";
|
|
489
|
+
readonly type: "bool";
|
|
490
|
+
readonly internalType: "bool";
|
|
491
|
+
}];
|
|
492
|
+
}];
|
|
493
|
+
readonly outputs: readonly [{
|
|
494
|
+
readonly name: "calls";
|
|
495
|
+
readonly type: "tuple[]";
|
|
496
|
+
readonly internalType: "struct MultiCall[]";
|
|
497
|
+
readonly components: readonly [{
|
|
498
|
+
readonly name: "target";
|
|
499
|
+
readonly type: "address";
|
|
500
|
+
readonly internalType: "address";
|
|
501
|
+
}, {
|
|
502
|
+
readonly name: "callData";
|
|
503
|
+
readonly type: "bytes";
|
|
504
|
+
readonly internalType: "bytes";
|
|
505
|
+
}];
|
|
506
|
+
}];
|
|
507
|
+
readonly stateMutability: "nonpayable";
|
|
508
|
+
}, {
|
|
509
|
+
readonly type: "function";
|
|
510
|
+
readonly name: "renounceOwnership";
|
|
511
|
+
readonly inputs: readonly [];
|
|
512
|
+
readonly outputs: readonly [];
|
|
513
|
+
readonly stateMutability: "nonpayable";
|
|
514
|
+
}, {
|
|
515
|
+
readonly type: "function";
|
|
516
|
+
readonly name: "routeManyToOne";
|
|
517
|
+
readonly inputs: readonly [{
|
|
518
|
+
readonly name: "creditAccount";
|
|
519
|
+
readonly type: "address";
|
|
520
|
+
readonly internalType: "address";
|
|
521
|
+
}, {
|
|
522
|
+
readonly name: "target";
|
|
523
|
+
readonly type: "address";
|
|
524
|
+
readonly internalType: "address";
|
|
525
|
+
}, {
|
|
526
|
+
readonly name: "slippage";
|
|
527
|
+
readonly type: "uint256";
|
|
528
|
+
readonly internalType: "uint256";
|
|
529
|
+
}, {
|
|
530
|
+
readonly name: "tData";
|
|
531
|
+
readonly type: "tuple[]";
|
|
532
|
+
readonly internalType: "struct TokenData[]";
|
|
533
|
+
readonly components: readonly [{
|
|
534
|
+
readonly name: "token";
|
|
535
|
+
readonly type: "address";
|
|
536
|
+
readonly internalType: "address";
|
|
537
|
+
}, {
|
|
538
|
+
readonly name: "balance";
|
|
539
|
+
readonly type: "uint256";
|
|
540
|
+
readonly internalType: "uint256";
|
|
541
|
+
}, {
|
|
542
|
+
readonly name: "leftoverBalance";
|
|
543
|
+
readonly type: "uint256";
|
|
544
|
+
readonly internalType: "uint256";
|
|
545
|
+
}, {
|
|
546
|
+
readonly name: "numSplits";
|
|
547
|
+
readonly type: "uint256";
|
|
548
|
+
readonly internalType: "uint256";
|
|
549
|
+
}, {
|
|
550
|
+
readonly name: "claimRewards";
|
|
551
|
+
readonly type: "bool";
|
|
552
|
+
readonly internalType: "bool";
|
|
553
|
+
}];
|
|
554
|
+
}];
|
|
555
|
+
readonly outputs: readonly [{
|
|
556
|
+
readonly name: "";
|
|
557
|
+
readonly type: "tuple";
|
|
558
|
+
readonly internalType: "struct RouterResult";
|
|
559
|
+
readonly components: readonly [{
|
|
560
|
+
readonly name: "amount";
|
|
561
|
+
readonly type: "uint256";
|
|
562
|
+
readonly internalType: "uint256";
|
|
563
|
+
}, {
|
|
564
|
+
readonly name: "minAmount";
|
|
565
|
+
readonly type: "uint256";
|
|
566
|
+
readonly internalType: "uint256";
|
|
567
|
+
}, {
|
|
568
|
+
readonly name: "calls";
|
|
569
|
+
readonly type: "tuple[]";
|
|
570
|
+
readonly internalType: "struct MultiCall[]";
|
|
571
|
+
readonly components: readonly [{
|
|
572
|
+
readonly name: "target";
|
|
573
|
+
readonly type: "address";
|
|
574
|
+
readonly internalType: "address";
|
|
575
|
+
}, {
|
|
576
|
+
readonly name: "callData";
|
|
577
|
+
readonly type: "bytes";
|
|
578
|
+
readonly internalType: "bytes";
|
|
579
|
+
}];
|
|
580
|
+
}];
|
|
581
|
+
}];
|
|
582
|
+
readonly stateMutability: "nonpayable";
|
|
583
|
+
}, {
|
|
584
|
+
readonly type: "function";
|
|
585
|
+
readonly name: "routeOneToOne";
|
|
586
|
+
readonly inputs: readonly [{
|
|
587
|
+
readonly name: "creditAccount";
|
|
588
|
+
readonly type: "address";
|
|
589
|
+
readonly internalType: "address";
|
|
590
|
+
}, {
|
|
591
|
+
readonly name: "tokenIn";
|
|
592
|
+
readonly type: "address";
|
|
593
|
+
readonly internalType: "address";
|
|
594
|
+
}, {
|
|
595
|
+
readonly name: "amount";
|
|
596
|
+
readonly type: "uint256";
|
|
597
|
+
readonly internalType: "uint256";
|
|
598
|
+
}, {
|
|
599
|
+
readonly name: "target";
|
|
600
|
+
readonly type: "address";
|
|
601
|
+
readonly internalType: "address";
|
|
602
|
+
}, {
|
|
603
|
+
readonly name: "slippage";
|
|
604
|
+
readonly type: "uint256";
|
|
605
|
+
readonly internalType: "uint256";
|
|
606
|
+
}, {
|
|
607
|
+
readonly name: "numSplits";
|
|
608
|
+
readonly type: "uint256";
|
|
609
|
+
readonly internalType: "uint256";
|
|
610
|
+
}];
|
|
611
|
+
readonly outputs: readonly [{
|
|
612
|
+
readonly name: "";
|
|
613
|
+
readonly type: "tuple";
|
|
614
|
+
readonly internalType: "struct RouterResult";
|
|
615
|
+
readonly components: readonly [{
|
|
616
|
+
readonly name: "amount";
|
|
617
|
+
readonly type: "uint256";
|
|
618
|
+
readonly internalType: "uint256";
|
|
619
|
+
}, {
|
|
620
|
+
readonly name: "minAmount";
|
|
621
|
+
readonly type: "uint256";
|
|
622
|
+
readonly internalType: "uint256";
|
|
623
|
+
}, {
|
|
624
|
+
readonly name: "calls";
|
|
625
|
+
readonly type: "tuple[]";
|
|
626
|
+
readonly internalType: "struct MultiCall[]";
|
|
627
|
+
readonly components: readonly [{
|
|
628
|
+
readonly name: "target";
|
|
629
|
+
readonly type: "address";
|
|
630
|
+
readonly internalType: "address";
|
|
631
|
+
}, {
|
|
632
|
+
readonly name: "callData";
|
|
633
|
+
readonly type: "bytes";
|
|
634
|
+
readonly internalType: "bytes";
|
|
635
|
+
}];
|
|
636
|
+
}];
|
|
637
|
+
}];
|
|
638
|
+
readonly stateMutability: "nonpayable";
|
|
639
|
+
}, {
|
|
640
|
+
readonly type: "function";
|
|
641
|
+
readonly name: "routeOneToOneDiff";
|
|
642
|
+
readonly inputs: readonly [{
|
|
643
|
+
readonly name: "creditAccount";
|
|
644
|
+
readonly type: "address";
|
|
645
|
+
readonly internalType: "address";
|
|
646
|
+
}, {
|
|
647
|
+
readonly name: "tokenIn";
|
|
648
|
+
readonly type: "address";
|
|
649
|
+
readonly internalType: "address";
|
|
650
|
+
}, {
|
|
651
|
+
readonly name: "balance";
|
|
652
|
+
readonly type: "uint256";
|
|
653
|
+
readonly internalType: "uint256";
|
|
654
|
+
}, {
|
|
655
|
+
readonly name: "leftoverBalance";
|
|
656
|
+
readonly type: "uint256";
|
|
657
|
+
readonly internalType: "uint256";
|
|
658
|
+
}, {
|
|
659
|
+
readonly name: "target";
|
|
660
|
+
readonly type: "address";
|
|
661
|
+
readonly internalType: "address";
|
|
662
|
+
}, {
|
|
663
|
+
readonly name: "slippage";
|
|
664
|
+
readonly type: "uint256";
|
|
665
|
+
readonly internalType: "uint256";
|
|
666
|
+
}, {
|
|
667
|
+
readonly name: "numSplits";
|
|
668
|
+
readonly type: "uint256";
|
|
669
|
+
readonly internalType: "uint256";
|
|
670
|
+
}];
|
|
671
|
+
readonly outputs: readonly [{
|
|
672
|
+
readonly name: "";
|
|
673
|
+
readonly type: "tuple";
|
|
674
|
+
readonly internalType: "struct RouterResult";
|
|
675
|
+
readonly components: readonly [{
|
|
676
|
+
readonly name: "amount";
|
|
677
|
+
readonly type: "uint256";
|
|
678
|
+
readonly internalType: "uint256";
|
|
679
|
+
}, {
|
|
680
|
+
readonly name: "minAmount";
|
|
681
|
+
readonly type: "uint256";
|
|
682
|
+
readonly internalType: "uint256";
|
|
683
|
+
}, {
|
|
684
|
+
readonly name: "calls";
|
|
685
|
+
readonly type: "tuple[]";
|
|
686
|
+
readonly internalType: "struct MultiCall[]";
|
|
687
|
+
readonly components: readonly [{
|
|
688
|
+
readonly name: "target";
|
|
689
|
+
readonly type: "address";
|
|
690
|
+
readonly internalType: "address";
|
|
691
|
+
}, {
|
|
692
|
+
readonly name: "callData";
|
|
693
|
+
readonly type: "bytes";
|
|
694
|
+
readonly internalType: "bytes";
|
|
695
|
+
}];
|
|
696
|
+
}];
|
|
697
|
+
}];
|
|
698
|
+
readonly stateMutability: "nonpayable";
|
|
699
|
+
}, {
|
|
700
|
+
readonly type: "function";
|
|
701
|
+
readonly name: "routeOpenManyToOne";
|
|
702
|
+
readonly inputs: readonly [{
|
|
703
|
+
readonly name: "creditManager";
|
|
704
|
+
readonly type: "address";
|
|
705
|
+
readonly internalType: "address";
|
|
706
|
+
}, {
|
|
707
|
+
readonly name: "target";
|
|
708
|
+
readonly type: "address";
|
|
709
|
+
readonly internalType: "address";
|
|
710
|
+
}, {
|
|
711
|
+
readonly name: "slippage";
|
|
712
|
+
readonly type: "uint256";
|
|
713
|
+
readonly internalType: "uint256";
|
|
714
|
+
}, {
|
|
715
|
+
readonly name: "tData";
|
|
716
|
+
readonly type: "tuple[]";
|
|
717
|
+
readonly internalType: "struct TokenData[]";
|
|
718
|
+
readonly components: readonly [{
|
|
719
|
+
readonly name: "token";
|
|
720
|
+
readonly type: "address";
|
|
721
|
+
readonly internalType: "address";
|
|
722
|
+
}, {
|
|
723
|
+
readonly name: "balance";
|
|
724
|
+
readonly type: "uint256";
|
|
725
|
+
readonly internalType: "uint256";
|
|
726
|
+
}, {
|
|
727
|
+
readonly name: "leftoverBalance";
|
|
728
|
+
readonly type: "uint256";
|
|
729
|
+
readonly internalType: "uint256";
|
|
730
|
+
}, {
|
|
731
|
+
readonly name: "numSplits";
|
|
732
|
+
readonly type: "uint256";
|
|
733
|
+
readonly internalType: "uint256";
|
|
734
|
+
}, {
|
|
735
|
+
readonly name: "claimRewards";
|
|
736
|
+
readonly type: "bool";
|
|
737
|
+
readonly internalType: "bool";
|
|
738
|
+
}];
|
|
739
|
+
}];
|
|
740
|
+
readonly outputs: readonly [{
|
|
741
|
+
readonly name: "";
|
|
742
|
+
readonly type: "tuple";
|
|
743
|
+
readonly internalType: "struct RouterResult";
|
|
744
|
+
readonly components: readonly [{
|
|
745
|
+
readonly name: "amount";
|
|
746
|
+
readonly type: "uint256";
|
|
747
|
+
readonly internalType: "uint256";
|
|
748
|
+
}, {
|
|
749
|
+
readonly name: "minAmount";
|
|
750
|
+
readonly type: "uint256";
|
|
751
|
+
readonly internalType: "uint256";
|
|
752
|
+
}, {
|
|
753
|
+
readonly name: "calls";
|
|
754
|
+
readonly type: "tuple[]";
|
|
755
|
+
readonly internalType: "struct MultiCall[]";
|
|
756
|
+
readonly components: readonly [{
|
|
757
|
+
readonly name: "target";
|
|
758
|
+
readonly type: "address";
|
|
759
|
+
readonly internalType: "address";
|
|
760
|
+
}, {
|
|
761
|
+
readonly name: "callData";
|
|
762
|
+
readonly type: "bytes";
|
|
763
|
+
readonly internalType: "bytes";
|
|
764
|
+
}];
|
|
765
|
+
}];
|
|
766
|
+
}];
|
|
767
|
+
readonly stateMutability: "nonpayable";
|
|
768
|
+
}, {
|
|
769
|
+
readonly type: "function";
|
|
770
|
+
readonly name: "routingManager";
|
|
771
|
+
readonly inputs: readonly [];
|
|
772
|
+
readonly outputs: readonly [{
|
|
773
|
+
readonly name: "";
|
|
774
|
+
readonly type: "address";
|
|
775
|
+
readonly internalType: "contract IRoutingManager";
|
|
776
|
+
}];
|
|
777
|
+
readonly stateMutability: "view";
|
|
778
|
+
}, {
|
|
779
|
+
readonly type: "function";
|
|
780
|
+
readonly name: "setFutureRouter";
|
|
781
|
+
readonly inputs: readonly [{
|
|
782
|
+
readonly name: "_futureRouter";
|
|
783
|
+
readonly type: "address";
|
|
784
|
+
readonly internalType: "address";
|
|
785
|
+
}];
|
|
786
|
+
readonly outputs: readonly [];
|
|
787
|
+
readonly stateMutability: "nonpayable";
|
|
788
|
+
}, {
|
|
789
|
+
readonly type: "function";
|
|
790
|
+
readonly name: "setPathComponent";
|
|
791
|
+
readonly inputs: readonly [{
|
|
792
|
+
readonly name: "componentAddress";
|
|
793
|
+
readonly type: "address";
|
|
794
|
+
readonly internalType: "address";
|
|
795
|
+
}];
|
|
796
|
+
readonly outputs: readonly [];
|
|
797
|
+
readonly stateMutability: "nonpayable";
|
|
798
|
+
}, {
|
|
799
|
+
readonly type: "function";
|
|
800
|
+
readonly name: "setPathComponentBatch";
|
|
801
|
+
readonly inputs: readonly [{
|
|
802
|
+
readonly name: "componentAddresses";
|
|
803
|
+
readonly type: "address[]";
|
|
804
|
+
readonly internalType: "address[]";
|
|
805
|
+
}];
|
|
806
|
+
readonly outputs: readonly [];
|
|
807
|
+
readonly stateMutability: "nonpayable";
|
|
808
|
+
}, {
|
|
809
|
+
readonly type: "function";
|
|
810
|
+
readonly name: "transferOwnership";
|
|
811
|
+
readonly inputs: readonly [{
|
|
812
|
+
readonly name: "newOwner";
|
|
813
|
+
readonly type: "address";
|
|
814
|
+
readonly internalType: "address";
|
|
815
|
+
}];
|
|
816
|
+
readonly outputs: readonly [];
|
|
817
|
+
readonly stateMutability: "nonpayable";
|
|
818
|
+
}, {
|
|
819
|
+
readonly type: "function";
|
|
820
|
+
readonly name: "version";
|
|
821
|
+
readonly inputs: readonly [];
|
|
822
|
+
readonly outputs: readonly [{
|
|
823
|
+
readonly name: "";
|
|
824
|
+
readonly type: "uint256";
|
|
825
|
+
readonly internalType: "uint256";
|
|
826
|
+
}];
|
|
827
|
+
readonly stateMutability: "view";
|
|
828
|
+
}, {
|
|
829
|
+
readonly type: "event";
|
|
830
|
+
readonly name: "OwnershipTransferred";
|
|
831
|
+
readonly inputs: readonly [{
|
|
832
|
+
readonly name: "previousOwner";
|
|
833
|
+
readonly type: "address";
|
|
834
|
+
readonly indexed: true;
|
|
835
|
+
readonly internalType: "address";
|
|
836
|
+
}, {
|
|
837
|
+
readonly name: "newOwner";
|
|
838
|
+
readonly type: "address";
|
|
839
|
+
readonly indexed: true;
|
|
840
|
+
readonly internalType: "address";
|
|
841
|
+
}];
|
|
842
|
+
readonly anonymous: false;
|
|
843
|
+
}, {
|
|
844
|
+
readonly type: "event";
|
|
845
|
+
readonly name: "RouterComponentUpdate";
|
|
846
|
+
readonly inputs: readonly [{
|
|
847
|
+
readonly name: "";
|
|
848
|
+
readonly type: "bytes32";
|
|
849
|
+
readonly indexed: true;
|
|
850
|
+
readonly internalType: "bytes32";
|
|
851
|
+
}, {
|
|
852
|
+
readonly name: "";
|
|
853
|
+
readonly type: "address";
|
|
854
|
+
readonly indexed: true;
|
|
855
|
+
readonly internalType: "address";
|
|
856
|
+
}, {
|
|
857
|
+
readonly name: "version";
|
|
858
|
+
readonly type: "uint256";
|
|
859
|
+
readonly indexed: false;
|
|
860
|
+
readonly internalType: "uint256";
|
|
861
|
+
}];
|
|
862
|
+
readonly anonymous: false;
|
|
863
|
+
}, {
|
|
864
|
+
readonly type: "event";
|
|
865
|
+
readonly name: "SetFutureRouter";
|
|
866
|
+
readonly inputs: readonly [{
|
|
867
|
+
readonly name: "";
|
|
868
|
+
readonly type: "address";
|
|
869
|
+
readonly indexed: true;
|
|
870
|
+
readonly internalType: "address";
|
|
871
|
+
}];
|
|
872
|
+
readonly anonymous: false;
|
|
873
|
+
}, {
|
|
874
|
+
readonly type: "error";
|
|
875
|
+
readonly name: "UnsupportedRouterComponent";
|
|
876
|
+
readonly inputs: readonly [{
|
|
877
|
+
readonly name: "";
|
|
878
|
+
readonly type: "address";
|
|
879
|
+
readonly internalType: "address";
|
|
880
|
+
}];
|
|
881
|
+
}];
|