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