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