@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
|
@@ -5,555 +5,644 @@
|
|
|
5
5
|
import { singleQuery, mutate } from '@dappql/async';
|
|
6
6
|
export const abi = [
|
|
7
7
|
{
|
|
8
|
-
|
|
8
|
+
name: 'Deposit',
|
|
9
9
|
inputs: [
|
|
10
10
|
{
|
|
11
|
-
indexed: true,
|
|
12
11
|
name: 'sender',
|
|
13
12
|
type: 'address',
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
13
|
indexed: true,
|
|
17
|
-
name: 'tokenIn',
|
|
18
|
-
type: 'address',
|
|
19
14
|
},
|
|
20
15
|
{
|
|
21
|
-
|
|
22
|
-
name: 'tokenOut',
|
|
16
|
+
name: 'owner',
|
|
23
17
|
type: 'address',
|
|
18
|
+
indexed: true,
|
|
24
19
|
},
|
|
25
20
|
{
|
|
26
|
-
|
|
27
|
-
name: 'amountIn',
|
|
28
|
-
type: 'uint256',
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
indexed: false,
|
|
32
|
-
name: 'amountOut',
|
|
21
|
+
name: 'assets',
|
|
33
22
|
type: 'uint256',
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
23
|
indexed: false,
|
|
37
|
-
name: 'usdValue',
|
|
38
|
-
type: 'uint256',
|
|
39
24
|
},
|
|
40
25
|
{
|
|
41
|
-
|
|
42
|
-
name: 'numTokens',
|
|
26
|
+
name: 'shares',
|
|
43
27
|
type: 'uint256',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
28
|
indexed: false,
|
|
47
|
-
name: 'recipient',
|
|
48
|
-
type: 'address',
|
|
49
29
|
},
|
|
50
30
|
],
|
|
51
|
-
|
|
31
|
+
anonymous: false,
|
|
52
32
|
type: 'event',
|
|
53
33
|
},
|
|
54
34
|
{
|
|
55
|
-
|
|
35
|
+
name: 'Withdraw',
|
|
56
36
|
inputs: [
|
|
57
37
|
{
|
|
58
|
-
indexed: true,
|
|
59
38
|
name: 'sender',
|
|
60
39
|
type: 'address',
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
40
|
indexed: true,
|
|
64
|
-
name: 'tokenA',
|
|
65
|
-
type: 'address',
|
|
66
41
|
},
|
|
67
42
|
{
|
|
68
|
-
|
|
69
|
-
name: 'tokenB',
|
|
43
|
+
name: 'receiver',
|
|
70
44
|
type: 'address',
|
|
45
|
+
indexed: true,
|
|
71
46
|
},
|
|
72
47
|
{
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
indexed: false,
|
|
79
|
-
name: 'amountB',
|
|
80
|
-
type: 'uint256',
|
|
48
|
+
name: 'owner',
|
|
49
|
+
type: 'address',
|
|
50
|
+
indexed: true,
|
|
81
51
|
},
|
|
82
52
|
{
|
|
83
|
-
|
|
84
|
-
name: 'liquidityAdded',
|
|
53
|
+
name: 'assets',
|
|
85
54
|
type: 'uint256',
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
55
|
indexed: false,
|
|
89
|
-
name: 'nftTokenId',
|
|
90
|
-
type: 'uint256',
|
|
91
56
|
},
|
|
92
57
|
{
|
|
93
|
-
|
|
94
|
-
name: 'usdValue',
|
|
58
|
+
name: 'shares',
|
|
95
59
|
type: 'uint256',
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
60
|
indexed: false,
|
|
99
|
-
name: 'recipient',
|
|
100
|
-
type: 'address',
|
|
101
61
|
},
|
|
102
62
|
],
|
|
103
|
-
|
|
63
|
+
anonymous: false,
|
|
104
64
|
type: 'event',
|
|
105
65
|
},
|
|
106
66
|
{
|
|
107
|
-
|
|
67
|
+
name: 'Transfer',
|
|
108
68
|
inputs: [
|
|
109
69
|
{
|
|
110
|
-
indexed: false,
|
|
111
70
|
name: 'sender',
|
|
112
71
|
type: 'address',
|
|
72
|
+
indexed: true,
|
|
113
73
|
},
|
|
114
74
|
{
|
|
115
|
-
|
|
116
|
-
name: 'pool',
|
|
75
|
+
name: 'recipient',
|
|
117
76
|
type: 'address',
|
|
77
|
+
indexed: true,
|
|
118
78
|
},
|
|
119
79
|
{
|
|
120
|
-
|
|
121
|
-
name: 'nftTokenId',
|
|
80
|
+
name: 'amount',
|
|
122
81
|
type: 'uint256',
|
|
82
|
+
indexed: false,
|
|
123
83
|
},
|
|
84
|
+
],
|
|
85
|
+
anonymous: false,
|
|
86
|
+
type: 'event',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: 'Approval',
|
|
90
|
+
inputs: [
|
|
124
91
|
{
|
|
125
|
-
|
|
126
|
-
name: 'tokenA',
|
|
92
|
+
name: 'owner',
|
|
127
93
|
type: 'address',
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
94
|
indexed: true,
|
|
131
|
-
name: 'tokenB',
|
|
132
|
-
type: 'address',
|
|
133
95
|
},
|
|
134
96
|
{
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
97
|
+
name: 'spender',
|
|
98
|
+
type: 'address',
|
|
99
|
+
indexed: true,
|
|
138
100
|
},
|
|
139
101
|
{
|
|
140
|
-
|
|
141
|
-
name: 'amountB',
|
|
102
|
+
name: 'amount',
|
|
142
103
|
type: 'uint256',
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
104
|
indexed: false,
|
|
146
|
-
name: 'liquidityRemoved',
|
|
147
|
-
type: 'uint256',
|
|
148
105
|
},
|
|
106
|
+
],
|
|
107
|
+
anonymous: false,
|
|
108
|
+
type: 'event',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: 'BlacklistModified',
|
|
112
|
+
inputs: [
|
|
149
113
|
{
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
114
|
+
name: 'addr',
|
|
115
|
+
type: 'address',
|
|
116
|
+
indexed: true,
|
|
153
117
|
},
|
|
154
118
|
{
|
|
119
|
+
name: 'isBlacklisted',
|
|
120
|
+
type: 'bool',
|
|
155
121
|
indexed: false,
|
|
156
|
-
name: 'recipient',
|
|
157
|
-
type: 'address',
|
|
158
122
|
},
|
|
159
123
|
],
|
|
160
|
-
|
|
124
|
+
anonymous: false,
|
|
161
125
|
type: 'event',
|
|
162
126
|
},
|
|
163
127
|
{
|
|
164
|
-
|
|
128
|
+
name: 'TokenPauseModified',
|
|
165
129
|
inputs: [
|
|
166
130
|
{
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
131
|
+
name: 'isPaused',
|
|
132
|
+
type: 'bool',
|
|
133
|
+
indexed: false,
|
|
170
134
|
},
|
|
171
135
|
],
|
|
172
|
-
|
|
136
|
+
anonymous: false,
|
|
173
137
|
type: 'event',
|
|
174
138
|
},
|
|
175
139
|
{
|
|
176
|
-
|
|
140
|
+
name: 'EarnVaultAction',
|
|
177
141
|
inputs: [
|
|
178
142
|
{
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
143
|
+
name: 'op',
|
|
144
|
+
type: 'uint8',
|
|
145
|
+
indexed: false,
|
|
182
146
|
},
|
|
183
147
|
{
|
|
148
|
+
name: 'asset1',
|
|
149
|
+
type: 'address',
|
|
184
150
|
indexed: true,
|
|
185
|
-
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: 'asset2',
|
|
186
154
|
type: 'address',
|
|
155
|
+
indexed: true,
|
|
187
156
|
},
|
|
188
157
|
{
|
|
189
|
-
|
|
190
|
-
name: 'amount',
|
|
158
|
+
name: 'amount1',
|
|
191
159
|
type: 'uint256',
|
|
160
|
+
indexed: false,
|
|
192
161
|
},
|
|
193
|
-
],
|
|
194
|
-
name: 'AeroSlipStreamFundsRecovered',
|
|
195
|
-
type: 'event',
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
anonymous: false,
|
|
199
|
-
inputs: [
|
|
200
162
|
{
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
163
|
+
name: 'amount2',
|
|
164
|
+
type: 'uint256',
|
|
165
|
+
indexed: false,
|
|
204
166
|
},
|
|
205
167
|
{
|
|
168
|
+
name: 'usdValue',
|
|
169
|
+
type: 'uint256',
|
|
206
170
|
indexed: false,
|
|
207
|
-
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: 'legoId',
|
|
208
174
|
type: 'uint256',
|
|
175
|
+
indexed: false,
|
|
209
176
|
},
|
|
210
177
|
{
|
|
211
|
-
|
|
212
|
-
name: 'recipient',
|
|
178
|
+
name: 'signer',
|
|
213
179
|
type: 'address',
|
|
180
|
+
indexed: true,
|
|
214
181
|
},
|
|
215
182
|
],
|
|
216
|
-
|
|
183
|
+
anonymous: false,
|
|
217
184
|
type: 'event',
|
|
218
185
|
},
|
|
219
186
|
{
|
|
220
|
-
|
|
187
|
+
name: 'PerformanceFeesClaimed',
|
|
221
188
|
inputs: [
|
|
222
189
|
{
|
|
223
|
-
|
|
224
|
-
name: 'legoId',
|
|
190
|
+
name: 'pendingFees',
|
|
225
191
|
type: 'uint256',
|
|
192
|
+
indexed: false,
|
|
226
193
|
},
|
|
227
194
|
],
|
|
228
|
-
|
|
195
|
+
anonymous: false,
|
|
229
196
|
type: 'event',
|
|
230
197
|
},
|
|
231
198
|
{
|
|
232
|
-
|
|
233
|
-
|
|
199
|
+
stateMutability: 'view',
|
|
200
|
+
type: 'function',
|
|
201
|
+
name: 'name',
|
|
202
|
+
inputs: [],
|
|
203
|
+
outputs: [
|
|
234
204
|
{
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
type: 'bool',
|
|
205
|
+
name: '',
|
|
206
|
+
type: 'string',
|
|
238
207
|
},
|
|
239
208
|
],
|
|
240
|
-
name: 'AeroSlipStreamActivated',
|
|
241
|
-
type: 'event',
|
|
242
209
|
},
|
|
243
210
|
{
|
|
244
|
-
|
|
245
|
-
|
|
211
|
+
stateMutability: 'view',
|
|
212
|
+
type: 'function',
|
|
213
|
+
name: 'symbol',
|
|
214
|
+
inputs: [],
|
|
215
|
+
outputs: [
|
|
246
216
|
{
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
217
|
+
name: '',
|
|
218
|
+
type: 'string',
|
|
219
|
+
},
|
|
220
|
+
],
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
stateMutability: 'view',
|
|
224
|
+
type: 'function',
|
|
225
|
+
name: 'decimals',
|
|
226
|
+
inputs: [],
|
|
227
|
+
outputs: [
|
|
228
|
+
{
|
|
229
|
+
name: '',
|
|
230
|
+
type: 'uint8',
|
|
250
231
|
},
|
|
232
|
+
],
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
stateMutability: 'nonpayable',
|
|
236
|
+
type: 'function',
|
|
237
|
+
name: 'transfer',
|
|
238
|
+
inputs: [
|
|
251
239
|
{
|
|
252
|
-
|
|
253
|
-
name: 'newGov',
|
|
240
|
+
name: '_recipient',
|
|
254
241
|
type: 'address',
|
|
255
242
|
},
|
|
256
243
|
{
|
|
257
|
-
|
|
258
|
-
name: 'confirmBlock',
|
|
244
|
+
name: '_amount',
|
|
259
245
|
type: 'uint256',
|
|
260
246
|
},
|
|
261
247
|
],
|
|
262
|
-
|
|
263
|
-
|
|
248
|
+
outputs: [
|
|
249
|
+
{
|
|
250
|
+
name: '',
|
|
251
|
+
type: 'bool',
|
|
252
|
+
},
|
|
253
|
+
],
|
|
264
254
|
},
|
|
265
255
|
{
|
|
266
|
-
|
|
256
|
+
stateMutability: 'nonpayable',
|
|
257
|
+
type: 'function',
|
|
258
|
+
name: 'transferFrom',
|
|
267
259
|
inputs: [
|
|
268
260
|
{
|
|
269
|
-
|
|
270
|
-
name: 'prevGov',
|
|
261
|
+
name: '_sender',
|
|
271
262
|
type: 'address',
|
|
272
263
|
},
|
|
273
264
|
{
|
|
274
|
-
|
|
275
|
-
name: 'newGov',
|
|
265
|
+
name: '_recipient',
|
|
276
266
|
type: 'address',
|
|
277
267
|
},
|
|
278
268
|
{
|
|
279
|
-
|
|
280
|
-
name: 'initiatedBlock',
|
|
269
|
+
name: '_amount',
|
|
281
270
|
type: 'uint256',
|
|
282
271
|
},
|
|
272
|
+
],
|
|
273
|
+
outputs: [
|
|
283
274
|
{
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
type: 'uint256',
|
|
275
|
+
name: '',
|
|
276
|
+
type: 'bool',
|
|
287
277
|
},
|
|
288
278
|
],
|
|
289
|
-
name: 'GovChangeConfirmed',
|
|
290
|
-
type: 'event',
|
|
291
279
|
},
|
|
292
280
|
{
|
|
293
|
-
|
|
281
|
+
stateMutability: 'nonpayable',
|
|
282
|
+
type: 'function',
|
|
283
|
+
name: 'approve',
|
|
294
284
|
inputs: [
|
|
295
285
|
{
|
|
296
|
-
|
|
297
|
-
name: 'cancelledGov',
|
|
286
|
+
name: '_spender',
|
|
298
287
|
type: 'address',
|
|
299
288
|
},
|
|
300
289
|
{
|
|
301
|
-
|
|
302
|
-
name: 'initiatedBlock',
|
|
290
|
+
name: '_amount',
|
|
303
291
|
type: 'uint256',
|
|
304
292
|
},
|
|
293
|
+
],
|
|
294
|
+
outputs: [
|
|
305
295
|
{
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
type: 'uint256',
|
|
296
|
+
name: '',
|
|
297
|
+
type: 'bool',
|
|
309
298
|
},
|
|
310
299
|
],
|
|
311
|
-
name: 'GovChangeCancelled',
|
|
312
|
-
type: 'event',
|
|
313
300
|
},
|
|
314
301
|
{
|
|
315
|
-
|
|
302
|
+
stateMutability: 'nonpayable',
|
|
303
|
+
type: 'function',
|
|
304
|
+
name: 'increaseAllowance',
|
|
316
305
|
inputs: [
|
|
317
306
|
{
|
|
318
|
-
|
|
319
|
-
|
|
307
|
+
name: '_spender',
|
|
308
|
+
type: 'address',
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
name: '_amount',
|
|
320
312
|
type: 'uint256',
|
|
321
313
|
},
|
|
322
314
|
],
|
|
323
|
-
|
|
324
|
-
|
|
315
|
+
outputs: [
|
|
316
|
+
{
|
|
317
|
+
name: '',
|
|
318
|
+
type: 'bool',
|
|
319
|
+
},
|
|
320
|
+
],
|
|
325
321
|
},
|
|
326
322
|
{
|
|
323
|
+
stateMutability: 'nonpayable',
|
|
324
|
+
type: 'function',
|
|
325
|
+
name: 'decreaseAllowance',
|
|
327
326
|
inputs: [
|
|
328
327
|
{
|
|
329
|
-
name: '
|
|
328
|
+
name: '_spender',
|
|
330
329
|
type: 'address',
|
|
331
330
|
},
|
|
331
|
+
{
|
|
332
|
+
name: '_amount',
|
|
333
|
+
type: 'uint256',
|
|
334
|
+
},
|
|
332
335
|
],
|
|
333
|
-
name: 'canGovern',
|
|
334
336
|
outputs: [
|
|
335
337
|
{
|
|
336
338
|
name: '',
|
|
337
339
|
type: 'bool',
|
|
338
340
|
},
|
|
339
341
|
],
|
|
340
|
-
stateMutability: 'view',
|
|
341
|
-
type: 'function',
|
|
342
342
|
},
|
|
343
343
|
{
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
stateMutability: 'nonpayable',
|
|
345
|
+
type: 'function',
|
|
346
|
+
name: 'burn',
|
|
347
|
+
inputs: [
|
|
348
|
+
{
|
|
349
|
+
name: '_amount',
|
|
350
|
+
type: 'uint256',
|
|
351
|
+
},
|
|
352
|
+
],
|
|
346
353
|
outputs: [
|
|
347
354
|
{
|
|
348
355
|
name: '',
|
|
349
356
|
type: 'bool',
|
|
350
357
|
},
|
|
351
358
|
],
|
|
352
|
-
stateMutability: 'view',
|
|
353
|
-
type: 'function',
|
|
354
359
|
},
|
|
355
360
|
{
|
|
356
|
-
|
|
361
|
+
stateMutability: 'view',
|
|
362
|
+
type: 'function',
|
|
363
|
+
name: 'DOMAIN_SEPARATOR',
|
|
364
|
+
inputs: [],
|
|
365
|
+
outputs: [
|
|
357
366
|
{
|
|
358
|
-
name: '
|
|
359
|
-
type: '
|
|
367
|
+
name: '',
|
|
368
|
+
type: 'bytes32',
|
|
360
369
|
},
|
|
361
370
|
],
|
|
362
|
-
name: 'changeGovernance',
|
|
363
|
-
outputs: [],
|
|
364
|
-
stateMutability: 'nonpayable',
|
|
365
|
-
type: 'function',
|
|
366
371
|
},
|
|
367
372
|
{
|
|
368
|
-
inputs: [],
|
|
369
|
-
name: 'confirmGovernanceChange',
|
|
370
|
-
outputs: [],
|
|
371
373
|
stateMutability: 'nonpayable',
|
|
372
374
|
type: 'function',
|
|
373
|
-
|
|
374
|
-
{
|
|
375
|
-
inputs: [],
|
|
376
|
-
name: 'cancelGovernanceChange',
|
|
377
|
-
outputs: [],
|
|
378
|
-
stateMutability: 'nonpayable',
|
|
379
|
-
type: 'function',
|
|
380
|
-
},
|
|
381
|
-
{
|
|
375
|
+
name: 'permit',
|
|
382
376
|
inputs: [
|
|
383
377
|
{
|
|
384
|
-
name: '
|
|
378
|
+
name: '_owner',
|
|
379
|
+
type: 'address',
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
name: '_spender',
|
|
383
|
+
type: 'address',
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
name: '_value',
|
|
387
|
+
type: 'uint256',
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
name: '_deadline',
|
|
385
391
|
type: 'uint256',
|
|
386
392
|
},
|
|
393
|
+
{
|
|
394
|
+
name: '_signature',
|
|
395
|
+
type: 'bytes',
|
|
396
|
+
},
|
|
387
397
|
],
|
|
388
|
-
|
|
389
|
-
|
|
398
|
+
outputs: [
|
|
399
|
+
{
|
|
400
|
+
name: '',
|
|
401
|
+
type: 'bool',
|
|
402
|
+
},
|
|
403
|
+
],
|
|
404
|
+
},
|
|
405
|
+
{
|
|
390
406
|
stateMutability: 'nonpayable',
|
|
391
407
|
type: 'function',
|
|
408
|
+
name: 'setBlacklist',
|
|
409
|
+
inputs: [
|
|
410
|
+
{
|
|
411
|
+
name: '_addr',
|
|
412
|
+
type: 'address',
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
name: '_shouldBlacklist',
|
|
416
|
+
type: 'bool',
|
|
417
|
+
},
|
|
418
|
+
],
|
|
419
|
+
outputs: [
|
|
420
|
+
{
|
|
421
|
+
name: '',
|
|
422
|
+
type: 'bool',
|
|
423
|
+
},
|
|
424
|
+
],
|
|
392
425
|
},
|
|
393
426
|
{
|
|
394
|
-
|
|
395
|
-
|
|
427
|
+
stateMutability: 'nonpayable',
|
|
428
|
+
type: 'function',
|
|
429
|
+
name: 'burnBlacklistTokens',
|
|
430
|
+
inputs: [
|
|
431
|
+
{
|
|
432
|
+
name: '_addr',
|
|
433
|
+
type: 'address',
|
|
434
|
+
},
|
|
435
|
+
],
|
|
396
436
|
outputs: [
|
|
397
437
|
{
|
|
398
438
|
name: '',
|
|
399
|
-
type: '
|
|
439
|
+
type: 'bool',
|
|
400
440
|
},
|
|
401
441
|
],
|
|
402
|
-
stateMutability: 'view',
|
|
403
|
-
type: 'function',
|
|
404
442
|
},
|
|
405
443
|
{
|
|
406
|
-
|
|
407
|
-
|
|
444
|
+
stateMutability: 'nonpayable',
|
|
445
|
+
type: 'function',
|
|
446
|
+
name: 'burnBlacklistTokens',
|
|
447
|
+
inputs: [
|
|
448
|
+
{
|
|
449
|
+
name: '_addr',
|
|
450
|
+
type: 'address',
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
name: '_amount',
|
|
454
|
+
type: 'uint256',
|
|
455
|
+
},
|
|
456
|
+
],
|
|
408
457
|
outputs: [
|
|
409
458
|
{
|
|
410
|
-
components: [
|
|
411
|
-
{
|
|
412
|
-
name: 'newGov',
|
|
413
|
-
type: 'address',
|
|
414
|
-
},
|
|
415
|
-
{
|
|
416
|
-
name: 'initiatedBlock',
|
|
417
|
-
type: 'uint256',
|
|
418
|
-
},
|
|
419
|
-
{
|
|
420
|
-
name: 'confirmBlock',
|
|
421
|
-
type: 'uint256',
|
|
422
|
-
},
|
|
423
|
-
],
|
|
424
459
|
name: '',
|
|
425
|
-
type: '
|
|
460
|
+
type: 'bool',
|
|
426
461
|
},
|
|
427
462
|
],
|
|
428
|
-
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
stateMutability: 'nonpayable',
|
|
429
466
|
type: 'function',
|
|
467
|
+
name: 'pause',
|
|
468
|
+
inputs: [
|
|
469
|
+
{
|
|
470
|
+
name: '_shouldPause',
|
|
471
|
+
type: 'bool',
|
|
472
|
+
},
|
|
473
|
+
],
|
|
474
|
+
outputs: [],
|
|
430
475
|
},
|
|
431
476
|
{
|
|
477
|
+
stateMutability: 'view',
|
|
478
|
+
type: 'function',
|
|
479
|
+
name: 'undyHq',
|
|
432
480
|
inputs: [],
|
|
433
|
-
name: 'govChangeDelay',
|
|
434
481
|
outputs: [
|
|
435
482
|
{
|
|
436
483
|
name: '',
|
|
437
|
-
type: '
|
|
484
|
+
type: 'address',
|
|
438
485
|
},
|
|
439
486
|
],
|
|
487
|
+
},
|
|
488
|
+
{
|
|
440
489
|
stateMutability: 'view',
|
|
441
490
|
type: 'function',
|
|
491
|
+
name: 'blacklisted',
|
|
492
|
+
inputs: [
|
|
493
|
+
{
|
|
494
|
+
name: 'arg0',
|
|
495
|
+
type: 'address',
|
|
496
|
+
},
|
|
497
|
+
],
|
|
498
|
+
outputs: [
|
|
499
|
+
{
|
|
500
|
+
name: '',
|
|
501
|
+
type: 'bool',
|
|
502
|
+
},
|
|
503
|
+
],
|
|
442
504
|
},
|
|
443
505
|
{
|
|
506
|
+
stateMutability: 'view',
|
|
507
|
+
type: 'function',
|
|
508
|
+
name: 'isPaused',
|
|
444
509
|
inputs: [],
|
|
445
|
-
name: 'MIN_GOV_CHANGE_DELAY',
|
|
446
510
|
outputs: [
|
|
447
511
|
{
|
|
448
512
|
name: '',
|
|
449
|
-
type: '
|
|
513
|
+
type: 'bool',
|
|
450
514
|
},
|
|
451
515
|
],
|
|
452
|
-
stateMutability: 'view',
|
|
453
|
-
type: 'function',
|
|
454
516
|
},
|
|
455
517
|
{
|
|
456
|
-
|
|
457
|
-
|
|
518
|
+
stateMutability: 'view',
|
|
519
|
+
type: 'function',
|
|
520
|
+
name: 'balanceOf',
|
|
521
|
+
inputs: [
|
|
522
|
+
{
|
|
523
|
+
name: 'arg0',
|
|
524
|
+
type: 'address',
|
|
525
|
+
},
|
|
526
|
+
],
|
|
458
527
|
outputs: [
|
|
459
528
|
{
|
|
460
529
|
name: '',
|
|
461
530
|
type: 'uint256',
|
|
462
531
|
},
|
|
463
532
|
],
|
|
464
|
-
stateMutability: 'view',
|
|
465
|
-
type: 'function',
|
|
466
533
|
},
|
|
467
534
|
{
|
|
535
|
+
stateMutability: 'view',
|
|
536
|
+
type: 'function',
|
|
537
|
+
name: 'allowance',
|
|
468
538
|
inputs: [
|
|
469
539
|
{
|
|
470
|
-
name: '
|
|
540
|
+
name: 'arg0',
|
|
471
541
|
type: 'address',
|
|
472
542
|
},
|
|
473
543
|
{
|
|
474
|
-
name: '
|
|
544
|
+
name: 'arg1',
|
|
475
545
|
type: 'address',
|
|
476
546
|
},
|
|
547
|
+
],
|
|
548
|
+
outputs: [
|
|
477
549
|
{
|
|
478
|
-
name: '
|
|
550
|
+
name: '',
|
|
479
551
|
type: 'uint256',
|
|
480
552
|
},
|
|
553
|
+
],
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
stateMutability: 'view',
|
|
557
|
+
type: 'function',
|
|
558
|
+
name: 'totalSupply',
|
|
559
|
+
inputs: [],
|
|
560
|
+
outputs: [
|
|
481
561
|
{
|
|
482
|
-
name: '
|
|
483
|
-
type: '
|
|
562
|
+
name: '',
|
|
563
|
+
type: 'uint256',
|
|
484
564
|
},
|
|
485
565
|
],
|
|
486
|
-
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
stateMutability: 'view',
|
|
569
|
+
type: 'function',
|
|
570
|
+
name: 'TOKEN_NAME',
|
|
571
|
+
inputs: [],
|
|
487
572
|
outputs: [
|
|
488
573
|
{
|
|
489
574
|
name: '',
|
|
490
|
-
type: '
|
|
575
|
+
type: 'string',
|
|
491
576
|
},
|
|
492
577
|
],
|
|
578
|
+
},
|
|
579
|
+
{
|
|
493
580
|
stateMutability: 'view',
|
|
494
581
|
type: 'function',
|
|
582
|
+
name: 'TOKEN_SYMBOL',
|
|
583
|
+
inputs: [],
|
|
584
|
+
outputs: [
|
|
585
|
+
{
|
|
586
|
+
name: '',
|
|
587
|
+
type: 'string',
|
|
588
|
+
},
|
|
589
|
+
],
|
|
495
590
|
},
|
|
496
591
|
{
|
|
592
|
+
stateMutability: 'view',
|
|
593
|
+
type: 'function',
|
|
594
|
+
name: 'TOKEN_DECIMALS',
|
|
497
595
|
inputs: [],
|
|
498
|
-
name: 'getRegistries',
|
|
499
596
|
outputs: [
|
|
500
597
|
{
|
|
501
598
|
name: '',
|
|
502
|
-
type: '
|
|
599
|
+
type: 'uint8',
|
|
503
600
|
},
|
|
504
601
|
],
|
|
602
|
+
},
|
|
603
|
+
{
|
|
505
604
|
stateMutability: 'view',
|
|
506
605
|
type: 'function',
|
|
606
|
+
name: 'VERSION',
|
|
607
|
+
inputs: [],
|
|
608
|
+
outputs: [
|
|
609
|
+
{
|
|
610
|
+
name: '',
|
|
611
|
+
type: 'string',
|
|
612
|
+
},
|
|
613
|
+
],
|
|
507
614
|
},
|
|
508
615
|
{
|
|
616
|
+
stateMutability: 'view',
|
|
617
|
+
type: 'function',
|
|
618
|
+
name: 'nonces',
|
|
509
619
|
inputs: [
|
|
510
620
|
{
|
|
511
|
-
name: '
|
|
621
|
+
name: 'arg0',
|
|
512
622
|
type: 'address',
|
|
513
623
|
},
|
|
514
624
|
],
|
|
515
|
-
name: 'getAccessForLego',
|
|
516
625
|
outputs: [
|
|
517
|
-
{
|
|
518
|
-
name: '',
|
|
519
|
-
type: 'address',
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
name: '',
|
|
523
|
-
type: 'string',
|
|
524
|
-
},
|
|
525
626
|
{
|
|
526
627
|
name: '',
|
|
527
628
|
type: 'uint256',
|
|
528
629
|
},
|
|
529
630
|
],
|
|
530
|
-
stateMutability: 'view',
|
|
531
|
-
type: 'function',
|
|
532
631
|
},
|
|
533
632
|
{
|
|
633
|
+
stateMutability: 'nonpayable',
|
|
634
|
+
type: 'function',
|
|
635
|
+
name: 'depositForYield',
|
|
534
636
|
inputs: [
|
|
535
637
|
{
|
|
536
|
-
name: '
|
|
537
|
-
type: 'uint256',
|
|
538
|
-
},
|
|
539
|
-
{
|
|
540
|
-
name: '_minAmountOut',
|
|
638
|
+
name: '_legoId',
|
|
541
639
|
type: 'uint256',
|
|
542
640
|
},
|
|
543
641
|
{
|
|
544
|
-
name: '
|
|
545
|
-
type: 'address[]',
|
|
546
|
-
},
|
|
547
|
-
{
|
|
548
|
-
name: '_poolPath',
|
|
549
|
-
type: 'address[]',
|
|
550
|
-
},
|
|
551
|
-
{
|
|
552
|
-
name: '_recipient',
|
|
642
|
+
name: '_asset',
|
|
553
643
|
type: 'address',
|
|
554
644
|
},
|
|
555
645
|
],
|
|
556
|
-
name: 'swapTokens',
|
|
557
646
|
outputs: [
|
|
558
647
|
{
|
|
559
648
|
name: '',
|
|
@@ -561,7 +650,7 @@ export const abi = [
|
|
|
561
650
|
},
|
|
562
651
|
{
|
|
563
652
|
name: '',
|
|
564
|
-
type: '
|
|
653
|
+
type: 'address',
|
|
565
654
|
},
|
|
566
655
|
{
|
|
567
656
|
name: '',
|
|
@@ -572,37 +661,25 @@ export const abi = [
|
|
|
572
661
|
type: 'uint256',
|
|
573
662
|
},
|
|
574
663
|
],
|
|
575
|
-
stateMutability: 'nonpayable',
|
|
576
|
-
type: 'function',
|
|
577
664
|
},
|
|
578
665
|
{
|
|
666
|
+
stateMutability: 'nonpayable',
|
|
667
|
+
type: 'function',
|
|
668
|
+
name: 'depositForYield',
|
|
579
669
|
inputs: [
|
|
580
670
|
{
|
|
581
|
-
name: '
|
|
582
|
-
type: 'uint256',
|
|
583
|
-
},
|
|
584
|
-
{
|
|
585
|
-
name: '_minAmountOut',
|
|
671
|
+
name: '_legoId',
|
|
586
672
|
type: 'uint256',
|
|
587
673
|
},
|
|
588
674
|
{
|
|
589
|
-
name: '
|
|
590
|
-
type: 'address[]',
|
|
591
|
-
},
|
|
592
|
-
{
|
|
593
|
-
name: '_poolPath',
|
|
594
|
-
type: 'address[]',
|
|
595
|
-
},
|
|
596
|
-
{
|
|
597
|
-
name: '_recipient',
|
|
675
|
+
name: '_asset',
|
|
598
676
|
type: 'address',
|
|
599
677
|
},
|
|
600
678
|
{
|
|
601
|
-
name: '
|
|
679
|
+
name: '_vaultAddr',
|
|
602
680
|
type: 'address',
|
|
603
681
|
},
|
|
604
682
|
],
|
|
605
|
-
name: 'swapTokens',
|
|
606
683
|
outputs: [
|
|
607
684
|
{
|
|
608
685
|
name: '',
|
|
@@ -610,7 +687,7 @@ export const abi = [
|
|
|
610
687
|
},
|
|
611
688
|
{
|
|
612
689
|
name: '',
|
|
613
|
-
type: '
|
|
690
|
+
type: 'address',
|
|
614
691
|
},
|
|
615
692
|
{
|
|
616
693
|
name: '',
|
|
@@ -621,101 +698,82 @@ export const abi = [
|
|
|
621
698
|
type: 'uint256',
|
|
622
699
|
},
|
|
623
700
|
],
|
|
624
|
-
stateMutability: 'nonpayable',
|
|
625
|
-
type: 'function',
|
|
626
701
|
},
|
|
627
702
|
{
|
|
628
|
-
inputs: [
|
|
629
|
-
{
|
|
630
|
-
name: '_amount0Delta',
|
|
631
|
-
type: 'int256',
|
|
632
|
-
},
|
|
633
|
-
{
|
|
634
|
-
name: '_amount1Delta',
|
|
635
|
-
type: 'int256',
|
|
636
|
-
},
|
|
637
|
-
{
|
|
638
|
-
name: '_data',
|
|
639
|
-
type: 'bytes',
|
|
640
|
-
},
|
|
641
|
-
],
|
|
642
|
-
name: 'uniswapV3SwapCallback',
|
|
643
|
-
outputs: [],
|
|
644
703
|
stateMutability: 'nonpayable',
|
|
645
704
|
type: 'function',
|
|
646
|
-
|
|
647
|
-
{
|
|
705
|
+
name: 'depositForYield',
|
|
648
706
|
inputs: [
|
|
649
707
|
{
|
|
650
|
-
name: '
|
|
708
|
+
name: '_legoId',
|
|
651
709
|
type: 'uint256',
|
|
652
710
|
},
|
|
653
711
|
{
|
|
654
|
-
name: '
|
|
655
|
-
type: 'address',
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
name: '_tokenA',
|
|
712
|
+
name: '_asset',
|
|
659
713
|
type: 'address',
|
|
660
714
|
},
|
|
661
715
|
{
|
|
662
|
-
name: '
|
|
716
|
+
name: '_vaultAddr',
|
|
663
717
|
type: 'address',
|
|
664
718
|
},
|
|
665
719
|
{
|
|
666
|
-
name: '
|
|
667
|
-
type: '
|
|
720
|
+
name: '_amount',
|
|
721
|
+
type: 'uint256',
|
|
668
722
|
},
|
|
723
|
+
],
|
|
724
|
+
outputs: [
|
|
669
725
|
{
|
|
670
|
-
name: '
|
|
671
|
-
type: '
|
|
726
|
+
name: '',
|
|
727
|
+
type: 'uint256',
|
|
672
728
|
},
|
|
673
729
|
{
|
|
674
|
-
name: '
|
|
675
|
-
type: '
|
|
730
|
+
name: '',
|
|
731
|
+
type: 'address',
|
|
676
732
|
},
|
|
677
733
|
{
|
|
678
|
-
name: '
|
|
734
|
+
name: '',
|
|
679
735
|
type: 'uint256',
|
|
680
736
|
},
|
|
681
737
|
{
|
|
682
|
-
name: '
|
|
738
|
+
name: '',
|
|
683
739
|
type: 'uint256',
|
|
684
740
|
},
|
|
741
|
+
],
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
stateMutability: 'nonpayable',
|
|
745
|
+
type: 'function',
|
|
746
|
+
name: 'depositForYield',
|
|
747
|
+
inputs: [
|
|
685
748
|
{
|
|
686
|
-
name: '
|
|
749
|
+
name: '_legoId',
|
|
687
750
|
type: 'uint256',
|
|
688
751
|
},
|
|
689
752
|
{
|
|
690
|
-
name: '
|
|
691
|
-
type: '
|
|
753
|
+
name: '_asset',
|
|
754
|
+
type: 'address',
|
|
692
755
|
},
|
|
693
756
|
{
|
|
694
|
-
name: '
|
|
757
|
+
name: '_vaultAddr',
|
|
695
758
|
type: 'address',
|
|
696
759
|
},
|
|
697
|
-
],
|
|
698
|
-
name: 'addLiquidity',
|
|
699
|
-
outputs: [
|
|
700
760
|
{
|
|
701
|
-
name: '',
|
|
761
|
+
name: '_amount',
|
|
702
762
|
type: 'uint256',
|
|
703
763
|
},
|
|
704
764
|
{
|
|
705
|
-
name: '',
|
|
706
|
-
type: '
|
|
765
|
+
name: '_extraData',
|
|
766
|
+
type: 'bytes32',
|
|
707
767
|
},
|
|
768
|
+
],
|
|
769
|
+
outputs: [
|
|
708
770
|
{
|
|
709
771
|
name: '',
|
|
710
772
|
type: 'uint256',
|
|
711
773
|
},
|
|
712
774
|
{
|
|
713
775
|
name: '',
|
|
714
|
-
type: '
|
|
715
|
-
},
|
|
716
|
-
{
|
|
717
|
-
name: '',
|
|
718
|
-
type: 'uint256',
|
|
776
|
+
type: 'address',
|
|
719
777
|
},
|
|
720
778
|
{
|
|
721
779
|
name: '',
|
|
@@ -726,85 +784,107 @@ export const abi = [
|
|
|
726
784
|
type: 'uint256',
|
|
727
785
|
},
|
|
728
786
|
],
|
|
729
|
-
stateMutability: 'nonpayable',
|
|
730
|
-
type: 'function',
|
|
731
787
|
},
|
|
732
788
|
{
|
|
789
|
+
stateMutability: 'nonpayable',
|
|
790
|
+
type: 'function',
|
|
791
|
+
name: 'withdrawFromYield',
|
|
733
792
|
inputs: [
|
|
734
793
|
{
|
|
735
|
-
name: '
|
|
794
|
+
name: '_legoId',
|
|
736
795
|
type: 'uint256',
|
|
737
796
|
},
|
|
738
797
|
{
|
|
739
|
-
name: '
|
|
798
|
+
name: '_vaultToken',
|
|
740
799
|
type: 'address',
|
|
741
800
|
},
|
|
801
|
+
],
|
|
802
|
+
outputs: [
|
|
742
803
|
{
|
|
743
|
-
name: '
|
|
744
|
-
type: '
|
|
804
|
+
name: '',
|
|
805
|
+
type: 'uint256',
|
|
745
806
|
},
|
|
746
807
|
{
|
|
747
|
-
name: '
|
|
808
|
+
name: '',
|
|
748
809
|
type: 'address',
|
|
749
810
|
},
|
|
750
811
|
{
|
|
751
|
-
name: '
|
|
752
|
-
type: '
|
|
753
|
-
},
|
|
754
|
-
{
|
|
755
|
-
name: '_tickUpper',
|
|
756
|
-
type: 'int24',
|
|
812
|
+
name: '',
|
|
813
|
+
type: 'uint256',
|
|
757
814
|
},
|
|
758
815
|
{
|
|
759
|
-
name: '
|
|
816
|
+
name: '',
|
|
760
817
|
type: 'uint256',
|
|
761
818
|
},
|
|
819
|
+
],
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
stateMutability: 'nonpayable',
|
|
823
|
+
type: 'function',
|
|
824
|
+
name: 'withdrawFromYield',
|
|
825
|
+
inputs: [
|
|
762
826
|
{
|
|
763
|
-
name: '
|
|
827
|
+
name: '_legoId',
|
|
764
828
|
type: 'uint256',
|
|
765
829
|
},
|
|
766
830
|
{
|
|
767
|
-
name: '
|
|
768
|
-
type: '
|
|
831
|
+
name: '_vaultToken',
|
|
832
|
+
type: 'address',
|
|
769
833
|
},
|
|
770
834
|
{
|
|
771
|
-
name: '
|
|
835
|
+
name: '_amount',
|
|
772
836
|
type: 'uint256',
|
|
773
837
|
},
|
|
838
|
+
],
|
|
839
|
+
outputs: [
|
|
774
840
|
{
|
|
775
|
-
name: '
|
|
841
|
+
name: '',
|
|
776
842
|
type: 'uint256',
|
|
777
843
|
},
|
|
778
844
|
{
|
|
779
|
-
name: '
|
|
845
|
+
name: '',
|
|
780
846
|
type: 'address',
|
|
781
847
|
},
|
|
782
848
|
{
|
|
783
|
-
name: '
|
|
784
|
-
type: '
|
|
849
|
+
name: '',
|
|
850
|
+
type: 'uint256',
|
|
785
851
|
},
|
|
786
|
-
],
|
|
787
|
-
name: 'addLiquidity',
|
|
788
|
-
outputs: [
|
|
789
852
|
{
|
|
790
853
|
name: '',
|
|
791
854
|
type: 'uint256',
|
|
792
855
|
},
|
|
856
|
+
],
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
stateMutability: 'nonpayable',
|
|
860
|
+
type: 'function',
|
|
861
|
+
name: 'withdrawFromYield',
|
|
862
|
+
inputs: [
|
|
793
863
|
{
|
|
794
|
-
name: '',
|
|
864
|
+
name: '_legoId',
|
|
795
865
|
type: 'uint256',
|
|
796
866
|
},
|
|
797
867
|
{
|
|
798
|
-
name: '',
|
|
868
|
+
name: '_vaultToken',
|
|
869
|
+
type: 'address',
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
name: '_amount',
|
|
799
873
|
type: 'uint256',
|
|
800
874
|
},
|
|
875
|
+
{
|
|
876
|
+
name: '_extraData',
|
|
877
|
+
type: 'bytes32',
|
|
878
|
+
},
|
|
879
|
+
],
|
|
880
|
+
outputs: [
|
|
801
881
|
{
|
|
802
882
|
name: '',
|
|
803
883
|
type: 'uint256',
|
|
804
884
|
},
|
|
805
885
|
{
|
|
806
886
|
name: '',
|
|
807
|
-
type: '
|
|
887
|
+
type: 'address',
|
|
808
888
|
},
|
|
809
889
|
{
|
|
810
890
|
name: '',
|
|
@@ -815,53 +895,88 @@ export const abi = [
|
|
|
815
895
|
type: 'uint256',
|
|
816
896
|
},
|
|
817
897
|
],
|
|
818
|
-
stateMutability: 'nonpayable',
|
|
819
|
-
type: 'function',
|
|
820
898
|
},
|
|
821
899
|
{
|
|
900
|
+
stateMutability: 'nonpayable',
|
|
901
|
+
type: 'function',
|
|
902
|
+
name: 'withdrawFromYield',
|
|
822
903
|
inputs: [
|
|
823
904
|
{
|
|
824
|
-
name: '
|
|
905
|
+
name: '_legoId',
|
|
825
906
|
type: 'uint256',
|
|
826
907
|
},
|
|
827
908
|
{
|
|
828
|
-
name: '
|
|
909
|
+
name: '_vaultToken',
|
|
829
910
|
type: 'address',
|
|
830
911
|
},
|
|
831
912
|
{
|
|
832
|
-
name: '
|
|
833
|
-
type: '
|
|
913
|
+
name: '_amount',
|
|
914
|
+
type: 'uint256',
|
|
834
915
|
},
|
|
835
916
|
{
|
|
836
|
-
name: '
|
|
837
|
-
type: '
|
|
917
|
+
name: '_extraData',
|
|
918
|
+
type: 'bytes32',
|
|
838
919
|
},
|
|
839
920
|
{
|
|
840
|
-
name: '
|
|
841
|
-
type: '
|
|
921
|
+
name: '_isSpecialTx',
|
|
922
|
+
type: 'bool',
|
|
842
923
|
},
|
|
924
|
+
],
|
|
925
|
+
outputs: [
|
|
843
926
|
{
|
|
844
|
-
name: '
|
|
927
|
+
name: '',
|
|
845
928
|
type: 'uint256',
|
|
846
929
|
},
|
|
847
930
|
{
|
|
848
|
-
name: '
|
|
931
|
+
name: '',
|
|
932
|
+
type: 'address',
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
name: '',
|
|
849
936
|
type: 'uint256',
|
|
850
937
|
},
|
|
851
938
|
{
|
|
852
|
-
name: '
|
|
939
|
+
name: '',
|
|
853
940
|
type: 'uint256',
|
|
854
941
|
},
|
|
942
|
+
],
|
|
943
|
+
},
|
|
944
|
+
{
|
|
945
|
+
stateMutability: 'nonpayable',
|
|
946
|
+
type: 'function',
|
|
947
|
+
name: 'swapTokens',
|
|
948
|
+
inputs: [
|
|
855
949
|
{
|
|
856
|
-
name: '
|
|
857
|
-
type: '
|
|
950
|
+
name: '_instructions',
|
|
951
|
+
type: 'tuple[]',
|
|
952
|
+
components: [
|
|
953
|
+
{
|
|
954
|
+
name: 'legoId',
|
|
955
|
+
type: 'uint256',
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
name: 'amountIn',
|
|
959
|
+
type: 'uint256',
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
name: 'minAmountOut',
|
|
963
|
+
type: 'uint256',
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
name: 'tokenPath',
|
|
967
|
+
type: 'address[]',
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
name: 'poolPath',
|
|
971
|
+
type: 'address[]',
|
|
972
|
+
},
|
|
973
|
+
],
|
|
858
974
|
},
|
|
859
975
|
],
|
|
860
|
-
name: 'removeLiquidity',
|
|
861
976
|
outputs: [
|
|
862
977
|
{
|
|
863
978
|
name: '',
|
|
864
|
-
type: '
|
|
979
|
+
type: 'address',
|
|
865
980
|
},
|
|
866
981
|
{
|
|
867
982
|
name: '',
|
|
@@ -869,7 +984,7 @@ export const abi = [
|
|
|
869
984
|
},
|
|
870
985
|
{
|
|
871
986
|
name: '',
|
|
872
|
-
type: '
|
|
987
|
+
type: 'address',
|
|
873
988
|
},
|
|
874
989
|
{
|
|
875
990
|
name: '',
|
|
@@ -879,58 +994,72 @@ export const abi = [
|
|
|
879
994
|
name: '',
|
|
880
995
|
type: 'uint256',
|
|
881
996
|
},
|
|
882
|
-
{
|
|
883
|
-
name: '',
|
|
884
|
-
type: 'bool',
|
|
885
|
-
},
|
|
886
997
|
],
|
|
887
|
-
stateMutability: 'nonpayable',
|
|
888
|
-
type: 'function',
|
|
889
998
|
},
|
|
890
999
|
{
|
|
1000
|
+
stateMutability: 'nonpayable',
|
|
1001
|
+
type: 'function',
|
|
1002
|
+
name: 'claimRewards',
|
|
891
1003
|
inputs: [
|
|
892
1004
|
{
|
|
893
|
-
name: '
|
|
1005
|
+
name: '_legoId',
|
|
894
1006
|
type: 'uint256',
|
|
895
1007
|
},
|
|
1008
|
+
],
|
|
1009
|
+
outputs: [
|
|
896
1010
|
{
|
|
897
|
-
name: '
|
|
898
|
-
type: '
|
|
1011
|
+
name: '',
|
|
1012
|
+
type: 'uint256',
|
|
899
1013
|
},
|
|
900
1014
|
{
|
|
901
|
-
name: '
|
|
902
|
-
type: '
|
|
1015
|
+
name: '',
|
|
1016
|
+
type: 'uint256',
|
|
903
1017
|
},
|
|
1018
|
+
],
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
stateMutability: 'nonpayable',
|
|
1022
|
+
type: 'function',
|
|
1023
|
+
name: 'claimRewards',
|
|
1024
|
+
inputs: [
|
|
904
1025
|
{
|
|
905
|
-
name: '
|
|
906
|
-
type: '
|
|
1026
|
+
name: '_legoId',
|
|
1027
|
+
type: 'uint256',
|
|
907
1028
|
},
|
|
908
1029
|
{
|
|
909
|
-
name: '
|
|
1030
|
+
name: '_rewardToken',
|
|
910
1031
|
type: 'address',
|
|
911
1032
|
},
|
|
1033
|
+
],
|
|
1034
|
+
outputs: [
|
|
912
1035
|
{
|
|
913
|
-
name: '
|
|
1036
|
+
name: '',
|
|
914
1037
|
type: 'uint256',
|
|
915
1038
|
},
|
|
916
1039
|
{
|
|
917
|
-
name: '
|
|
1040
|
+
name: '',
|
|
918
1041
|
type: 'uint256',
|
|
919
1042
|
},
|
|
1043
|
+
],
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
stateMutability: 'nonpayable',
|
|
1047
|
+
type: 'function',
|
|
1048
|
+
name: 'claimRewards',
|
|
1049
|
+
inputs: [
|
|
920
1050
|
{
|
|
921
|
-
name: '
|
|
1051
|
+
name: '_legoId',
|
|
922
1052
|
type: 'uint256',
|
|
923
1053
|
},
|
|
924
1054
|
{
|
|
925
|
-
name: '
|
|
1055
|
+
name: '_rewardToken',
|
|
926
1056
|
type: 'address',
|
|
927
1057
|
},
|
|
928
1058
|
{
|
|
929
|
-
name: '
|
|
930
|
-
type: '
|
|
1059
|
+
name: '_rewardAmount',
|
|
1060
|
+
type: 'uint256',
|
|
931
1061
|
},
|
|
932
1062
|
],
|
|
933
|
-
name: 'removeLiquidity',
|
|
934
1063
|
outputs: [
|
|
935
1064
|
{
|
|
936
1065
|
name: '',
|
|
@@ -940,606 +1069,723 @@ export const abi = [
|
|
|
940
1069
|
name: '',
|
|
941
1070
|
type: 'uint256',
|
|
942
1071
|
},
|
|
1072
|
+
],
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
stateMutability: 'nonpayable',
|
|
1076
|
+
type: 'function',
|
|
1077
|
+
name: 'claimRewards',
|
|
1078
|
+
inputs: [
|
|
943
1079
|
{
|
|
944
|
-
name: '',
|
|
1080
|
+
name: '_legoId',
|
|
945
1081
|
type: 'uint256',
|
|
946
1082
|
},
|
|
947
1083
|
{
|
|
948
|
-
name: '',
|
|
1084
|
+
name: '_rewardToken',
|
|
1085
|
+
type: 'address',
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
name: '_rewardAmount',
|
|
949
1089
|
type: 'uint256',
|
|
950
1090
|
},
|
|
1091
|
+
{
|
|
1092
|
+
name: '_extraData',
|
|
1093
|
+
type: 'bytes32',
|
|
1094
|
+
},
|
|
1095
|
+
],
|
|
1096
|
+
outputs: [
|
|
951
1097
|
{
|
|
952
1098
|
name: '',
|
|
953
1099
|
type: 'uint256',
|
|
954
1100
|
},
|
|
955
1101
|
{
|
|
956
1102
|
name: '',
|
|
957
|
-
type: '
|
|
1103
|
+
type: 'uint256',
|
|
958
1104
|
},
|
|
959
1105
|
],
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
960
1108
|
stateMutability: 'nonpayable',
|
|
961
1109
|
type: 'function',
|
|
1110
|
+
name: 'claimPerformanceFees',
|
|
1111
|
+
inputs: [],
|
|
1112
|
+
outputs: [
|
|
1113
|
+
{
|
|
1114
|
+
name: '',
|
|
1115
|
+
type: 'uint256',
|
|
1116
|
+
},
|
|
1117
|
+
],
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
stateMutability: 'view',
|
|
1121
|
+
type: 'function',
|
|
1122
|
+
name: 'getClaimablePerformanceFees',
|
|
1123
|
+
inputs: [],
|
|
1124
|
+
outputs: [
|
|
1125
|
+
{
|
|
1126
|
+
name: '',
|
|
1127
|
+
type: 'uint256',
|
|
1128
|
+
},
|
|
1129
|
+
],
|
|
962
1130
|
},
|
|
963
1131
|
{
|
|
1132
|
+
stateMutability: 'nonpayable',
|
|
1133
|
+
type: 'function',
|
|
1134
|
+
name: 'updateYieldPosition',
|
|
964
1135
|
inputs: [
|
|
965
1136
|
{
|
|
966
|
-
name: '
|
|
1137
|
+
name: '_vaultToken',
|
|
967
1138
|
type: 'address',
|
|
968
1139
|
},
|
|
1140
|
+
],
|
|
1141
|
+
outputs: [],
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
stateMutability: 'nonpayable',
|
|
1145
|
+
type: 'function',
|
|
1146
|
+
name: 'addManager',
|
|
1147
|
+
inputs: [
|
|
969
1148
|
{
|
|
970
|
-
name: '
|
|
1149
|
+
name: '_manager',
|
|
971
1150
|
type: 'address',
|
|
972
1151
|
},
|
|
1152
|
+
],
|
|
1153
|
+
outputs: [],
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
stateMutability: 'nonpayable',
|
|
1157
|
+
type: 'function',
|
|
1158
|
+
name: 'removeManager',
|
|
1159
|
+
inputs: [
|
|
973
1160
|
{
|
|
974
|
-
name: '
|
|
1161
|
+
name: '_manager',
|
|
975
1162
|
type: 'address',
|
|
976
1163
|
},
|
|
1164
|
+
],
|
|
1165
|
+
outputs: [],
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
stateMutability: 'view',
|
|
1169
|
+
type: 'function',
|
|
1170
|
+
name: 'lastUnderlyingBal',
|
|
1171
|
+
inputs: [],
|
|
1172
|
+
outputs: [
|
|
977
1173
|
{
|
|
978
|
-
name: '
|
|
1174
|
+
name: '',
|
|
979
1175
|
type: 'uint256',
|
|
980
1176
|
},
|
|
1177
|
+
],
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
stateMutability: 'view',
|
|
1181
|
+
type: 'function',
|
|
1182
|
+
name: 'pendingYieldRealized',
|
|
1183
|
+
inputs: [],
|
|
1184
|
+
outputs: [
|
|
981
1185
|
{
|
|
982
|
-
name: '
|
|
983
|
-
type: '
|
|
1186
|
+
name: '',
|
|
1187
|
+
type: 'uint256',
|
|
984
1188
|
},
|
|
985
1189
|
],
|
|
986
|
-
name: 'claimRewards',
|
|
987
|
-
outputs: [],
|
|
988
|
-
stateMutability: 'nonpayable',
|
|
989
|
-
type: 'function',
|
|
990
1190
|
},
|
|
991
1191
|
{
|
|
1192
|
+
stateMutability: 'view',
|
|
1193
|
+
type: 'function',
|
|
1194
|
+
name: 'vaultToLegoId',
|
|
992
1195
|
inputs: [
|
|
993
1196
|
{
|
|
994
|
-
name: '
|
|
1197
|
+
name: 'arg0',
|
|
995
1198
|
type: 'address',
|
|
996
1199
|
},
|
|
997
1200
|
],
|
|
998
|
-
name: 'hasClaimableRewards',
|
|
999
1201
|
outputs: [
|
|
1000
1202
|
{
|
|
1001
1203
|
name: '',
|
|
1002
|
-
type: '
|
|
1204
|
+
type: 'uint256',
|
|
1003
1205
|
},
|
|
1004
1206
|
],
|
|
1207
|
+
},
|
|
1208
|
+
{
|
|
1005
1209
|
stateMutability: 'view',
|
|
1006
1210
|
type: 'function',
|
|
1211
|
+
name: 'assets',
|
|
1212
|
+
inputs: [
|
|
1213
|
+
{
|
|
1214
|
+
name: 'arg0',
|
|
1215
|
+
type: 'uint256',
|
|
1216
|
+
},
|
|
1217
|
+
],
|
|
1218
|
+
outputs: [
|
|
1219
|
+
{
|
|
1220
|
+
name: '',
|
|
1221
|
+
type: 'address',
|
|
1222
|
+
},
|
|
1223
|
+
],
|
|
1007
1224
|
},
|
|
1008
1225
|
{
|
|
1226
|
+
stateMutability: 'view',
|
|
1227
|
+
type: 'function',
|
|
1228
|
+
name: 'indexOfAsset',
|
|
1009
1229
|
inputs: [
|
|
1010
1230
|
{
|
|
1011
|
-
name: '
|
|
1231
|
+
name: 'arg0',
|
|
1012
1232
|
type: 'address',
|
|
1013
1233
|
},
|
|
1014
1234
|
],
|
|
1015
|
-
name: 'getLpToken',
|
|
1016
1235
|
outputs: [
|
|
1017
1236
|
{
|
|
1018
1237
|
name: '',
|
|
1019
|
-
type: '
|
|
1238
|
+
type: 'uint256',
|
|
1020
1239
|
},
|
|
1021
1240
|
],
|
|
1241
|
+
},
|
|
1242
|
+
{
|
|
1022
1243
|
stateMutability: 'view',
|
|
1023
1244
|
type: 'function',
|
|
1245
|
+
name: 'numAssets',
|
|
1246
|
+
inputs: [],
|
|
1247
|
+
outputs: [
|
|
1248
|
+
{
|
|
1249
|
+
name: '',
|
|
1250
|
+
type: 'uint256',
|
|
1251
|
+
},
|
|
1252
|
+
],
|
|
1024
1253
|
},
|
|
1025
1254
|
{
|
|
1255
|
+
stateMutability: 'view',
|
|
1256
|
+
type: 'function',
|
|
1257
|
+
name: 'managers',
|
|
1026
1258
|
inputs: [
|
|
1027
1259
|
{
|
|
1028
|
-
name: '
|
|
1029
|
-
type: '
|
|
1260
|
+
name: 'arg0',
|
|
1261
|
+
type: 'uint256',
|
|
1030
1262
|
},
|
|
1031
1263
|
],
|
|
1032
|
-
name: 'getPoolForLpToken',
|
|
1033
1264
|
outputs: [
|
|
1034
1265
|
{
|
|
1035
1266
|
name: '',
|
|
1036
1267
|
type: 'address',
|
|
1037
1268
|
},
|
|
1038
1269
|
],
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
stateMutability: 'view',
|
|
1273
|
+
type: 'function',
|
|
1274
|
+
name: 'indexOfManager',
|
|
1275
|
+
inputs: [
|
|
1276
|
+
{
|
|
1277
|
+
name: 'arg0',
|
|
1278
|
+
type: 'address',
|
|
1279
|
+
},
|
|
1280
|
+
],
|
|
1281
|
+
outputs: [
|
|
1282
|
+
{
|
|
1283
|
+
name: '',
|
|
1284
|
+
type: 'uint256',
|
|
1285
|
+
},
|
|
1286
|
+
],
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1039
1289
|
stateMutability: 'view',
|
|
1040
1290
|
type: 'function',
|
|
1291
|
+
name: 'numManagers',
|
|
1292
|
+
inputs: [],
|
|
1293
|
+
outputs: [
|
|
1294
|
+
{
|
|
1295
|
+
name: '',
|
|
1296
|
+
type: 'uint256',
|
|
1297
|
+
},
|
|
1298
|
+
],
|
|
1041
1299
|
},
|
|
1042
1300
|
{
|
|
1301
|
+
stateMutability: 'view',
|
|
1302
|
+
type: 'function',
|
|
1303
|
+
name: 'asset',
|
|
1043
1304
|
inputs: [],
|
|
1044
|
-
name: 'getCoreRouterPool',
|
|
1045
1305
|
outputs: [
|
|
1046
1306
|
{
|
|
1047
1307
|
name: '',
|
|
1048
1308
|
type: 'address',
|
|
1049
1309
|
},
|
|
1050
1310
|
],
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1051
1313
|
stateMutability: 'view',
|
|
1052
1314
|
type: 'function',
|
|
1315
|
+
name: 'totalAssets',
|
|
1316
|
+
inputs: [],
|
|
1317
|
+
outputs: [
|
|
1318
|
+
{
|
|
1319
|
+
name: '',
|
|
1320
|
+
type: 'uint256',
|
|
1321
|
+
},
|
|
1322
|
+
],
|
|
1053
1323
|
},
|
|
1054
1324
|
{
|
|
1325
|
+
stateMutability: 'view',
|
|
1326
|
+
type: 'function',
|
|
1327
|
+
name: 'getTotalAssets',
|
|
1055
1328
|
inputs: [
|
|
1056
1329
|
{
|
|
1057
|
-
name: '
|
|
1058
|
-
type: '
|
|
1330
|
+
name: '_shouldGetMax',
|
|
1331
|
+
type: 'bool',
|
|
1059
1332
|
},
|
|
1333
|
+
],
|
|
1334
|
+
outputs: [
|
|
1335
|
+
{
|
|
1336
|
+
name: '',
|
|
1337
|
+
type: 'uint256',
|
|
1338
|
+
},
|
|
1339
|
+
],
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
stateMutability: 'view',
|
|
1343
|
+
type: 'function',
|
|
1344
|
+
name: 'maxDeposit',
|
|
1345
|
+
inputs: [
|
|
1060
1346
|
{
|
|
1061
|
-
name: '
|
|
1347
|
+
name: '_receiver',
|
|
1062
1348
|
type: 'address',
|
|
1063
1349
|
},
|
|
1064
1350
|
],
|
|
1065
|
-
name: 'getDeepestLiqPool',
|
|
1066
1351
|
outputs: [
|
|
1067
1352
|
{
|
|
1068
|
-
components: [
|
|
1069
|
-
{
|
|
1070
|
-
name: 'pool',
|
|
1071
|
-
type: 'address',
|
|
1072
|
-
},
|
|
1073
|
-
{
|
|
1074
|
-
name: 'fee',
|
|
1075
|
-
type: 'uint256',
|
|
1076
|
-
},
|
|
1077
|
-
{
|
|
1078
|
-
name: 'liquidity',
|
|
1079
|
-
type: 'uint256',
|
|
1080
|
-
},
|
|
1081
|
-
{
|
|
1082
|
-
name: 'numCoins',
|
|
1083
|
-
type: 'uint256',
|
|
1084
|
-
},
|
|
1085
|
-
{
|
|
1086
|
-
name: 'legoId',
|
|
1087
|
-
type: 'uint256',
|
|
1088
|
-
},
|
|
1089
|
-
],
|
|
1090
1353
|
name: '',
|
|
1091
|
-
type: '
|
|
1354
|
+
type: 'uint256',
|
|
1355
|
+
},
|
|
1356
|
+
],
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
stateMutability: 'view',
|
|
1360
|
+
type: 'function',
|
|
1361
|
+
name: 'previewDeposit',
|
|
1362
|
+
inputs: [
|
|
1363
|
+
{
|
|
1364
|
+
name: '_assets',
|
|
1365
|
+
type: 'uint256',
|
|
1366
|
+
},
|
|
1367
|
+
],
|
|
1368
|
+
outputs: [
|
|
1369
|
+
{
|
|
1370
|
+
name: '',
|
|
1371
|
+
type: 'uint256',
|
|
1092
1372
|
},
|
|
1093
1373
|
],
|
|
1094
|
-
stateMutability: 'view',
|
|
1095
|
-
type: 'function',
|
|
1096
1374
|
},
|
|
1097
1375
|
{
|
|
1376
|
+
stateMutability: 'nonpayable',
|
|
1377
|
+
type: 'function',
|
|
1378
|
+
name: 'deposit',
|
|
1098
1379
|
inputs: [
|
|
1099
1380
|
{
|
|
1100
|
-
name: '
|
|
1101
|
-
type: 'address',
|
|
1102
|
-
},
|
|
1103
|
-
{
|
|
1104
|
-
name: '_tokenOut',
|
|
1105
|
-
type: 'address',
|
|
1106
|
-
},
|
|
1107
|
-
{
|
|
1108
|
-
name: '_amountIn',
|
|
1381
|
+
name: '_assets',
|
|
1109
1382
|
type: 'uint256',
|
|
1110
1383
|
},
|
|
1111
1384
|
],
|
|
1112
|
-
name: 'getBestSwapAmountOut',
|
|
1113
1385
|
outputs: [
|
|
1114
|
-
{
|
|
1115
|
-
name: '',
|
|
1116
|
-
type: 'address',
|
|
1117
|
-
},
|
|
1118
1386
|
{
|
|
1119
1387
|
name: '',
|
|
1120
1388
|
type: 'uint256',
|
|
1121
1389
|
},
|
|
1122
1390
|
],
|
|
1123
|
-
stateMutability: 'nonpayable',
|
|
1124
|
-
type: 'function',
|
|
1125
1391
|
},
|
|
1126
1392
|
{
|
|
1393
|
+
stateMutability: 'nonpayable',
|
|
1394
|
+
type: 'function',
|
|
1395
|
+
name: 'deposit',
|
|
1127
1396
|
inputs: [
|
|
1128
1397
|
{
|
|
1129
|
-
name: '
|
|
1130
|
-
type: '
|
|
1131
|
-
},
|
|
1132
|
-
{
|
|
1133
|
-
name: '_tokenIn',
|
|
1134
|
-
type: 'address',
|
|
1398
|
+
name: '_assets',
|
|
1399
|
+
type: 'uint256',
|
|
1135
1400
|
},
|
|
1136
1401
|
{
|
|
1137
|
-
name: '
|
|
1402
|
+
name: '_receiver',
|
|
1138
1403
|
type: 'address',
|
|
1139
1404
|
},
|
|
1140
|
-
{
|
|
1141
|
-
name: '_amountIn',
|
|
1142
|
-
type: 'uint256',
|
|
1143
|
-
},
|
|
1144
1405
|
],
|
|
1145
|
-
name: 'getSwapAmountOut',
|
|
1146
1406
|
outputs: [
|
|
1147
1407
|
{
|
|
1148
1408
|
name: '',
|
|
1149
1409
|
type: 'uint256',
|
|
1150
1410
|
},
|
|
1151
1411
|
],
|
|
1152
|
-
stateMutability: 'nonpayable',
|
|
1153
|
-
type: 'function',
|
|
1154
1412
|
},
|
|
1155
1413
|
{
|
|
1414
|
+
stateMutability: 'view',
|
|
1415
|
+
type: 'function',
|
|
1416
|
+
name: 'maxMint',
|
|
1156
1417
|
inputs: [
|
|
1157
1418
|
{
|
|
1158
|
-
name: '
|
|
1419
|
+
name: '_receiver',
|
|
1159
1420
|
type: 'address',
|
|
1160
1421
|
},
|
|
1422
|
+
],
|
|
1423
|
+
outputs: [
|
|
1161
1424
|
{
|
|
1162
|
-
name: '
|
|
1163
|
-
type: '
|
|
1425
|
+
name: '',
|
|
1426
|
+
type: 'uint256',
|
|
1164
1427
|
},
|
|
1428
|
+
],
|
|
1429
|
+
},
|
|
1430
|
+
{
|
|
1431
|
+
stateMutability: 'view',
|
|
1432
|
+
type: 'function',
|
|
1433
|
+
name: 'previewMint',
|
|
1434
|
+
inputs: [
|
|
1165
1435
|
{
|
|
1166
|
-
name: '
|
|
1436
|
+
name: '_shares',
|
|
1167
1437
|
type: 'uint256',
|
|
1168
1438
|
},
|
|
1169
1439
|
],
|
|
1170
|
-
name: 'getBestSwapAmountIn',
|
|
1171
1440
|
outputs: [
|
|
1172
|
-
{
|
|
1173
|
-
name: '',
|
|
1174
|
-
type: 'address',
|
|
1175
|
-
},
|
|
1176
1441
|
{
|
|
1177
1442
|
name: '',
|
|
1178
1443
|
type: 'uint256',
|
|
1179
1444
|
},
|
|
1180
1445
|
],
|
|
1181
|
-
stateMutability: 'nonpayable',
|
|
1182
|
-
type: 'function',
|
|
1183
1446
|
},
|
|
1184
1447
|
{
|
|
1448
|
+
stateMutability: 'nonpayable',
|
|
1449
|
+
type: 'function',
|
|
1450
|
+
name: 'mint',
|
|
1185
1451
|
inputs: [
|
|
1186
1452
|
{
|
|
1187
|
-
name: '
|
|
1188
|
-
type: 'address',
|
|
1189
|
-
},
|
|
1190
|
-
{
|
|
1191
|
-
name: '_tokenIn',
|
|
1192
|
-
type: 'address',
|
|
1193
|
-
},
|
|
1194
|
-
{
|
|
1195
|
-
name: '_tokenOut',
|
|
1196
|
-
type: 'address',
|
|
1197
|
-
},
|
|
1198
|
-
{
|
|
1199
|
-
name: '_amountOut',
|
|
1453
|
+
name: '_shares',
|
|
1200
1454
|
type: 'uint256',
|
|
1201
1455
|
},
|
|
1202
1456
|
],
|
|
1203
|
-
name: 'getSwapAmountIn',
|
|
1204
1457
|
outputs: [
|
|
1205
1458
|
{
|
|
1206
1459
|
name: '',
|
|
1207
1460
|
type: 'uint256',
|
|
1208
1461
|
},
|
|
1209
1462
|
],
|
|
1210
|
-
stateMutability: 'nonpayable',
|
|
1211
|
-
type: 'function',
|
|
1212
1463
|
},
|
|
1213
1464
|
{
|
|
1465
|
+
stateMutability: 'nonpayable',
|
|
1466
|
+
type: 'function',
|
|
1467
|
+
name: 'mint',
|
|
1214
1468
|
inputs: [
|
|
1215
1469
|
{
|
|
1216
|
-
name: '
|
|
1217
|
-
type: '
|
|
1218
|
-
},
|
|
1219
|
-
{
|
|
1220
|
-
name: '_tokenA',
|
|
1221
|
-
type: 'address',
|
|
1470
|
+
name: '_shares',
|
|
1471
|
+
type: 'uint256',
|
|
1222
1472
|
},
|
|
1223
1473
|
{
|
|
1224
|
-
name: '
|
|
1474
|
+
name: '_receiver',
|
|
1225
1475
|
type: 'address',
|
|
1226
1476
|
},
|
|
1477
|
+
],
|
|
1478
|
+
outputs: [
|
|
1227
1479
|
{
|
|
1228
|
-
name: '
|
|
1480
|
+
name: '',
|
|
1229
1481
|
type: 'uint256',
|
|
1230
1482
|
},
|
|
1483
|
+
],
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
stateMutability: 'view',
|
|
1487
|
+
type: 'function',
|
|
1488
|
+
name: 'maxWithdraw',
|
|
1489
|
+
inputs: [
|
|
1231
1490
|
{
|
|
1232
|
-
name: '
|
|
1233
|
-
type: '
|
|
1491
|
+
name: '_owner',
|
|
1492
|
+
type: 'address',
|
|
1234
1493
|
},
|
|
1235
1494
|
],
|
|
1236
|
-
name: 'getAddLiqAmountsIn',
|
|
1237
1495
|
outputs: [
|
|
1238
1496
|
{
|
|
1239
1497
|
name: '',
|
|
1240
1498
|
type: 'uint256',
|
|
1241
1499
|
},
|
|
1500
|
+
],
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
stateMutability: 'view',
|
|
1504
|
+
type: 'function',
|
|
1505
|
+
name: 'previewWithdraw',
|
|
1506
|
+
inputs: [
|
|
1242
1507
|
{
|
|
1243
|
-
name: '',
|
|
1508
|
+
name: '_assets',
|
|
1244
1509
|
type: 'uint256',
|
|
1245
1510
|
},
|
|
1511
|
+
],
|
|
1512
|
+
outputs: [
|
|
1246
1513
|
{
|
|
1247
1514
|
name: '',
|
|
1248
1515
|
type: 'uint256',
|
|
1249
1516
|
},
|
|
1250
1517
|
],
|
|
1251
|
-
stateMutability: 'view',
|
|
1252
|
-
type: 'function',
|
|
1253
1518
|
},
|
|
1254
1519
|
{
|
|
1520
|
+
stateMutability: 'nonpayable',
|
|
1521
|
+
type: 'function',
|
|
1522
|
+
name: 'withdraw',
|
|
1255
1523
|
inputs: [
|
|
1256
1524
|
{
|
|
1257
|
-
name: '
|
|
1258
|
-
type: 'address',
|
|
1259
|
-
},
|
|
1260
|
-
{
|
|
1261
|
-
name: '_tokenA',
|
|
1262
|
-
type: 'address',
|
|
1263
|
-
},
|
|
1264
|
-
{
|
|
1265
|
-
name: '_tokenB',
|
|
1266
|
-
type: 'address',
|
|
1267
|
-
},
|
|
1268
|
-
{
|
|
1269
|
-
name: '_lpAmount',
|
|
1525
|
+
name: '_assets',
|
|
1270
1526
|
type: 'uint256',
|
|
1271
1527
|
},
|
|
1272
1528
|
],
|
|
1273
|
-
name: 'getRemoveLiqAmountsOut',
|
|
1274
1529
|
outputs: [
|
|
1275
1530
|
{
|
|
1276
1531
|
name: '',
|
|
1277
1532
|
type: 'uint256',
|
|
1278
1533
|
},
|
|
1279
|
-
{
|
|
1280
|
-
name: '',
|
|
1281
|
-
type: 'uint256',
|
|
1282
|
-
},
|
|
1283
1534
|
],
|
|
1284
|
-
stateMutability: 'view',
|
|
1285
|
-
type: 'function',
|
|
1286
1535
|
},
|
|
1287
1536
|
{
|
|
1537
|
+
stateMutability: 'nonpayable',
|
|
1538
|
+
type: 'function',
|
|
1539
|
+
name: 'withdraw',
|
|
1288
1540
|
inputs: [
|
|
1289
1541
|
{
|
|
1290
|
-
name: '
|
|
1291
|
-
type: '
|
|
1542
|
+
name: '_assets',
|
|
1543
|
+
type: 'uint256',
|
|
1292
1544
|
},
|
|
1293
1545
|
{
|
|
1294
|
-
name: '
|
|
1546
|
+
name: '_receiver',
|
|
1295
1547
|
type: 'address',
|
|
1296
1548
|
},
|
|
1297
1549
|
],
|
|
1298
|
-
name: 'getPriceUnsafe',
|
|
1299
1550
|
outputs: [
|
|
1300
1551
|
{
|
|
1301
1552
|
name: '',
|
|
1302
1553
|
type: 'uint256',
|
|
1303
1554
|
},
|
|
1304
1555
|
],
|
|
1305
|
-
stateMutability: 'view',
|
|
1306
|
-
type: 'function',
|
|
1307
1556
|
},
|
|
1308
1557
|
{
|
|
1558
|
+
stateMutability: 'nonpayable',
|
|
1559
|
+
type: 'function',
|
|
1560
|
+
name: 'withdraw',
|
|
1309
1561
|
inputs: [
|
|
1310
1562
|
{
|
|
1311
|
-
name: '
|
|
1312
|
-
type: '
|
|
1563
|
+
name: '_assets',
|
|
1564
|
+
type: 'uint256',
|
|
1313
1565
|
},
|
|
1314
1566
|
{
|
|
1315
|
-
name: '
|
|
1567
|
+
name: '_receiver',
|
|
1316
1568
|
type: 'address',
|
|
1317
1569
|
},
|
|
1318
1570
|
{
|
|
1319
|
-
name: '
|
|
1571
|
+
name: '_owner',
|
|
1320
1572
|
type: 'address',
|
|
1321
1573
|
},
|
|
1322
1574
|
],
|
|
1323
|
-
name: 'getPriceUnsafe',
|
|
1324
1575
|
outputs: [
|
|
1325
1576
|
{
|
|
1326
1577
|
name: '',
|
|
1327
1578
|
type: 'uint256',
|
|
1328
1579
|
},
|
|
1329
1580
|
],
|
|
1330
|
-
stateMutability: 'view',
|
|
1331
|
-
type: 'function',
|
|
1332
1581
|
},
|
|
1333
1582
|
{
|
|
1583
|
+
stateMutability: 'view',
|
|
1584
|
+
type: 'function',
|
|
1585
|
+
name: 'maxRedeem',
|
|
1334
1586
|
inputs: [
|
|
1335
1587
|
{
|
|
1336
|
-
name: '
|
|
1588
|
+
name: '_owner',
|
|
1337
1589
|
type: 'address',
|
|
1338
1590
|
},
|
|
1339
1591
|
],
|
|
1340
|
-
name: 'setCoreRouterPool',
|
|
1341
1592
|
outputs: [
|
|
1342
1593
|
{
|
|
1343
1594
|
name: '',
|
|
1344
|
-
type: '
|
|
1595
|
+
type: 'uint256',
|
|
1345
1596
|
},
|
|
1346
1597
|
],
|
|
1347
|
-
stateMutability: 'nonpayable',
|
|
1348
|
-
type: 'function',
|
|
1349
1598
|
},
|
|
1350
1599
|
{
|
|
1600
|
+
stateMutability: 'view',
|
|
1601
|
+
type: 'function',
|
|
1602
|
+
name: 'previewRedeem',
|
|
1351
1603
|
inputs: [
|
|
1352
1604
|
{
|
|
1353
|
-
name: '
|
|
1354
|
-
type: '
|
|
1355
|
-
},
|
|
1356
|
-
{
|
|
1357
|
-
name: '_recipient',
|
|
1358
|
-
type: 'address',
|
|
1605
|
+
name: '_shares',
|
|
1606
|
+
type: 'uint256',
|
|
1359
1607
|
},
|
|
1360
1608
|
],
|
|
1361
|
-
name: 'recoverFunds',
|
|
1362
1609
|
outputs: [
|
|
1363
1610
|
{
|
|
1364
1611
|
name: '',
|
|
1365
|
-
type: '
|
|
1612
|
+
type: 'uint256',
|
|
1366
1613
|
},
|
|
1367
1614
|
],
|
|
1368
|
-
stateMutability: 'nonpayable',
|
|
1369
|
-
type: 'function',
|
|
1370
1615
|
},
|
|
1371
1616
|
{
|
|
1617
|
+
stateMutability: 'nonpayable',
|
|
1618
|
+
type: 'function',
|
|
1619
|
+
name: 'redeem',
|
|
1372
1620
|
inputs: [
|
|
1373
1621
|
{
|
|
1374
|
-
name: '
|
|
1375
|
-
type: '
|
|
1622
|
+
name: '_shares',
|
|
1623
|
+
type: 'uint256',
|
|
1624
|
+
},
|
|
1625
|
+
],
|
|
1626
|
+
outputs: [
|
|
1627
|
+
{
|
|
1628
|
+
name: '',
|
|
1629
|
+
type: 'uint256',
|
|
1376
1630
|
},
|
|
1631
|
+
],
|
|
1632
|
+
},
|
|
1633
|
+
{
|
|
1634
|
+
stateMutability: 'nonpayable',
|
|
1635
|
+
type: 'function',
|
|
1636
|
+
name: 'redeem',
|
|
1637
|
+
inputs: [
|
|
1377
1638
|
{
|
|
1378
|
-
name: '
|
|
1639
|
+
name: '_shares',
|
|
1379
1640
|
type: 'uint256',
|
|
1380
1641
|
},
|
|
1381
1642
|
{
|
|
1382
|
-
name: '
|
|
1643
|
+
name: '_receiver',
|
|
1383
1644
|
type: 'address',
|
|
1384
1645
|
},
|
|
1385
1646
|
],
|
|
1386
|
-
name: 'recoverNft',
|
|
1387
1647
|
outputs: [
|
|
1388
1648
|
{
|
|
1389
1649
|
name: '',
|
|
1390
|
-
type: '
|
|
1650
|
+
type: 'uint256',
|
|
1391
1651
|
},
|
|
1392
1652
|
],
|
|
1393
|
-
stateMutability: 'nonpayable',
|
|
1394
|
-
type: 'function',
|
|
1395
1653
|
},
|
|
1396
1654
|
{
|
|
1655
|
+
stateMutability: 'nonpayable',
|
|
1656
|
+
type: 'function',
|
|
1657
|
+
name: 'redeem',
|
|
1397
1658
|
inputs: [
|
|
1398
1659
|
{
|
|
1399
|
-
name: '
|
|
1660
|
+
name: '_shares',
|
|
1400
1661
|
type: 'uint256',
|
|
1401
1662
|
},
|
|
1663
|
+
{
|
|
1664
|
+
name: '_receiver',
|
|
1665
|
+
type: 'address',
|
|
1666
|
+
},
|
|
1667
|
+
{
|
|
1668
|
+
name: '_owner',
|
|
1669
|
+
type: 'address',
|
|
1670
|
+
},
|
|
1402
1671
|
],
|
|
1403
|
-
name: 'setLegoId',
|
|
1404
1672
|
outputs: [
|
|
1405
1673
|
{
|
|
1406
1674
|
name: '',
|
|
1407
|
-
type: '
|
|
1675
|
+
type: 'uint256',
|
|
1408
1676
|
},
|
|
1409
1677
|
],
|
|
1410
|
-
stateMutability: 'nonpayable',
|
|
1411
|
-
type: 'function',
|
|
1412
1678
|
},
|
|
1413
1679
|
{
|
|
1680
|
+
stateMutability: 'view',
|
|
1681
|
+
type: 'function',
|
|
1682
|
+
name: 'convertToShares',
|
|
1414
1683
|
inputs: [
|
|
1415
1684
|
{
|
|
1416
|
-
name: '
|
|
1417
|
-
type: '
|
|
1685
|
+
name: '_assets',
|
|
1686
|
+
type: 'uint256',
|
|
1418
1687
|
},
|
|
1419
1688
|
],
|
|
1420
|
-
name: 'activate',
|
|
1421
|
-
outputs: [],
|
|
1422
|
-
stateMutability: 'nonpayable',
|
|
1423
|
-
type: 'function',
|
|
1424
|
-
},
|
|
1425
|
-
{
|
|
1426
|
-
inputs: [],
|
|
1427
|
-
name: 'coreRouterPool',
|
|
1428
1689
|
outputs: [
|
|
1429
1690
|
{
|
|
1430
1691
|
name: '',
|
|
1431
|
-
type: '
|
|
1692
|
+
type: 'uint256',
|
|
1432
1693
|
},
|
|
1433
1694
|
],
|
|
1434
|
-
stateMutability: 'view',
|
|
1435
|
-
type: 'function',
|
|
1436
1695
|
},
|
|
1437
1696
|
{
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1697
|
+
stateMutability: 'view',
|
|
1698
|
+
type: 'function',
|
|
1699
|
+
name: 'convertToSharesSafe',
|
|
1700
|
+
inputs: [
|
|
1441
1701
|
{
|
|
1442
|
-
name: '',
|
|
1443
|
-
type: '
|
|
1702
|
+
name: '_assets',
|
|
1703
|
+
type: 'uint256',
|
|
1444
1704
|
},
|
|
1445
1705
|
],
|
|
1446
|
-
stateMutability: 'view',
|
|
1447
|
-
type: 'function',
|
|
1448
|
-
},
|
|
1449
|
-
{
|
|
1450
|
-
inputs: [],
|
|
1451
|
-
name: 'AERO_SLIPSTREAM_NFT_MANAGER',
|
|
1452
1706
|
outputs: [
|
|
1453
1707
|
{
|
|
1454
1708
|
name: '',
|
|
1455
|
-
type: '
|
|
1709
|
+
type: 'uint256',
|
|
1456
1710
|
},
|
|
1457
1711
|
],
|
|
1458
|
-
stateMutability: 'view',
|
|
1459
|
-
type: 'function',
|
|
1460
1712
|
},
|
|
1461
1713
|
{
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1714
|
+
stateMutability: 'view',
|
|
1715
|
+
type: 'function',
|
|
1716
|
+
name: 'convertToAssets',
|
|
1717
|
+
inputs: [
|
|
1465
1718
|
{
|
|
1466
|
-
name: '',
|
|
1467
|
-
type: '
|
|
1719
|
+
name: '_shares',
|
|
1720
|
+
type: 'uint256',
|
|
1468
1721
|
},
|
|
1469
1722
|
],
|
|
1470
|
-
stateMutability: 'view',
|
|
1471
|
-
type: 'function',
|
|
1472
|
-
},
|
|
1473
|
-
{
|
|
1474
|
-
inputs: [],
|
|
1475
|
-
name: 'legoId',
|
|
1476
1723
|
outputs: [
|
|
1477
1724
|
{
|
|
1478
1725
|
name: '',
|
|
1479
1726
|
type: 'uint256',
|
|
1480
1727
|
},
|
|
1481
1728
|
],
|
|
1482
|
-
stateMutability: 'view',
|
|
1483
|
-
type: 'function',
|
|
1484
1729
|
},
|
|
1485
1730
|
{
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1731
|
+
stateMutability: 'view',
|
|
1732
|
+
type: 'function',
|
|
1733
|
+
name: 'convertToAssetsSafe',
|
|
1734
|
+
inputs: [
|
|
1489
1735
|
{
|
|
1490
|
-
name: '',
|
|
1491
|
-
type: '
|
|
1736
|
+
name: '_shares',
|
|
1737
|
+
type: 'uint256',
|
|
1492
1738
|
},
|
|
1493
1739
|
],
|
|
1494
|
-
stateMutability: 'view',
|
|
1495
|
-
type: 'function',
|
|
1496
|
-
},
|
|
1497
|
-
{
|
|
1498
|
-
inputs: [],
|
|
1499
|
-
name: 'ADDY_REGISTRY',
|
|
1500
1740
|
outputs: [
|
|
1501
1741
|
{
|
|
1502
1742
|
name: '',
|
|
1503
|
-
type: '
|
|
1743
|
+
type: 'uint256',
|
|
1504
1744
|
},
|
|
1505
1745
|
],
|
|
1506
|
-
stateMutability: 'view',
|
|
1507
|
-
type: 'function',
|
|
1508
1746
|
},
|
|
1509
1747
|
{
|
|
1748
|
+
stateMutability: 'nonpayable',
|
|
1749
|
+
type: 'constructor',
|
|
1510
1750
|
inputs: [
|
|
1511
1751
|
{
|
|
1512
|
-
name: '
|
|
1752
|
+
name: '_asset',
|
|
1513
1753
|
type: 'address',
|
|
1514
1754
|
},
|
|
1515
1755
|
{
|
|
1516
|
-
name: '
|
|
1517
|
-
type: '
|
|
1756
|
+
name: '_tokenName',
|
|
1757
|
+
type: 'string',
|
|
1518
1758
|
},
|
|
1519
1759
|
{
|
|
1520
|
-
name: '
|
|
1521
|
-
type: '
|
|
1760
|
+
name: '_tokenSymbol',
|
|
1761
|
+
type: 'string',
|
|
1522
1762
|
},
|
|
1523
1763
|
{
|
|
1524
|
-
name: '
|
|
1764
|
+
name: '_undyHq',
|
|
1525
1765
|
type: 'address',
|
|
1526
1766
|
},
|
|
1527
1767
|
{
|
|
1528
|
-
name: '
|
|
1768
|
+
name: '_minHqTimeLock',
|
|
1769
|
+
type: 'uint256',
|
|
1770
|
+
},
|
|
1771
|
+
{
|
|
1772
|
+
name: '_maxHqTimeLock',
|
|
1773
|
+
type: 'uint256',
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
name: '_startingAgent',
|
|
1529
1777
|
type: 'address',
|
|
1530
1778
|
},
|
|
1531
1779
|
],
|
|
1532
1780
|
outputs: [],
|
|
1533
|
-
stateMutability: 'nonpayable',
|
|
1534
|
-
type: 'constructor',
|
|
1535
1781
|
},
|
|
1536
1782
|
];
|
|
1537
|
-
export const deployAddress = '
|
|
1783
|
+
export const deployAddress = '0x00007a36B3158c1129EFe21CFcD3f302fC148CB2';
|
|
1538
1784
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
1539
1785
|
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
1540
1786
|
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|
|
1541
1787
|
const call = {
|
|
1542
|
-
contractName: '
|
|
1788
|
+
contractName: 'UndyUsd',
|
|
1543
1789
|
method,
|
|
1544
1790
|
args,
|
|
1545
1791
|
address,
|
|
@@ -1563,35 +1809,50 @@ function getRequest(method, args, contractAddressOrOptions) {
|
|
|
1563
1809
|
return call;
|
|
1564
1810
|
}
|
|
1565
1811
|
export const call = {
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1812
|
+
name: (...args) => getRequest('name', args),
|
|
1813
|
+
symbol: (...args) => getRequest('symbol', args),
|
|
1814
|
+
decimals: (...args) => getRequest('decimals', args),
|
|
1815
|
+
DOMAIN_SEPARATOR: (...args) => getRequest('DOMAIN_SEPARATOR', args),
|
|
1816
|
+
undyHq: (...args) => getRequest('undyHq', args),
|
|
1817
|
+
blacklisted: (...args) => getRequest('blacklisted', args),
|
|
1818
|
+
isPaused: (...args) => getRequest('isPaused', args),
|
|
1819
|
+
balanceOf: (...args) => getRequest('balanceOf', args),
|
|
1820
|
+
allowance: (...args) => getRequest('allowance', args),
|
|
1821
|
+
totalSupply: (...args) => getRequest('totalSupply', args),
|
|
1822
|
+
TOKEN_NAME: (...args) => getRequest('TOKEN_NAME', args),
|
|
1823
|
+
TOKEN_SYMBOL: (...args) => getRequest('TOKEN_SYMBOL', args),
|
|
1824
|
+
TOKEN_DECIMALS: (...args) => getRequest('TOKEN_DECIMALS', args),
|
|
1825
|
+
VERSION: (...args) => getRequest('VERSION', args),
|
|
1826
|
+
nonces: (...args) => getRequest('nonces', args),
|
|
1827
|
+
getClaimablePerformanceFees: (...args) => getRequest('getClaimablePerformanceFees', args),
|
|
1828
|
+
lastUnderlyingBal: (...args) => getRequest('lastUnderlyingBal', args),
|
|
1829
|
+
pendingYieldRealized: (...args) => getRequest('pendingYieldRealized', args),
|
|
1830
|
+
vaultToLegoId: (...args) => getRequest('vaultToLegoId', args),
|
|
1831
|
+
assets: (...args) => getRequest('assets', args),
|
|
1832
|
+
indexOfAsset: (...args) => getRequest('indexOfAsset', args),
|
|
1833
|
+
numAssets: (...args) => getRequest('numAssets', args),
|
|
1834
|
+
managers: (...args) => getRequest('managers', args),
|
|
1835
|
+
indexOfManager: (...args) => getRequest('indexOfManager', args),
|
|
1836
|
+
numManagers: (...args) => getRequest('numManagers', args),
|
|
1837
|
+
asset: (...args) => getRequest('asset', args),
|
|
1838
|
+
totalAssets: (...args) => getRequest('totalAssets', args),
|
|
1839
|
+
getTotalAssets: (...args) => getRequest('getTotalAssets', args),
|
|
1840
|
+
maxDeposit: (...args) => getRequest('maxDeposit', args),
|
|
1841
|
+
previewDeposit: (...args) => getRequest('previewDeposit', args),
|
|
1842
|
+
maxMint: (...args) => getRequest('maxMint', args),
|
|
1843
|
+
previewMint: (...args) => getRequest('previewMint', args),
|
|
1844
|
+
maxWithdraw: (...args) => getRequest('maxWithdraw', args),
|
|
1845
|
+
previewWithdraw: (...args) => getRequest('previewWithdraw', args),
|
|
1846
|
+
maxRedeem: (...args) => getRequest('maxRedeem', args),
|
|
1847
|
+
previewRedeem: (...args) => getRequest('previewRedeem', args),
|
|
1848
|
+
convertToShares: (...args) => getRequest('convertToShares', args),
|
|
1849
|
+
convertToSharesSafe: (...args) => getRequest('convertToSharesSafe', args),
|
|
1850
|
+
convertToAssets: (...args) => getRequest('convertToAssets', args),
|
|
1851
|
+
convertToAssetsSafe: (...args) => getRequest('convertToAssetsSafe', args),
|
|
1591
1852
|
};
|
|
1592
1853
|
function getMutation(functionName) {
|
|
1593
1854
|
return {
|
|
1594
|
-
contractName: '
|
|
1855
|
+
contractName: 'UndyUsd',
|
|
1595
1856
|
functionName,
|
|
1596
1857
|
deployAddress,
|
|
1597
1858
|
argsType: undefined,
|
|
@@ -1599,73 +1860,96 @@ function getMutation(functionName) {
|
|
|
1599
1860
|
};
|
|
1600
1861
|
}
|
|
1601
1862
|
export const mutation = {
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1863
|
+
transfer: getMutation('transfer'),
|
|
1864
|
+
transferFrom: getMutation('transferFrom'),
|
|
1865
|
+
approve: getMutation('approve'),
|
|
1866
|
+
increaseAllowance: getMutation('increaseAllowance'),
|
|
1867
|
+
decreaseAllowance: getMutation('decreaseAllowance'),
|
|
1868
|
+
burn: getMutation('burn'),
|
|
1869
|
+
permit: getMutation('permit'),
|
|
1870
|
+
setBlacklist: getMutation('setBlacklist'),
|
|
1871
|
+
burnBlacklistTokens: getMutation('burnBlacklistTokens'),
|
|
1872
|
+
pause: getMutation('pause'),
|
|
1873
|
+
depositForYield: getMutation('depositForYield'),
|
|
1874
|
+
withdrawFromYield: getMutation('withdrawFromYield'),
|
|
1606
1875
|
swapTokens: getMutation('swapTokens'),
|
|
1607
|
-
uniswapV3SwapCallback: getMutation('uniswapV3SwapCallback'),
|
|
1608
|
-
addLiquidity: getMutation('addLiquidity'),
|
|
1609
|
-
removeLiquidity: getMutation('removeLiquidity'),
|
|
1610
1876
|
claimRewards: getMutation('claimRewards'),
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
activate: getMutation('activate'),
|
|
1877
|
+
claimPerformanceFees: getMutation('claimPerformanceFees'),
|
|
1878
|
+
updateYieldPosition: getMutation('updateYieldPosition'),
|
|
1879
|
+
addManager: getMutation('addManager'),
|
|
1880
|
+
removeManager: getMutation('removeManager'),
|
|
1881
|
+
deposit: getMutation('deposit'),
|
|
1882
|
+
mint: getMutation('mint'),
|
|
1883
|
+
withdraw: getMutation('withdraw'),
|
|
1884
|
+
redeem: getMutation('redeem'),
|
|
1620
1885
|
};
|
|
1621
1886
|
export function toSdk(publicClient, walletClient) {
|
|
1622
1887
|
return {
|
|
1623
1888
|
deployAddress,
|
|
1624
1889
|
abi,
|
|
1625
1890
|
// Queries
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1891
|
+
name: (...args) => singleQuery(publicClient, call.name(...args)),
|
|
1892
|
+
symbol: (...args) => singleQuery(publicClient, call.symbol(...args)),
|
|
1893
|
+
decimals: (...args) => singleQuery(publicClient, call.decimals(...args)),
|
|
1894
|
+
DOMAIN_SEPARATOR: (...args) => singleQuery(publicClient, call.DOMAIN_SEPARATOR(...args)),
|
|
1895
|
+
undyHq: (...args) => singleQuery(publicClient, call.undyHq(...args)),
|
|
1896
|
+
blacklisted: (...args) => singleQuery(publicClient, call.blacklisted(...args)),
|
|
1897
|
+
isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
|
|
1898
|
+
balanceOf: (...args) => singleQuery(publicClient, call.balanceOf(...args)),
|
|
1899
|
+
allowance: (...args) => singleQuery(publicClient, call.allowance(...args)),
|
|
1900
|
+
totalSupply: (...args) => singleQuery(publicClient, call.totalSupply(...args)),
|
|
1901
|
+
TOKEN_NAME: (...args) => singleQuery(publicClient, call.TOKEN_NAME(...args)),
|
|
1902
|
+
TOKEN_SYMBOL: (...args) => singleQuery(publicClient, call.TOKEN_SYMBOL(...args)),
|
|
1903
|
+
TOKEN_DECIMALS: (...args) => singleQuery(publicClient, call.TOKEN_DECIMALS(...args)),
|
|
1904
|
+
VERSION: (...args) => singleQuery(publicClient, call.VERSION(...args)),
|
|
1905
|
+
nonces: (...args) => singleQuery(publicClient, call.nonces(...args)),
|
|
1906
|
+
getClaimablePerformanceFees: (...args) => singleQuery(publicClient, call.getClaimablePerformanceFees(...args)),
|
|
1907
|
+
lastUnderlyingBal: (...args) => singleQuery(publicClient, call.lastUnderlyingBal(...args)),
|
|
1908
|
+
pendingYieldRealized: (...args) => singleQuery(publicClient, call.pendingYieldRealized(...args)),
|
|
1909
|
+
vaultToLegoId: (...args) => singleQuery(publicClient, call.vaultToLegoId(...args)),
|
|
1910
|
+
assets: (...args) => singleQuery(publicClient, call.assets(...args)),
|
|
1911
|
+
indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args)),
|
|
1912
|
+
numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args)),
|
|
1913
|
+
managers: (...args) => singleQuery(publicClient, call.managers(...args)),
|
|
1914
|
+
indexOfManager: (...args) => singleQuery(publicClient, call.indexOfManager(...args)),
|
|
1915
|
+
numManagers: (...args) => singleQuery(publicClient, call.numManagers(...args)),
|
|
1916
|
+
asset: (...args) => singleQuery(publicClient, call.asset(...args)),
|
|
1917
|
+
totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
|
|
1918
|
+
getTotalAssets: (...args) => singleQuery(publicClient, call.getTotalAssets(...args)),
|
|
1919
|
+
maxDeposit: (...args) => singleQuery(publicClient, call.maxDeposit(...args)),
|
|
1920
|
+
previewDeposit: (...args) => singleQuery(publicClient, call.previewDeposit(...args)),
|
|
1921
|
+
maxMint: (...args) => singleQuery(publicClient, call.maxMint(...args)),
|
|
1922
|
+
previewMint: (...args) => singleQuery(publicClient, call.previewMint(...args)),
|
|
1923
|
+
maxWithdraw: (...args) => singleQuery(publicClient, call.maxWithdraw(...args)),
|
|
1924
|
+
previewWithdraw: (...args) => singleQuery(publicClient, call.previewWithdraw(...args)),
|
|
1925
|
+
maxRedeem: (...args) => singleQuery(publicClient, call.maxRedeem(...args)),
|
|
1926
|
+
previewRedeem: (...args) => singleQuery(publicClient, call.previewRedeem(...args)),
|
|
1927
|
+
convertToShares: (...args) => singleQuery(publicClient, call.convertToShares(...args)),
|
|
1928
|
+
convertToSharesSafe: (...args) => singleQuery(publicClient, call.convertToSharesSafe(...args)),
|
|
1929
|
+
convertToAssets: (...args) => singleQuery(publicClient, call.convertToAssets(...args)),
|
|
1930
|
+
convertToAssetsSafe: (...args) => singleQuery(publicClient, call.convertToAssetsSafe(...args)),
|
|
1651
1931
|
// Mutations
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1932
|
+
transfer: (...args) => mutate(walletClient, mutation.transfer)(...args),
|
|
1933
|
+
transferFrom: (...args) => mutate(walletClient, mutation.transferFrom)(...args),
|
|
1934
|
+
approve: (...args) => mutate(walletClient, mutation.approve)(...args),
|
|
1935
|
+
increaseAllowance: (...args) => mutate(walletClient, mutation.increaseAllowance)(...args),
|
|
1936
|
+
decreaseAllowance: (...args) => mutate(walletClient, mutation.decreaseAllowance)(...args),
|
|
1937
|
+
burn: (...args) => mutate(walletClient, mutation.burn)(...args),
|
|
1938
|
+
permit: (...args) => mutate(walletClient, mutation.permit)(...args),
|
|
1939
|
+
setBlacklist: (...args) => mutate(walletClient, mutation.setBlacklist)(...args),
|
|
1940
|
+
burnBlacklistTokens: (...args) => mutate(walletClient, mutation.burnBlacklistTokens)(...args),
|
|
1941
|
+
pause: (...args) => mutate(walletClient, mutation.pause)(...args),
|
|
1942
|
+
depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
|
|
1943
|
+
withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
|
|
1656
1944
|
swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
|
|
1657
|
-
uniswapV3SwapCallback: (...args) => mutate(walletClient, mutation.uniswapV3SwapCallback)(...args),
|
|
1658
|
-
addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity)(...args),
|
|
1659
|
-
removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity)(...args),
|
|
1660
1945
|
claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
activate: (...args) => mutate(walletClient, mutation.activate)(...args),
|
|
1946
|
+
claimPerformanceFees: (...args) => mutate(walletClient, mutation.claimPerformanceFees)(...args),
|
|
1947
|
+
updateYieldPosition: (...args) => mutate(walletClient, mutation.updateYieldPosition)(...args),
|
|
1948
|
+
addManager: (...args) => mutate(walletClient, mutation.addManager)(...args),
|
|
1949
|
+
removeManager: (...args) => mutate(walletClient, mutation.removeManager)(...args),
|
|
1950
|
+
deposit: (...args) => mutate(walletClient, mutation.deposit)(...args),
|
|
1951
|
+
mint: (...args) => mutate(walletClient, mutation.mint)(...args),
|
|
1952
|
+
withdraw: (...args) => mutate(walletClient, mutation.withdraw)(...args),
|
|
1953
|
+
redeem: (...args) => mutate(walletClient, mutation.redeem)(...args),
|
|
1670
1954
|
};
|
|
1671
1955
|
}
|