@underscore-finance/sdk 1.0.11 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contracts/AaveV3.d.ts +603 -279
- package/dist/contracts/AaveV3.d.ts.map +1 -1
- package/dist/contracts/AaveV3.js +718 -331
- package/dist/contracts/AeroClassic.d.ts +4 -17
- package/dist/contracts/AeroClassic.d.ts.map +1 -1
- package/dist/contracts/AeroClassic.js +5 -24
- package/dist/contracts/AeroSlipstream.d.ts +4 -17
- package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
- package/dist/contracts/AeroSlipstream.js +5 -24
- package/dist/contracts/Appraiser.d.ts +4 -0
- package/dist/contracts/Appraiser.d.ts.map +1 -1
- package/dist/contracts/Appraiser.js +5 -1
- package/dist/contracts/CompoundV3.d.ts +556 -246
- package/dist/contracts/CompoundV3.d.ts.map +1 -1
- package/dist/contracts/CompoundV3.js +695 -327
- package/dist/contracts/Curve.d.ts +4 -17
- package/dist/contracts/Curve.d.ts.map +1 -1
- package/dist/contracts/Curve.js +5 -24
- package/dist/contracts/Euler.d.ts +581 -253
- package/dist/contracts/Euler.d.ts.map +1 -1
- package/dist/contracts/Euler.js +714 -324
- package/dist/contracts/Fluid.d.ts +644 -302
- package/dist/contracts/Fluid.d.ts.map +1 -1
- package/dist/contracts/Fluid.js +743 -334
- package/dist/contracts/{Agent_v1.d.ts → FortyAcres.d.ts} +1516 -1699
- package/dist/contracts/FortyAcres.d.ts.map +1 -0
- package/dist/contracts/{AgentTemplate.js → FortyAcres.js} +1681 -1946
- package/dist/contracts/LegoBook.d.ts +7 -0
- package/dist/contracts/LegoBook.d.ts.map +1 -1
- package/dist/contracts/LegoBook.js +9 -1
- package/dist/contracts/LegoTools.d.ts +4 -0
- package/dist/contracts/LegoTools.d.ts.map +1 -1
- package/dist/contracts/LegoTools.js +5 -1
- package/dist/contracts/Moonwell.d.ts +582 -254
- package/dist/contracts/Moonwell.d.ts.map +1 -1
- package/dist/contracts/Moonwell.js +705 -315
- package/dist/contracts/Morpho.d.ts +580 -252
- package/dist/contracts/Morpho.d.ts.map +1 -1
- package/dist/contracts/Morpho.js +723 -333
- package/dist/contracts/RipeLego.d.ts +719 -363
- package/dist/contracts/RipeLego.d.ts.map +1 -1
- package/dist/contracts/RipeLego.js +839 -413
- package/dist/contracts/SignatureHelperV1.d.ts +229 -229
- package/dist/contracts/SignatureHelperV1.js +333 -333
- package/dist/contracts/SwitchboardCharlie.d.ts +1470 -0
- package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
- package/dist/contracts/{v0_3_OracleRegistry.js → SwitchboardCharlie.js} +954 -691
- package/dist/contracts/{v0_1_Agent.d.ts → UnderscoreLego.d.ts} +1469 -1663
- package/dist/contracts/UnderscoreLego.d.ts.map +1 -0
- package/dist/contracts/{Agent_v1.js → UnderscoreLego.js} +1601 -1882
- package/dist/contracts/UndyBtc.d.ts +1487 -0
- package/dist/contracts/UndyBtc.d.ts.map +1 -0
- package/dist/contracts/{LegoUniswapV3.js → UndyBtc.js} +991 -754
- package/dist/contracts/UndyEth.d.ts +1487 -0
- package/dist/contracts/UndyEth.d.ts.map +1 -0
- package/dist/contracts/{v0_3_LegoUniswapV3.js → UndyEth.js} +991 -754
- package/dist/contracts/UndyRewardsLego.d.ts +3 -0
- package/dist/contracts/UndyRewardsLego.d.ts.map +1 -1
- package/dist/contracts/UndyRewardsLego.js +5 -1
- package/dist/contracts/UndyUsd.d.ts +1487 -0
- package/dist/contracts/UndyUsd.d.ts.map +1 -0
- package/dist/contracts/{LegoAeroSlipstream.js → UndyUsd.js} +1009 -725
- package/dist/contracts/UniswapV2.d.ts +4 -17
- package/dist/contracts/UniswapV2.d.ts.map +1 -1
- package/dist/contracts/UniswapV2.js +5 -24
- package/dist/contracts/UniswapV3.d.ts +4 -17
- package/dist/contracts/UniswapV3.d.ts.map +1 -1
- package/dist/contracts/UniswapV3.js +5 -24
- package/dist/contracts/VaultRegistry.d.ts +2265 -0
- package/dist/contracts/VaultRegistry.d.ts.map +1 -0
- package/dist/contracts/VaultRegistry.js +2848 -0
- package/dist/contracts/index.d.ts +7 -0
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +7 -0
- package/dist/contracts/sdk.d.ts +14 -0
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +14 -0
- package/dist/getContracts.d.ts +1 -0
- package/dist/getContracts.d.ts.map +1 -1
- package/dist/getContracts.js +1 -0
- package/package.json +1 -1
- package/dist/contracts/AddyRegistry.d.ts +0 -1109
- package/dist/contracts/AddyRegistry.d.ts.map +0 -1
- package/dist/contracts/AddyRegistry.js +0 -1392
- package/dist/contracts/AddyRegistry_v1.d.ts +0 -473
- package/dist/contracts/AddyRegistry_v1.d.ts.map +0 -1
- package/dist/contracts/AddyRegistry_v1.js +0 -594
- package/dist/contracts/AddyRegistry_v2.d.ts +0 -1050
- package/dist/contracts/AddyRegistry_v2.d.ts.map +0 -1
- package/dist/contracts/AddyRegistry_v2.js +0 -1313
- package/dist/contracts/AgentFactory.d.ts +0 -1665
- package/dist/contracts/AgentFactory.d.ts.map +0 -1
- package/dist/contracts/AgentFactory.js +0 -2078
- package/dist/contracts/AgentFactory_v1.d.ts +0 -1054
- package/dist/contracts/AgentFactory_v1.d.ts.map +0 -1
- package/dist/contracts/AgentFactory_v1.js +0 -1336
- package/dist/contracts/AgentFactory_v2.d.ts +0 -1275
- package/dist/contracts/AgentFactory_v2.d.ts.map +0 -1
- package/dist/contracts/AgentFactory_v2.js +0 -1609
- package/dist/contracts/AgentTemplate.d.ts +0 -2629
- package/dist/contracts/AgentTemplate.d.ts.map +0 -1
- package/dist/contracts/Agent_v1.d.ts.map +0 -1
- package/dist/contracts/Agent_v2.d.ts +0 -2709
- package/dist/contracts/Agent_v2.d.ts.map +0 -1
- package/dist/contracts/Agent_v2.js +0 -3458
- package/dist/contracts/ChainlinkFeeds.d.ts +0 -706
- package/dist/contracts/ChainlinkFeeds.d.ts.map +0 -1
- package/dist/contracts/ChainlinkFeeds.js +0 -900
- package/dist/contracts/LegoAaveV3.d.ts +0 -1033
- package/dist/contracts/LegoAaveV3.d.ts.map +0 -1
- package/dist/contracts/LegoAaveV3.js +0 -1330
- package/dist/contracts/LegoAeroClassic.d.ts +0 -1204
- package/dist/contracts/LegoAeroClassic.d.ts.map +0 -1
- package/dist/contracts/LegoAeroClassic.js +0 -1546
- package/dist/contracts/LegoAeroSlipstream.d.ts +0 -1300
- package/dist/contracts/LegoAeroSlipstream.d.ts.map +0 -1
- package/dist/contracts/LegoCommon.d.ts +0 -164
- package/dist/contracts/LegoCommon.d.ts.map +0 -1
- package/dist/contracts/LegoCommon.js +0 -202
- package/dist/contracts/LegoCompoundV3.d.ts +0 -1060
- package/dist/contracts/LegoCompoundV3.d.ts.map +0 -1
- package/dist/contracts/LegoCompoundV3.js +0 -1365
- package/dist/contracts/LegoCredit.d.ts +0 -140
- package/dist/contracts/LegoCredit.d.ts.map +0 -1
- package/dist/contracts/LegoCredit.js +0 -179
- package/dist/contracts/LegoCurve.d.ts +0 -1189
- package/dist/contracts/LegoCurve.d.ts.map +0 -1
- package/dist/contracts/LegoCurve.js +0 -1519
- package/dist/contracts/LegoDex.d.ts +0 -587
- package/dist/contracts/LegoDex.d.ts.map +0 -1
- package/dist/contracts/LegoDex.js +0 -774
- package/dist/contracts/LegoEuler.d.ts +0 -1074
- package/dist/contracts/LegoEuler.d.ts.map +0 -1
- package/dist/contracts/LegoEuler.js +0 -1383
- package/dist/contracts/LegoFluid.d.ts +0 -1025
- package/dist/contracts/LegoFluid.d.ts.map +0 -1
- package/dist/contracts/LegoFluid.js +0 -1320
- package/dist/contracts/LegoHelper.d.ts +0 -1563
- package/dist/contracts/LegoHelper.d.ts.map +0 -1
- package/dist/contracts/LegoHelper.js +0 -1947
- package/dist/contracts/LegoMoonwell.d.ts +0 -1042
- package/dist/contracts/LegoMoonwell.d.ts.map +0 -1
- package/dist/contracts/LegoMoonwell.js +0 -1342
- package/dist/contracts/LegoMorpho.d.ts +0 -1074
- package/dist/contracts/LegoMorpho.d.ts.map +0 -1
- package/dist/contracts/LegoMorpho.js +0 -1383
- package/dist/contracts/LegoRegistry.d.ts +0 -1079
- package/dist/contracts/LegoRegistry.d.ts.map +0 -1
- package/dist/contracts/LegoRegistry.js +0 -1368
- package/dist/contracts/LegoSky.d.ts +0 -923
- package/dist/contracts/LegoSky.d.ts.map +0 -1
- package/dist/contracts/LegoSky.js +0 -1180
- package/dist/contracts/LegoUniswapV0_2.d.ts +0 -1204
- package/dist/contracts/LegoUniswapV0_2.d.ts.map +0 -1
- package/dist/contracts/LegoUniswapV0_2.js +0 -1546
- package/dist/contracts/LegoUniswapV2.d.ts +0 -1204
- package/dist/contracts/LegoUniswapV2.d.ts.map +0 -1
- package/dist/contracts/LegoUniswapV2.js +0 -1546
- package/dist/contracts/LegoUniswapV3.d.ts +0 -1338
- package/dist/contracts/LegoUniswapV3.d.ts.map +0 -1
- package/dist/contracts/LegoYield.d.ts +0 -390
- package/dist/contracts/LegoYield.d.ts.map +0 -1
- package/dist/contracts/LegoYield.js +0 -511
- package/dist/contracts/OracleParser.d.ts +0 -207
- package/dist/contracts/OracleParser.d.ts.map +0 -1
- package/dist/contracts/OracleParser.js +0 -264
- package/dist/contracts/OracleRegistry.d.ts +0 -1221
- package/dist/contracts/OracleRegistry.d.ts.map +0 -1
- package/dist/contracts/OracleRegistry.js +0 -1562
- package/dist/contracts/PriceSheets.d.ts +0 -1127
- package/dist/contracts/PriceSheets.d.ts.map +0 -1
- package/dist/contracts/PriceSheets.js +0 -1383
- package/dist/contracts/PythFeeds.d.ts +0 -640
- package/dist/contracts/PythFeeds.d.ts.map +0 -1
- package/dist/contracts/PythFeeds.js +0 -813
- package/dist/contracts/StorkFeeds.d.ts +0 -640
- package/dist/contracts/StorkFeeds.d.ts.map +0 -1
- package/dist/contracts/StorkFeeds.js +0 -813
- package/dist/contracts/UserWalletConfig_v1.d.ts +0 -1400
- package/dist/contracts/UserWalletConfig_v1.d.ts.map +0 -1
- package/dist/contracts/UserWalletConfig_v1.js +0 -1676
- package/dist/contracts/UserWalletConfig_v2.d.ts +0 -1468
- package/dist/contracts/UserWalletConfig_v2.d.ts.map +0 -1
- package/dist/contracts/UserWalletConfig_v2.js +0 -1764
- package/dist/contracts/UserWallet_v1.d.ts +0 -1980
- package/dist/contracts/UserWallet_v1.d.ts.map +0 -1
- package/dist/contracts/UserWallet_v1.js +0 -2581
- package/dist/contracts/UserWallet_v2.d.ts +0 -1958
- package/dist/contracts/UserWallet_v2.d.ts.map +0 -1
- package/dist/contracts/UserWallet_v2.js +0 -2553
- package/dist/contracts/WalletConfig.d.ts +0 -1398
- package/dist/contracts/WalletConfig.d.ts.map +0 -1
- package/dist/contracts/WalletConfig.js +0 -1674
- package/dist/contracts/WalletFunds.d.ts +0 -1978
- package/dist/contracts/WalletFunds.d.ts.map +0 -1
- package/dist/contracts/WalletFunds.js +0 -2579
- package/dist/contracts/v0_1_AddyRegistry.d.ts +0 -473
- package/dist/contracts/v0_1_AddyRegistry.d.ts.map +0 -1
- package/dist/contracts/v0_1_AddyRegistry.js +0 -594
- package/dist/contracts/v0_1_Agent.d.ts.map +0 -1
- package/dist/contracts/v0_1_Agent.js +0 -3372
- package/dist/contracts/v0_1_AgentFactory.d.ts +0 -1054
- package/dist/contracts/v0_1_AgentFactory.d.ts.map +0 -1
- package/dist/contracts/v0_1_AgentFactory.js +0 -1336
- package/dist/contracts/v0_1_UserWallet.d.ts +0 -1980
- package/dist/contracts/v0_1_UserWallet.d.ts.map +0 -1
- package/dist/contracts/v0_1_UserWallet.js +0 -2581
- package/dist/contracts/v0_1_UserWalletConfig.d.ts +0 -1400
- package/dist/contracts/v0_1_UserWalletConfig.d.ts.map +0 -1
- package/dist/contracts/v0_1_UserWalletConfig.js +0 -1676
- package/dist/contracts/v0_2_AddyRegistry.d.ts +0 -1050
- package/dist/contracts/v0_2_AddyRegistry.d.ts.map +0 -1
- package/dist/contracts/v0_2_AddyRegistry.js +0 -1313
- package/dist/contracts/v0_2_Agent.d.ts +0 -2709
- package/dist/contracts/v0_2_Agent.d.ts.map +0 -1
- package/dist/contracts/v0_2_Agent.js +0 -3458
- package/dist/contracts/v0_2_AgentFactory.d.ts +0 -1275
- package/dist/contracts/v0_2_AgentFactory.d.ts.map +0 -1
- package/dist/contracts/v0_2_AgentFactory.js +0 -1609
- package/dist/contracts/v0_2_UserWallet.d.ts +0 -1958
- package/dist/contracts/v0_2_UserWallet.d.ts.map +0 -1
- package/dist/contracts/v0_2_UserWallet.js +0 -2553
- package/dist/contracts/v0_2_UserWalletConfig.d.ts +0 -1468
- package/dist/contracts/v0_2_UserWalletConfig.d.ts.map +0 -1
- package/dist/contracts/v0_2_UserWalletConfig.js +0 -1764
- package/dist/contracts/v0_3_AddyRegistry.d.ts +0 -1109
- package/dist/contracts/v0_3_AddyRegistry.d.ts.map +0 -1
- package/dist/contracts/v0_3_AddyRegistry.js +0 -1392
- package/dist/contracts/v0_3_Agent.d.ts +0 -2709
- package/dist/contracts/v0_3_Agent.d.ts.map +0 -1
- package/dist/contracts/v0_3_Agent.js +0 -3458
- package/dist/contracts/v0_3_AgentFactory.d.ts +0 -1665
- package/dist/contracts/v0_3_AgentFactory.d.ts.map +0 -1
- package/dist/contracts/v0_3_AgentFactory.js +0 -2078
- package/dist/contracts/v0_3_ChainlinkFeeds.d.ts +0 -706
- package/dist/contracts/v0_3_ChainlinkFeeds.d.ts.map +0 -1
- package/dist/contracts/v0_3_ChainlinkFeeds.js +0 -900
- package/dist/contracts/v0_3_LegoAaveV3.d.ts +0 -1033
- package/dist/contracts/v0_3_LegoAaveV3.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoAaveV3.js +0 -1330
- package/dist/contracts/v0_3_LegoAeroClassic.d.ts +0 -1204
- package/dist/contracts/v0_3_LegoAeroClassic.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoAeroClassic.js +0 -1546
- package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts +0 -1300
- package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoAeroSlipstream.js +0 -1671
- package/dist/contracts/v0_3_LegoCommon.d.ts +0 -164
- package/dist/contracts/v0_3_LegoCommon.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoCommon.js +0 -202
- package/dist/contracts/v0_3_LegoCompoundV3.d.ts +0 -1060
- package/dist/contracts/v0_3_LegoCompoundV3.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoCompoundV3.js +0 -1365
- package/dist/contracts/v0_3_LegoCredit.d.ts +0 -140
- package/dist/contracts/v0_3_LegoCredit.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoCredit.js +0 -179
- package/dist/contracts/v0_3_LegoCurve.d.ts +0 -1189
- package/dist/contracts/v0_3_LegoCurve.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoCurve.js +0 -1519
- package/dist/contracts/v0_3_LegoDex.d.ts +0 -587
- package/dist/contracts/v0_3_LegoDex.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoDex.js +0 -774
- package/dist/contracts/v0_3_LegoEuler.d.ts +0 -1074
- package/dist/contracts/v0_3_LegoEuler.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoEuler.js +0 -1383
- package/dist/contracts/v0_3_LegoFluid.d.ts +0 -1025
- package/dist/contracts/v0_3_LegoFluid.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoFluid.js +0 -1320
- package/dist/contracts/v0_3_LegoHelper.d.ts +0 -1563
- package/dist/contracts/v0_3_LegoHelper.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoHelper.js +0 -1947
- package/dist/contracts/v0_3_LegoMoonwell.d.ts +0 -1042
- package/dist/contracts/v0_3_LegoMoonwell.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoMoonwell.js +0 -1342
- package/dist/contracts/v0_3_LegoMorpho.d.ts +0 -1074
- package/dist/contracts/v0_3_LegoMorpho.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoMorpho.js +0 -1383
- package/dist/contracts/v0_3_LegoRegistry.d.ts +0 -1079
- package/dist/contracts/v0_3_LegoRegistry.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoRegistry.js +0 -1368
- package/dist/contracts/v0_3_LegoSky.d.ts +0 -923
- package/dist/contracts/v0_3_LegoSky.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoSky.js +0 -1180
- package/dist/contracts/v0_3_LegoUniswapV3.d.ts +0 -1338
- package/dist/contracts/v0_3_LegoUniswapV3.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoYield.d.ts +0 -390
- package/dist/contracts/v0_3_LegoYield.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoYield.js +0 -511
- package/dist/contracts/v0_3_OracleParser.d.ts +0 -207
- package/dist/contracts/v0_3_OracleParser.d.ts.map +0 -1
- package/dist/contracts/v0_3_OracleParser.js +0 -264
- package/dist/contracts/v0_3_OracleRegistry.d.ts +0 -1221
- package/dist/contracts/v0_3_OracleRegistry.d.ts.map +0 -1
- package/dist/contracts/v0_3_PriceSheets.d.ts +0 -1127
- package/dist/contracts/v0_3_PriceSheets.d.ts.map +0 -1
- package/dist/contracts/v0_3_PriceSheets.js +0 -1383
- package/dist/contracts/v0_3_PythFeeds.d.ts +0 -640
- package/dist/contracts/v0_3_PythFeeds.d.ts.map +0 -1
- package/dist/contracts/v0_3_PythFeeds.js +0 -813
- package/dist/contracts/v0_3_StorkFeeds.d.ts +0 -640
- package/dist/contracts/v0_3_StorkFeeds.d.ts.map +0 -1
- package/dist/contracts/v0_3_StorkFeeds.js +0 -813
- package/dist/contracts/v0_3_UserWallet.d.ts +0 -1975
- package/dist/contracts/v0_3_UserWallet.d.ts.map +0 -1
- package/dist/contracts/v0_3_UserWallet.js +0 -2577
- package/dist/contracts/v0_3_UserWalletConfig.d.ts +0 -1852
- package/dist/contracts/v0_3_UserWalletConfig.d.ts.map +0 -1
- package/dist/contracts/v0_3_UserWalletConfig.js +0 -2263
- package/dist/getLegacyContracts.d.ts +0 -69
- package/dist/getLegacyContracts.d.ts.map +0 -1
- package/dist/getLegacyContracts.js +0 -55
|
@@ -2,664 +2,682 @@ import { PublicClient, WalletClient } from 'viem';
|
|
|
2
2
|
type ExtractArgs<T> = T extends (...args: infer P) => any ? P : never;
|
|
3
3
|
type Address = `0x${string}`;
|
|
4
4
|
export declare const abi: readonly [{
|
|
5
|
-
readonly
|
|
5
|
+
readonly name: "FortyAcresDeposit";
|
|
6
6
|
readonly inputs: readonly [{
|
|
7
|
-
readonly
|
|
8
|
-
readonly name: "prevOwner";
|
|
7
|
+
readonly name: "sender";
|
|
9
8
|
readonly type: "address";
|
|
9
|
+
readonly indexed: true;
|
|
10
10
|
}, {
|
|
11
|
+
readonly name: "asset";
|
|
12
|
+
readonly type: "address";
|
|
11
13
|
readonly indexed: true;
|
|
12
|
-
|
|
14
|
+
}, {
|
|
15
|
+
readonly name: "vaultToken";
|
|
13
16
|
readonly type: "address";
|
|
17
|
+
readonly indexed: true;
|
|
18
|
+
}, {
|
|
19
|
+
readonly name: "assetAmountDeposited";
|
|
20
|
+
readonly type: "uint256";
|
|
21
|
+
readonly indexed: false;
|
|
14
22
|
}, {
|
|
23
|
+
readonly name: "usdValue";
|
|
24
|
+
readonly type: "uint256";
|
|
15
25
|
readonly indexed: false;
|
|
16
|
-
|
|
26
|
+
}, {
|
|
27
|
+
readonly name: "vaultTokenAmountReceived";
|
|
17
28
|
readonly type: "uint256";
|
|
29
|
+
readonly indexed: false;
|
|
30
|
+
}, {
|
|
31
|
+
readonly name: "recipient";
|
|
32
|
+
readonly type: "address";
|
|
33
|
+
readonly indexed: false;
|
|
18
34
|
}];
|
|
19
|
-
readonly
|
|
35
|
+
readonly anonymous: false;
|
|
20
36
|
readonly type: "event";
|
|
21
37
|
}, {
|
|
22
|
-
readonly
|
|
38
|
+
readonly name: "FortyAcresWithdrawal";
|
|
23
39
|
readonly inputs: readonly [{
|
|
24
|
-
readonly
|
|
25
|
-
readonly name: "prevOwner";
|
|
40
|
+
readonly name: "sender";
|
|
26
41
|
readonly type: "address";
|
|
42
|
+
readonly indexed: true;
|
|
27
43
|
}, {
|
|
44
|
+
readonly name: "asset";
|
|
45
|
+
readonly type: "address";
|
|
28
46
|
readonly indexed: true;
|
|
29
|
-
|
|
47
|
+
}, {
|
|
48
|
+
readonly name: "vaultToken";
|
|
30
49
|
readonly type: "address";
|
|
50
|
+
readonly indexed: true;
|
|
31
51
|
}, {
|
|
32
|
-
readonly
|
|
33
|
-
readonly name: "initiatedBlock";
|
|
52
|
+
readonly name: "assetAmountReceived";
|
|
34
53
|
readonly type: "uint256";
|
|
54
|
+
readonly indexed: false;
|
|
35
55
|
}, {
|
|
56
|
+
readonly name: "usdValue";
|
|
57
|
+
readonly type: "uint256";
|
|
36
58
|
readonly indexed: false;
|
|
37
|
-
|
|
59
|
+
}, {
|
|
60
|
+
readonly name: "vaultTokenAmountBurned";
|
|
38
61
|
readonly type: "uint256";
|
|
62
|
+
readonly indexed: false;
|
|
63
|
+
}, {
|
|
64
|
+
readonly name: "recipient";
|
|
65
|
+
readonly type: "address";
|
|
66
|
+
readonly indexed: false;
|
|
39
67
|
}];
|
|
40
|
-
readonly
|
|
68
|
+
readonly anonymous: false;
|
|
41
69
|
readonly type: "event";
|
|
42
70
|
}, {
|
|
71
|
+
readonly name: "LegoPauseModified";
|
|
72
|
+
readonly inputs: readonly [{
|
|
73
|
+
readonly name: "isPaused";
|
|
74
|
+
readonly type: "bool";
|
|
75
|
+
readonly indexed: false;
|
|
76
|
+
}];
|
|
43
77
|
readonly anonymous: false;
|
|
78
|
+
readonly type: "event";
|
|
79
|
+
}, {
|
|
80
|
+
readonly name: "LegoFundsRecovered";
|
|
44
81
|
readonly inputs: readonly [{
|
|
82
|
+
readonly name: "asset";
|
|
83
|
+
readonly type: "address";
|
|
45
84
|
readonly indexed: true;
|
|
46
|
-
|
|
85
|
+
}, {
|
|
86
|
+
readonly name: "recipient";
|
|
47
87
|
readonly type: "address";
|
|
88
|
+
readonly indexed: true;
|
|
48
89
|
}, {
|
|
49
|
-
readonly
|
|
50
|
-
readonly name: "initiatedBlock";
|
|
90
|
+
readonly name: "balance";
|
|
51
91
|
readonly type: "uint256";
|
|
52
|
-
}, {
|
|
53
92
|
readonly indexed: false;
|
|
54
|
-
readonly name: "confirmBlock";
|
|
55
|
-
readonly type: "uint256";
|
|
56
93
|
}];
|
|
57
|
-
readonly
|
|
94
|
+
readonly anonymous: false;
|
|
58
95
|
readonly type: "event";
|
|
59
96
|
}, {
|
|
60
|
-
readonly
|
|
97
|
+
readonly name: "SnapShotPriceConfigSet";
|
|
61
98
|
readonly inputs: readonly [{
|
|
99
|
+
readonly name: "minSnapshotDelay";
|
|
100
|
+
readonly type: "uint256";
|
|
101
|
+
readonly indexed: false;
|
|
102
|
+
}, {
|
|
103
|
+
readonly name: "maxNumSnapshots";
|
|
104
|
+
readonly type: "uint256";
|
|
62
105
|
readonly indexed: false;
|
|
63
|
-
|
|
106
|
+
}, {
|
|
107
|
+
readonly name: "maxUpsideDeviation";
|
|
108
|
+
readonly type: "uint256";
|
|
109
|
+
readonly indexed: false;
|
|
110
|
+
}, {
|
|
111
|
+
readonly name: "staleTime";
|
|
64
112
|
readonly type: "uint256";
|
|
113
|
+
readonly indexed: false;
|
|
65
114
|
}];
|
|
66
|
-
readonly
|
|
115
|
+
readonly anonymous: false;
|
|
67
116
|
readonly type: "event";
|
|
68
117
|
}, {
|
|
69
|
-
readonly
|
|
118
|
+
readonly name: "AssetOpportunityAdded";
|
|
70
119
|
readonly inputs: readonly [{
|
|
71
|
-
readonly indexed: true;
|
|
72
120
|
readonly name: "asset";
|
|
73
121
|
readonly type: "address";
|
|
122
|
+
readonly indexed: true;
|
|
74
123
|
}, {
|
|
124
|
+
readonly name: "vaultAddr";
|
|
125
|
+
readonly type: "address";
|
|
75
126
|
readonly indexed: true;
|
|
76
|
-
|
|
127
|
+
}];
|
|
128
|
+
readonly anonymous: false;
|
|
129
|
+
readonly type: "event";
|
|
130
|
+
}, {
|
|
131
|
+
readonly name: "AssetOpportunityRemoved";
|
|
132
|
+
readonly inputs: readonly [{
|
|
133
|
+
readonly name: "asset";
|
|
77
134
|
readonly type: "address";
|
|
135
|
+
readonly indexed: true;
|
|
78
136
|
}, {
|
|
79
|
-
readonly
|
|
80
|
-
readonly
|
|
81
|
-
readonly
|
|
137
|
+
readonly name: "vaultAddr";
|
|
138
|
+
readonly type: "address";
|
|
139
|
+
readonly indexed: true;
|
|
82
140
|
}];
|
|
83
|
-
readonly
|
|
141
|
+
readonly anonymous: false;
|
|
84
142
|
readonly type: "event";
|
|
85
143
|
}, {
|
|
144
|
+
readonly name: "PricePerShareSnapShotAdded";
|
|
86
145
|
readonly inputs: readonly [{
|
|
87
|
-
readonly name: "
|
|
146
|
+
readonly name: "vaultToken";
|
|
88
147
|
readonly type: "address";
|
|
148
|
+
readonly indexed: true;
|
|
149
|
+
}, {
|
|
150
|
+
readonly name: "totalSupply";
|
|
151
|
+
readonly type: "uint256";
|
|
152
|
+
readonly indexed: false;
|
|
153
|
+
}, {
|
|
154
|
+
readonly name: "pricePerShare";
|
|
155
|
+
readonly type: "uint256";
|
|
156
|
+
readonly indexed: false;
|
|
89
157
|
}];
|
|
90
|
-
readonly
|
|
158
|
+
readonly anonymous: false;
|
|
159
|
+
readonly type: "event";
|
|
160
|
+
}, {
|
|
161
|
+
readonly stateMutability: "view";
|
|
162
|
+
readonly type: "function";
|
|
163
|
+
readonly name: "getAddys";
|
|
164
|
+
readonly inputs: readonly [];
|
|
91
165
|
readonly outputs: readonly [{
|
|
92
166
|
readonly name: "";
|
|
93
|
-
readonly type: "
|
|
167
|
+
readonly type: "tuple";
|
|
168
|
+
readonly components: readonly [{
|
|
169
|
+
readonly name: "hq";
|
|
170
|
+
readonly type: "address";
|
|
171
|
+
}, {
|
|
172
|
+
readonly name: "undyToken";
|
|
173
|
+
readonly type: "address";
|
|
174
|
+
}, {
|
|
175
|
+
readonly name: "ledger";
|
|
176
|
+
readonly type: "address";
|
|
177
|
+
}, {
|
|
178
|
+
readonly name: "missionControl";
|
|
179
|
+
readonly type: "address";
|
|
180
|
+
}, {
|
|
181
|
+
readonly name: "legoBook";
|
|
182
|
+
readonly type: "address";
|
|
183
|
+
}, {
|
|
184
|
+
readonly name: "switchboard";
|
|
185
|
+
readonly type: "address";
|
|
186
|
+
}, {
|
|
187
|
+
readonly name: "hatchery";
|
|
188
|
+
readonly type: "address";
|
|
189
|
+
}, {
|
|
190
|
+
readonly name: "lootDistributor";
|
|
191
|
+
readonly type: "address";
|
|
192
|
+
}, {
|
|
193
|
+
readonly name: "appraiser";
|
|
194
|
+
readonly type: "address";
|
|
195
|
+
}, {
|
|
196
|
+
readonly name: "walletBackpack";
|
|
197
|
+
readonly type: "address";
|
|
198
|
+
}, {
|
|
199
|
+
readonly name: "billing";
|
|
200
|
+
readonly type: "address";
|
|
201
|
+
}, {
|
|
202
|
+
readonly name: "vaultRegistry";
|
|
203
|
+
readonly type: "address";
|
|
204
|
+
}];
|
|
94
205
|
}];
|
|
95
|
-
readonly stateMutability: "nonpayable";
|
|
96
|
-
readonly type: "function";
|
|
97
206
|
}, {
|
|
207
|
+
readonly stateMutability: "view";
|
|
208
|
+
readonly type: "function";
|
|
209
|
+
readonly name: "getUndyHq";
|
|
98
210
|
readonly inputs: readonly [];
|
|
99
|
-
readonly name: "apiVersion";
|
|
100
211
|
readonly outputs: readonly [{
|
|
101
212
|
readonly name: "";
|
|
102
|
-
readonly type: "
|
|
213
|
+
readonly type: "address";
|
|
103
214
|
}];
|
|
104
|
-
readonly stateMutability: "pure";
|
|
105
|
-
readonly type: "function";
|
|
106
215
|
}, {
|
|
216
|
+
readonly stateMutability: "view";
|
|
217
|
+
readonly type: "function";
|
|
218
|
+
readonly name: "isLegoAsset";
|
|
107
219
|
readonly inputs: readonly [{
|
|
108
|
-
readonly name: "_userWallet";
|
|
109
|
-
readonly type: "address";
|
|
110
|
-
}, {
|
|
111
|
-
readonly name: "_legoId";
|
|
112
|
-
readonly type: "uint256";
|
|
113
|
-
}, {
|
|
114
220
|
readonly name: "_asset";
|
|
115
221
|
readonly type: "address";
|
|
116
|
-
}, {
|
|
117
|
-
readonly name: "_vault";
|
|
118
|
-
readonly type: "address";
|
|
119
222
|
}];
|
|
120
|
-
readonly name: "depositTokens";
|
|
121
223
|
readonly outputs: readonly [{
|
|
122
224
|
readonly name: "";
|
|
123
|
-
readonly type: "
|
|
124
|
-
}, {
|
|
125
|
-
readonly name: "";
|
|
126
|
-
readonly type: "address";
|
|
127
|
-
}, {
|
|
128
|
-
readonly name: "";
|
|
129
|
-
readonly type: "uint256";
|
|
130
|
-
}, {
|
|
131
|
-
readonly name: "";
|
|
132
|
-
readonly type: "uint256";
|
|
225
|
+
readonly type: "bool";
|
|
133
226
|
}];
|
|
134
|
-
readonly stateMutability: "nonpayable";
|
|
135
|
-
readonly type: "function";
|
|
136
227
|
}, {
|
|
228
|
+
readonly stateMutability: "view";
|
|
229
|
+
readonly type: "function";
|
|
230
|
+
readonly name: "getAssetOpportunities";
|
|
137
231
|
readonly inputs: readonly [{
|
|
138
|
-
readonly name: "_userWallet";
|
|
139
|
-
readonly type: "address";
|
|
140
|
-
}, {
|
|
141
|
-
readonly name: "_legoId";
|
|
142
|
-
readonly type: "uint256";
|
|
143
|
-
}, {
|
|
144
232
|
readonly name: "_asset";
|
|
145
233
|
readonly type: "address";
|
|
146
|
-
}, {
|
|
147
|
-
readonly name: "_vault";
|
|
148
|
-
readonly type: "address";
|
|
149
|
-
}, {
|
|
150
|
-
readonly name: "_amount";
|
|
151
|
-
readonly type: "uint256";
|
|
152
234
|
}];
|
|
153
|
-
readonly name: "depositTokens";
|
|
154
235
|
readonly outputs: readonly [{
|
|
155
236
|
readonly name: "";
|
|
156
|
-
readonly type: "
|
|
157
|
-
}, {
|
|
158
|
-
readonly name: "";
|
|
159
|
-
readonly type: "address";
|
|
160
|
-
}, {
|
|
161
|
-
readonly name: "";
|
|
162
|
-
readonly type: "uint256";
|
|
163
|
-
}, {
|
|
164
|
-
readonly name: "";
|
|
165
|
-
readonly type: "uint256";
|
|
237
|
+
readonly type: "address[]";
|
|
166
238
|
}];
|
|
167
|
-
|
|
239
|
+
}, {
|
|
240
|
+
readonly stateMutability: "view";
|
|
168
241
|
readonly type: "function";
|
|
242
|
+
readonly name: "getAssets";
|
|
243
|
+
readonly inputs: readonly [];
|
|
244
|
+
readonly outputs: readonly [{
|
|
245
|
+
readonly name: "";
|
|
246
|
+
readonly type: "address[]";
|
|
247
|
+
}];
|
|
169
248
|
}, {
|
|
249
|
+
readonly stateMutability: "view";
|
|
250
|
+
readonly type: "function";
|
|
251
|
+
readonly name: "isAssetOpportunity";
|
|
170
252
|
readonly inputs: readonly [{
|
|
171
|
-
readonly name: "_userWallet";
|
|
172
|
-
readonly type: "address";
|
|
173
|
-
}, {
|
|
174
|
-
readonly name: "_legoId";
|
|
175
|
-
readonly type: "uint256";
|
|
176
|
-
}, {
|
|
177
253
|
readonly name: "_asset";
|
|
178
254
|
readonly type: "address";
|
|
179
255
|
}, {
|
|
180
|
-
readonly name: "
|
|
256
|
+
readonly name: "_vaultAddr";
|
|
181
257
|
readonly type: "address";
|
|
182
|
-
}, {
|
|
183
|
-
readonly name: "_amount";
|
|
184
|
-
readonly type: "uint256";
|
|
185
|
-
}, {
|
|
186
|
-
readonly components: readonly [{
|
|
187
|
-
readonly name: "signature";
|
|
188
|
-
readonly type: "bytes";
|
|
189
|
-
}, {
|
|
190
|
-
readonly name: "signer";
|
|
191
|
-
readonly type: "address";
|
|
192
|
-
}, {
|
|
193
|
-
readonly name: "expiration";
|
|
194
|
-
readonly type: "uint256";
|
|
195
|
-
}];
|
|
196
|
-
readonly name: "_sig";
|
|
197
|
-
readonly type: "tuple";
|
|
198
258
|
}];
|
|
199
|
-
readonly name: "depositTokens";
|
|
200
259
|
readonly outputs: readonly [{
|
|
201
260
|
readonly name: "";
|
|
202
|
-
readonly type: "
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
261
|
+
readonly type: "bool";
|
|
262
|
+
}];
|
|
263
|
+
}, {
|
|
264
|
+
readonly stateMutability: "view";
|
|
265
|
+
readonly type: "function";
|
|
266
|
+
readonly name: "getNumLegoAssets";
|
|
267
|
+
readonly inputs: readonly [];
|
|
268
|
+
readonly outputs: readonly [{
|
|
210
269
|
readonly name: "";
|
|
211
270
|
readonly type: "uint256";
|
|
212
271
|
}];
|
|
272
|
+
}, {
|
|
213
273
|
readonly stateMutability: "nonpayable";
|
|
214
274
|
readonly type: "function";
|
|
275
|
+
readonly name: "pause";
|
|
276
|
+
readonly inputs: readonly [{
|
|
277
|
+
readonly name: "_shouldPause";
|
|
278
|
+
readonly type: "bool";
|
|
279
|
+
}];
|
|
280
|
+
readonly outputs: readonly [];
|
|
215
281
|
}, {
|
|
282
|
+
readonly stateMutability: "nonpayable";
|
|
283
|
+
readonly type: "function";
|
|
284
|
+
readonly name: "recoverFunds";
|
|
216
285
|
readonly inputs: readonly [{
|
|
217
|
-
readonly name: "
|
|
286
|
+
readonly name: "_recipient";
|
|
218
287
|
readonly type: "address";
|
|
219
|
-
}, {
|
|
220
|
-
readonly name: "_legoId";
|
|
221
|
-
readonly type: "uint256";
|
|
222
288
|
}, {
|
|
223
289
|
readonly name: "_asset";
|
|
224
290
|
readonly type: "address";
|
|
291
|
+
}];
|
|
292
|
+
readonly outputs: readonly [];
|
|
293
|
+
}, {
|
|
294
|
+
readonly stateMutability: "nonpayable";
|
|
295
|
+
readonly type: "function";
|
|
296
|
+
readonly name: "recoverFundsMany";
|
|
297
|
+
readonly inputs: readonly [{
|
|
298
|
+
readonly name: "_recipient";
|
|
299
|
+
readonly type: "address";
|
|
225
300
|
}, {
|
|
301
|
+
readonly name: "_assets";
|
|
302
|
+
readonly type: "address[]";
|
|
303
|
+
}];
|
|
304
|
+
readonly outputs: readonly [];
|
|
305
|
+
}, {
|
|
306
|
+
readonly stateMutability: "view";
|
|
307
|
+
readonly type: "function";
|
|
308
|
+
readonly name: "getWeightedPricePerShare";
|
|
309
|
+
readonly inputs: readonly [{
|
|
226
310
|
readonly name: "_vaultToken";
|
|
227
311
|
readonly type: "address";
|
|
228
312
|
}];
|
|
229
|
-
readonly name: "withdrawTokens";
|
|
230
313
|
readonly outputs: readonly [{
|
|
231
314
|
readonly name: "";
|
|
232
315
|
readonly type: "uint256";
|
|
233
|
-
}, {
|
|
234
|
-
readonly name: "";
|
|
235
|
-
readonly type: "uint256";
|
|
236
|
-
}, {
|
|
237
|
-
readonly name: "";
|
|
238
|
-
readonly type: "uint256";
|
|
239
316
|
}];
|
|
240
|
-
readonly stateMutability: "nonpayable";
|
|
241
|
-
readonly type: "function";
|
|
242
317
|
}, {
|
|
318
|
+
readonly stateMutability: "view";
|
|
319
|
+
readonly type: "function";
|
|
320
|
+
readonly name: "getLatestSnapshot";
|
|
243
321
|
readonly inputs: readonly [{
|
|
244
|
-
readonly name: "_userWallet";
|
|
245
|
-
readonly type: "address";
|
|
246
|
-
}, {
|
|
247
|
-
readonly name: "_legoId";
|
|
248
|
-
readonly type: "uint256";
|
|
249
|
-
}, {
|
|
250
|
-
readonly name: "_asset";
|
|
251
|
-
readonly type: "address";
|
|
252
|
-
}, {
|
|
253
322
|
readonly name: "_vaultToken";
|
|
254
323
|
readonly type: "address";
|
|
255
324
|
}, {
|
|
256
|
-
readonly name: "
|
|
325
|
+
readonly name: "_pricePerShare";
|
|
257
326
|
readonly type: "uint256";
|
|
258
327
|
}];
|
|
259
|
-
readonly name: "withdrawTokens";
|
|
260
328
|
readonly outputs: readonly [{
|
|
261
329
|
readonly name: "";
|
|
262
|
-
readonly type: "
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
330
|
+
readonly type: "tuple";
|
|
331
|
+
readonly components: readonly [{
|
|
332
|
+
readonly name: "totalSupply";
|
|
333
|
+
readonly type: "uint256";
|
|
334
|
+
}, {
|
|
335
|
+
readonly name: "pricePerShare";
|
|
336
|
+
readonly type: "uint256";
|
|
337
|
+
}, {
|
|
338
|
+
readonly name: "lastUpdate";
|
|
339
|
+
readonly type: "uint256";
|
|
340
|
+
}];
|
|
269
341
|
}];
|
|
342
|
+
}, {
|
|
270
343
|
readonly stateMutability: "nonpayable";
|
|
271
344
|
readonly type: "function";
|
|
272
|
-
|
|
345
|
+
readonly name: "setSnapShotPriceConfig";
|
|
273
346
|
readonly inputs: readonly [{
|
|
274
|
-
readonly name: "
|
|
275
|
-
readonly type: "
|
|
276
|
-
}, {
|
|
277
|
-
readonly name: "_legoId";
|
|
278
|
-
readonly type: "uint256";
|
|
279
|
-
}, {
|
|
280
|
-
readonly name: "_asset";
|
|
281
|
-
readonly type: "address";
|
|
282
|
-
}, {
|
|
283
|
-
readonly name: "_vaultToken";
|
|
284
|
-
readonly type: "address";
|
|
285
|
-
}, {
|
|
286
|
-
readonly name: "_vaultTokenAmount";
|
|
287
|
-
readonly type: "uint256";
|
|
288
|
-
}, {
|
|
347
|
+
readonly name: "_config";
|
|
348
|
+
readonly type: "tuple";
|
|
289
349
|
readonly components: readonly [{
|
|
290
|
-
readonly name: "
|
|
291
|
-
readonly type: "
|
|
350
|
+
readonly name: "minSnapshotDelay";
|
|
351
|
+
readonly type: "uint256";
|
|
292
352
|
}, {
|
|
293
|
-
readonly name: "
|
|
294
|
-
readonly type: "
|
|
353
|
+
readonly name: "maxNumSnapshots";
|
|
354
|
+
readonly type: "uint256";
|
|
355
|
+
}, {
|
|
356
|
+
readonly name: "maxUpsideDeviation";
|
|
357
|
+
readonly type: "uint256";
|
|
295
358
|
}, {
|
|
296
|
-
readonly name: "
|
|
359
|
+
readonly name: "staleTime";
|
|
297
360
|
readonly type: "uint256";
|
|
298
361
|
}];
|
|
299
|
-
|
|
362
|
+
}];
|
|
363
|
+
readonly outputs: readonly [];
|
|
364
|
+
}, {
|
|
365
|
+
readonly stateMutability: "view";
|
|
366
|
+
readonly type: "function";
|
|
367
|
+
readonly name: "isValidPriceConfig";
|
|
368
|
+
readonly inputs: readonly [{
|
|
369
|
+
readonly name: "_config";
|
|
300
370
|
readonly type: "tuple";
|
|
371
|
+
readonly components: readonly [{
|
|
372
|
+
readonly name: "minSnapshotDelay";
|
|
373
|
+
readonly type: "uint256";
|
|
374
|
+
}, {
|
|
375
|
+
readonly name: "maxNumSnapshots";
|
|
376
|
+
readonly type: "uint256";
|
|
377
|
+
}, {
|
|
378
|
+
readonly name: "maxUpsideDeviation";
|
|
379
|
+
readonly type: "uint256";
|
|
380
|
+
}, {
|
|
381
|
+
readonly name: "staleTime";
|
|
382
|
+
readonly type: "uint256";
|
|
383
|
+
}];
|
|
301
384
|
}];
|
|
302
|
-
readonly name: "withdrawTokens";
|
|
303
385
|
readonly outputs: readonly [{
|
|
304
386
|
readonly name: "";
|
|
305
|
-
readonly type: "
|
|
306
|
-
}, {
|
|
307
|
-
readonly name: "";
|
|
308
|
-
readonly type: "uint256";
|
|
309
|
-
}, {
|
|
310
|
-
readonly name: "";
|
|
311
|
-
readonly type: "uint256";
|
|
387
|
+
readonly type: "bool";
|
|
312
388
|
}];
|
|
313
|
-
readonly stateMutability: "nonpayable";
|
|
314
|
-
readonly type: "function";
|
|
315
389
|
}, {
|
|
390
|
+
readonly stateMutability: "view";
|
|
391
|
+
readonly type: "function";
|
|
392
|
+
readonly name: "vaultToAsset";
|
|
316
393
|
readonly inputs: readonly [{
|
|
317
|
-
readonly name: "
|
|
318
|
-
readonly type: "address";
|
|
319
|
-
}, {
|
|
320
|
-
readonly name: "_fromLegoId";
|
|
321
|
-
readonly type: "uint256";
|
|
322
|
-
}, {
|
|
323
|
-
readonly name: "_fromAsset";
|
|
324
|
-
readonly type: "address";
|
|
325
|
-
}, {
|
|
326
|
-
readonly name: "_fromVaultToken";
|
|
327
|
-
readonly type: "address";
|
|
328
|
-
}, {
|
|
329
|
-
readonly name: "_toLegoId";
|
|
330
|
-
readonly type: "uint256";
|
|
331
|
-
}, {
|
|
332
|
-
readonly name: "_toVault";
|
|
394
|
+
readonly name: "arg0";
|
|
333
395
|
readonly type: "address";
|
|
334
396
|
}];
|
|
335
|
-
readonly name: "rebalance";
|
|
336
397
|
readonly outputs: readonly [{
|
|
337
398
|
readonly name: "";
|
|
338
|
-
readonly type: "
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
399
|
+
readonly type: "tuple";
|
|
400
|
+
readonly components: readonly [{
|
|
401
|
+
readonly name: "underlyingAsset";
|
|
402
|
+
readonly type: "address";
|
|
403
|
+
}, {
|
|
404
|
+
readonly name: "decimals";
|
|
405
|
+
readonly type: "uint256";
|
|
406
|
+
}, {
|
|
407
|
+
readonly name: "lastAveragePricePerShare";
|
|
408
|
+
readonly type: "uint256";
|
|
409
|
+
}];
|
|
348
410
|
}];
|
|
349
|
-
readonly stateMutability: "nonpayable";
|
|
350
|
-
readonly type: "function";
|
|
351
411
|
}, {
|
|
412
|
+
readonly stateMutability: "view";
|
|
413
|
+
readonly type: "function";
|
|
414
|
+
readonly name: "assetOpportunities";
|
|
352
415
|
readonly inputs: readonly [{
|
|
353
|
-
readonly name: "
|
|
416
|
+
readonly name: "arg0";
|
|
354
417
|
readonly type: "address";
|
|
355
418
|
}, {
|
|
356
|
-
readonly name: "
|
|
419
|
+
readonly name: "arg1";
|
|
357
420
|
readonly type: "uint256";
|
|
358
|
-
}
|
|
359
|
-
|
|
421
|
+
}];
|
|
422
|
+
readonly outputs: readonly [{
|
|
423
|
+
readonly name: "";
|
|
360
424
|
readonly type: "address";
|
|
361
|
-
}
|
|
362
|
-
|
|
425
|
+
}];
|
|
426
|
+
}, {
|
|
427
|
+
readonly stateMutability: "view";
|
|
428
|
+
readonly type: "function";
|
|
429
|
+
readonly name: "indexOfAssetOpportunity";
|
|
430
|
+
readonly inputs: readonly [{
|
|
431
|
+
readonly name: "arg0";
|
|
363
432
|
readonly type: "address";
|
|
364
433
|
}, {
|
|
365
|
-
readonly name: "
|
|
366
|
-
readonly type: "uint256";
|
|
367
|
-
}, {
|
|
368
|
-
readonly name: "_toVault";
|
|
434
|
+
readonly name: "arg1";
|
|
369
435
|
readonly type: "address";
|
|
370
|
-
}, {
|
|
371
|
-
readonly name: "_fromVaultTokenAmount";
|
|
372
|
-
readonly type: "uint256";
|
|
373
436
|
}];
|
|
374
|
-
readonly name: "rebalance";
|
|
375
437
|
readonly outputs: readonly [{
|
|
376
438
|
readonly name: "";
|
|
377
439
|
readonly type: "uint256";
|
|
378
|
-
}
|
|
379
|
-
|
|
440
|
+
}];
|
|
441
|
+
}, {
|
|
442
|
+
readonly stateMutability: "view";
|
|
443
|
+
readonly type: "function";
|
|
444
|
+
readonly name: "numAssetOpportunities";
|
|
445
|
+
readonly inputs: readonly [{
|
|
446
|
+
readonly name: "arg0";
|
|
380
447
|
readonly type: "address";
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
readonly type: "uint256";
|
|
384
|
-
}, {
|
|
448
|
+
}];
|
|
449
|
+
readonly outputs: readonly [{
|
|
385
450
|
readonly name: "";
|
|
386
451
|
readonly type: "uint256";
|
|
387
452
|
}];
|
|
388
|
-
readonly stateMutability: "nonpayable";
|
|
389
|
-
readonly type: "function";
|
|
390
453
|
}, {
|
|
454
|
+
readonly stateMutability: "view";
|
|
455
|
+
readonly type: "function";
|
|
456
|
+
readonly name: "assets";
|
|
391
457
|
readonly inputs: readonly [{
|
|
392
|
-
readonly name: "
|
|
393
|
-
readonly type: "address";
|
|
394
|
-
}, {
|
|
395
|
-
readonly name: "_fromLegoId";
|
|
396
|
-
readonly type: "uint256";
|
|
397
|
-
}, {
|
|
398
|
-
readonly name: "_fromAsset";
|
|
399
|
-
readonly type: "address";
|
|
400
|
-
}, {
|
|
401
|
-
readonly name: "_fromVaultToken";
|
|
402
|
-
readonly type: "address";
|
|
403
|
-
}, {
|
|
404
|
-
readonly name: "_toLegoId";
|
|
405
|
-
readonly type: "uint256";
|
|
406
|
-
}, {
|
|
407
|
-
readonly name: "_toVault";
|
|
408
|
-
readonly type: "address";
|
|
409
|
-
}, {
|
|
410
|
-
readonly name: "_fromVaultTokenAmount";
|
|
458
|
+
readonly name: "arg0";
|
|
411
459
|
readonly type: "uint256";
|
|
412
|
-
}, {
|
|
413
|
-
readonly components: readonly [{
|
|
414
|
-
readonly name: "signature";
|
|
415
|
-
readonly type: "bytes";
|
|
416
|
-
}, {
|
|
417
|
-
readonly name: "signer";
|
|
418
|
-
readonly type: "address";
|
|
419
|
-
}, {
|
|
420
|
-
readonly name: "expiration";
|
|
421
|
-
readonly type: "uint256";
|
|
422
|
-
}];
|
|
423
|
-
readonly name: "_sig";
|
|
424
|
-
readonly type: "tuple";
|
|
425
460
|
}];
|
|
426
|
-
readonly name: "rebalance";
|
|
427
461
|
readonly outputs: readonly [{
|
|
428
|
-
readonly name: "";
|
|
429
|
-
readonly type: "uint256";
|
|
430
|
-
}, {
|
|
431
462
|
readonly name: "";
|
|
432
463
|
readonly type: "address";
|
|
433
|
-
}, {
|
|
434
|
-
readonly name: "";
|
|
435
|
-
readonly type: "uint256";
|
|
436
|
-
}, {
|
|
437
|
-
readonly name: "";
|
|
438
|
-
readonly type: "uint256";
|
|
439
464
|
}];
|
|
440
|
-
readonly stateMutability: "nonpayable";
|
|
441
|
-
readonly type: "function";
|
|
442
465
|
}, {
|
|
466
|
+
readonly stateMutability: "view";
|
|
467
|
+
readonly type: "function";
|
|
468
|
+
readonly name: "indexOfAsset";
|
|
443
469
|
readonly inputs: readonly [{
|
|
444
|
-
readonly name: "
|
|
470
|
+
readonly name: "arg0";
|
|
445
471
|
readonly type: "address";
|
|
446
|
-
}, {
|
|
447
|
-
readonly components: readonly [{
|
|
448
|
-
readonly name: "legoId";
|
|
449
|
-
readonly type: "uint256";
|
|
450
|
-
}, {
|
|
451
|
-
readonly name: "amountIn";
|
|
452
|
-
readonly type: "uint256";
|
|
453
|
-
}, {
|
|
454
|
-
readonly name: "minAmountOut";
|
|
455
|
-
readonly type: "uint256";
|
|
456
|
-
}, {
|
|
457
|
-
readonly name: "tokenPath";
|
|
458
|
-
readonly type: "address[]";
|
|
459
|
-
}, {
|
|
460
|
-
readonly name: "poolPath";
|
|
461
|
-
readonly type: "address[]";
|
|
462
|
-
}];
|
|
463
|
-
readonly name: "_swapInstructions";
|
|
464
|
-
readonly type: "tuple[]";
|
|
465
472
|
}];
|
|
466
|
-
readonly name: "swapTokens";
|
|
467
473
|
readonly outputs: readonly [{
|
|
468
474
|
readonly name: "";
|
|
469
475
|
readonly type: "uint256";
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
476
|
+
}];
|
|
477
|
+
}, {
|
|
478
|
+
readonly stateMutability: "view";
|
|
479
|
+
readonly type: "function";
|
|
480
|
+
readonly name: "numAssets";
|
|
481
|
+
readonly inputs: readonly [];
|
|
482
|
+
readonly outputs: readonly [{
|
|
474
483
|
readonly name: "";
|
|
475
484
|
readonly type: "uint256";
|
|
476
485
|
}];
|
|
477
|
-
readonly stateMutability: "nonpayable";
|
|
478
|
-
readonly type: "function";
|
|
479
486
|
}, {
|
|
487
|
+
readonly stateMutability: "view";
|
|
488
|
+
readonly type: "function";
|
|
489
|
+
readonly name: "snapShotData";
|
|
480
490
|
readonly inputs: readonly [{
|
|
481
|
-
readonly name: "
|
|
491
|
+
readonly name: "arg0";
|
|
482
492
|
readonly type: "address";
|
|
483
|
-
}
|
|
493
|
+
}];
|
|
494
|
+
readonly outputs: readonly [{
|
|
495
|
+
readonly name: "";
|
|
496
|
+
readonly type: "tuple";
|
|
484
497
|
readonly components: readonly [{
|
|
485
|
-
readonly name: "
|
|
486
|
-
readonly type: "
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
498
|
+
readonly name: "lastSnapShot";
|
|
499
|
+
readonly type: "tuple";
|
|
500
|
+
readonly components: readonly [{
|
|
501
|
+
readonly name: "totalSupply";
|
|
502
|
+
readonly type: "uint256";
|
|
503
|
+
}, {
|
|
504
|
+
readonly name: "pricePerShare";
|
|
505
|
+
readonly type: "uint256";
|
|
506
|
+
}, {
|
|
507
|
+
readonly name: "lastUpdate";
|
|
508
|
+
readonly type: "uint256";
|
|
509
|
+
}];
|
|
510
|
+
}, {
|
|
511
|
+
readonly name: "nextIndex";
|
|
492
512
|
readonly type: "uint256";
|
|
493
|
-
}, {
|
|
494
|
-
readonly name: "tokenPath";
|
|
495
|
-
readonly type: "address[]";
|
|
496
|
-
}, {
|
|
497
|
-
readonly name: "poolPath";
|
|
498
|
-
readonly type: "address[]";
|
|
499
513
|
}];
|
|
500
|
-
|
|
501
|
-
|
|
514
|
+
}];
|
|
515
|
+
}, {
|
|
516
|
+
readonly stateMutability: "view";
|
|
517
|
+
readonly type: "function";
|
|
518
|
+
readonly name: "snapShots";
|
|
519
|
+
readonly inputs: readonly [{
|
|
520
|
+
readonly name: "arg0";
|
|
521
|
+
readonly type: "address";
|
|
502
522
|
}, {
|
|
523
|
+
readonly name: "arg1";
|
|
524
|
+
readonly type: "uint256";
|
|
525
|
+
}];
|
|
526
|
+
readonly outputs: readonly [{
|
|
527
|
+
readonly name: "";
|
|
528
|
+
readonly type: "tuple";
|
|
503
529
|
readonly components: readonly [{
|
|
504
|
-
readonly name: "
|
|
505
|
-
readonly type: "
|
|
530
|
+
readonly name: "totalSupply";
|
|
531
|
+
readonly type: "uint256";
|
|
506
532
|
}, {
|
|
507
|
-
readonly name: "
|
|
508
|
-
readonly type: "
|
|
533
|
+
readonly name: "pricePerShare";
|
|
534
|
+
readonly type: "uint256";
|
|
509
535
|
}, {
|
|
510
|
-
readonly name: "
|
|
536
|
+
readonly name: "lastUpdate";
|
|
511
537
|
readonly type: "uint256";
|
|
512
538
|
}];
|
|
513
|
-
readonly name: "_sig";
|
|
514
|
-
readonly type: "tuple";
|
|
515
539
|
}];
|
|
516
|
-
|
|
540
|
+
}, {
|
|
541
|
+
readonly stateMutability: "view";
|
|
542
|
+
readonly type: "function";
|
|
543
|
+
readonly name: "snapShotPriceConfig";
|
|
544
|
+
readonly inputs: readonly [];
|
|
517
545
|
readonly outputs: readonly [{
|
|
518
546
|
readonly name: "";
|
|
519
|
-
readonly type: "
|
|
520
|
-
}, {
|
|
521
|
-
readonly name: "";
|
|
522
|
-
readonly type: "uint256";
|
|
523
|
-
}, {
|
|
524
|
-
readonly name: "";
|
|
525
|
-
readonly type: "uint256";
|
|
526
|
-
}];
|
|
527
|
-
readonly stateMutability: "nonpayable";
|
|
528
|
-
readonly type: "function";
|
|
529
|
-
}, {
|
|
530
|
-
readonly inputs: readonly [{
|
|
531
|
-
readonly name: "_userWallet";
|
|
532
|
-
readonly type: "address";
|
|
533
|
-
}, {
|
|
547
|
+
readonly type: "tuple";
|
|
534
548
|
readonly components: readonly [{
|
|
535
|
-
readonly name: "
|
|
549
|
+
readonly name: "minSnapshotDelay";
|
|
536
550
|
readonly type: "uint256";
|
|
537
551
|
}, {
|
|
538
|
-
readonly name: "
|
|
552
|
+
readonly name: "maxNumSnapshots";
|
|
539
553
|
readonly type: "uint256";
|
|
540
554
|
}, {
|
|
541
|
-
readonly name: "
|
|
555
|
+
readonly name: "maxUpsideDeviation";
|
|
542
556
|
readonly type: "uint256";
|
|
543
557
|
}, {
|
|
544
|
-
readonly name: "
|
|
545
|
-
readonly type: "
|
|
546
|
-
}, {
|
|
547
|
-
readonly name: "poolPath";
|
|
548
|
-
readonly type: "address[]";
|
|
558
|
+
readonly name: "staleTime";
|
|
559
|
+
readonly type: "uint256";
|
|
549
560
|
}];
|
|
550
|
-
readonly name: "_swapInstructions";
|
|
551
|
-
readonly type: "tuple[]";
|
|
552
|
-
}, {
|
|
553
|
-
readonly name: "_expiration";
|
|
554
|
-
readonly type: "uint256";
|
|
555
561
|
}];
|
|
556
|
-
|
|
562
|
+
}, {
|
|
563
|
+
readonly stateMutability: "view";
|
|
564
|
+
readonly type: "function";
|
|
565
|
+
readonly name: "isPaused";
|
|
566
|
+
readonly inputs: readonly [];
|
|
557
567
|
readonly outputs: readonly [{
|
|
558
568
|
readonly name: "";
|
|
559
|
-
readonly type: "
|
|
569
|
+
readonly type: "bool";
|
|
560
570
|
}];
|
|
571
|
+
}, {
|
|
561
572
|
readonly stateMutability: "view";
|
|
562
573
|
readonly type: "function";
|
|
563
|
-
|
|
574
|
+
readonly name: "hasCapability";
|
|
564
575
|
readonly inputs: readonly [{
|
|
565
|
-
readonly name: "
|
|
566
|
-
readonly type: "address";
|
|
567
|
-
}, {
|
|
568
|
-
readonly name: "_legoId";
|
|
576
|
+
readonly name: "_action";
|
|
569
577
|
readonly type: "uint256";
|
|
570
578
|
}];
|
|
571
|
-
readonly name: "borrow";
|
|
572
579
|
readonly outputs: readonly [{
|
|
573
580
|
readonly name: "";
|
|
574
|
-
readonly type: "
|
|
575
|
-
}, {
|
|
576
|
-
readonly name: "";
|
|
577
|
-
readonly type: "uint256";
|
|
578
|
-
}, {
|
|
579
|
-
readonly name: "";
|
|
580
|
-
readonly type: "uint256";
|
|
581
|
+
readonly type: "bool";
|
|
581
582
|
}];
|
|
582
|
-
|
|
583
|
+
}, {
|
|
584
|
+
readonly stateMutability: "view";
|
|
585
|
+
readonly type: "function";
|
|
586
|
+
readonly name: "getRegistries";
|
|
587
|
+
readonly inputs: readonly [];
|
|
588
|
+
readonly outputs: readonly [{
|
|
589
|
+
readonly name: "";
|
|
590
|
+
readonly type: "address[]";
|
|
591
|
+
}];
|
|
592
|
+
}, {
|
|
593
|
+
readonly stateMutability: "view";
|
|
594
|
+
readonly type: "function";
|
|
595
|
+
readonly name: "isYieldLego";
|
|
596
|
+
readonly inputs: readonly [];
|
|
597
|
+
readonly outputs: readonly [{
|
|
598
|
+
readonly name: "";
|
|
599
|
+
readonly type: "bool";
|
|
600
|
+
}];
|
|
601
|
+
}, {
|
|
602
|
+
readonly stateMutability: "view";
|
|
583
603
|
readonly type: "function";
|
|
604
|
+
readonly name: "isDexLego";
|
|
605
|
+
readonly inputs: readonly [];
|
|
606
|
+
readonly outputs: readonly [{
|
|
607
|
+
readonly name: "";
|
|
608
|
+
readonly type: "bool";
|
|
609
|
+
}];
|
|
584
610
|
}, {
|
|
611
|
+
readonly stateMutability: "view";
|
|
612
|
+
readonly type: "function";
|
|
613
|
+
readonly name: "getUnderlyingAsset";
|
|
585
614
|
readonly inputs: readonly [{
|
|
586
|
-
readonly name: "
|
|
587
|
-
readonly type: "address";
|
|
588
|
-
}, {
|
|
589
|
-
readonly name: "_legoId";
|
|
590
|
-
readonly type: "uint256";
|
|
591
|
-
}, {
|
|
592
|
-
readonly name: "_borrowAsset";
|
|
615
|
+
readonly name: "_vaultToken";
|
|
593
616
|
readonly type: "address";
|
|
594
617
|
}];
|
|
595
|
-
readonly name: "borrow";
|
|
596
618
|
readonly outputs: readonly [{
|
|
597
619
|
readonly name: "";
|
|
598
620
|
readonly type: "address";
|
|
621
|
+
}];
|
|
622
|
+
}, {
|
|
623
|
+
readonly stateMutability: "view";
|
|
624
|
+
readonly type: "function";
|
|
625
|
+
readonly name: "getUnderlyingBalances";
|
|
626
|
+
readonly inputs: readonly [{
|
|
627
|
+
readonly name: "_vaultToken";
|
|
628
|
+
readonly type: "address";
|
|
599
629
|
}, {
|
|
630
|
+
readonly name: "_vaultTokenBalance";
|
|
631
|
+
readonly type: "uint256";
|
|
632
|
+
}];
|
|
633
|
+
readonly outputs: readonly [{
|
|
600
634
|
readonly name: "";
|
|
601
635
|
readonly type: "uint256";
|
|
602
636
|
}, {
|
|
603
637
|
readonly name: "";
|
|
604
638
|
readonly type: "uint256";
|
|
605
639
|
}];
|
|
606
|
-
readonly stateMutability: "nonpayable";
|
|
607
|
-
readonly type: "function";
|
|
608
640
|
}, {
|
|
641
|
+
readonly stateMutability: "view";
|
|
642
|
+
readonly type: "function";
|
|
643
|
+
readonly name: "getUnderlyingAmount";
|
|
609
644
|
readonly inputs: readonly [{
|
|
610
|
-
readonly name: "
|
|
611
|
-
readonly type: "address";
|
|
612
|
-
}, {
|
|
613
|
-
readonly name: "_legoId";
|
|
614
|
-
readonly type: "uint256";
|
|
615
|
-
}, {
|
|
616
|
-
readonly name: "_borrowAsset";
|
|
645
|
+
readonly name: "_vaultToken";
|
|
617
646
|
readonly type: "address";
|
|
618
647
|
}, {
|
|
619
|
-
readonly name: "
|
|
648
|
+
readonly name: "_vaultTokenAmount";
|
|
620
649
|
readonly type: "uint256";
|
|
621
650
|
}];
|
|
622
|
-
readonly name: "borrow";
|
|
623
651
|
readonly outputs: readonly [{
|
|
624
652
|
readonly name: "";
|
|
653
|
+
readonly type: "uint256";
|
|
654
|
+
}];
|
|
655
|
+
}, {
|
|
656
|
+
readonly stateMutability: "view";
|
|
657
|
+
readonly type: "function";
|
|
658
|
+
readonly name: "getUnderlyingAmountSafe";
|
|
659
|
+
readonly inputs: readonly [{
|
|
660
|
+
readonly name: "_vaultToken";
|
|
625
661
|
readonly type: "address";
|
|
626
662
|
}, {
|
|
627
|
-
readonly name: "";
|
|
663
|
+
readonly name: "_vaultTokenBalance";
|
|
628
664
|
readonly type: "uint256";
|
|
629
|
-
}
|
|
665
|
+
}];
|
|
666
|
+
readonly outputs: readonly [{
|
|
630
667
|
readonly name: "";
|
|
631
668
|
readonly type: "uint256";
|
|
632
669
|
}];
|
|
633
|
-
readonly stateMutability: "nonpayable";
|
|
634
|
-
readonly type: "function";
|
|
635
670
|
}, {
|
|
671
|
+
readonly stateMutability: "view";
|
|
672
|
+
readonly type: "function";
|
|
673
|
+
readonly name: "getUnderlyingData";
|
|
636
674
|
readonly inputs: readonly [{
|
|
637
|
-
readonly name: "
|
|
638
|
-
readonly type: "address";
|
|
639
|
-
}, {
|
|
640
|
-
readonly name: "_legoId";
|
|
641
|
-
readonly type: "uint256";
|
|
642
|
-
}, {
|
|
643
|
-
readonly name: "_borrowAsset";
|
|
675
|
+
readonly name: "_vaultToken";
|
|
644
676
|
readonly type: "address";
|
|
645
677
|
}, {
|
|
646
|
-
readonly name: "
|
|
678
|
+
readonly name: "_vaultTokenAmount";
|
|
647
679
|
readonly type: "uint256";
|
|
648
|
-
}, {
|
|
649
|
-
readonly components: readonly [{
|
|
650
|
-
readonly name: "signature";
|
|
651
|
-
readonly type: "bytes";
|
|
652
|
-
}, {
|
|
653
|
-
readonly name: "signer";
|
|
654
|
-
readonly type: "address";
|
|
655
|
-
}, {
|
|
656
|
-
readonly name: "expiration";
|
|
657
|
-
readonly type: "uint256";
|
|
658
|
-
}];
|
|
659
|
-
readonly name: "_sig";
|
|
660
|
-
readonly type: "tuple";
|
|
661
680
|
}];
|
|
662
|
-
readonly name: "borrow";
|
|
663
681
|
readonly outputs: readonly [{
|
|
664
682
|
readonly name: "";
|
|
665
683
|
readonly type: "address";
|
|
@@ -670,20 +688,20 @@ export declare const abi: readonly [{
|
|
|
670
688
|
readonly name: "";
|
|
671
689
|
readonly type: "uint256";
|
|
672
690
|
}];
|
|
673
|
-
readonly stateMutability: "nonpayable";
|
|
674
|
-
readonly type: "function";
|
|
675
691
|
}, {
|
|
692
|
+
readonly stateMutability: "view";
|
|
693
|
+
readonly type: "function";
|
|
694
|
+
readonly name: "getUnderlyingData";
|
|
676
695
|
readonly inputs: readonly [{
|
|
677
|
-
readonly name: "
|
|
696
|
+
readonly name: "_vaultToken";
|
|
678
697
|
readonly type: "address";
|
|
679
698
|
}, {
|
|
680
|
-
readonly name: "
|
|
699
|
+
readonly name: "_vaultTokenAmount";
|
|
681
700
|
readonly type: "uint256";
|
|
682
701
|
}, {
|
|
683
|
-
readonly name: "
|
|
702
|
+
readonly name: "_appraiser";
|
|
684
703
|
readonly type: "address";
|
|
685
704
|
}];
|
|
686
|
-
readonly name: "repayDebt";
|
|
687
705
|
readonly outputs: readonly [{
|
|
688
706
|
readonly name: "";
|
|
689
707
|
readonly type: "address";
|
|
@@ -693,245 +711,314 @@ export declare const abi: readonly [{
|
|
|
693
711
|
}, {
|
|
694
712
|
readonly name: "";
|
|
695
713
|
readonly type: "uint256";
|
|
714
|
+
}];
|
|
715
|
+
}, {
|
|
716
|
+
readonly stateMutability: "view";
|
|
717
|
+
readonly type: "function";
|
|
718
|
+
readonly name: "getUsdValueOfVaultToken";
|
|
719
|
+
readonly inputs: readonly [{
|
|
720
|
+
readonly name: "_vaultToken";
|
|
721
|
+
readonly type: "address";
|
|
696
722
|
}, {
|
|
723
|
+
readonly name: "_vaultTokenAmount";
|
|
724
|
+
readonly type: "uint256";
|
|
725
|
+
}];
|
|
726
|
+
readonly outputs: readonly [{
|
|
697
727
|
readonly name: "";
|
|
698
728
|
readonly type: "uint256";
|
|
699
729
|
}];
|
|
700
|
-
readonly stateMutability: "nonpayable";
|
|
701
|
-
readonly type: "function";
|
|
702
730
|
}, {
|
|
731
|
+
readonly stateMutability: "view";
|
|
732
|
+
readonly type: "function";
|
|
733
|
+
readonly name: "getUsdValueOfVaultToken";
|
|
703
734
|
readonly inputs: readonly [{
|
|
704
|
-
readonly name: "
|
|
735
|
+
readonly name: "_vaultToken";
|
|
705
736
|
readonly type: "address";
|
|
706
737
|
}, {
|
|
707
|
-
readonly name: "
|
|
738
|
+
readonly name: "_vaultTokenAmount";
|
|
708
739
|
readonly type: "uint256";
|
|
709
740
|
}, {
|
|
710
|
-
readonly name: "
|
|
741
|
+
readonly name: "_appraiser";
|
|
711
742
|
readonly type: "address";
|
|
712
|
-
}
|
|
713
|
-
|
|
743
|
+
}];
|
|
744
|
+
readonly outputs: readonly [{
|
|
745
|
+
readonly name: "";
|
|
714
746
|
readonly type: "uint256";
|
|
715
747
|
}];
|
|
716
|
-
|
|
748
|
+
}, {
|
|
749
|
+
readonly stateMutability: "view";
|
|
750
|
+
readonly type: "function";
|
|
751
|
+
readonly name: "isRebasing";
|
|
752
|
+
readonly inputs: readonly [];
|
|
717
753
|
readonly outputs: readonly [{
|
|
718
754
|
readonly name: "";
|
|
755
|
+
readonly type: "bool";
|
|
756
|
+
}];
|
|
757
|
+
}, {
|
|
758
|
+
readonly stateMutability: "view";
|
|
759
|
+
readonly type: "function";
|
|
760
|
+
readonly name: "getPricePerShare";
|
|
761
|
+
readonly inputs: readonly [{
|
|
762
|
+
readonly name: "_vaultToken";
|
|
719
763
|
readonly type: "address";
|
|
720
|
-
}
|
|
764
|
+
}];
|
|
765
|
+
readonly outputs: readonly [{
|
|
721
766
|
readonly name: "";
|
|
722
767
|
readonly type: "uint256";
|
|
768
|
+
}];
|
|
769
|
+
}, {
|
|
770
|
+
readonly stateMutability: "view";
|
|
771
|
+
readonly type: "function";
|
|
772
|
+
readonly name: "getPricePerShare";
|
|
773
|
+
readonly inputs: readonly [{
|
|
774
|
+
readonly name: "_vaultToken";
|
|
775
|
+
readonly type: "address";
|
|
723
776
|
}, {
|
|
724
|
-
readonly name: "";
|
|
777
|
+
readonly name: "_decimals";
|
|
725
778
|
readonly type: "uint256";
|
|
726
|
-
}
|
|
779
|
+
}];
|
|
780
|
+
readonly outputs: readonly [{
|
|
727
781
|
readonly name: "";
|
|
728
782
|
readonly type: "uint256";
|
|
729
783
|
}];
|
|
730
|
-
readonly stateMutability: "nonpayable";
|
|
731
|
-
readonly type: "function";
|
|
732
784
|
}, {
|
|
785
|
+
readonly stateMutability: "view";
|
|
786
|
+
readonly type: "function";
|
|
787
|
+
readonly name: "getVaultTokenAmount";
|
|
733
788
|
readonly inputs: readonly [{
|
|
734
|
-
readonly name: "
|
|
789
|
+
readonly name: "_asset";
|
|
735
790
|
readonly type: "address";
|
|
736
791
|
}, {
|
|
737
|
-
readonly name: "
|
|
792
|
+
readonly name: "_assetAmount";
|
|
738
793
|
readonly type: "uint256";
|
|
739
794
|
}, {
|
|
740
|
-
readonly name: "
|
|
795
|
+
readonly name: "_vaultToken";
|
|
741
796
|
readonly type: "address";
|
|
742
|
-
}, {
|
|
743
|
-
readonly name: "_paymentAmount";
|
|
744
|
-
readonly type: "uint256";
|
|
745
|
-
}, {
|
|
746
|
-
readonly components: readonly [{
|
|
747
|
-
readonly name: "signature";
|
|
748
|
-
readonly type: "bytes";
|
|
749
|
-
}, {
|
|
750
|
-
readonly name: "signer";
|
|
751
|
-
readonly type: "address";
|
|
752
|
-
}, {
|
|
753
|
-
readonly name: "expiration";
|
|
754
|
-
readonly type: "uint256";
|
|
755
|
-
}];
|
|
756
|
-
readonly name: "_sig";
|
|
757
|
-
readonly type: "tuple";
|
|
758
797
|
}];
|
|
759
|
-
readonly name: "repayDebt";
|
|
760
798
|
readonly outputs: readonly [{
|
|
761
799
|
readonly name: "";
|
|
800
|
+
readonly type: "uint256";
|
|
801
|
+
}];
|
|
802
|
+
}, {
|
|
803
|
+
readonly stateMutability: "view";
|
|
804
|
+
readonly type: "function";
|
|
805
|
+
readonly name: "isEligibleVaultForTrialFunds";
|
|
806
|
+
readonly inputs: readonly [{
|
|
807
|
+
readonly name: "_vaultToken";
|
|
762
808
|
readonly type: "address";
|
|
763
809
|
}, {
|
|
810
|
+
readonly name: "_underlyingAsset";
|
|
811
|
+
readonly type: "address";
|
|
812
|
+
}];
|
|
813
|
+
readonly outputs: readonly [{
|
|
764
814
|
readonly name: "";
|
|
765
|
-
readonly type: "
|
|
766
|
-
}
|
|
815
|
+
readonly type: "bool";
|
|
816
|
+
}];
|
|
817
|
+
}, {
|
|
818
|
+
readonly stateMutability: "view";
|
|
819
|
+
readonly type: "function";
|
|
820
|
+
readonly name: "isEligibleForYieldBonus";
|
|
821
|
+
readonly inputs: readonly [{
|
|
822
|
+
readonly name: "_asset";
|
|
823
|
+
readonly type: "address";
|
|
824
|
+
}];
|
|
825
|
+
readonly outputs: readonly [{
|
|
767
826
|
readonly name: "";
|
|
768
|
-
readonly type: "
|
|
769
|
-
}
|
|
827
|
+
readonly type: "bool";
|
|
828
|
+
}];
|
|
829
|
+
}, {
|
|
830
|
+
readonly stateMutability: "view";
|
|
831
|
+
readonly type: "function";
|
|
832
|
+
readonly name: "totalAssets";
|
|
833
|
+
readonly inputs: readonly [{
|
|
834
|
+
readonly name: "_vaultToken";
|
|
835
|
+
readonly type: "address";
|
|
836
|
+
}];
|
|
837
|
+
readonly outputs: readonly [{
|
|
770
838
|
readonly name: "";
|
|
771
839
|
readonly type: "uint256";
|
|
772
840
|
}];
|
|
773
|
-
readonly stateMutability: "nonpayable";
|
|
774
|
-
readonly type: "function";
|
|
775
841
|
}, {
|
|
842
|
+
readonly stateMutability: "view";
|
|
843
|
+
readonly type: "function";
|
|
844
|
+
readonly name: "totalBorrows";
|
|
776
845
|
readonly inputs: readonly [{
|
|
777
|
-
readonly name: "
|
|
846
|
+
readonly name: "_vaultToken";
|
|
778
847
|
readonly type: "address";
|
|
779
|
-
}
|
|
780
|
-
|
|
848
|
+
}];
|
|
849
|
+
readonly outputs: readonly [{
|
|
850
|
+
readonly name: "";
|
|
781
851
|
readonly type: "uint256";
|
|
782
852
|
}];
|
|
783
|
-
readonly name: "claimRewards";
|
|
784
|
-
readonly outputs: readonly [];
|
|
785
|
-
readonly stateMutability: "nonpayable";
|
|
786
|
-
readonly type: "function";
|
|
787
853
|
}, {
|
|
854
|
+
readonly stateMutability: "view";
|
|
855
|
+
readonly type: "function";
|
|
856
|
+
readonly name: "canRegisterVaultToken";
|
|
788
857
|
readonly inputs: readonly [{
|
|
789
|
-
readonly name: "
|
|
858
|
+
readonly name: "_asset";
|
|
790
859
|
readonly type: "address";
|
|
791
860
|
}, {
|
|
792
|
-
readonly name: "
|
|
793
|
-
readonly type: "uint256";
|
|
794
|
-
}, {
|
|
795
|
-
readonly name: "_market";
|
|
861
|
+
readonly name: "_vaultToken";
|
|
796
862
|
readonly type: "address";
|
|
797
863
|
}];
|
|
798
|
-
readonly
|
|
799
|
-
|
|
864
|
+
readonly outputs: readonly [{
|
|
865
|
+
readonly name: "";
|
|
866
|
+
readonly type: "bool";
|
|
867
|
+
}];
|
|
868
|
+
}, {
|
|
800
869
|
readonly stateMutability: "nonpayable";
|
|
801
870
|
readonly type: "function";
|
|
802
|
-
|
|
871
|
+
readonly name: "registerVaultTokenLocally";
|
|
803
872
|
readonly inputs: readonly [{
|
|
804
|
-
readonly name: "
|
|
805
|
-
readonly type: "address";
|
|
806
|
-
}, {
|
|
807
|
-
readonly name: "_legoId";
|
|
808
|
-
readonly type: "uint256";
|
|
809
|
-
}, {
|
|
810
|
-
readonly name: "_market";
|
|
873
|
+
readonly name: "_asset";
|
|
811
874
|
readonly type: "address";
|
|
812
875
|
}, {
|
|
813
|
-
readonly name: "
|
|
876
|
+
readonly name: "_vaultAddr";
|
|
814
877
|
readonly type: "address";
|
|
815
878
|
}];
|
|
816
|
-
readonly
|
|
817
|
-
|
|
879
|
+
readonly outputs: readonly [{
|
|
880
|
+
readonly name: "";
|
|
881
|
+
readonly type: "tuple";
|
|
882
|
+
readonly components: readonly [{
|
|
883
|
+
readonly name: "underlyingAsset";
|
|
884
|
+
readonly type: "address";
|
|
885
|
+
}, {
|
|
886
|
+
readonly name: "decimals";
|
|
887
|
+
readonly type: "uint256";
|
|
888
|
+
}, {
|
|
889
|
+
readonly name: "lastAveragePricePerShare";
|
|
890
|
+
readonly type: "uint256";
|
|
891
|
+
}];
|
|
892
|
+
}];
|
|
893
|
+
}, {
|
|
818
894
|
readonly stateMutability: "nonpayable";
|
|
819
895
|
readonly type: "function";
|
|
820
|
-
|
|
896
|
+
readonly name: "deregisterVaultTokenLocally";
|
|
821
897
|
readonly inputs: readonly [{
|
|
822
|
-
readonly name: "
|
|
823
|
-
readonly type: "address";
|
|
824
|
-
}, {
|
|
825
|
-
readonly name: "_legoId";
|
|
826
|
-
readonly type: "uint256";
|
|
827
|
-
}, {
|
|
828
|
-
readonly name: "_market";
|
|
898
|
+
readonly name: "_asset";
|
|
829
899
|
readonly type: "address";
|
|
830
900
|
}, {
|
|
831
|
-
readonly name: "
|
|
901
|
+
readonly name: "_vaultAddr";
|
|
832
902
|
readonly type: "address";
|
|
833
|
-
}, {
|
|
834
|
-
readonly name: "_rewardAmount";
|
|
835
|
-
readonly type: "uint256";
|
|
836
903
|
}];
|
|
837
|
-
readonly name: "claimRewards";
|
|
838
904
|
readonly outputs: readonly [];
|
|
905
|
+
}, {
|
|
839
906
|
readonly stateMutability: "nonpayable";
|
|
840
907
|
readonly type: "function";
|
|
908
|
+
readonly name: "addPriceSnapshot";
|
|
909
|
+
readonly inputs: readonly [{
|
|
910
|
+
readonly name: "_vaultToken";
|
|
911
|
+
readonly type: "address";
|
|
912
|
+
}];
|
|
913
|
+
readonly outputs: readonly [{
|
|
914
|
+
readonly name: "";
|
|
915
|
+
readonly type: "bool";
|
|
916
|
+
}];
|
|
841
917
|
}, {
|
|
918
|
+
readonly stateMutability: "nonpayable";
|
|
919
|
+
readonly type: "function";
|
|
920
|
+
readonly name: "depositForYield";
|
|
842
921
|
readonly inputs: readonly [{
|
|
843
|
-
readonly name: "
|
|
922
|
+
readonly name: "_asset";
|
|
844
923
|
readonly type: "address";
|
|
845
924
|
}, {
|
|
846
|
-
readonly name: "
|
|
925
|
+
readonly name: "_amount";
|
|
847
926
|
readonly type: "uint256";
|
|
848
927
|
}, {
|
|
849
|
-
readonly name: "
|
|
928
|
+
readonly name: "_vaultAddr";
|
|
850
929
|
readonly type: "address";
|
|
851
930
|
}, {
|
|
852
|
-
readonly name: "
|
|
931
|
+
readonly name: "_extraData";
|
|
932
|
+
readonly type: "bytes32";
|
|
933
|
+
}, {
|
|
934
|
+
readonly name: "_recipient";
|
|
853
935
|
readonly type: "address";
|
|
936
|
+
}];
|
|
937
|
+
readonly outputs: readonly [{
|
|
938
|
+
readonly name: "";
|
|
939
|
+
readonly type: "uint256";
|
|
854
940
|
}, {
|
|
855
|
-
readonly name: "
|
|
941
|
+
readonly name: "";
|
|
942
|
+
readonly type: "address";
|
|
943
|
+
}, {
|
|
944
|
+
readonly name: "";
|
|
856
945
|
readonly type: "uint256";
|
|
857
946
|
}, {
|
|
858
|
-
readonly name: "
|
|
859
|
-
readonly type: "
|
|
947
|
+
readonly name: "";
|
|
948
|
+
readonly type: "uint256";
|
|
860
949
|
}];
|
|
861
|
-
|
|
862
|
-
readonly outputs: readonly [];
|
|
950
|
+
}, {
|
|
863
951
|
readonly stateMutability: "nonpayable";
|
|
864
952
|
readonly type: "function";
|
|
865
|
-
|
|
953
|
+
readonly name: "depositForYield";
|
|
866
954
|
readonly inputs: readonly [{
|
|
867
|
-
readonly name: "
|
|
955
|
+
readonly name: "_asset";
|
|
868
956
|
readonly type: "address";
|
|
869
957
|
}, {
|
|
870
|
-
readonly name: "
|
|
958
|
+
readonly name: "_amount";
|
|
871
959
|
readonly type: "uint256";
|
|
872
960
|
}, {
|
|
873
|
-
readonly name: "
|
|
874
|
-
readonly type: "address";
|
|
875
|
-
}, {
|
|
876
|
-
readonly name: "_rewardToken";
|
|
961
|
+
readonly name: "_vaultAddr";
|
|
877
962
|
readonly type: "address";
|
|
878
963
|
}, {
|
|
879
|
-
readonly name: "
|
|
880
|
-
readonly type: "uint256";
|
|
881
|
-
}, {
|
|
882
|
-
readonly name: "_proof";
|
|
964
|
+
readonly name: "_extraData";
|
|
883
965
|
readonly type: "bytes32";
|
|
884
966
|
}, {
|
|
967
|
+
readonly name: "_recipient";
|
|
968
|
+
readonly type: "address";
|
|
969
|
+
}, {
|
|
970
|
+
readonly name: "_miniAddys";
|
|
971
|
+
readonly type: "tuple";
|
|
885
972
|
readonly components: readonly [{
|
|
886
|
-
readonly name: "
|
|
887
|
-
readonly type: "
|
|
973
|
+
readonly name: "ledger";
|
|
974
|
+
readonly type: "address";
|
|
888
975
|
}, {
|
|
889
|
-
readonly name: "
|
|
976
|
+
readonly name: "missionControl";
|
|
890
977
|
readonly type: "address";
|
|
891
978
|
}, {
|
|
892
|
-
readonly name: "
|
|
893
|
-
readonly type: "
|
|
979
|
+
readonly name: "legoBook";
|
|
980
|
+
readonly type: "address";
|
|
981
|
+
}, {
|
|
982
|
+
readonly name: "appraiser";
|
|
983
|
+
readonly type: "address";
|
|
894
984
|
}];
|
|
895
|
-
readonly name: "_sig";
|
|
896
|
-
readonly type: "tuple";
|
|
897
985
|
}];
|
|
898
|
-
readonly
|
|
899
|
-
|
|
900
|
-
readonly stateMutability: "nonpayable";
|
|
901
|
-
readonly type: "function";
|
|
902
|
-
}, {
|
|
903
|
-
readonly inputs: readonly [{
|
|
904
|
-
readonly name: "_userWallet";
|
|
905
|
-
readonly type: "address";
|
|
906
|
-
}, {
|
|
907
|
-
readonly name: "_legoId";
|
|
986
|
+
readonly outputs: readonly [{
|
|
987
|
+
readonly name: "";
|
|
908
988
|
readonly type: "uint256";
|
|
909
989
|
}, {
|
|
910
|
-
readonly name: "
|
|
990
|
+
readonly name: "";
|
|
911
991
|
readonly type: "address";
|
|
912
992
|
}, {
|
|
913
|
-
readonly name: "
|
|
993
|
+
readonly name: "";
|
|
914
994
|
readonly type: "uint256";
|
|
915
995
|
}, {
|
|
916
|
-
readonly name: "
|
|
996
|
+
readonly name: "";
|
|
997
|
+
readonly type: "uint256";
|
|
998
|
+
}];
|
|
999
|
+
}, {
|
|
1000
|
+
readonly stateMutability: "nonpayable";
|
|
1001
|
+
readonly type: "function";
|
|
1002
|
+
readonly name: "withdrawFromYield";
|
|
1003
|
+
readonly inputs: readonly [{
|
|
1004
|
+
readonly name: "_vaultToken";
|
|
917
1005
|
readonly type: "address";
|
|
918
1006
|
}, {
|
|
919
|
-
readonly name: "
|
|
920
|
-
readonly type: "
|
|
1007
|
+
readonly name: "_amount";
|
|
1008
|
+
readonly type: "uint256";
|
|
921
1009
|
}, {
|
|
922
|
-
readonly name: "
|
|
1010
|
+
readonly name: "_extraData";
|
|
1011
|
+
readonly type: "bytes32";
|
|
1012
|
+
}, {
|
|
1013
|
+
readonly name: "_recipient";
|
|
923
1014
|
readonly type: "address";
|
|
924
1015
|
}];
|
|
925
|
-
readonly name: "addLiquidity";
|
|
926
1016
|
readonly outputs: readonly [{
|
|
927
1017
|
readonly name: "";
|
|
928
1018
|
readonly type: "uint256";
|
|
929
1019
|
}, {
|
|
930
1020
|
readonly name: "";
|
|
931
|
-
readonly type: "
|
|
932
|
-
}, {
|
|
933
|
-
readonly name: "";
|
|
934
|
-
readonly type: "uint256";
|
|
1021
|
+
readonly type: "address";
|
|
935
1022
|
}, {
|
|
936
1023
|
readonly name: "";
|
|
937
1024
|
readonly type: "uint256";
|
|
@@ -939,90 +1026,170 @@ export declare const abi: readonly [{
|
|
|
939
1026
|
readonly name: "";
|
|
940
1027
|
readonly type: "uint256";
|
|
941
1028
|
}];
|
|
1029
|
+
}, {
|
|
942
1030
|
readonly stateMutability: "nonpayable";
|
|
943
1031
|
readonly type: "function";
|
|
944
|
-
|
|
1032
|
+
readonly name: "withdrawFromYield";
|
|
945
1033
|
readonly inputs: readonly [{
|
|
946
|
-
readonly name: "
|
|
1034
|
+
readonly name: "_vaultToken";
|
|
947
1035
|
readonly type: "address";
|
|
948
1036
|
}, {
|
|
949
|
-
readonly name: "
|
|
1037
|
+
readonly name: "_amount";
|
|
950
1038
|
readonly type: "uint256";
|
|
951
1039
|
}, {
|
|
952
|
-
readonly name: "
|
|
1040
|
+
readonly name: "_extraData";
|
|
1041
|
+
readonly type: "bytes32";
|
|
1042
|
+
}, {
|
|
1043
|
+
readonly name: "_recipient";
|
|
953
1044
|
readonly type: "address";
|
|
954
1045
|
}, {
|
|
955
|
-
readonly name: "
|
|
1046
|
+
readonly name: "_miniAddys";
|
|
1047
|
+
readonly type: "tuple";
|
|
1048
|
+
readonly components: readonly [{
|
|
1049
|
+
readonly name: "ledger";
|
|
1050
|
+
readonly type: "address";
|
|
1051
|
+
}, {
|
|
1052
|
+
readonly name: "missionControl";
|
|
1053
|
+
readonly type: "address";
|
|
1054
|
+
}, {
|
|
1055
|
+
readonly name: "legoBook";
|
|
1056
|
+
readonly type: "address";
|
|
1057
|
+
}, {
|
|
1058
|
+
readonly name: "appraiser";
|
|
1059
|
+
readonly type: "address";
|
|
1060
|
+
}];
|
|
1061
|
+
}];
|
|
1062
|
+
readonly outputs: readonly [{
|
|
1063
|
+
readonly name: "";
|
|
956
1064
|
readonly type: "uint256";
|
|
957
1065
|
}, {
|
|
958
|
-
readonly name: "
|
|
1066
|
+
readonly name: "";
|
|
959
1067
|
readonly type: "address";
|
|
960
1068
|
}, {
|
|
961
|
-
readonly name: "
|
|
962
|
-
readonly type: "
|
|
1069
|
+
readonly name: "";
|
|
1070
|
+
readonly type: "uint256";
|
|
963
1071
|
}, {
|
|
964
|
-
readonly name: "
|
|
1072
|
+
readonly name: "";
|
|
1073
|
+
readonly type: "uint256";
|
|
1074
|
+
}];
|
|
1075
|
+
}, {
|
|
1076
|
+
readonly stateMutability: "view";
|
|
1077
|
+
readonly type: "function";
|
|
1078
|
+
readonly name: "getAccessForLego";
|
|
1079
|
+
readonly inputs: readonly [{
|
|
1080
|
+
readonly name: "_user";
|
|
965
1081
|
readonly type: "address";
|
|
966
1082
|
}, {
|
|
967
|
-
readonly name: "
|
|
1083
|
+
readonly name: "_action";
|
|
968
1084
|
readonly type: "uint256";
|
|
969
1085
|
}];
|
|
970
|
-
readonly name: "addLiquidity";
|
|
971
1086
|
readonly outputs: readonly [{
|
|
972
1087
|
readonly name: "";
|
|
973
|
-
readonly type: "
|
|
1088
|
+
readonly type: "address";
|
|
974
1089
|
}, {
|
|
975
1090
|
readonly name: "";
|
|
976
|
-
readonly type: "
|
|
1091
|
+
readonly type: "string";
|
|
977
1092
|
}, {
|
|
978
1093
|
readonly name: "";
|
|
979
1094
|
readonly type: "uint256";
|
|
1095
|
+
}];
|
|
1096
|
+
}, {
|
|
1097
|
+
readonly stateMutability: "nonpayable";
|
|
1098
|
+
readonly type: "function";
|
|
1099
|
+
readonly name: "claimRewards";
|
|
1100
|
+
readonly inputs: readonly [{
|
|
1101
|
+
readonly name: "_user";
|
|
1102
|
+
readonly type: "address";
|
|
1103
|
+
}, {
|
|
1104
|
+
readonly name: "_rewardToken";
|
|
1105
|
+
readonly type: "address";
|
|
1106
|
+
}, {
|
|
1107
|
+
readonly name: "_rewardAmount";
|
|
1108
|
+
readonly type: "uint256";
|
|
980
1109
|
}, {
|
|
1110
|
+
readonly name: "_extraData";
|
|
1111
|
+
readonly type: "bytes32";
|
|
1112
|
+
}];
|
|
1113
|
+
readonly outputs: readonly [{
|
|
981
1114
|
readonly name: "";
|
|
982
1115
|
readonly type: "uint256";
|
|
983
1116
|
}, {
|
|
984
1117
|
readonly name: "";
|
|
985
1118
|
readonly type: "uint256";
|
|
986
1119
|
}];
|
|
1120
|
+
}, {
|
|
987
1121
|
readonly stateMutability: "nonpayable";
|
|
988
1122
|
readonly type: "function";
|
|
989
|
-
|
|
1123
|
+
readonly name: "claimRewards";
|
|
990
1124
|
readonly inputs: readonly [{
|
|
991
|
-
readonly name: "
|
|
1125
|
+
readonly name: "_user";
|
|
992
1126
|
readonly type: "address";
|
|
993
1127
|
}, {
|
|
994
|
-
readonly name: "
|
|
995
|
-
readonly type: "uint256";
|
|
996
|
-
}, {
|
|
997
|
-
readonly name: "_nftAddr";
|
|
1128
|
+
readonly name: "_rewardToken";
|
|
998
1129
|
readonly type: "address";
|
|
999
1130
|
}, {
|
|
1000
|
-
readonly name: "
|
|
1131
|
+
readonly name: "_rewardAmount";
|
|
1001
1132
|
readonly type: "uint256";
|
|
1002
1133
|
}, {
|
|
1003
|
-
readonly name: "
|
|
1004
|
-
readonly type: "
|
|
1005
|
-
}, {
|
|
1006
|
-
readonly name: "_tokenA";
|
|
1007
|
-
readonly type: "address";
|
|
1008
|
-
}, {
|
|
1009
|
-
readonly name: "_tokenB";
|
|
1010
|
-
readonly type: "address";
|
|
1134
|
+
readonly name: "_extraData";
|
|
1135
|
+
readonly type: "bytes32";
|
|
1011
1136
|
}, {
|
|
1012
|
-
readonly name: "
|
|
1137
|
+
readonly name: "_miniAddys";
|
|
1138
|
+
readonly type: "tuple";
|
|
1139
|
+
readonly components: readonly [{
|
|
1140
|
+
readonly name: "ledger";
|
|
1141
|
+
readonly type: "address";
|
|
1142
|
+
}, {
|
|
1143
|
+
readonly name: "missionControl";
|
|
1144
|
+
readonly type: "address";
|
|
1145
|
+
}, {
|
|
1146
|
+
readonly name: "legoBook";
|
|
1147
|
+
readonly type: "address";
|
|
1148
|
+
}, {
|
|
1149
|
+
readonly name: "appraiser";
|
|
1150
|
+
readonly type: "address";
|
|
1151
|
+
}];
|
|
1152
|
+
}];
|
|
1153
|
+
readonly outputs: readonly [{
|
|
1154
|
+
readonly name: "";
|
|
1013
1155
|
readonly type: "uint256";
|
|
1014
1156
|
}, {
|
|
1015
|
-
readonly name: "
|
|
1157
|
+
readonly name: "";
|
|
1016
1158
|
readonly type: "uint256";
|
|
1017
1159
|
}];
|
|
1018
|
-
|
|
1160
|
+
}, {
|
|
1161
|
+
readonly stateMutability: "view";
|
|
1162
|
+
readonly type: "function";
|
|
1163
|
+
readonly name: "hasClaimableRewards";
|
|
1164
|
+
readonly inputs: readonly [{
|
|
1165
|
+
readonly name: "_user";
|
|
1166
|
+
readonly type: "address";
|
|
1167
|
+
}];
|
|
1019
1168
|
readonly outputs: readonly [{
|
|
1020
1169
|
readonly name: "";
|
|
1170
|
+
readonly type: "bool";
|
|
1171
|
+
}];
|
|
1172
|
+
}, {
|
|
1173
|
+
readonly stateMutability: "nonpayable";
|
|
1174
|
+
readonly type: "function";
|
|
1175
|
+
readonly name: "swapTokens";
|
|
1176
|
+
readonly inputs: readonly [{
|
|
1177
|
+
readonly name: "_amountIn";
|
|
1021
1178
|
readonly type: "uint256";
|
|
1022
1179
|
}, {
|
|
1023
|
-
readonly name: "";
|
|
1180
|
+
readonly name: "_minAmountOut";
|
|
1024
1181
|
readonly type: "uint256";
|
|
1025
1182
|
}, {
|
|
1183
|
+
readonly name: "_tokenPath";
|
|
1184
|
+
readonly type: "address[]";
|
|
1185
|
+
}, {
|
|
1186
|
+
readonly name: "_poolPath";
|
|
1187
|
+
readonly type: "address[]";
|
|
1188
|
+
}, {
|
|
1189
|
+
readonly name: "_recipient";
|
|
1190
|
+
readonly type: "address";
|
|
1191
|
+
}];
|
|
1192
|
+
readonly outputs: readonly [{
|
|
1026
1193
|
readonly name: "";
|
|
1027
1194
|
readonly type: "uint256";
|
|
1028
1195
|
}, {
|
|
@@ -1032,41 +1199,75 @@ export declare const abi: readonly [{
|
|
|
1032
1199
|
readonly name: "";
|
|
1033
1200
|
readonly type: "uint256";
|
|
1034
1201
|
}];
|
|
1202
|
+
}, {
|
|
1035
1203
|
readonly stateMutability: "nonpayable";
|
|
1036
1204
|
readonly type: "function";
|
|
1037
|
-
|
|
1205
|
+
readonly name: "swapTokens";
|
|
1038
1206
|
readonly inputs: readonly [{
|
|
1039
|
-
readonly name: "
|
|
1040
|
-
readonly type: "
|
|
1207
|
+
readonly name: "_amountIn";
|
|
1208
|
+
readonly type: "uint256";
|
|
1041
1209
|
}, {
|
|
1042
|
-
readonly name: "
|
|
1210
|
+
readonly name: "_minAmountOut";
|
|
1043
1211
|
readonly type: "uint256";
|
|
1044
1212
|
}, {
|
|
1045
|
-
readonly name: "
|
|
1213
|
+
readonly name: "_tokenPath";
|
|
1214
|
+
readonly type: "address[]";
|
|
1215
|
+
}, {
|
|
1216
|
+
readonly name: "_poolPath";
|
|
1217
|
+
readonly type: "address[]";
|
|
1218
|
+
}, {
|
|
1219
|
+
readonly name: "_recipient";
|
|
1046
1220
|
readonly type: "address";
|
|
1047
1221
|
}, {
|
|
1048
|
-
readonly name: "
|
|
1222
|
+
readonly name: "_miniAddys";
|
|
1223
|
+
readonly type: "tuple";
|
|
1224
|
+
readonly components: readonly [{
|
|
1225
|
+
readonly name: "ledger";
|
|
1226
|
+
readonly type: "address";
|
|
1227
|
+
}, {
|
|
1228
|
+
readonly name: "missionControl";
|
|
1229
|
+
readonly type: "address";
|
|
1230
|
+
}, {
|
|
1231
|
+
readonly name: "legoBook";
|
|
1232
|
+
readonly type: "address";
|
|
1233
|
+
}, {
|
|
1234
|
+
readonly name: "appraiser";
|
|
1235
|
+
readonly type: "address";
|
|
1236
|
+
}];
|
|
1237
|
+
}];
|
|
1238
|
+
readonly outputs: readonly [{
|
|
1239
|
+
readonly name: "";
|
|
1049
1240
|
readonly type: "uint256";
|
|
1050
1241
|
}, {
|
|
1051
|
-
readonly name: "
|
|
1052
|
-
readonly type: "
|
|
1242
|
+
readonly name: "";
|
|
1243
|
+
readonly type: "uint256";
|
|
1053
1244
|
}, {
|
|
1054
|
-
readonly name: "
|
|
1245
|
+
readonly name: "";
|
|
1246
|
+
readonly type: "uint256";
|
|
1247
|
+
}];
|
|
1248
|
+
}, {
|
|
1249
|
+
readonly stateMutability: "nonpayable";
|
|
1250
|
+
readonly type: "function";
|
|
1251
|
+
readonly name: "mintOrRedeemAsset";
|
|
1252
|
+
readonly inputs: readonly [{
|
|
1253
|
+
readonly name: "_tokenIn";
|
|
1055
1254
|
readonly type: "address";
|
|
1056
1255
|
}, {
|
|
1057
|
-
readonly name: "
|
|
1256
|
+
readonly name: "_tokenOut";
|
|
1058
1257
|
readonly type: "address";
|
|
1059
1258
|
}, {
|
|
1060
|
-
readonly name: "
|
|
1259
|
+
readonly name: "_tokenInAmount";
|
|
1061
1260
|
readonly type: "uint256";
|
|
1062
1261
|
}, {
|
|
1063
|
-
readonly name: "
|
|
1262
|
+
readonly name: "_minAmountOut";
|
|
1064
1263
|
readonly type: "uint256";
|
|
1065
1264
|
}, {
|
|
1066
|
-
readonly name: "
|
|
1067
|
-
readonly type: "
|
|
1265
|
+
readonly name: "_extraData";
|
|
1266
|
+
readonly type: "bytes32";
|
|
1267
|
+
}, {
|
|
1268
|
+
readonly name: "_recipient";
|
|
1269
|
+
readonly type: "address";
|
|
1068
1270
|
}];
|
|
1069
|
-
readonly name: "addLiquidity";
|
|
1070
1271
|
readonly outputs: readonly [{
|
|
1071
1272
|
readonly name: "";
|
|
1072
1273
|
readonly type: "uint256";
|
|
@@ -1075,201 +1276,388 @@ export declare const abi: readonly [{
|
|
|
1075
1276
|
readonly type: "uint256";
|
|
1076
1277
|
}, {
|
|
1077
1278
|
readonly name: "";
|
|
1078
|
-
readonly type: "
|
|
1079
|
-
}, {
|
|
1080
|
-
readonly name: "";
|
|
1081
|
-
readonly type: "uint256";
|
|
1279
|
+
readonly type: "bool";
|
|
1082
1280
|
}, {
|
|
1083
1281
|
readonly name: "";
|
|
1084
1282
|
readonly type: "uint256";
|
|
1085
1283
|
}];
|
|
1284
|
+
}, {
|
|
1086
1285
|
readonly stateMutability: "nonpayable";
|
|
1087
1286
|
readonly type: "function";
|
|
1088
|
-
|
|
1287
|
+
readonly name: "mintOrRedeemAsset";
|
|
1089
1288
|
readonly inputs: readonly [{
|
|
1090
|
-
readonly name: "
|
|
1289
|
+
readonly name: "_tokenIn";
|
|
1091
1290
|
readonly type: "address";
|
|
1092
1291
|
}, {
|
|
1093
|
-
readonly name: "
|
|
1094
|
-
readonly type: "uint256";
|
|
1095
|
-
}, {
|
|
1096
|
-
readonly name: "_nftAddr";
|
|
1292
|
+
readonly name: "_tokenOut";
|
|
1097
1293
|
readonly type: "address";
|
|
1098
1294
|
}, {
|
|
1099
|
-
readonly name: "
|
|
1295
|
+
readonly name: "_tokenInAmount";
|
|
1100
1296
|
readonly type: "uint256";
|
|
1101
1297
|
}, {
|
|
1102
|
-
readonly name: "
|
|
1103
|
-
readonly type: "
|
|
1298
|
+
readonly name: "_minAmountOut";
|
|
1299
|
+
readonly type: "uint256";
|
|
1104
1300
|
}, {
|
|
1105
|
-
readonly name: "
|
|
1106
|
-
readonly type: "
|
|
1301
|
+
readonly name: "_extraData";
|
|
1302
|
+
readonly type: "bytes32";
|
|
1107
1303
|
}, {
|
|
1108
|
-
readonly name: "
|
|
1304
|
+
readonly name: "_recipient";
|
|
1109
1305
|
readonly type: "address";
|
|
1110
1306
|
}, {
|
|
1111
|
-
readonly name: "
|
|
1112
|
-
readonly type: "
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1307
|
+
readonly name: "_miniAddys";
|
|
1308
|
+
readonly type: "tuple";
|
|
1309
|
+
readonly components: readonly [{
|
|
1310
|
+
readonly name: "ledger";
|
|
1311
|
+
readonly type: "address";
|
|
1312
|
+
}, {
|
|
1313
|
+
readonly name: "missionControl";
|
|
1314
|
+
readonly type: "address";
|
|
1315
|
+
}, {
|
|
1316
|
+
readonly name: "legoBook";
|
|
1317
|
+
readonly type: "address";
|
|
1318
|
+
}, {
|
|
1319
|
+
readonly name: "appraiser";
|
|
1320
|
+
readonly type: "address";
|
|
1321
|
+
}];
|
|
1122
1322
|
}];
|
|
1123
|
-
readonly name: "addLiquidity";
|
|
1124
1323
|
readonly outputs: readonly [{
|
|
1125
1324
|
readonly name: "";
|
|
1126
1325
|
readonly type: "uint256";
|
|
1127
1326
|
}, {
|
|
1128
1327
|
readonly name: "";
|
|
1129
1328
|
readonly type: "uint256";
|
|
1329
|
+
}, {
|
|
1330
|
+
readonly name: "";
|
|
1331
|
+
readonly type: "bool";
|
|
1130
1332
|
}, {
|
|
1131
1333
|
readonly name: "";
|
|
1132
1334
|
readonly type: "uint256";
|
|
1335
|
+
}];
|
|
1336
|
+
}, {
|
|
1337
|
+
readonly stateMutability: "nonpayable";
|
|
1338
|
+
readonly type: "function";
|
|
1339
|
+
readonly name: "confirmMintOrRedeemAsset";
|
|
1340
|
+
readonly inputs: readonly [{
|
|
1341
|
+
readonly name: "_tokenIn";
|
|
1342
|
+
readonly type: "address";
|
|
1343
|
+
}, {
|
|
1344
|
+
readonly name: "_tokenOut";
|
|
1345
|
+
readonly type: "address";
|
|
1133
1346
|
}, {
|
|
1347
|
+
readonly name: "_extraData";
|
|
1348
|
+
readonly type: "bytes32";
|
|
1349
|
+
}, {
|
|
1350
|
+
readonly name: "_recipient";
|
|
1351
|
+
readonly type: "address";
|
|
1352
|
+
}];
|
|
1353
|
+
readonly outputs: readonly [{
|
|
1134
1354
|
readonly name: "";
|
|
1135
1355
|
readonly type: "uint256";
|
|
1136
1356
|
}, {
|
|
1137
1357
|
readonly name: "";
|
|
1138
1358
|
readonly type: "uint256";
|
|
1139
1359
|
}];
|
|
1360
|
+
}, {
|
|
1140
1361
|
readonly stateMutability: "nonpayable";
|
|
1141
1362
|
readonly type: "function";
|
|
1142
|
-
|
|
1363
|
+
readonly name: "confirmMintOrRedeemAsset";
|
|
1143
1364
|
readonly inputs: readonly [{
|
|
1144
|
-
readonly name: "
|
|
1365
|
+
readonly name: "_tokenIn";
|
|
1145
1366
|
readonly type: "address";
|
|
1146
1367
|
}, {
|
|
1147
|
-
readonly name: "
|
|
1148
|
-
readonly type: "
|
|
1368
|
+
readonly name: "_tokenOut";
|
|
1369
|
+
readonly type: "address";
|
|
1370
|
+
}, {
|
|
1371
|
+
readonly name: "_extraData";
|
|
1372
|
+
readonly type: "bytes32";
|
|
1149
1373
|
}, {
|
|
1150
|
-
readonly name: "
|
|
1374
|
+
readonly name: "_recipient";
|
|
1151
1375
|
readonly type: "address";
|
|
1152
1376
|
}, {
|
|
1153
|
-
readonly name: "
|
|
1377
|
+
readonly name: "_miniAddys";
|
|
1378
|
+
readonly type: "tuple";
|
|
1379
|
+
readonly components: readonly [{
|
|
1380
|
+
readonly name: "ledger";
|
|
1381
|
+
readonly type: "address";
|
|
1382
|
+
}, {
|
|
1383
|
+
readonly name: "missionControl";
|
|
1384
|
+
readonly type: "address";
|
|
1385
|
+
}, {
|
|
1386
|
+
readonly name: "legoBook";
|
|
1387
|
+
readonly type: "address";
|
|
1388
|
+
}, {
|
|
1389
|
+
readonly name: "appraiser";
|
|
1390
|
+
readonly type: "address";
|
|
1391
|
+
}];
|
|
1392
|
+
}];
|
|
1393
|
+
readonly outputs: readonly [{
|
|
1394
|
+
readonly name: "";
|
|
1154
1395
|
readonly type: "uint256";
|
|
1155
1396
|
}, {
|
|
1156
|
-
readonly name: "
|
|
1397
|
+
readonly name: "";
|
|
1398
|
+
readonly type: "uint256";
|
|
1399
|
+
}];
|
|
1400
|
+
}, {
|
|
1401
|
+
readonly stateMutability: "nonpayable";
|
|
1402
|
+
readonly type: "function";
|
|
1403
|
+
readonly name: "addCollateral";
|
|
1404
|
+
readonly inputs: readonly [{
|
|
1405
|
+
readonly name: "_asset";
|
|
1157
1406
|
readonly type: "address";
|
|
1158
1407
|
}, {
|
|
1159
|
-
readonly name: "
|
|
1160
|
-
readonly type: "
|
|
1408
|
+
readonly name: "_amount";
|
|
1409
|
+
readonly type: "uint256";
|
|
1161
1410
|
}, {
|
|
1162
|
-
readonly name: "
|
|
1411
|
+
readonly name: "_extraData";
|
|
1412
|
+
readonly type: "bytes32";
|
|
1413
|
+
}, {
|
|
1414
|
+
readonly name: "_recipient";
|
|
1163
1415
|
readonly type: "address";
|
|
1416
|
+
}];
|
|
1417
|
+
readonly outputs: readonly [{
|
|
1418
|
+
readonly name: "";
|
|
1419
|
+
readonly type: "uint256";
|
|
1164
1420
|
}, {
|
|
1165
|
-
readonly name: "
|
|
1421
|
+
readonly name: "";
|
|
1166
1422
|
readonly type: "uint256";
|
|
1423
|
+
}];
|
|
1424
|
+
}, {
|
|
1425
|
+
readonly stateMutability: "nonpayable";
|
|
1426
|
+
readonly type: "function";
|
|
1427
|
+
readonly name: "addCollateral";
|
|
1428
|
+
readonly inputs: readonly [{
|
|
1429
|
+
readonly name: "_asset";
|
|
1430
|
+
readonly type: "address";
|
|
1167
1431
|
}, {
|
|
1168
|
-
readonly name: "
|
|
1432
|
+
readonly name: "_amount";
|
|
1169
1433
|
readonly type: "uint256";
|
|
1170
1434
|
}, {
|
|
1171
|
-
readonly name: "
|
|
1172
|
-
readonly type: "
|
|
1435
|
+
readonly name: "_extraData";
|
|
1436
|
+
readonly type: "bytes32";
|
|
1173
1437
|
}, {
|
|
1174
|
-
readonly name: "
|
|
1175
|
-
readonly type: "
|
|
1438
|
+
readonly name: "_recipient";
|
|
1439
|
+
readonly type: "address";
|
|
1176
1440
|
}, {
|
|
1177
|
-
readonly name: "
|
|
1178
|
-
readonly type: "
|
|
1441
|
+
readonly name: "_miniAddys";
|
|
1442
|
+
readonly type: "tuple";
|
|
1443
|
+
readonly components: readonly [{
|
|
1444
|
+
readonly name: "ledger";
|
|
1445
|
+
readonly type: "address";
|
|
1446
|
+
}, {
|
|
1447
|
+
readonly name: "missionControl";
|
|
1448
|
+
readonly type: "address";
|
|
1449
|
+
}, {
|
|
1450
|
+
readonly name: "legoBook";
|
|
1451
|
+
readonly type: "address";
|
|
1452
|
+
}, {
|
|
1453
|
+
readonly name: "appraiser";
|
|
1454
|
+
readonly type: "address";
|
|
1455
|
+
}];
|
|
1179
1456
|
}];
|
|
1180
|
-
readonly name: "addLiquidity";
|
|
1181
1457
|
readonly outputs: readonly [{
|
|
1182
1458
|
readonly name: "";
|
|
1183
1459
|
readonly type: "uint256";
|
|
1184
1460
|
}, {
|
|
1185
1461
|
readonly name: "";
|
|
1186
1462
|
readonly type: "uint256";
|
|
1463
|
+
}];
|
|
1464
|
+
}, {
|
|
1465
|
+
readonly stateMutability: "nonpayable";
|
|
1466
|
+
readonly type: "function";
|
|
1467
|
+
readonly name: "removeCollateral";
|
|
1468
|
+
readonly inputs: readonly [{
|
|
1469
|
+
readonly name: "_asset";
|
|
1470
|
+
readonly type: "address";
|
|
1187
1471
|
}, {
|
|
1188
|
-
readonly name: "";
|
|
1472
|
+
readonly name: "_amount";
|
|
1189
1473
|
readonly type: "uint256";
|
|
1190
1474
|
}, {
|
|
1475
|
+
readonly name: "_extraData";
|
|
1476
|
+
readonly type: "bytes32";
|
|
1477
|
+
}, {
|
|
1478
|
+
readonly name: "_recipient";
|
|
1479
|
+
readonly type: "address";
|
|
1480
|
+
}];
|
|
1481
|
+
readonly outputs: readonly [{
|
|
1191
1482
|
readonly name: "";
|
|
1192
1483
|
readonly type: "uint256";
|
|
1193
1484
|
}, {
|
|
1194
1485
|
readonly name: "";
|
|
1195
1486
|
readonly type: "uint256";
|
|
1196
1487
|
}];
|
|
1488
|
+
}, {
|
|
1197
1489
|
readonly stateMutability: "nonpayable";
|
|
1198
1490
|
readonly type: "function";
|
|
1199
|
-
|
|
1491
|
+
readonly name: "removeCollateral";
|
|
1200
1492
|
readonly inputs: readonly [{
|
|
1201
|
-
readonly name: "
|
|
1493
|
+
readonly name: "_asset";
|
|
1202
1494
|
readonly type: "address";
|
|
1203
1495
|
}, {
|
|
1204
|
-
readonly name: "
|
|
1496
|
+
readonly name: "_amount";
|
|
1205
1497
|
readonly type: "uint256";
|
|
1206
1498
|
}, {
|
|
1207
|
-
readonly name: "
|
|
1499
|
+
readonly name: "_extraData";
|
|
1500
|
+
readonly type: "bytes32";
|
|
1501
|
+
}, {
|
|
1502
|
+
readonly name: "_recipient";
|
|
1208
1503
|
readonly type: "address";
|
|
1209
1504
|
}, {
|
|
1210
|
-
readonly name: "
|
|
1505
|
+
readonly name: "_miniAddys";
|
|
1506
|
+
readonly type: "tuple";
|
|
1507
|
+
readonly components: readonly [{
|
|
1508
|
+
readonly name: "ledger";
|
|
1509
|
+
readonly type: "address";
|
|
1510
|
+
}, {
|
|
1511
|
+
readonly name: "missionControl";
|
|
1512
|
+
readonly type: "address";
|
|
1513
|
+
}, {
|
|
1514
|
+
readonly name: "legoBook";
|
|
1515
|
+
readonly type: "address";
|
|
1516
|
+
}, {
|
|
1517
|
+
readonly name: "appraiser";
|
|
1518
|
+
readonly type: "address";
|
|
1519
|
+
}];
|
|
1520
|
+
}];
|
|
1521
|
+
readonly outputs: readonly [{
|
|
1522
|
+
readonly name: "";
|
|
1211
1523
|
readonly type: "uint256";
|
|
1212
1524
|
}, {
|
|
1213
|
-
readonly name: "
|
|
1525
|
+
readonly name: "";
|
|
1526
|
+
readonly type: "uint256";
|
|
1527
|
+
}];
|
|
1528
|
+
}, {
|
|
1529
|
+
readonly stateMutability: "nonpayable";
|
|
1530
|
+
readonly type: "function";
|
|
1531
|
+
readonly name: "borrow";
|
|
1532
|
+
readonly inputs: readonly [{
|
|
1533
|
+
readonly name: "_borrowAsset";
|
|
1214
1534
|
readonly type: "address";
|
|
1215
1535
|
}, {
|
|
1216
|
-
readonly name: "
|
|
1217
|
-
readonly type: "
|
|
1536
|
+
readonly name: "_amount";
|
|
1537
|
+
readonly type: "uint256";
|
|
1218
1538
|
}, {
|
|
1219
|
-
readonly name: "
|
|
1220
|
-
readonly type: "
|
|
1539
|
+
readonly name: "_extraData";
|
|
1540
|
+
readonly type: "bytes32";
|
|
1221
1541
|
}, {
|
|
1222
|
-
readonly name: "
|
|
1542
|
+
readonly name: "_recipient";
|
|
1543
|
+
readonly type: "address";
|
|
1544
|
+
}];
|
|
1545
|
+
readonly outputs: readonly [{
|
|
1546
|
+
readonly name: "";
|
|
1223
1547
|
readonly type: "uint256";
|
|
1224
1548
|
}, {
|
|
1225
|
-
readonly name: "
|
|
1549
|
+
readonly name: "";
|
|
1226
1550
|
readonly type: "uint256";
|
|
1551
|
+
}];
|
|
1552
|
+
}, {
|
|
1553
|
+
readonly stateMutability: "nonpayable";
|
|
1554
|
+
readonly type: "function";
|
|
1555
|
+
readonly name: "borrow";
|
|
1556
|
+
readonly inputs: readonly [{
|
|
1557
|
+
readonly name: "_borrowAsset";
|
|
1558
|
+
readonly type: "address";
|
|
1227
1559
|
}, {
|
|
1228
|
-
readonly name: "
|
|
1229
|
-
readonly type: "
|
|
1560
|
+
readonly name: "_amount";
|
|
1561
|
+
readonly type: "uint256";
|
|
1230
1562
|
}, {
|
|
1231
|
-
readonly name: "
|
|
1232
|
-
readonly type: "
|
|
1563
|
+
readonly name: "_extraData";
|
|
1564
|
+
readonly type: "bytes32";
|
|
1233
1565
|
}, {
|
|
1234
|
-
readonly name: "
|
|
1235
|
-
readonly type: "
|
|
1566
|
+
readonly name: "_recipient";
|
|
1567
|
+
readonly type: "address";
|
|
1236
1568
|
}, {
|
|
1237
|
-
readonly name: "
|
|
1238
|
-
readonly type: "
|
|
1569
|
+
readonly name: "_miniAddys";
|
|
1570
|
+
readonly type: "tuple";
|
|
1571
|
+
readonly components: readonly [{
|
|
1572
|
+
readonly name: "ledger";
|
|
1573
|
+
readonly type: "address";
|
|
1574
|
+
}, {
|
|
1575
|
+
readonly name: "missionControl";
|
|
1576
|
+
readonly type: "address";
|
|
1577
|
+
}, {
|
|
1578
|
+
readonly name: "legoBook";
|
|
1579
|
+
readonly type: "address";
|
|
1580
|
+
}, {
|
|
1581
|
+
readonly name: "appraiser";
|
|
1582
|
+
readonly type: "address";
|
|
1583
|
+
}];
|
|
1239
1584
|
}];
|
|
1240
|
-
readonly name: "addLiquidity";
|
|
1241
1585
|
readonly outputs: readonly [{
|
|
1242
1586
|
readonly name: "";
|
|
1243
1587
|
readonly type: "uint256";
|
|
1244
1588
|
}, {
|
|
1245
1589
|
readonly name: "";
|
|
1246
1590
|
readonly type: "uint256";
|
|
1591
|
+
}];
|
|
1592
|
+
}, {
|
|
1593
|
+
readonly stateMutability: "nonpayable";
|
|
1594
|
+
readonly type: "function";
|
|
1595
|
+
readonly name: "repayDebt";
|
|
1596
|
+
readonly inputs: readonly [{
|
|
1597
|
+
readonly name: "_paymentAsset";
|
|
1598
|
+
readonly type: "address";
|
|
1247
1599
|
}, {
|
|
1248
|
-
readonly name: "";
|
|
1600
|
+
readonly name: "_paymentAmount";
|
|
1249
1601
|
readonly type: "uint256";
|
|
1250
1602
|
}, {
|
|
1603
|
+
readonly name: "_extraData";
|
|
1604
|
+
readonly type: "bytes32";
|
|
1605
|
+
}, {
|
|
1606
|
+
readonly name: "_recipient";
|
|
1607
|
+
readonly type: "address";
|
|
1608
|
+
}];
|
|
1609
|
+
readonly outputs: readonly [{
|
|
1251
1610
|
readonly name: "";
|
|
1252
1611
|
readonly type: "uint256";
|
|
1253
1612
|
}, {
|
|
1254
1613
|
readonly name: "";
|
|
1255
1614
|
readonly type: "uint256";
|
|
1256
1615
|
}];
|
|
1616
|
+
}, {
|
|
1257
1617
|
readonly stateMutability: "nonpayable";
|
|
1258
1618
|
readonly type: "function";
|
|
1259
|
-
|
|
1619
|
+
readonly name: "repayDebt";
|
|
1260
1620
|
readonly inputs: readonly [{
|
|
1261
|
-
readonly name: "
|
|
1621
|
+
readonly name: "_paymentAsset";
|
|
1262
1622
|
readonly type: "address";
|
|
1263
1623
|
}, {
|
|
1264
|
-
readonly name: "
|
|
1624
|
+
readonly name: "_paymentAmount";
|
|
1265
1625
|
readonly type: "uint256";
|
|
1266
1626
|
}, {
|
|
1267
|
-
readonly name: "
|
|
1627
|
+
readonly name: "_extraData";
|
|
1628
|
+
readonly type: "bytes32";
|
|
1629
|
+
}, {
|
|
1630
|
+
readonly name: "_recipient";
|
|
1268
1631
|
readonly type: "address";
|
|
1269
1632
|
}, {
|
|
1270
|
-
readonly name: "
|
|
1633
|
+
readonly name: "_miniAddys";
|
|
1634
|
+
readonly type: "tuple";
|
|
1635
|
+
readonly components: readonly [{
|
|
1636
|
+
readonly name: "ledger";
|
|
1637
|
+
readonly type: "address";
|
|
1638
|
+
}, {
|
|
1639
|
+
readonly name: "missionControl";
|
|
1640
|
+
readonly type: "address";
|
|
1641
|
+
}, {
|
|
1642
|
+
readonly name: "legoBook";
|
|
1643
|
+
readonly type: "address";
|
|
1644
|
+
}, {
|
|
1645
|
+
readonly name: "appraiser";
|
|
1646
|
+
readonly type: "address";
|
|
1647
|
+
}];
|
|
1648
|
+
}];
|
|
1649
|
+
readonly outputs: readonly [{
|
|
1650
|
+
readonly name: "";
|
|
1271
1651
|
readonly type: "uint256";
|
|
1272
1652
|
}, {
|
|
1653
|
+
readonly name: "";
|
|
1654
|
+
readonly type: "uint256";
|
|
1655
|
+
}];
|
|
1656
|
+
}, {
|
|
1657
|
+
readonly stateMutability: "nonpayable";
|
|
1658
|
+
readonly type: "function";
|
|
1659
|
+
readonly name: "addLiquidity";
|
|
1660
|
+
readonly inputs: readonly [{
|
|
1273
1661
|
readonly name: "_pool";
|
|
1274
1662
|
readonly type: "address";
|
|
1275
1663
|
}, {
|
|
@@ -1284,12 +1672,6 @@ export declare const abi: readonly [{
|
|
|
1284
1672
|
}, {
|
|
1285
1673
|
readonly name: "_amountB";
|
|
1286
1674
|
readonly type: "uint256";
|
|
1287
|
-
}, {
|
|
1288
|
-
readonly name: "_tickLower";
|
|
1289
|
-
readonly type: "int24";
|
|
1290
|
-
}, {
|
|
1291
|
-
readonly name: "_tickUpper";
|
|
1292
|
-
readonly type: "int24";
|
|
1293
1675
|
}, {
|
|
1294
1676
|
readonly name: "_minAmountA";
|
|
1295
1677
|
readonly type: "uint256";
|
|
@@ -1299,11 +1681,16 @@ export declare const abi: readonly [{
|
|
|
1299
1681
|
}, {
|
|
1300
1682
|
readonly name: "_minLpAmount";
|
|
1301
1683
|
readonly type: "uint256";
|
|
1684
|
+
}, {
|
|
1685
|
+
readonly name: "_extraData";
|
|
1686
|
+
readonly type: "bytes32";
|
|
1687
|
+
}, {
|
|
1688
|
+
readonly name: "_recipient";
|
|
1689
|
+
readonly type: "address";
|
|
1302
1690
|
}];
|
|
1303
|
-
readonly name: "addLiquidity";
|
|
1304
1691
|
readonly outputs: readonly [{
|
|
1305
1692
|
readonly name: "";
|
|
1306
|
-
readonly type: "
|
|
1693
|
+
readonly type: "address";
|
|
1307
1694
|
}, {
|
|
1308
1695
|
readonly name: "";
|
|
1309
1696
|
readonly type: "uint256";
|
|
@@ -1317,22 +1704,11 @@ export declare const abi: readonly [{
|
|
|
1317
1704
|
readonly name: "";
|
|
1318
1705
|
readonly type: "uint256";
|
|
1319
1706
|
}];
|
|
1707
|
+
}, {
|
|
1320
1708
|
readonly stateMutability: "nonpayable";
|
|
1321
1709
|
readonly type: "function";
|
|
1322
|
-
|
|
1710
|
+
readonly name: "addLiquidity";
|
|
1323
1711
|
readonly inputs: readonly [{
|
|
1324
|
-
readonly name: "_userWallet";
|
|
1325
|
-
readonly type: "address";
|
|
1326
|
-
}, {
|
|
1327
|
-
readonly name: "_legoId";
|
|
1328
|
-
readonly type: "uint256";
|
|
1329
|
-
}, {
|
|
1330
|
-
readonly name: "_nftAddr";
|
|
1331
|
-
readonly type: "address";
|
|
1332
|
-
}, {
|
|
1333
|
-
readonly name: "_nftTokenId";
|
|
1334
|
-
readonly type: "uint256";
|
|
1335
|
-
}, {
|
|
1336
1712
|
readonly name: "_pool";
|
|
1337
1713
|
readonly type: "address";
|
|
1338
1714
|
}, {
|
|
@@ -1347,12 +1723,6 @@ export declare const abi: readonly [{
|
|
|
1347
1723
|
}, {
|
|
1348
1724
|
readonly name: "_amountB";
|
|
1349
1725
|
readonly type: "uint256";
|
|
1350
|
-
}, {
|
|
1351
|
-
readonly name: "_tickLower";
|
|
1352
|
-
readonly type: "int24";
|
|
1353
|
-
}, {
|
|
1354
|
-
readonly name: "_tickUpper";
|
|
1355
|
-
readonly type: "int24";
|
|
1356
1726
|
}, {
|
|
1357
1727
|
readonly name: "_minAmountA";
|
|
1358
1728
|
readonly type: "uint256";
|
|
@@ -1363,23 +1733,31 @@ export declare const abi: readonly [{
|
|
|
1363
1733
|
readonly name: "_minLpAmount";
|
|
1364
1734
|
readonly type: "uint256";
|
|
1365
1735
|
}, {
|
|
1736
|
+
readonly name: "_extraData";
|
|
1737
|
+
readonly type: "bytes32";
|
|
1738
|
+
}, {
|
|
1739
|
+
readonly name: "_recipient";
|
|
1740
|
+
readonly type: "address";
|
|
1741
|
+
}, {
|
|
1742
|
+
readonly name: "_miniAddys";
|
|
1743
|
+
readonly type: "tuple";
|
|
1366
1744
|
readonly components: readonly [{
|
|
1367
|
-
readonly name: "
|
|
1368
|
-
readonly type: "
|
|
1745
|
+
readonly name: "ledger";
|
|
1746
|
+
readonly type: "address";
|
|
1369
1747
|
}, {
|
|
1370
|
-
readonly name: "
|
|
1748
|
+
readonly name: "missionControl";
|
|
1371
1749
|
readonly type: "address";
|
|
1372
1750
|
}, {
|
|
1373
|
-
readonly name: "
|
|
1374
|
-
readonly type: "
|
|
1751
|
+
readonly name: "legoBook";
|
|
1752
|
+
readonly type: "address";
|
|
1753
|
+
}, {
|
|
1754
|
+
readonly name: "appraiser";
|
|
1755
|
+
readonly type: "address";
|
|
1375
1756
|
}];
|
|
1376
|
-
readonly name: "_sig";
|
|
1377
|
-
readonly type: "tuple";
|
|
1378
1757
|
}];
|
|
1379
|
-
readonly name: "addLiquidity";
|
|
1380
1758
|
readonly outputs: readonly [{
|
|
1381
1759
|
readonly name: "";
|
|
1382
|
-
readonly type: "
|
|
1760
|
+
readonly type: "address";
|
|
1383
1761
|
}, {
|
|
1384
1762
|
readonly name: "";
|
|
1385
1763
|
readonly type: "uint256";
|
|
@@ -1393,22 +1771,11 @@ export declare const abi: readonly [{
|
|
|
1393
1771
|
readonly name: "";
|
|
1394
1772
|
readonly type: "uint256";
|
|
1395
1773
|
}];
|
|
1774
|
+
}, {
|
|
1396
1775
|
readonly stateMutability: "nonpayable";
|
|
1397
1776
|
readonly type: "function";
|
|
1398
|
-
|
|
1777
|
+
readonly name: "removeLiquidity";
|
|
1399
1778
|
readonly inputs: readonly [{
|
|
1400
|
-
readonly name: "_userWallet";
|
|
1401
|
-
readonly type: "address";
|
|
1402
|
-
}, {
|
|
1403
|
-
readonly name: "_legoId";
|
|
1404
|
-
readonly type: "uint256";
|
|
1405
|
-
}, {
|
|
1406
|
-
readonly name: "_nftAddr";
|
|
1407
|
-
readonly type: "address";
|
|
1408
|
-
}, {
|
|
1409
|
-
readonly name: "_nftTokenId";
|
|
1410
|
-
readonly type: "uint256";
|
|
1411
|
-
}, {
|
|
1412
1779
|
readonly name: "_pool";
|
|
1413
1780
|
readonly type: "address";
|
|
1414
1781
|
}, {
|
|
@@ -1417,50 +1784,25 @@ export declare const abi: readonly [{
|
|
|
1417
1784
|
}, {
|
|
1418
1785
|
readonly name: "_tokenB";
|
|
1419
1786
|
readonly type: "address";
|
|
1420
|
-
}];
|
|
1421
|
-
readonly name: "removeLiquidity";
|
|
1422
|
-
readonly outputs: readonly [{
|
|
1423
|
-
readonly name: "";
|
|
1424
|
-
readonly type: "uint256";
|
|
1425
|
-
}, {
|
|
1426
|
-
readonly name: "";
|
|
1427
|
-
readonly type: "uint256";
|
|
1428
|
-
}, {
|
|
1429
|
-
readonly name: "";
|
|
1430
|
-
readonly type: "uint256";
|
|
1431
1787
|
}, {
|
|
1432
|
-
readonly name: "";
|
|
1433
|
-
readonly type: "bool";
|
|
1434
|
-
}];
|
|
1435
|
-
readonly stateMutability: "nonpayable";
|
|
1436
|
-
readonly type: "function";
|
|
1437
|
-
}, {
|
|
1438
|
-
readonly inputs: readonly [{
|
|
1439
|
-
readonly name: "_userWallet";
|
|
1788
|
+
readonly name: "_lpToken";
|
|
1440
1789
|
readonly type: "address";
|
|
1441
1790
|
}, {
|
|
1442
|
-
readonly name: "
|
|
1791
|
+
readonly name: "_lpAmount";
|
|
1443
1792
|
readonly type: "uint256";
|
|
1444
1793
|
}, {
|
|
1445
|
-
readonly name: "
|
|
1446
|
-
readonly type: "address";
|
|
1447
|
-
}, {
|
|
1448
|
-
readonly name: "_nftTokenId";
|
|
1794
|
+
readonly name: "_minAmountA";
|
|
1449
1795
|
readonly type: "uint256";
|
|
1450
1796
|
}, {
|
|
1451
|
-
readonly name: "
|
|
1452
|
-
readonly type: "
|
|
1797
|
+
readonly name: "_minAmountB";
|
|
1798
|
+
readonly type: "uint256";
|
|
1453
1799
|
}, {
|
|
1454
|
-
readonly name: "
|
|
1455
|
-
readonly type: "
|
|
1800
|
+
readonly name: "_extraData";
|
|
1801
|
+
readonly type: "bytes32";
|
|
1456
1802
|
}, {
|
|
1457
|
-
readonly name: "
|
|
1803
|
+
readonly name: "_recipient";
|
|
1458
1804
|
readonly type: "address";
|
|
1459
|
-
}, {
|
|
1460
|
-
readonly name: "_liqToRemove";
|
|
1461
|
-
readonly type: "uint256";
|
|
1462
1805
|
}];
|
|
1463
|
-
readonly name: "removeLiquidity";
|
|
1464
1806
|
readonly outputs: readonly [{
|
|
1465
1807
|
readonly name: "";
|
|
1466
1808
|
readonly type: "uint256";
|
|
@@ -1472,24 +1814,13 @@ export declare const abi: readonly [{
|
|
|
1472
1814
|
readonly type: "uint256";
|
|
1473
1815
|
}, {
|
|
1474
1816
|
readonly name: "";
|
|
1475
|
-
readonly type: "
|
|
1817
|
+
readonly type: "uint256";
|
|
1476
1818
|
}];
|
|
1819
|
+
}, {
|
|
1477
1820
|
readonly stateMutability: "nonpayable";
|
|
1478
1821
|
readonly type: "function";
|
|
1479
|
-
|
|
1822
|
+
readonly name: "removeLiquidity";
|
|
1480
1823
|
readonly inputs: readonly [{
|
|
1481
|
-
readonly name: "_userWallet";
|
|
1482
|
-
readonly type: "address";
|
|
1483
|
-
}, {
|
|
1484
|
-
readonly name: "_legoId";
|
|
1485
|
-
readonly type: "uint256";
|
|
1486
|
-
}, {
|
|
1487
|
-
readonly name: "_nftAddr";
|
|
1488
|
-
readonly type: "address";
|
|
1489
|
-
}, {
|
|
1490
|
-
readonly name: "_nftTokenId";
|
|
1491
|
-
readonly type: "uint256";
|
|
1492
|
-
}, {
|
|
1493
1824
|
readonly name: "_pool";
|
|
1494
1825
|
readonly type: "address";
|
|
1495
1826
|
}, {
|
|
@@ -1499,61 +1830,40 @@ export declare const abi: readonly [{
|
|
|
1499
1830
|
readonly name: "_tokenB";
|
|
1500
1831
|
readonly type: "address";
|
|
1501
1832
|
}, {
|
|
1502
|
-
readonly name: "
|
|
1503
|
-
readonly type: "uint256";
|
|
1504
|
-
}, {
|
|
1505
|
-
readonly name: "_minAmountA";
|
|
1506
|
-
readonly type: "uint256";
|
|
1507
|
-
}];
|
|
1508
|
-
readonly name: "removeLiquidity";
|
|
1509
|
-
readonly outputs: readonly [{
|
|
1510
|
-
readonly name: "";
|
|
1511
|
-
readonly type: "uint256";
|
|
1512
|
-
}, {
|
|
1513
|
-
readonly name: "";
|
|
1514
|
-
readonly type: "uint256";
|
|
1515
|
-
}, {
|
|
1516
|
-
readonly name: "";
|
|
1517
|
-
readonly type: "uint256";
|
|
1518
|
-
}, {
|
|
1519
|
-
readonly name: "";
|
|
1520
|
-
readonly type: "bool";
|
|
1521
|
-
}];
|
|
1522
|
-
readonly stateMutability: "nonpayable";
|
|
1523
|
-
readonly type: "function";
|
|
1524
|
-
}, {
|
|
1525
|
-
readonly inputs: readonly [{
|
|
1526
|
-
readonly name: "_userWallet";
|
|
1833
|
+
readonly name: "_lpToken";
|
|
1527
1834
|
readonly type: "address";
|
|
1528
1835
|
}, {
|
|
1529
|
-
readonly name: "
|
|
1836
|
+
readonly name: "_lpAmount";
|
|
1530
1837
|
readonly type: "uint256";
|
|
1531
1838
|
}, {
|
|
1532
|
-
readonly name: "
|
|
1533
|
-
readonly type: "address";
|
|
1534
|
-
}, {
|
|
1535
|
-
readonly name: "_nftTokenId";
|
|
1839
|
+
readonly name: "_minAmountA";
|
|
1536
1840
|
readonly type: "uint256";
|
|
1537
1841
|
}, {
|
|
1538
|
-
readonly name: "
|
|
1539
|
-
readonly type: "
|
|
1842
|
+
readonly name: "_minAmountB";
|
|
1843
|
+
readonly type: "uint256";
|
|
1540
1844
|
}, {
|
|
1541
|
-
readonly name: "
|
|
1542
|
-
readonly type: "
|
|
1845
|
+
readonly name: "_extraData";
|
|
1846
|
+
readonly type: "bytes32";
|
|
1543
1847
|
}, {
|
|
1544
|
-
readonly name: "
|
|
1848
|
+
readonly name: "_recipient";
|
|
1545
1849
|
readonly type: "address";
|
|
1546
1850
|
}, {
|
|
1547
|
-
readonly name: "
|
|
1548
|
-
readonly type: "
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1851
|
+
readonly name: "_miniAddys";
|
|
1852
|
+
readonly type: "tuple";
|
|
1853
|
+
readonly components: readonly [{
|
|
1854
|
+
readonly name: "ledger";
|
|
1855
|
+
readonly type: "address";
|
|
1856
|
+
}, {
|
|
1857
|
+
readonly name: "missionControl";
|
|
1858
|
+
readonly type: "address";
|
|
1859
|
+
}, {
|
|
1860
|
+
readonly name: "legoBook";
|
|
1861
|
+
readonly type: "address";
|
|
1862
|
+
}, {
|
|
1863
|
+
readonly name: "appraiser";
|
|
1864
|
+
readonly type: "address";
|
|
1865
|
+
}];
|
|
1555
1866
|
}];
|
|
1556
|
-
readonly name: "removeLiquidity";
|
|
1557
1867
|
readonly outputs: readonly [{
|
|
1558
1868
|
readonly name: "";
|
|
1559
1869
|
readonly type: "uint256";
|
|
@@ -1565,21 +1875,13 @@ export declare const abi: readonly [{
|
|
|
1565
1875
|
readonly type: "uint256";
|
|
1566
1876
|
}, {
|
|
1567
1877
|
readonly name: "";
|
|
1568
|
-
readonly type: "
|
|
1878
|
+
readonly type: "uint256";
|
|
1569
1879
|
}];
|
|
1880
|
+
}, {
|
|
1570
1881
|
readonly stateMutability: "nonpayable";
|
|
1571
1882
|
readonly type: "function";
|
|
1572
|
-
|
|
1883
|
+
readonly name: "addLiquidityConcentrated";
|
|
1573
1884
|
readonly inputs: readonly [{
|
|
1574
|
-
readonly name: "_userWallet";
|
|
1575
|
-
readonly type: "address";
|
|
1576
|
-
}, {
|
|
1577
|
-
readonly name: "_legoId";
|
|
1578
|
-
readonly type: "uint256";
|
|
1579
|
-
}, {
|
|
1580
|
-
readonly name: "_nftAddr";
|
|
1581
|
-
readonly type: "address";
|
|
1582
|
-
}, {
|
|
1583
1885
|
readonly name: "_nftTokenId";
|
|
1584
1886
|
readonly type: "uint256";
|
|
1585
1887
|
}, {
|
|
@@ -1592,974 +1894,456 @@ export declare const abi: readonly [{
|
|
|
1592
1894
|
readonly name: "_tokenB";
|
|
1593
1895
|
readonly type: "address";
|
|
1594
1896
|
}, {
|
|
1595
|
-
readonly name: "
|
|
1596
|
-
readonly type: "
|
|
1897
|
+
readonly name: "_tickLower";
|
|
1898
|
+
readonly type: "int24";
|
|
1597
1899
|
}, {
|
|
1598
|
-
readonly name: "
|
|
1599
|
-
readonly type: "
|
|
1900
|
+
readonly name: "_tickUpper";
|
|
1901
|
+
readonly type: "int24";
|
|
1600
1902
|
}, {
|
|
1601
|
-
readonly name: "
|
|
1903
|
+
readonly name: "_amountA";
|
|
1602
1904
|
readonly type: "uint256";
|
|
1603
1905
|
}, {
|
|
1604
|
-
readonly
|
|
1605
|
-
readonly name: "signature";
|
|
1606
|
-
readonly type: "bytes";
|
|
1607
|
-
}, {
|
|
1608
|
-
readonly name: "signer";
|
|
1609
|
-
readonly type: "address";
|
|
1610
|
-
}, {
|
|
1611
|
-
readonly name: "expiration";
|
|
1612
|
-
readonly type: "uint256";
|
|
1613
|
-
}];
|
|
1614
|
-
readonly name: "_sig";
|
|
1615
|
-
readonly type: "tuple";
|
|
1616
|
-
}];
|
|
1617
|
-
readonly name: "removeLiquidity";
|
|
1618
|
-
readonly outputs: readonly [{
|
|
1619
|
-
readonly name: "";
|
|
1906
|
+
readonly name: "_amountB";
|
|
1620
1907
|
readonly type: "uint256";
|
|
1621
1908
|
}, {
|
|
1622
|
-
readonly name: "";
|
|
1909
|
+
readonly name: "_minAmountA";
|
|
1623
1910
|
readonly type: "uint256";
|
|
1624
1911
|
}, {
|
|
1625
|
-
readonly name: "";
|
|
1912
|
+
readonly name: "_minAmountB";
|
|
1626
1913
|
readonly type: "uint256";
|
|
1627
1914
|
}, {
|
|
1628
|
-
readonly name: "";
|
|
1629
|
-
readonly type: "
|
|
1630
|
-
}];
|
|
1631
|
-
readonly stateMutability: "nonpayable";
|
|
1632
|
-
readonly type: "function";
|
|
1633
|
-
}, {
|
|
1634
|
-
readonly inputs: readonly [{
|
|
1635
|
-
readonly name: "_userWallet";
|
|
1636
|
-
readonly type: "address";
|
|
1915
|
+
readonly name: "_extraData";
|
|
1916
|
+
readonly type: "bytes32";
|
|
1637
1917
|
}, {
|
|
1638
1918
|
readonly name: "_recipient";
|
|
1639
1919
|
readonly type: "address";
|
|
1640
1920
|
}];
|
|
1641
|
-
readonly name: "transferFunds";
|
|
1642
1921
|
readonly outputs: readonly [{
|
|
1643
1922
|
readonly name: "";
|
|
1644
1923
|
readonly type: "uint256";
|
|
1645
1924
|
}, {
|
|
1646
1925
|
readonly name: "";
|
|
1647
1926
|
readonly type: "uint256";
|
|
1648
|
-
}];
|
|
1649
|
-
readonly stateMutability: "nonpayable";
|
|
1650
|
-
readonly type: "function";
|
|
1651
|
-
}, {
|
|
1652
|
-
readonly inputs: readonly [{
|
|
1653
|
-
readonly name: "_userWallet";
|
|
1654
|
-
readonly type: "address";
|
|
1655
|
-
}, {
|
|
1656
|
-
readonly name: "_recipient";
|
|
1657
|
-
readonly type: "address";
|
|
1658
1927
|
}, {
|
|
1659
|
-
readonly name: "
|
|
1928
|
+
readonly name: "";
|
|
1660
1929
|
readonly type: "uint256";
|
|
1661
|
-
}
|
|
1662
|
-
readonly name: "transferFunds";
|
|
1663
|
-
readonly outputs: readonly [{
|
|
1930
|
+
}, {
|
|
1664
1931
|
readonly name: "";
|
|
1665
1932
|
readonly type: "uint256";
|
|
1666
1933
|
}, {
|
|
1667
1934
|
readonly name: "";
|
|
1668
1935
|
readonly type: "uint256";
|
|
1669
1936
|
}];
|
|
1937
|
+
}, {
|
|
1670
1938
|
readonly stateMutability: "nonpayable";
|
|
1671
1939
|
readonly type: "function";
|
|
1672
|
-
|
|
1940
|
+
readonly name: "addLiquidityConcentrated";
|
|
1673
1941
|
readonly inputs: readonly [{
|
|
1674
|
-
readonly name: "
|
|
1675
|
-
readonly type: "address";
|
|
1676
|
-
}, {
|
|
1677
|
-
readonly name: "_recipient";
|
|
1678
|
-
readonly type: "address";
|
|
1679
|
-
}, {
|
|
1680
|
-
readonly name: "_amount";
|
|
1942
|
+
readonly name: "_nftTokenId";
|
|
1681
1943
|
readonly type: "uint256";
|
|
1682
1944
|
}, {
|
|
1683
|
-
readonly name: "
|
|
1945
|
+
readonly name: "_pool";
|
|
1684
1946
|
readonly type: "address";
|
|
1685
|
-
}];
|
|
1686
|
-
readonly name: "transferFunds";
|
|
1687
|
-
readonly outputs: readonly [{
|
|
1688
|
-
readonly name: "";
|
|
1689
|
-
readonly type: "uint256";
|
|
1690
1947
|
}, {
|
|
1691
|
-
readonly name: "";
|
|
1692
|
-
readonly type: "uint256";
|
|
1693
|
-
}];
|
|
1694
|
-
readonly stateMutability: "nonpayable";
|
|
1695
|
-
readonly type: "function";
|
|
1696
|
-
}, {
|
|
1697
|
-
readonly inputs: readonly [{
|
|
1698
|
-
readonly name: "_userWallet";
|
|
1948
|
+
readonly name: "_tokenA";
|
|
1699
1949
|
readonly type: "address";
|
|
1700
1950
|
}, {
|
|
1701
|
-
readonly name: "
|
|
1951
|
+
readonly name: "_tokenB";
|
|
1702
1952
|
readonly type: "address";
|
|
1703
1953
|
}, {
|
|
1704
|
-
readonly name: "
|
|
1705
|
-
readonly type: "
|
|
1954
|
+
readonly name: "_tickLower";
|
|
1955
|
+
readonly type: "int24";
|
|
1706
1956
|
}, {
|
|
1707
|
-
readonly name: "
|
|
1708
|
-
readonly type: "
|
|
1957
|
+
readonly name: "_tickUpper";
|
|
1958
|
+
readonly type: "int24";
|
|
1709
1959
|
}, {
|
|
1710
|
-
readonly
|
|
1711
|
-
readonly name: "signature";
|
|
1712
|
-
readonly type: "bytes";
|
|
1713
|
-
}, {
|
|
1714
|
-
readonly name: "signer";
|
|
1715
|
-
readonly type: "address";
|
|
1716
|
-
}, {
|
|
1717
|
-
readonly name: "expiration";
|
|
1718
|
-
readonly type: "uint256";
|
|
1719
|
-
}];
|
|
1720
|
-
readonly name: "_sig";
|
|
1721
|
-
readonly type: "tuple";
|
|
1722
|
-
}];
|
|
1723
|
-
readonly name: "transferFunds";
|
|
1724
|
-
readonly outputs: readonly [{
|
|
1725
|
-
readonly name: "";
|
|
1726
|
-
readonly type: "uint256";
|
|
1727
|
-
}, {
|
|
1728
|
-
readonly name: "";
|
|
1729
|
-
readonly type: "uint256";
|
|
1730
|
-
}];
|
|
1731
|
-
readonly stateMutability: "nonpayable";
|
|
1732
|
-
readonly type: "function";
|
|
1733
|
-
}, {
|
|
1734
|
-
readonly inputs: readonly [{
|
|
1735
|
-
readonly name: "_userWallet";
|
|
1736
|
-
readonly type: "address";
|
|
1737
|
-
}];
|
|
1738
|
-
readonly name: "convertEthToWeth";
|
|
1739
|
-
readonly outputs: readonly [{
|
|
1740
|
-
readonly name: "";
|
|
1741
|
-
readonly type: "uint256";
|
|
1742
|
-
}, {
|
|
1743
|
-
readonly name: "";
|
|
1744
|
-
readonly type: "address";
|
|
1745
|
-
}, {
|
|
1746
|
-
readonly name: "";
|
|
1747
|
-
readonly type: "uint256";
|
|
1748
|
-
}];
|
|
1749
|
-
readonly stateMutability: "nonpayable";
|
|
1750
|
-
readonly type: "function";
|
|
1751
|
-
}, {
|
|
1752
|
-
readonly inputs: readonly [{
|
|
1753
|
-
readonly name: "_userWallet";
|
|
1754
|
-
readonly type: "address";
|
|
1755
|
-
}, {
|
|
1756
|
-
readonly name: "_amount";
|
|
1757
|
-
readonly type: "uint256";
|
|
1758
|
-
}];
|
|
1759
|
-
readonly name: "convertEthToWeth";
|
|
1760
|
-
readonly outputs: readonly [{
|
|
1761
|
-
readonly name: "";
|
|
1762
|
-
readonly type: "uint256";
|
|
1763
|
-
}, {
|
|
1764
|
-
readonly name: "";
|
|
1765
|
-
readonly type: "address";
|
|
1766
|
-
}, {
|
|
1767
|
-
readonly name: "";
|
|
1768
|
-
readonly type: "uint256";
|
|
1769
|
-
}];
|
|
1770
|
-
readonly stateMutability: "nonpayable";
|
|
1771
|
-
readonly type: "function";
|
|
1772
|
-
}, {
|
|
1773
|
-
readonly inputs: readonly [{
|
|
1774
|
-
readonly name: "_userWallet";
|
|
1775
|
-
readonly type: "address";
|
|
1776
|
-
}, {
|
|
1777
|
-
readonly name: "_amount";
|
|
1778
|
-
readonly type: "uint256";
|
|
1779
|
-
}, {
|
|
1780
|
-
readonly name: "_depositLegoId";
|
|
1781
|
-
readonly type: "uint256";
|
|
1782
|
-
}];
|
|
1783
|
-
readonly name: "convertEthToWeth";
|
|
1784
|
-
readonly outputs: readonly [{
|
|
1785
|
-
readonly name: "";
|
|
1786
|
-
readonly type: "uint256";
|
|
1787
|
-
}, {
|
|
1788
|
-
readonly name: "";
|
|
1789
|
-
readonly type: "address";
|
|
1790
|
-
}, {
|
|
1791
|
-
readonly name: "";
|
|
1792
|
-
readonly type: "uint256";
|
|
1793
|
-
}];
|
|
1794
|
-
readonly stateMutability: "nonpayable";
|
|
1795
|
-
readonly type: "function";
|
|
1796
|
-
}, {
|
|
1797
|
-
readonly inputs: readonly [{
|
|
1798
|
-
readonly name: "_userWallet";
|
|
1799
|
-
readonly type: "address";
|
|
1800
|
-
}, {
|
|
1801
|
-
readonly name: "_amount";
|
|
1802
|
-
readonly type: "uint256";
|
|
1803
|
-
}, {
|
|
1804
|
-
readonly name: "_depositLegoId";
|
|
1805
|
-
readonly type: "uint256";
|
|
1806
|
-
}, {
|
|
1807
|
-
readonly name: "_depositVault";
|
|
1808
|
-
readonly type: "address";
|
|
1809
|
-
}];
|
|
1810
|
-
readonly name: "convertEthToWeth";
|
|
1811
|
-
readonly outputs: readonly [{
|
|
1812
|
-
readonly name: "";
|
|
1813
|
-
readonly type: "uint256";
|
|
1814
|
-
}, {
|
|
1815
|
-
readonly name: "";
|
|
1816
|
-
readonly type: "address";
|
|
1817
|
-
}, {
|
|
1818
|
-
readonly name: "";
|
|
1819
|
-
readonly type: "uint256";
|
|
1820
|
-
}];
|
|
1821
|
-
readonly stateMutability: "nonpayable";
|
|
1822
|
-
readonly type: "function";
|
|
1823
|
-
}, {
|
|
1824
|
-
readonly inputs: readonly [{
|
|
1825
|
-
readonly name: "_userWallet";
|
|
1826
|
-
readonly type: "address";
|
|
1827
|
-
}, {
|
|
1828
|
-
readonly name: "_amount";
|
|
1829
|
-
readonly type: "uint256";
|
|
1830
|
-
}, {
|
|
1831
|
-
readonly name: "_depositLegoId";
|
|
1832
|
-
readonly type: "uint256";
|
|
1833
|
-
}, {
|
|
1834
|
-
readonly name: "_depositVault";
|
|
1835
|
-
readonly type: "address";
|
|
1836
|
-
}, {
|
|
1837
|
-
readonly components: readonly [{
|
|
1838
|
-
readonly name: "signature";
|
|
1839
|
-
readonly type: "bytes";
|
|
1840
|
-
}, {
|
|
1841
|
-
readonly name: "signer";
|
|
1842
|
-
readonly type: "address";
|
|
1843
|
-
}, {
|
|
1844
|
-
readonly name: "expiration";
|
|
1845
|
-
readonly type: "uint256";
|
|
1846
|
-
}];
|
|
1847
|
-
readonly name: "_sig";
|
|
1848
|
-
readonly type: "tuple";
|
|
1849
|
-
}];
|
|
1850
|
-
readonly name: "convertEthToWeth";
|
|
1851
|
-
readonly outputs: readonly [{
|
|
1852
|
-
readonly name: "";
|
|
1853
|
-
readonly type: "uint256";
|
|
1854
|
-
}, {
|
|
1855
|
-
readonly name: "";
|
|
1856
|
-
readonly type: "address";
|
|
1857
|
-
}, {
|
|
1858
|
-
readonly name: "";
|
|
1859
|
-
readonly type: "uint256";
|
|
1860
|
-
}];
|
|
1861
|
-
readonly stateMutability: "nonpayable";
|
|
1862
|
-
readonly type: "function";
|
|
1863
|
-
}, {
|
|
1864
|
-
readonly inputs: readonly [{
|
|
1865
|
-
readonly name: "_userWallet";
|
|
1866
|
-
readonly type: "address";
|
|
1867
|
-
}];
|
|
1868
|
-
readonly name: "convertWethToEth";
|
|
1869
|
-
readonly outputs: readonly [{
|
|
1870
|
-
readonly name: "";
|
|
1871
|
-
readonly type: "uint256";
|
|
1872
|
-
}];
|
|
1873
|
-
readonly stateMutability: "nonpayable";
|
|
1874
|
-
readonly type: "function";
|
|
1875
|
-
}, {
|
|
1876
|
-
readonly inputs: readonly [{
|
|
1877
|
-
readonly name: "_userWallet";
|
|
1878
|
-
readonly type: "address";
|
|
1879
|
-
}, {
|
|
1880
|
-
readonly name: "_amount";
|
|
1881
|
-
readonly type: "uint256";
|
|
1882
|
-
}];
|
|
1883
|
-
readonly name: "convertWethToEth";
|
|
1884
|
-
readonly outputs: readonly [{
|
|
1885
|
-
readonly name: "";
|
|
1886
|
-
readonly type: "uint256";
|
|
1887
|
-
}];
|
|
1888
|
-
readonly stateMutability: "nonpayable";
|
|
1889
|
-
readonly type: "function";
|
|
1890
|
-
}, {
|
|
1891
|
-
readonly inputs: readonly [{
|
|
1892
|
-
readonly name: "_userWallet";
|
|
1893
|
-
readonly type: "address";
|
|
1894
|
-
}, {
|
|
1895
|
-
readonly name: "_amount";
|
|
1896
|
-
readonly type: "uint256";
|
|
1897
|
-
}, {
|
|
1898
|
-
readonly name: "_recipient";
|
|
1899
|
-
readonly type: "address";
|
|
1900
|
-
}];
|
|
1901
|
-
readonly name: "convertWethToEth";
|
|
1902
|
-
readonly outputs: readonly [{
|
|
1903
|
-
readonly name: "";
|
|
1904
|
-
readonly type: "uint256";
|
|
1905
|
-
}];
|
|
1906
|
-
readonly stateMutability: "nonpayable";
|
|
1907
|
-
readonly type: "function";
|
|
1908
|
-
}, {
|
|
1909
|
-
readonly inputs: readonly [{
|
|
1910
|
-
readonly name: "_userWallet";
|
|
1911
|
-
readonly type: "address";
|
|
1912
|
-
}, {
|
|
1913
|
-
readonly name: "_amount";
|
|
1914
|
-
readonly type: "uint256";
|
|
1915
|
-
}, {
|
|
1916
|
-
readonly name: "_recipient";
|
|
1917
|
-
readonly type: "address";
|
|
1918
|
-
}, {
|
|
1919
|
-
readonly name: "_withdrawLegoId";
|
|
1920
|
-
readonly type: "uint256";
|
|
1921
|
-
}];
|
|
1922
|
-
readonly name: "convertWethToEth";
|
|
1923
|
-
readonly outputs: readonly [{
|
|
1924
|
-
readonly name: "";
|
|
1925
|
-
readonly type: "uint256";
|
|
1926
|
-
}];
|
|
1927
|
-
readonly stateMutability: "nonpayable";
|
|
1928
|
-
readonly type: "function";
|
|
1929
|
-
}, {
|
|
1930
|
-
readonly inputs: readonly [{
|
|
1931
|
-
readonly name: "_userWallet";
|
|
1932
|
-
readonly type: "address";
|
|
1933
|
-
}, {
|
|
1934
|
-
readonly name: "_amount";
|
|
1935
|
-
readonly type: "uint256";
|
|
1936
|
-
}, {
|
|
1937
|
-
readonly name: "_recipient";
|
|
1938
|
-
readonly type: "address";
|
|
1939
|
-
}, {
|
|
1940
|
-
readonly name: "_withdrawLegoId";
|
|
1941
|
-
readonly type: "uint256";
|
|
1942
|
-
}, {
|
|
1943
|
-
readonly name: "_withdrawVaultToken";
|
|
1944
|
-
readonly type: "address";
|
|
1945
|
-
}];
|
|
1946
|
-
readonly name: "convertWethToEth";
|
|
1947
|
-
readonly outputs: readonly [{
|
|
1948
|
-
readonly name: "";
|
|
1949
|
-
readonly type: "uint256";
|
|
1950
|
-
}];
|
|
1951
|
-
readonly stateMutability: "nonpayable";
|
|
1952
|
-
readonly type: "function";
|
|
1953
|
-
}, {
|
|
1954
|
-
readonly inputs: readonly [{
|
|
1955
|
-
readonly name: "_userWallet";
|
|
1956
|
-
readonly type: "address";
|
|
1957
|
-
}, {
|
|
1958
|
-
readonly name: "_amount";
|
|
1960
|
+
readonly name: "_amountA";
|
|
1959
1961
|
readonly type: "uint256";
|
|
1960
1962
|
}, {
|
|
1961
|
-
readonly name: "
|
|
1962
|
-
readonly type: "address";
|
|
1963
|
-
}, {
|
|
1964
|
-
readonly name: "_withdrawLegoId";
|
|
1963
|
+
readonly name: "_amountB";
|
|
1965
1964
|
readonly type: "uint256";
|
|
1966
1965
|
}, {
|
|
1967
|
-
readonly name: "
|
|
1968
|
-
readonly type: "address";
|
|
1969
|
-
}, {
|
|
1970
|
-
readonly components: readonly [{
|
|
1971
|
-
readonly name: "signature";
|
|
1972
|
-
readonly type: "bytes";
|
|
1973
|
-
}, {
|
|
1974
|
-
readonly name: "signer";
|
|
1975
|
-
readonly type: "address";
|
|
1976
|
-
}, {
|
|
1977
|
-
readonly name: "expiration";
|
|
1978
|
-
readonly type: "uint256";
|
|
1979
|
-
}];
|
|
1980
|
-
readonly name: "_sig";
|
|
1981
|
-
readonly type: "tuple";
|
|
1982
|
-
}];
|
|
1983
|
-
readonly name: "convertWethToEth";
|
|
1984
|
-
readonly outputs: readonly [{
|
|
1985
|
-
readonly name: "";
|
|
1966
|
+
readonly name: "_minAmountA";
|
|
1986
1967
|
readonly type: "uint256";
|
|
1987
|
-
}];
|
|
1988
|
-
readonly stateMutability: "nonpayable";
|
|
1989
|
-
readonly type: "function";
|
|
1990
|
-
}, {
|
|
1991
|
-
readonly inputs: readonly [{
|
|
1992
|
-
readonly name: "_userWallet";
|
|
1993
|
-
readonly type: "address";
|
|
1994
|
-
}, {
|
|
1995
|
-
readonly components: readonly [{
|
|
1996
|
-
readonly name: "usePrevAmountOut";
|
|
1997
|
-
readonly type: "bool";
|
|
1998
|
-
}, {
|
|
1999
|
-
readonly name: "action";
|
|
2000
|
-
readonly type: "uint256";
|
|
2001
|
-
}, {
|
|
2002
|
-
readonly name: "legoId";
|
|
2003
|
-
readonly type: "uint256";
|
|
2004
|
-
}, {
|
|
2005
|
-
readonly name: "asset";
|
|
2006
|
-
readonly type: "address";
|
|
2007
|
-
}, {
|
|
2008
|
-
readonly name: "vault";
|
|
2009
|
-
readonly type: "address";
|
|
2010
|
-
}, {
|
|
2011
|
-
readonly name: "amount";
|
|
2012
|
-
readonly type: "uint256";
|
|
2013
|
-
}, {
|
|
2014
|
-
readonly name: "altLegoId";
|
|
2015
|
-
readonly type: "uint256";
|
|
2016
|
-
}, {
|
|
2017
|
-
readonly name: "altAsset";
|
|
2018
|
-
readonly type: "address";
|
|
2019
|
-
}, {
|
|
2020
|
-
readonly name: "altVault";
|
|
2021
|
-
readonly type: "address";
|
|
2022
|
-
}, {
|
|
2023
|
-
readonly name: "altAmount";
|
|
2024
|
-
readonly type: "uint256";
|
|
2025
|
-
}, {
|
|
2026
|
-
readonly name: "minAmountOut";
|
|
2027
|
-
readonly type: "uint256";
|
|
2028
|
-
}, {
|
|
2029
|
-
readonly name: "pool";
|
|
2030
|
-
readonly type: "address";
|
|
2031
|
-
}, {
|
|
2032
|
-
readonly name: "proof";
|
|
2033
|
-
readonly type: "bytes32";
|
|
2034
|
-
}, {
|
|
2035
|
-
readonly name: "nftAddr";
|
|
2036
|
-
readonly type: "address";
|
|
2037
|
-
}, {
|
|
2038
|
-
readonly name: "nftTokenId";
|
|
2039
|
-
readonly type: "uint256";
|
|
2040
|
-
}, {
|
|
2041
|
-
readonly name: "tickLower";
|
|
2042
|
-
readonly type: "int24";
|
|
2043
|
-
}, {
|
|
2044
|
-
readonly name: "tickUpper";
|
|
2045
|
-
readonly type: "int24";
|
|
2046
|
-
}, {
|
|
2047
|
-
readonly name: "minAmountA";
|
|
2048
|
-
readonly type: "uint256";
|
|
2049
|
-
}, {
|
|
2050
|
-
readonly name: "minAmountB";
|
|
2051
|
-
readonly type: "uint256";
|
|
2052
|
-
}, {
|
|
2053
|
-
readonly name: "minLpAmount";
|
|
2054
|
-
readonly type: "uint256";
|
|
2055
|
-
}, {
|
|
2056
|
-
readonly name: "liqToRemove";
|
|
2057
|
-
readonly type: "uint256";
|
|
2058
|
-
}, {
|
|
2059
|
-
readonly name: "recipient";
|
|
2060
|
-
readonly type: "address";
|
|
2061
|
-
}, {
|
|
2062
|
-
readonly name: "isWethToEthConversion";
|
|
2063
|
-
readonly type: "bool";
|
|
2064
|
-
}];
|
|
2065
|
-
readonly name: "_instructions";
|
|
2066
|
-
readonly type: "tuple[]";
|
|
2067
|
-
}];
|
|
2068
|
-
readonly name: "performBatchActions";
|
|
2069
|
-
readonly outputs: readonly [{
|
|
2070
|
-
readonly name: "";
|
|
2071
|
-
readonly type: "bool";
|
|
2072
|
-
}];
|
|
2073
|
-
readonly stateMutability: "nonpayable";
|
|
2074
|
-
readonly type: "function";
|
|
2075
|
-
}, {
|
|
2076
|
-
readonly inputs: readonly [{
|
|
2077
|
-
readonly name: "_userWallet";
|
|
2078
|
-
readonly type: "address";
|
|
2079
|
-
}, {
|
|
2080
|
-
readonly components: readonly [{
|
|
2081
|
-
readonly name: "usePrevAmountOut";
|
|
2082
|
-
readonly type: "bool";
|
|
2083
|
-
}, {
|
|
2084
|
-
readonly name: "action";
|
|
2085
|
-
readonly type: "uint256";
|
|
2086
|
-
}, {
|
|
2087
|
-
readonly name: "legoId";
|
|
2088
|
-
readonly type: "uint256";
|
|
2089
|
-
}, {
|
|
2090
|
-
readonly name: "asset";
|
|
2091
|
-
readonly type: "address";
|
|
2092
|
-
}, {
|
|
2093
|
-
readonly name: "vault";
|
|
2094
|
-
readonly type: "address";
|
|
2095
|
-
}, {
|
|
2096
|
-
readonly name: "amount";
|
|
2097
|
-
readonly type: "uint256";
|
|
2098
|
-
}, {
|
|
2099
|
-
readonly name: "altLegoId";
|
|
2100
|
-
readonly type: "uint256";
|
|
2101
|
-
}, {
|
|
2102
|
-
readonly name: "altAsset";
|
|
2103
|
-
readonly type: "address";
|
|
2104
|
-
}, {
|
|
2105
|
-
readonly name: "altVault";
|
|
2106
|
-
readonly type: "address";
|
|
2107
|
-
}, {
|
|
2108
|
-
readonly name: "altAmount";
|
|
2109
|
-
readonly type: "uint256";
|
|
2110
|
-
}, {
|
|
2111
|
-
readonly name: "minAmountOut";
|
|
2112
|
-
readonly type: "uint256";
|
|
2113
|
-
}, {
|
|
2114
|
-
readonly name: "pool";
|
|
2115
|
-
readonly type: "address";
|
|
2116
|
-
}, {
|
|
2117
|
-
readonly name: "proof";
|
|
2118
|
-
readonly type: "bytes32";
|
|
2119
|
-
}, {
|
|
2120
|
-
readonly name: "nftAddr";
|
|
2121
|
-
readonly type: "address";
|
|
2122
|
-
}, {
|
|
2123
|
-
readonly name: "nftTokenId";
|
|
2124
|
-
readonly type: "uint256";
|
|
2125
|
-
}, {
|
|
2126
|
-
readonly name: "tickLower";
|
|
2127
|
-
readonly type: "int24";
|
|
2128
|
-
}, {
|
|
2129
|
-
readonly name: "tickUpper";
|
|
2130
|
-
readonly type: "int24";
|
|
2131
|
-
}, {
|
|
2132
|
-
readonly name: "minAmountA";
|
|
2133
|
-
readonly type: "uint256";
|
|
2134
|
-
}, {
|
|
2135
|
-
readonly name: "minAmountB";
|
|
2136
|
-
readonly type: "uint256";
|
|
2137
|
-
}, {
|
|
2138
|
-
readonly name: "minLpAmount";
|
|
2139
|
-
readonly type: "uint256";
|
|
2140
|
-
}, {
|
|
2141
|
-
readonly name: "liqToRemove";
|
|
2142
|
-
readonly type: "uint256";
|
|
2143
|
-
}, {
|
|
2144
|
-
readonly name: "recipient";
|
|
2145
|
-
readonly type: "address";
|
|
2146
|
-
}, {
|
|
2147
|
-
readonly name: "isWethToEthConversion";
|
|
2148
|
-
readonly type: "bool";
|
|
2149
|
-
}];
|
|
2150
|
-
readonly name: "_instructions";
|
|
2151
|
-
readonly type: "tuple[]";
|
|
2152
1968
|
}, {
|
|
2153
|
-
readonly
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
readonly name: "expiration";
|
|
2161
|
-
readonly type: "uint256";
|
|
2162
|
-
}];
|
|
2163
|
-
readonly name: "_sig";
|
|
2164
|
-
readonly type: "tuple";
|
|
2165
|
-
}];
|
|
2166
|
-
readonly name: "performBatchActions";
|
|
2167
|
-
readonly outputs: readonly [{
|
|
2168
|
-
readonly name: "";
|
|
2169
|
-
readonly type: "bool";
|
|
2170
|
-
}];
|
|
2171
|
-
readonly stateMutability: "nonpayable";
|
|
2172
|
-
readonly type: "function";
|
|
2173
|
-
}, {
|
|
2174
|
-
readonly inputs: readonly [{
|
|
2175
|
-
readonly name: "_userWallet";
|
|
1969
|
+
readonly name: "_minAmountB";
|
|
1970
|
+
readonly type: "uint256";
|
|
1971
|
+
}, {
|
|
1972
|
+
readonly name: "_extraData";
|
|
1973
|
+
readonly type: "bytes32";
|
|
1974
|
+
}, {
|
|
1975
|
+
readonly name: "_recipient";
|
|
2176
1976
|
readonly type: "address";
|
|
2177
1977
|
}, {
|
|
1978
|
+
readonly name: "_miniAddys";
|
|
1979
|
+
readonly type: "tuple";
|
|
2178
1980
|
readonly components: readonly [{
|
|
2179
|
-
readonly name: "
|
|
2180
|
-
readonly type: "bool";
|
|
2181
|
-
}, {
|
|
2182
|
-
readonly name: "action";
|
|
2183
|
-
readonly type: "uint256";
|
|
2184
|
-
}, {
|
|
2185
|
-
readonly name: "legoId";
|
|
2186
|
-
readonly type: "uint256";
|
|
2187
|
-
}, {
|
|
2188
|
-
readonly name: "asset";
|
|
2189
|
-
readonly type: "address";
|
|
2190
|
-
}, {
|
|
2191
|
-
readonly name: "vault";
|
|
2192
|
-
readonly type: "address";
|
|
2193
|
-
}, {
|
|
2194
|
-
readonly name: "amount";
|
|
2195
|
-
readonly type: "uint256";
|
|
2196
|
-
}, {
|
|
2197
|
-
readonly name: "altLegoId";
|
|
2198
|
-
readonly type: "uint256";
|
|
2199
|
-
}, {
|
|
2200
|
-
readonly name: "altAsset";
|
|
1981
|
+
readonly name: "ledger";
|
|
2201
1982
|
readonly type: "address";
|
|
2202
1983
|
}, {
|
|
2203
|
-
readonly name: "
|
|
2204
|
-
readonly type: "address";
|
|
2205
|
-
}, {
|
|
2206
|
-
readonly name: "altAmount";
|
|
2207
|
-
readonly type: "uint256";
|
|
2208
|
-
}, {
|
|
2209
|
-
readonly name: "minAmountOut";
|
|
2210
|
-
readonly type: "uint256";
|
|
2211
|
-
}, {
|
|
2212
|
-
readonly name: "pool";
|
|
1984
|
+
readonly name: "missionControl";
|
|
2213
1985
|
readonly type: "address";
|
|
2214
1986
|
}, {
|
|
2215
|
-
readonly name: "
|
|
2216
|
-
readonly type: "bytes32";
|
|
2217
|
-
}, {
|
|
2218
|
-
readonly name: "nftAddr";
|
|
1987
|
+
readonly name: "legoBook";
|
|
2219
1988
|
readonly type: "address";
|
|
2220
1989
|
}, {
|
|
2221
|
-
readonly name: "
|
|
2222
|
-
readonly type: "uint256";
|
|
2223
|
-
}, {
|
|
2224
|
-
readonly name: "tickLower";
|
|
2225
|
-
readonly type: "int24";
|
|
2226
|
-
}, {
|
|
2227
|
-
readonly name: "tickUpper";
|
|
2228
|
-
readonly type: "int24";
|
|
2229
|
-
}, {
|
|
2230
|
-
readonly name: "minAmountA";
|
|
2231
|
-
readonly type: "uint256";
|
|
2232
|
-
}, {
|
|
2233
|
-
readonly name: "minAmountB";
|
|
2234
|
-
readonly type: "uint256";
|
|
2235
|
-
}, {
|
|
2236
|
-
readonly name: "minLpAmount";
|
|
2237
|
-
readonly type: "uint256";
|
|
2238
|
-
}, {
|
|
2239
|
-
readonly name: "liqToRemove";
|
|
2240
|
-
readonly type: "uint256";
|
|
2241
|
-
}, {
|
|
2242
|
-
readonly name: "recipient";
|
|
1990
|
+
readonly name: "appraiser";
|
|
2243
1991
|
readonly type: "address";
|
|
2244
|
-
}, {
|
|
2245
|
-
readonly name: "isWethToEthConversion";
|
|
2246
|
-
readonly type: "bool";
|
|
2247
1992
|
}];
|
|
2248
|
-
readonly name: "_instructions";
|
|
2249
|
-
readonly type: "tuple[]";
|
|
2250
|
-
}, {
|
|
2251
|
-
readonly name: "_expiration";
|
|
2252
|
-
readonly type: "uint256";
|
|
2253
1993
|
}];
|
|
2254
|
-
readonly name: "getBatchActionHash";
|
|
2255
1994
|
readonly outputs: readonly [{
|
|
2256
1995
|
readonly name: "";
|
|
2257
|
-
readonly type: "
|
|
2258
|
-
}
|
|
2259
|
-
readonly stateMutability: "view";
|
|
2260
|
-
readonly type: "function";
|
|
2261
|
-
}, {
|
|
2262
|
-
readonly inputs: readonly [];
|
|
2263
|
-
readonly name: "DOMAIN_SEPARATOR";
|
|
2264
|
-
readonly outputs: readonly [{
|
|
1996
|
+
readonly type: "uint256";
|
|
1997
|
+
}, {
|
|
2265
1998
|
readonly name: "";
|
|
2266
|
-
readonly type: "
|
|
2267
|
-
}
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
}, {
|
|
2271
|
-
|
|
2272
|
-
readonly
|
|
2273
|
-
|
|
1999
|
+
readonly type: "uint256";
|
|
2000
|
+
}, {
|
|
2001
|
+
readonly name: "";
|
|
2002
|
+
readonly type: "uint256";
|
|
2003
|
+
}, {
|
|
2004
|
+
readonly name: "";
|
|
2005
|
+
readonly type: "uint256";
|
|
2006
|
+
}, {
|
|
2007
|
+
readonly name: "";
|
|
2008
|
+
readonly type: "uint256";
|
|
2274
2009
|
}];
|
|
2275
|
-
readonly name: "changeOwnership";
|
|
2276
|
-
readonly outputs: readonly [];
|
|
2277
|
-
readonly stateMutability: "nonpayable";
|
|
2278
|
-
readonly type: "function";
|
|
2279
|
-
}, {
|
|
2280
|
-
readonly inputs: readonly [];
|
|
2281
|
-
readonly name: "confirmOwnershipChange";
|
|
2282
|
-
readonly outputs: readonly [];
|
|
2283
|
-
readonly stateMutability: "nonpayable";
|
|
2284
|
-
readonly type: "function";
|
|
2285
2010
|
}, {
|
|
2286
|
-
readonly inputs: readonly [];
|
|
2287
|
-
readonly name: "cancelOwnershipChange";
|
|
2288
|
-
readonly outputs: readonly [];
|
|
2289
2011
|
readonly stateMutability: "nonpayable";
|
|
2290
2012
|
readonly type: "function";
|
|
2291
|
-
|
|
2013
|
+
readonly name: "removeLiquidityConcentrated";
|
|
2292
2014
|
readonly inputs: readonly [{
|
|
2293
|
-
readonly name: "
|
|
2015
|
+
readonly name: "_nftTokenId";
|
|
2294
2016
|
readonly type: "uint256";
|
|
2295
|
-
}
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
readonly name: "
|
|
2017
|
+
}, {
|
|
2018
|
+
readonly name: "_pool";
|
|
2019
|
+
readonly type: "address";
|
|
2020
|
+
}, {
|
|
2021
|
+
readonly name: "_tokenA";
|
|
2022
|
+
readonly type: "address";
|
|
2023
|
+
}, {
|
|
2024
|
+
readonly name: "_tokenB";
|
|
2025
|
+
readonly type: "address";
|
|
2026
|
+
}, {
|
|
2027
|
+
readonly name: "_liqToRemove";
|
|
2028
|
+
readonly type: "uint256";
|
|
2029
|
+
}, {
|
|
2030
|
+
readonly name: "_minAmountA";
|
|
2031
|
+
readonly type: "uint256";
|
|
2032
|
+
}, {
|
|
2033
|
+
readonly name: "_minAmountB";
|
|
2034
|
+
readonly type: "uint256";
|
|
2035
|
+
}, {
|
|
2036
|
+
readonly name: "_extraData";
|
|
2037
|
+
readonly type: "bytes32";
|
|
2038
|
+
}, {
|
|
2039
|
+
readonly name: "_recipient";
|
|
2303
2040
|
readonly type: "address";
|
|
2304
2041
|
}];
|
|
2305
|
-
readonly name: "recoverFunds";
|
|
2306
2042
|
readonly outputs: readonly [{
|
|
2307
2043
|
readonly name: "";
|
|
2308
|
-
readonly type: "
|
|
2309
|
-
}
|
|
2310
|
-
readonly stateMutability: "nonpayable";
|
|
2311
|
-
readonly type: "function";
|
|
2312
|
-
}, {
|
|
2313
|
-
readonly inputs: readonly [];
|
|
2314
|
-
readonly name: "initialized";
|
|
2315
|
-
readonly outputs: readonly [{
|
|
2044
|
+
readonly type: "uint256";
|
|
2045
|
+
}, {
|
|
2316
2046
|
readonly name: "";
|
|
2317
|
-
readonly type: "
|
|
2318
|
-
}
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
}, {
|
|
2322
|
-
readonly inputs: readonly [{
|
|
2323
|
-
readonly name: "arg0";
|
|
2324
|
-
readonly type: "bytes";
|
|
2325
|
-
}];
|
|
2326
|
-
readonly name: "usedSignatures";
|
|
2327
|
-
readonly outputs: readonly [{
|
|
2047
|
+
readonly type: "uint256";
|
|
2048
|
+
}, {
|
|
2049
|
+
readonly name: "";
|
|
2050
|
+
readonly type: "uint256";
|
|
2051
|
+
}, {
|
|
2328
2052
|
readonly name: "";
|
|
2329
2053
|
readonly type: "bool";
|
|
2330
|
-
}
|
|
2331
|
-
readonly stateMutability: "view";
|
|
2332
|
-
readonly type: "function";
|
|
2333
|
-
}, {
|
|
2334
|
-
readonly inputs: readonly [];
|
|
2335
|
-
readonly name: "owner";
|
|
2336
|
-
readonly outputs: readonly [{
|
|
2054
|
+
}, {
|
|
2337
2055
|
readonly name: "";
|
|
2338
|
-
readonly type: "
|
|
2056
|
+
readonly type: "uint256";
|
|
2339
2057
|
}];
|
|
2340
|
-
readonly stateMutability: "view";
|
|
2341
|
-
readonly type: "function";
|
|
2342
2058
|
}, {
|
|
2343
|
-
readonly
|
|
2344
|
-
readonly
|
|
2345
|
-
readonly
|
|
2059
|
+
readonly stateMutability: "nonpayable";
|
|
2060
|
+
readonly type: "function";
|
|
2061
|
+
readonly name: "removeLiquidityConcentrated";
|
|
2062
|
+
readonly inputs: readonly [{
|
|
2063
|
+
readonly name: "_nftTokenId";
|
|
2064
|
+
readonly type: "uint256";
|
|
2065
|
+
}, {
|
|
2066
|
+
readonly name: "_pool";
|
|
2067
|
+
readonly type: "address";
|
|
2068
|
+
}, {
|
|
2069
|
+
readonly name: "_tokenA";
|
|
2070
|
+
readonly type: "address";
|
|
2071
|
+
}, {
|
|
2072
|
+
readonly name: "_tokenB";
|
|
2073
|
+
readonly type: "address";
|
|
2074
|
+
}, {
|
|
2075
|
+
readonly name: "_liqToRemove";
|
|
2076
|
+
readonly type: "uint256";
|
|
2077
|
+
}, {
|
|
2078
|
+
readonly name: "_minAmountA";
|
|
2079
|
+
readonly type: "uint256";
|
|
2080
|
+
}, {
|
|
2081
|
+
readonly name: "_minAmountB";
|
|
2082
|
+
readonly type: "uint256";
|
|
2083
|
+
}, {
|
|
2084
|
+
readonly name: "_extraData";
|
|
2085
|
+
readonly type: "bytes32";
|
|
2086
|
+
}, {
|
|
2087
|
+
readonly name: "_recipient";
|
|
2088
|
+
readonly type: "address";
|
|
2089
|
+
}, {
|
|
2090
|
+
readonly name: "_miniAddys";
|
|
2091
|
+
readonly type: "tuple";
|
|
2346
2092
|
readonly components: readonly [{
|
|
2347
|
-
readonly name: "
|
|
2093
|
+
readonly name: "ledger";
|
|
2348
2094
|
readonly type: "address";
|
|
2349
2095
|
}, {
|
|
2350
|
-
readonly name: "
|
|
2351
|
-
readonly type: "
|
|
2096
|
+
readonly name: "missionControl";
|
|
2097
|
+
readonly type: "address";
|
|
2352
2098
|
}, {
|
|
2353
|
-
readonly name: "
|
|
2354
|
-
readonly type: "
|
|
2099
|
+
readonly name: "legoBook";
|
|
2100
|
+
readonly type: "address";
|
|
2101
|
+
}, {
|
|
2102
|
+
readonly name: "appraiser";
|
|
2103
|
+
readonly type: "address";
|
|
2355
2104
|
}];
|
|
2356
|
-
readonly name: "";
|
|
2357
|
-
readonly type: "tuple";
|
|
2358
2105
|
}];
|
|
2359
|
-
readonly stateMutability: "view";
|
|
2360
|
-
readonly type: "function";
|
|
2361
|
-
}, {
|
|
2362
|
-
readonly inputs: readonly [];
|
|
2363
|
-
readonly name: "ownershipChangeDelay";
|
|
2364
2106
|
readonly outputs: readonly [{
|
|
2365
2107
|
readonly name: "";
|
|
2366
2108
|
readonly type: "uint256";
|
|
2367
|
-
}
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
}, {
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2109
|
+
}, {
|
|
2110
|
+
readonly name: "";
|
|
2111
|
+
readonly type: "uint256";
|
|
2112
|
+
}, {
|
|
2113
|
+
readonly name: "";
|
|
2114
|
+
readonly type: "uint256";
|
|
2115
|
+
}, {
|
|
2116
|
+
readonly name: "";
|
|
2117
|
+
readonly type: "bool";
|
|
2118
|
+
}, {
|
|
2374
2119
|
readonly name: "";
|
|
2375
2120
|
readonly type: "uint256";
|
|
2376
2121
|
}];
|
|
2122
|
+
}, {
|
|
2377
2123
|
readonly stateMutability: "view";
|
|
2378
2124
|
readonly type: "function";
|
|
2379
|
-
|
|
2125
|
+
readonly name: "FORTY_ACRES_USDC_VAULT";
|
|
2380
2126
|
readonly inputs: readonly [];
|
|
2381
|
-
readonly name: "MAX_OWNER_CHANGE_DELAY";
|
|
2382
2127
|
readonly outputs: readonly [{
|
|
2383
2128
|
readonly name: "";
|
|
2384
|
-
readonly type: "
|
|
2129
|
+
readonly type: "address";
|
|
2385
2130
|
}];
|
|
2386
|
-
readonly stateMutability: "view";
|
|
2387
|
-
readonly type: "function";
|
|
2388
2131
|
}, {
|
|
2132
|
+
readonly stateMutability: "nonpayable";
|
|
2133
|
+
readonly type: "constructor";
|
|
2389
2134
|
readonly inputs: readonly [{
|
|
2390
|
-
readonly name: "
|
|
2391
|
-
readonly type: "
|
|
2135
|
+
readonly name: "_undyHq";
|
|
2136
|
+
readonly type: "address";
|
|
2392
2137
|
}, {
|
|
2393
|
-
readonly name: "
|
|
2394
|
-
readonly type: "
|
|
2138
|
+
readonly name: "_fortyAcresVault";
|
|
2139
|
+
readonly type: "address";
|
|
2395
2140
|
}];
|
|
2396
2141
|
readonly outputs: readonly [];
|
|
2397
|
-
readonly stateMutability: "nonpayable";
|
|
2398
|
-
readonly type: "constructor";
|
|
2399
2142
|
}];
|
|
2400
2143
|
export declare const deployAddress: Address | undefined;
|
|
2401
2144
|
export type Contract = {
|
|
2402
2145
|
calls: {
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2146
|
+
getAddys: () => Promise<{
|
|
2147
|
+
hq: `0x${string}`;
|
|
2148
|
+
undyToken: `0x${string}`;
|
|
2149
|
+
ledger: `0x${string}`;
|
|
2150
|
+
missionControl: `0x${string}`;
|
|
2151
|
+
legoBook: `0x${string}`;
|
|
2152
|
+
switchboard: `0x${string}`;
|
|
2153
|
+
hatchery: `0x${string}`;
|
|
2154
|
+
lootDistributor: `0x${string}`;
|
|
2155
|
+
appraiser: `0x${string}`;
|
|
2156
|
+
walletBackpack: `0x${string}`;
|
|
2157
|
+
billing: `0x${string}`;
|
|
2158
|
+
vaultRegistry: `0x${string}`;
|
|
2159
|
+
}>;
|
|
2160
|
+
getUndyHq: () => Promise<`0x${string}`>;
|
|
2161
|
+
isLegoAsset: (asset: `0x${string}`) => Promise<boolean>;
|
|
2162
|
+
getAssetOpportunities: (asset: `0x${string}`) => Promise<`0x${string}`[]>;
|
|
2163
|
+
getAssets: () => Promise<`0x${string}`[]>;
|
|
2164
|
+
isAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<boolean>;
|
|
2165
|
+
getNumLegoAssets: () => Promise<bigint>;
|
|
2166
|
+
getWeightedPricePerShare: (vaultToken: `0x${string}`) => Promise<bigint>;
|
|
2167
|
+
getLatestSnapshot: (vaultToken: `0x${string}`, pricePerShare: bigint) => Promise<{
|
|
2168
|
+
totalSupply: bigint;
|
|
2169
|
+
pricePerShare: bigint;
|
|
2170
|
+
lastUpdate: bigint;
|
|
2171
|
+
}>;
|
|
2172
|
+
isValidPriceConfig: (config: {
|
|
2173
|
+
minSnapshotDelay: bigint;
|
|
2174
|
+
maxNumSnapshots: bigint;
|
|
2175
|
+
maxUpsideDeviation: bigint;
|
|
2176
|
+
staleTime: bigint;
|
|
2177
|
+
}) => Promise<boolean>;
|
|
2178
|
+
vaultToAsset: (arg0: `0x${string}`) => Promise<{
|
|
2179
|
+
underlyingAsset: `0x${string}`;
|
|
2180
|
+
decimals: bigint;
|
|
2181
|
+
lastAveragePricePerShare: bigint;
|
|
2182
|
+
}>;
|
|
2183
|
+
assetOpportunities: (arg0: `0x${string}`, arg1: bigint) => Promise<`0x${string}`>;
|
|
2184
|
+
indexOfAssetOpportunity: (arg0: `0x${string}`, arg1: `0x${string}`) => Promise<bigint>;
|
|
2185
|
+
numAssetOpportunities: (arg0: `0x${string}`) => Promise<bigint>;
|
|
2186
|
+
assets: (arg0: bigint) => Promise<`0x${string}`>;
|
|
2187
|
+
indexOfAsset: (arg0: `0x${string}`) => Promise<bigint>;
|
|
2188
|
+
numAssets: () => Promise<bigint>;
|
|
2189
|
+
snapShotData: (arg0: `0x${string}`) => Promise<{
|
|
2190
|
+
lastSnapShot: {
|
|
2191
|
+
totalSupply: bigint;
|
|
2192
|
+
pricePerShare: bigint;
|
|
2193
|
+
lastUpdate: bigint;
|
|
2194
|
+
};
|
|
2195
|
+
nextIndex: bigint;
|
|
2196
|
+
}>;
|
|
2197
|
+
snapShots: (arg0: `0x${string}`, arg1: bigint) => Promise<{
|
|
2198
|
+
totalSupply: bigint;
|
|
2199
|
+
pricePerShare: bigint;
|
|
2200
|
+
lastUpdate: bigint;
|
|
2201
|
+
}>;
|
|
2202
|
+
snapShotPriceConfig: () => Promise<{
|
|
2203
|
+
minSnapshotDelay: bigint;
|
|
2204
|
+
maxNumSnapshots: bigint;
|
|
2205
|
+
maxUpsideDeviation: bigint;
|
|
2206
|
+
staleTime: bigint;
|
|
2444
2207
|
}>;
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2208
|
+
isPaused: () => Promise<boolean>;
|
|
2209
|
+
hasCapability: (action: bigint) => Promise<boolean>;
|
|
2210
|
+
getRegistries: () => Promise<`0x${string}`[]>;
|
|
2211
|
+
isYieldLego: () => Promise<boolean>;
|
|
2212
|
+
isDexLego: () => Promise<boolean>;
|
|
2213
|
+
getUnderlyingAsset: (vaultToken: `0x${string}`) => Promise<`0x${string}`>;
|
|
2214
|
+
getUnderlyingBalances: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<[bigint, bigint]>;
|
|
2215
|
+
getUnderlyingAmount: (vaultToken: `0x${string}`, vaultTokenAmount: bigint) => Promise<bigint>;
|
|
2216
|
+
getUnderlyingAmountSafe: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<bigint>;
|
|
2217
|
+
getUnderlyingData: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<[`0x${string}`, bigint, bigint]>;
|
|
2218
|
+
getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
|
|
2219
|
+
isRebasing: () => Promise<boolean>;
|
|
2220
|
+
getPricePerShare: (vaultToken: `0x${string}`, decimals?: bigint) => Promise<bigint>;
|
|
2221
|
+
getVaultTokenAmount: (asset: `0x${string}`, assetAmount: bigint, vaultToken: `0x${string}`) => Promise<bigint>;
|
|
2222
|
+
isEligibleVaultForTrialFunds: (vaultToken: `0x${string}`, underlyingAsset: `0x${string}`) => Promise<boolean>;
|
|
2223
|
+
isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
|
|
2224
|
+
totalAssets: (vaultToken: `0x${string}`) => Promise<bigint>;
|
|
2225
|
+
totalBorrows: (vaultToken: `0x${string}`) => Promise<bigint>;
|
|
2226
|
+
canRegisterVaultToken: (asset: `0x${string}`, vaultToken: `0x${string}`) => Promise<boolean>;
|
|
2227
|
+
getAccessForLego: (user: `0x${string}`, action: bigint) => Promise<[`0x${string}`, string, bigint]>;
|
|
2228
|
+
hasClaimableRewards: (user: `0x${string}`) => Promise<boolean>;
|
|
2229
|
+
FORTY_ACRES_USDC_VAULT: () => Promise<`0x${string}`>;
|
|
2448
2230
|
};
|
|
2449
2231
|
mutations: {
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2232
|
+
pause: (shouldPause: boolean) => Promise<void>;
|
|
2233
|
+
recoverFunds: (recipient: `0x${string}`, asset: `0x${string}`) => Promise<void>;
|
|
2234
|
+
recoverFundsMany: (recipient: `0x${string}`, assets: `0x${string}`[]) => Promise<void>;
|
|
2235
|
+
setSnapShotPriceConfig: (config: {
|
|
2236
|
+
minSnapshotDelay: bigint;
|
|
2237
|
+
maxNumSnapshots: bigint;
|
|
2238
|
+
maxUpsideDeviation: bigint;
|
|
2239
|
+
staleTime: bigint;
|
|
2240
|
+
}) => Promise<void>;
|
|
2241
|
+
registerVaultTokenLocally: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<{
|
|
2242
|
+
underlyingAsset: `0x${string}`;
|
|
2243
|
+
decimals: bigint;
|
|
2244
|
+
lastAveragePricePerShare: bigint;
|
|
2245
|
+
}>;
|
|
2246
|
+
deregisterVaultTokenLocally: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
|
|
2247
|
+
addPriceSnapshot: (vaultToken: `0x${string}`) => Promise<boolean>;
|
|
2248
|
+
depositForYield: (asset: `0x${string}`, amount: bigint, vaultAddr: `0x${string}`, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
|
|
2249
|
+
ledger: `0x${string}`;
|
|
2250
|
+
missionControl: `0x${string}`;
|
|
2251
|
+
legoBook: `0x${string}`;
|
|
2252
|
+
appraiser: `0x${string}`;
|
|
2455
2253
|
}) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
rebalance: (userWallet: `0x${string}`, fromLegoId: bigint, fromAsset: `0x${string}`, fromVaultToken: `0x${string}`, toLegoId: bigint, toVault: `0x${string}`, fromVaultTokenAmount?: bigint, sig?: {
|
|
2462
|
-
signature: `0x${string}`;
|
|
2463
|
-
signer: `0x${string}`;
|
|
2464
|
-
expiration: bigint;
|
|
2254
|
+
withdrawFromYield: (vaultToken: `0x${string}`, amount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
|
|
2255
|
+
ledger: `0x${string}`;
|
|
2256
|
+
missionControl: `0x${string}`;
|
|
2257
|
+
legoBook: `0x${string}`;
|
|
2258
|
+
appraiser: `0x${string}`;
|
|
2465
2259
|
}) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
}[],
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2260
|
+
claimRewards: (user: `0x${string}`, rewardToken: `0x${string}`, rewardAmount: bigint, extraData: `0x${string}`, miniAddys?: {
|
|
2261
|
+
ledger: `0x${string}`;
|
|
2262
|
+
missionControl: `0x${string}`;
|
|
2263
|
+
legoBook: `0x${string}`;
|
|
2264
|
+
appraiser: `0x${string}`;
|
|
2265
|
+
}) => Promise<[bigint, bigint]>;
|
|
2266
|
+
swapTokens: (amountIn: bigint, minAmountOut: bigint, tokenPath: `0x${string}`[], poolPath: `0x${string}`[], recipient: `0x${string}`, miniAddys?: {
|
|
2267
|
+
ledger: `0x${string}`;
|
|
2268
|
+
missionControl: `0x${string}`;
|
|
2269
|
+
legoBook: `0x${string}`;
|
|
2270
|
+
appraiser: `0x${string}`;
|
|
2476
2271
|
}) => Promise<[bigint, bigint, bigint]>;
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
signature: `0x${string}`;
|
|
2489
|
-
signer: `0x${string}`;
|
|
2490
|
-
expiration: bigint;
|
|
2491
|
-
}) => Promise<void>;
|
|
2492
|
-
addLiquidity: (userWallet: `0x${string}`, legoId: bigint, nftAddr: `0x${string}`, nftTokenId: bigint, pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, amountA?: bigint, amountB?: bigint, tickLower?: unknown, tickUpper?: unknown, minAmountA?: bigint, minAmountB?: bigint, minLpAmount?: bigint, sig?: {
|
|
2493
|
-
signature: `0x${string}`;
|
|
2494
|
-
signer: `0x${string}`;
|
|
2495
|
-
expiration: bigint;
|
|
2496
|
-
}) => Promise<[bigint, bigint, bigint, bigint, bigint]>;
|
|
2497
|
-
removeLiquidity: (userWallet: `0x${string}`, legoId: bigint, nftAddr: `0x${string}`, nftTokenId: bigint, pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, liqToRemove?: bigint, minAmountA?: bigint, minAmountB?: bigint, sig?: {
|
|
2498
|
-
signature: `0x${string}`;
|
|
2499
|
-
signer: `0x${string}`;
|
|
2500
|
-
expiration: bigint;
|
|
2501
|
-
}) => Promise<[bigint, bigint, bigint, boolean]>;
|
|
2502
|
-
transferFunds: (userWallet: `0x${string}`, recipient: `0x${string}`, amount?: bigint, asset?: `0x${string}`, sig?: {
|
|
2503
|
-
signature: `0x${string}`;
|
|
2504
|
-
signer: `0x${string}`;
|
|
2505
|
-
expiration: bigint;
|
|
2272
|
+
mintOrRedeemAsset: (tokenIn: `0x${string}`, tokenOut: `0x${string}`, tokenInAmount: bigint, minAmountOut: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
|
|
2273
|
+
ledger: `0x${string}`;
|
|
2274
|
+
missionControl: `0x${string}`;
|
|
2275
|
+
legoBook: `0x${string}`;
|
|
2276
|
+
appraiser: `0x${string}`;
|
|
2277
|
+
}) => Promise<[bigint, bigint, boolean, bigint]>;
|
|
2278
|
+
confirmMintOrRedeemAsset: (tokenIn: `0x${string}`, tokenOut: `0x${string}`, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
|
|
2279
|
+
ledger: `0x${string}`;
|
|
2280
|
+
missionControl: `0x${string}`;
|
|
2281
|
+
legoBook: `0x${string}`;
|
|
2282
|
+
appraiser: `0x${string}`;
|
|
2506
2283
|
}) => Promise<[bigint, bigint]>;
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2284
|
+
addCollateral: (asset: `0x${string}`, amount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
|
|
2285
|
+
ledger: `0x${string}`;
|
|
2286
|
+
missionControl: `0x${string}`;
|
|
2287
|
+
legoBook: `0x${string}`;
|
|
2288
|
+
appraiser: `0x${string}`;
|
|
2289
|
+
}) => Promise<[bigint, bigint]>;
|
|
2290
|
+
removeCollateral: (asset: `0x${string}`, amount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
|
|
2291
|
+
ledger: `0x${string}`;
|
|
2292
|
+
missionControl: `0x${string}`;
|
|
2293
|
+
legoBook: `0x${string}`;
|
|
2294
|
+
appraiser: `0x${string}`;
|
|
2295
|
+
}) => Promise<[bigint, bigint]>;
|
|
2296
|
+
borrow: (borrowAsset: `0x${string}`, amount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
|
|
2297
|
+
ledger: `0x${string}`;
|
|
2298
|
+
missionControl: `0x${string}`;
|
|
2299
|
+
legoBook: `0x${string}`;
|
|
2300
|
+
appraiser: `0x${string}`;
|
|
2301
|
+
}) => Promise<[bigint, bigint]>;
|
|
2302
|
+
repayDebt: (paymentAsset: `0x${string}`, paymentAmount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
|
|
2303
|
+
ledger: `0x${string}`;
|
|
2304
|
+
missionControl: `0x${string}`;
|
|
2305
|
+
legoBook: `0x${string}`;
|
|
2306
|
+
appraiser: `0x${string}`;
|
|
2307
|
+
}) => Promise<[bigint, bigint]>;
|
|
2308
|
+
addLiquidity: (pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, amountA: bigint, amountB: bigint, minAmountA: bigint, minAmountB: bigint, minLpAmount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
|
|
2309
|
+
ledger: `0x${string}`;
|
|
2310
|
+
missionControl: `0x${string}`;
|
|
2311
|
+
legoBook: `0x${string}`;
|
|
2312
|
+
appraiser: `0x${string}`;
|
|
2313
|
+
}) => Promise<[`0x${string}`, bigint, bigint, bigint, bigint]>;
|
|
2314
|
+
removeLiquidity: (pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, lpToken: `0x${string}`, lpAmount: bigint, minAmountA: bigint, minAmountB: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
|
|
2315
|
+
ledger: `0x${string}`;
|
|
2316
|
+
missionControl: `0x${string}`;
|
|
2317
|
+
legoBook: `0x${string}`;
|
|
2318
|
+
appraiser: `0x${string}`;
|
|
2319
|
+
}) => Promise<[bigint, bigint, bigint, bigint]>;
|
|
2320
|
+
addLiquidityConcentrated: (nftTokenId: bigint, pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, tickLower: unknown, tickUpper: unknown, amountA: bigint, amountB: bigint, minAmountA: bigint, minAmountB: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
|
|
2321
|
+
ledger: `0x${string}`;
|
|
2322
|
+
missionControl: `0x${string}`;
|
|
2323
|
+
legoBook: `0x${string}`;
|
|
2324
|
+
appraiser: `0x${string}`;
|
|
2325
|
+
}) => Promise<[bigint, bigint, bigint, bigint, bigint]>;
|
|
2326
|
+
removeLiquidityConcentrated: (nftTokenId: bigint, pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, liqToRemove: bigint, minAmountA: bigint, minAmountB: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
|
|
2327
|
+
ledger: `0x${string}`;
|
|
2328
|
+
missionControl: `0x${string}`;
|
|
2329
|
+
legoBook: `0x${string}`;
|
|
2330
|
+
appraiser: `0x${string}`;
|
|
2331
|
+
}) => Promise<[bigint, bigint, bigint, boolean, bigint]>;
|
|
2551
2332
|
};
|
|
2552
2333
|
events: {
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2334
|
+
FortyAcresDeposit: (sender: `0x${string}`, asset: `0x${string}`, vaultToken: `0x${string}`, assetAmountDeposited: bigint, usdValue: bigint, vaultTokenAmountReceived: bigint, recipient: `0x${string}`) => Promise<void>;
|
|
2335
|
+
FortyAcresWithdrawal: (sender: `0x${string}`, asset: `0x${string}`, vaultToken: `0x${string}`, assetAmountReceived: bigint, usdValue: bigint, vaultTokenAmountBurned: bigint, recipient: `0x${string}`) => Promise<void>;
|
|
2336
|
+
LegoPauseModified: (isPaused: boolean) => Promise<void>;
|
|
2337
|
+
LegoFundsRecovered: (asset: `0x${string}`, recipient: `0x${string}`, balance: bigint) => Promise<void>;
|
|
2338
|
+
SnapShotPriceConfigSet: (minSnapshotDelay: bigint, maxNumSnapshots: bigint, maxUpsideDeviation: bigint, staleTime: bigint) => Promise<void>;
|
|
2339
|
+
AssetOpportunityAdded: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
|
|
2340
|
+
AssetOpportunityRemoved: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
|
|
2341
|
+
PricePerShareSnapShotAdded: (vaultToken: `0x${string}`, totalSupply: bigint, pricePerShare: bigint) => Promise<void>;
|
|
2558
2342
|
};
|
|
2559
2343
|
};
|
|
2560
2344
|
export type Calls = keyof Contract['calls'];
|
|
2561
2345
|
export type Request<M extends Calls> = {
|
|
2562
|
-
contractName: '
|
|
2346
|
+
contractName: 'FortyAcres';
|
|
2563
2347
|
method: M;
|
|
2564
2348
|
args: ExtractArgs<Contract['calls'][M]>;
|
|
2565
2349
|
address: Address | undefined;
|
|
@@ -2585,7 +2369,7 @@ export declare const call: CallType;
|
|
|
2585
2369
|
export type Mutations = keyof Contract['mutations'];
|
|
2586
2370
|
export declare const mutation: {
|
|
2587
2371
|
[K in Mutations]: {
|
|
2588
|
-
contractName: '
|
|
2372
|
+
contractName: 'FortyAcres';
|
|
2589
2373
|
deployAddress: Address | undefined;
|
|
2590
2374
|
getAbi: () => typeof abi;
|
|
2591
2375
|
functionName: K;
|
|
@@ -2595,37 +2379,70 @@ export declare const mutation: {
|
|
|
2595
2379
|
export type SDK = {
|
|
2596
2380
|
deployAddress: Address | undefined;
|
|
2597
2381
|
abi: typeof abi;
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2382
|
+
getAddys: (...args: ExtractArgs<Contract['calls']['getAddys']>) => Promise<CallReturn<'getAddys'>>;
|
|
2383
|
+
getUndyHq: (...args: ExtractArgs<Contract['calls']['getUndyHq']>) => Promise<CallReturn<'getUndyHq'>>;
|
|
2384
|
+
isLegoAsset: (...args: ExtractArgs<Contract['calls']['isLegoAsset']>) => Promise<CallReturn<'isLegoAsset'>>;
|
|
2385
|
+
getAssetOpportunities: (...args: ExtractArgs<Contract['calls']['getAssetOpportunities']>) => Promise<CallReturn<'getAssetOpportunities'>>;
|
|
2386
|
+
getAssets: (...args: ExtractArgs<Contract['calls']['getAssets']>) => Promise<CallReturn<'getAssets'>>;
|
|
2387
|
+
isAssetOpportunity: (...args: ExtractArgs<Contract['calls']['isAssetOpportunity']>) => Promise<CallReturn<'isAssetOpportunity'>>;
|
|
2388
|
+
getNumLegoAssets: (...args: ExtractArgs<Contract['calls']['getNumLegoAssets']>) => Promise<CallReturn<'getNumLegoAssets'>>;
|
|
2389
|
+
getWeightedPricePerShare: (...args: ExtractArgs<Contract['calls']['getWeightedPricePerShare']>) => Promise<CallReturn<'getWeightedPricePerShare'>>;
|
|
2390
|
+
getLatestSnapshot: (...args: ExtractArgs<Contract['calls']['getLatestSnapshot']>) => Promise<CallReturn<'getLatestSnapshot'>>;
|
|
2391
|
+
isValidPriceConfig: (...args: ExtractArgs<Contract['calls']['isValidPriceConfig']>) => Promise<CallReturn<'isValidPriceConfig'>>;
|
|
2392
|
+
vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
|
|
2393
|
+
assetOpportunities: (...args: ExtractArgs<Contract['calls']['assetOpportunities']>) => Promise<CallReturn<'assetOpportunities'>>;
|
|
2394
|
+
indexOfAssetOpportunity: (...args: ExtractArgs<Contract['calls']['indexOfAssetOpportunity']>) => Promise<CallReturn<'indexOfAssetOpportunity'>>;
|
|
2395
|
+
numAssetOpportunities: (...args: ExtractArgs<Contract['calls']['numAssetOpportunities']>) => Promise<CallReturn<'numAssetOpportunities'>>;
|
|
2396
|
+
assets: (...args: ExtractArgs<Contract['calls']['assets']>) => Promise<CallReturn<'assets'>>;
|
|
2397
|
+
indexOfAsset: (...args: ExtractArgs<Contract['calls']['indexOfAsset']>) => Promise<CallReturn<'indexOfAsset'>>;
|
|
2398
|
+
numAssets: (...args: ExtractArgs<Contract['calls']['numAssets']>) => Promise<CallReturn<'numAssets'>>;
|
|
2399
|
+
snapShotData: (...args: ExtractArgs<Contract['calls']['snapShotData']>) => Promise<CallReturn<'snapShotData'>>;
|
|
2400
|
+
snapShots: (...args: ExtractArgs<Contract['calls']['snapShots']>) => Promise<CallReturn<'snapShots'>>;
|
|
2401
|
+
snapShotPriceConfig: (...args: ExtractArgs<Contract['calls']['snapShotPriceConfig']>) => Promise<CallReturn<'snapShotPriceConfig'>>;
|
|
2402
|
+
isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
|
|
2403
|
+
hasCapability: (...args: ExtractArgs<Contract['calls']['hasCapability']>) => Promise<CallReturn<'hasCapability'>>;
|
|
2404
|
+
getRegistries: (...args: ExtractArgs<Contract['calls']['getRegistries']>) => Promise<CallReturn<'getRegistries'>>;
|
|
2405
|
+
isYieldLego: (...args: ExtractArgs<Contract['calls']['isYieldLego']>) => Promise<CallReturn<'isYieldLego'>>;
|
|
2406
|
+
isDexLego: (...args: ExtractArgs<Contract['calls']['isDexLego']>) => Promise<CallReturn<'isDexLego'>>;
|
|
2407
|
+
getUnderlyingAsset: (...args: ExtractArgs<Contract['calls']['getUnderlyingAsset']>) => Promise<CallReturn<'getUnderlyingAsset'>>;
|
|
2408
|
+
getUnderlyingBalances: (...args: ExtractArgs<Contract['calls']['getUnderlyingBalances']>) => Promise<CallReturn<'getUnderlyingBalances'>>;
|
|
2409
|
+
getUnderlyingAmount: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmount']>) => Promise<CallReturn<'getUnderlyingAmount'>>;
|
|
2410
|
+
getUnderlyingAmountSafe: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmountSafe']>) => Promise<CallReturn<'getUnderlyingAmountSafe'>>;
|
|
2411
|
+
getUnderlyingData: (...args: ExtractArgs<Contract['calls']['getUnderlyingData']>) => Promise<CallReturn<'getUnderlyingData'>>;
|
|
2412
|
+
getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
|
|
2413
|
+
isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
|
|
2414
|
+
getPricePerShare: (...args: ExtractArgs<Contract['calls']['getPricePerShare']>) => Promise<CallReturn<'getPricePerShare'>>;
|
|
2415
|
+
getVaultTokenAmount: (...args: ExtractArgs<Contract['calls']['getVaultTokenAmount']>) => Promise<CallReturn<'getVaultTokenAmount'>>;
|
|
2416
|
+
isEligibleVaultForTrialFunds: (...args: ExtractArgs<Contract['calls']['isEligibleVaultForTrialFunds']>) => Promise<CallReturn<'isEligibleVaultForTrialFunds'>>;
|
|
2417
|
+
isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
|
|
2418
|
+
totalAssets: (...args: ExtractArgs<Contract['calls']['totalAssets']>) => Promise<CallReturn<'totalAssets'>>;
|
|
2419
|
+
totalBorrows: (...args: ExtractArgs<Contract['calls']['totalBorrows']>) => Promise<CallReturn<'totalBorrows'>>;
|
|
2420
|
+
canRegisterVaultToken: (...args: ExtractArgs<Contract['calls']['canRegisterVaultToken']>) => Promise<CallReturn<'canRegisterVaultToken'>>;
|
|
2421
|
+
getAccessForLego: (...args: ExtractArgs<Contract['calls']['getAccessForLego']>) => Promise<CallReturn<'getAccessForLego'>>;
|
|
2422
|
+
hasClaimableRewards: (...args: ExtractArgs<Contract['calls']['hasClaimableRewards']>) => Promise<CallReturn<'hasClaimableRewards'>>;
|
|
2423
|
+
FORTY_ACRES_USDC_VAULT: (...args: ExtractArgs<Contract['calls']['FORTY_ACRES_USDC_VAULT']>) => Promise<CallReturn<'FORTY_ACRES_USDC_VAULT'>>;
|
|
2424
|
+
pause: (...args: ExtractArgs<Contract['mutations']['pause']>) => Promise<Address>;
|
|
2425
|
+
recoverFunds: (...args: ExtractArgs<Contract['mutations']['recoverFunds']>) => Promise<Address>;
|
|
2426
|
+
recoverFundsMany: (...args: ExtractArgs<Contract['mutations']['recoverFundsMany']>) => Promise<Address>;
|
|
2427
|
+
setSnapShotPriceConfig: (...args: ExtractArgs<Contract['mutations']['setSnapShotPriceConfig']>) => Promise<Address>;
|
|
2428
|
+
registerVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['registerVaultTokenLocally']>) => Promise<Address>;
|
|
2429
|
+
deregisterVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['deregisterVaultTokenLocally']>) => Promise<Address>;
|
|
2430
|
+
addPriceSnapshot: (...args: ExtractArgs<Contract['mutations']['addPriceSnapshot']>) => Promise<Address>;
|
|
2431
|
+
depositForYield: (...args: ExtractArgs<Contract['mutations']['depositForYield']>) => Promise<Address>;
|
|
2432
|
+
withdrawFromYield: (...args: ExtractArgs<Contract['mutations']['withdrawFromYield']>) => Promise<Address>;
|
|
2433
|
+
claimRewards: (...args: ExtractArgs<Contract['mutations']['claimRewards']>) => Promise<Address>;
|
|
2613
2434
|
swapTokens: (...args: ExtractArgs<Contract['mutations']['swapTokens']>) => Promise<Address>;
|
|
2435
|
+
mintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['mintOrRedeemAsset']>) => Promise<Address>;
|
|
2436
|
+
confirmMintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['confirmMintOrRedeemAsset']>) => Promise<Address>;
|
|
2437
|
+
addCollateral: (...args: ExtractArgs<Contract['mutations']['addCollateral']>) => Promise<Address>;
|
|
2438
|
+
removeCollateral: (...args: ExtractArgs<Contract['mutations']['removeCollateral']>) => Promise<Address>;
|
|
2614
2439
|
borrow: (...args: ExtractArgs<Contract['mutations']['borrow']>) => Promise<Address>;
|
|
2615
2440
|
repayDebt: (...args: ExtractArgs<Contract['mutations']['repayDebt']>) => Promise<Address>;
|
|
2616
|
-
claimRewards: (...args: ExtractArgs<Contract['mutations']['claimRewards']>) => Promise<Address>;
|
|
2617
2441
|
addLiquidity: (...args: ExtractArgs<Contract['mutations']['addLiquidity']>) => Promise<Address>;
|
|
2618
2442
|
removeLiquidity: (...args: ExtractArgs<Contract['mutations']['removeLiquidity']>) => Promise<Address>;
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
convertWethToEth: (...args: ExtractArgs<Contract['mutations']['convertWethToEth']>) => Promise<Address>;
|
|
2622
|
-
performBatchActions: (...args: ExtractArgs<Contract['mutations']['performBatchActions']>) => Promise<Address>;
|
|
2623
|
-
changeOwnership: (...args: ExtractArgs<Contract['mutations']['changeOwnership']>) => Promise<Address>;
|
|
2624
|
-
confirmOwnershipChange: (...args: ExtractArgs<Contract['mutations']['confirmOwnershipChange']>) => Promise<Address>;
|
|
2625
|
-
cancelOwnershipChange: (...args: ExtractArgs<Contract['mutations']['cancelOwnershipChange']>) => Promise<Address>;
|
|
2626
|
-
setOwnershipChangeDelay: (...args: ExtractArgs<Contract['mutations']['setOwnershipChangeDelay']>) => Promise<Address>;
|
|
2627
|
-
recoverFunds: (...args: ExtractArgs<Contract['mutations']['recoverFunds']>) => Promise<Address>;
|
|
2443
|
+
addLiquidityConcentrated: (...args: ExtractArgs<Contract['mutations']['addLiquidityConcentrated']>) => Promise<Address>;
|
|
2444
|
+
removeLiquidityConcentrated: (...args: ExtractArgs<Contract['mutations']['removeLiquidityConcentrated']>) => Promise<Address>;
|
|
2628
2445
|
};
|
|
2629
|
-
export declare function toSdk(
|
|
2446
|
+
export declare function toSdk(publicClient?: PublicClient, walletClient?: WalletClient): SDK;
|
|
2630
2447
|
export {};
|
|
2631
|
-
//# sourceMappingURL=
|
|
2448
|
+
//# sourceMappingURL=FortyAcres.d.ts.map
|