@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
|
@@ -7,125 +7,130 @@ export const abi = [
|
|
|
7
7
|
{
|
|
8
8
|
anonymous: false,
|
|
9
9
|
inputs: [
|
|
10
|
+
{
|
|
11
|
+
indexed: false,
|
|
12
|
+
name: 'op',
|
|
13
|
+
type: 'uint8',
|
|
14
|
+
},
|
|
10
15
|
{
|
|
11
16
|
indexed: true,
|
|
12
|
-
name: '
|
|
17
|
+
name: 'asset1',
|
|
13
18
|
type: 'address',
|
|
14
19
|
},
|
|
15
20
|
{
|
|
16
21
|
indexed: true,
|
|
17
|
-
name: '
|
|
22
|
+
name: 'asset2',
|
|
18
23
|
type: 'address',
|
|
19
24
|
},
|
|
20
25
|
{
|
|
21
26
|
indexed: false,
|
|
22
|
-
name: '
|
|
27
|
+
name: 'amount1',
|
|
28
|
+
type: 'uint256',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
indexed: false,
|
|
32
|
+
name: 'amount2',
|
|
33
|
+
type: 'uint256',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
indexed: false,
|
|
37
|
+
name: 'usdValue',
|
|
38
|
+
type: 'uint256',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
indexed: false,
|
|
42
|
+
name: 'legoId',
|
|
23
43
|
type: 'uint256',
|
|
24
44
|
},
|
|
45
|
+
{
|
|
46
|
+
indexed: true,
|
|
47
|
+
name: 'signer',
|
|
48
|
+
type: 'address',
|
|
49
|
+
},
|
|
25
50
|
],
|
|
26
|
-
name: '
|
|
51
|
+
name: 'WalletAction',
|
|
27
52
|
type: 'event',
|
|
28
53
|
},
|
|
29
54
|
{
|
|
30
55
|
anonymous: false,
|
|
31
56
|
inputs: [
|
|
57
|
+
{
|
|
58
|
+
indexed: false,
|
|
59
|
+
name: 'op',
|
|
60
|
+
type: 'uint8',
|
|
61
|
+
},
|
|
32
62
|
{
|
|
33
63
|
indexed: true,
|
|
34
|
-
name: '
|
|
64
|
+
name: 'asset1',
|
|
35
65
|
type: 'address',
|
|
36
66
|
},
|
|
37
67
|
{
|
|
38
68
|
indexed: true,
|
|
39
|
-
name: '
|
|
69
|
+
name: 'asset2',
|
|
40
70
|
type: 'address',
|
|
41
71
|
},
|
|
42
72
|
{
|
|
43
73
|
indexed: false,
|
|
44
|
-
name: '
|
|
74
|
+
name: 'tokenId',
|
|
45
75
|
type: 'uint256',
|
|
46
76
|
},
|
|
47
77
|
{
|
|
48
78
|
indexed: false,
|
|
49
|
-
name: '
|
|
79
|
+
name: 'amount1',
|
|
50
80
|
type: 'uint256',
|
|
51
81
|
},
|
|
52
|
-
],
|
|
53
|
-
name: 'AgentOwnershipChangeConfirmed',
|
|
54
|
-
type: 'event',
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
anonymous: false,
|
|
58
|
-
inputs: [
|
|
59
|
-
{
|
|
60
|
-
indexed: true,
|
|
61
|
-
name: 'cancelledOwner',
|
|
62
|
-
type: 'address',
|
|
63
|
-
},
|
|
64
82
|
{
|
|
65
83
|
indexed: false,
|
|
66
|
-
name: '
|
|
84
|
+
name: 'amount2',
|
|
67
85
|
type: 'uint256',
|
|
68
86
|
},
|
|
69
87
|
{
|
|
70
88
|
indexed: false,
|
|
71
|
-
name: '
|
|
89
|
+
name: 'usdValue',
|
|
72
90
|
type: 'uint256',
|
|
73
91
|
},
|
|
74
|
-
],
|
|
75
|
-
name: 'AgentOwnershipChangeCancelled',
|
|
76
|
-
type: 'event',
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
anonymous: false,
|
|
80
|
-
inputs: [
|
|
81
92
|
{
|
|
82
93
|
indexed: false,
|
|
83
|
-
name: '
|
|
94
|
+
name: 'extra',
|
|
84
95
|
type: 'uint256',
|
|
85
96
|
},
|
|
86
97
|
],
|
|
87
|
-
name: '
|
|
98
|
+
name: 'WalletActionExt',
|
|
88
99
|
type: 'event',
|
|
89
100
|
},
|
|
90
101
|
{
|
|
91
|
-
anonymous: false,
|
|
92
102
|
inputs: [
|
|
93
103
|
{
|
|
94
|
-
|
|
95
|
-
name: 'asset',
|
|
104
|
+
name: '_operator',
|
|
96
105
|
type: 'address',
|
|
97
106
|
},
|
|
98
107
|
{
|
|
99
|
-
|
|
100
|
-
name: 'recipient',
|
|
108
|
+
name: '_owner',
|
|
101
109
|
type: 'address',
|
|
102
110
|
},
|
|
103
111
|
{
|
|
104
|
-
|
|
105
|
-
name: 'balance',
|
|
112
|
+
name: '_tokenId',
|
|
106
113
|
type: 'uint256',
|
|
107
114
|
},
|
|
108
|
-
],
|
|
109
|
-
name: 'AgentFundsRecovered',
|
|
110
|
-
type: 'event',
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
inputs: [
|
|
114
115
|
{
|
|
115
|
-
name: '
|
|
116
|
-
type: '
|
|
116
|
+
name: '_data',
|
|
117
|
+
type: 'bytes',
|
|
117
118
|
},
|
|
118
119
|
],
|
|
119
|
-
name: '
|
|
120
|
+
name: 'onERC721Received',
|
|
120
121
|
outputs: [
|
|
121
122
|
{
|
|
122
123
|
name: '',
|
|
123
|
-
type: '
|
|
124
|
+
type: 'bytes4',
|
|
124
125
|
},
|
|
125
126
|
],
|
|
126
|
-
stateMutability: '
|
|
127
|
+
stateMutability: 'view',
|
|
127
128
|
type: 'function',
|
|
128
129
|
},
|
|
130
|
+
{
|
|
131
|
+
stateMutability: 'payable',
|
|
132
|
+
type: 'fallback',
|
|
133
|
+
},
|
|
129
134
|
{
|
|
130
135
|
inputs: [],
|
|
131
136
|
name: 'apiVersion',
|
|
@@ -141,23 +146,36 @@ export const abi = [
|
|
|
141
146
|
{
|
|
142
147
|
inputs: [
|
|
143
148
|
{
|
|
144
|
-
name: '
|
|
149
|
+
name: '_recipient',
|
|
145
150
|
type: 'address',
|
|
146
151
|
},
|
|
152
|
+
],
|
|
153
|
+
name: 'transferFunds',
|
|
154
|
+
outputs: [
|
|
147
155
|
{
|
|
148
|
-
name: '
|
|
156
|
+
name: '',
|
|
149
157
|
type: 'uint256',
|
|
150
158
|
},
|
|
151
159
|
{
|
|
152
|
-
name: '
|
|
160
|
+
name: '',
|
|
161
|
+
type: 'uint256',
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
stateMutability: 'nonpayable',
|
|
165
|
+
type: 'function',
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
inputs: [
|
|
169
|
+
{
|
|
170
|
+
name: '_recipient',
|
|
153
171
|
type: 'address',
|
|
154
172
|
},
|
|
155
173
|
{
|
|
156
|
-
name: '
|
|
174
|
+
name: '_asset',
|
|
157
175
|
type: 'address',
|
|
158
176
|
},
|
|
159
177
|
],
|
|
160
|
-
name: '
|
|
178
|
+
name: 'transferFunds',
|
|
161
179
|
outputs: [
|
|
162
180
|
{
|
|
163
181
|
name: '',
|
|
@@ -165,8 +183,29 @@ export const abi = [
|
|
|
165
183
|
},
|
|
166
184
|
{
|
|
167
185
|
name: '',
|
|
186
|
+
type: 'uint256',
|
|
187
|
+
},
|
|
188
|
+
],
|
|
189
|
+
stateMutability: 'nonpayable',
|
|
190
|
+
type: 'function',
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
inputs: [
|
|
194
|
+
{
|
|
195
|
+
name: '_recipient',
|
|
196
|
+
type: 'address',
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
name: '_asset',
|
|
168
200
|
type: 'address',
|
|
169
201
|
},
|
|
202
|
+
{
|
|
203
|
+
name: '_amount',
|
|
204
|
+
type: 'uint256',
|
|
205
|
+
},
|
|
206
|
+
],
|
|
207
|
+
name: 'transferFunds',
|
|
208
|
+
outputs: [
|
|
170
209
|
{
|
|
171
210
|
name: '',
|
|
172
211
|
type: 'uint256',
|
|
@@ -182,27 +221,23 @@ export const abi = [
|
|
|
182
221
|
{
|
|
183
222
|
inputs: [
|
|
184
223
|
{
|
|
185
|
-
name: '
|
|
224
|
+
name: '_recipient',
|
|
186
225
|
type: 'address',
|
|
187
226
|
},
|
|
188
|
-
{
|
|
189
|
-
name: '_legoId',
|
|
190
|
-
type: 'uint256',
|
|
191
|
-
},
|
|
192
227
|
{
|
|
193
228
|
name: '_asset',
|
|
194
229
|
type: 'address',
|
|
195
230
|
},
|
|
196
|
-
{
|
|
197
|
-
name: '_vault',
|
|
198
|
-
type: 'address',
|
|
199
|
-
},
|
|
200
231
|
{
|
|
201
232
|
name: '_amount',
|
|
202
233
|
type: 'uint256',
|
|
203
234
|
},
|
|
235
|
+
{
|
|
236
|
+
name: '_isCheque',
|
|
237
|
+
type: 'bool',
|
|
238
|
+
},
|
|
204
239
|
],
|
|
205
|
-
name: '
|
|
240
|
+
name: 'transferFunds',
|
|
206
241
|
outputs: [
|
|
207
242
|
{
|
|
208
243
|
name: '',
|
|
@@ -210,8 +245,37 @@ export const abi = [
|
|
|
210
245
|
},
|
|
211
246
|
{
|
|
212
247
|
name: '',
|
|
248
|
+
type: 'uint256',
|
|
249
|
+
},
|
|
250
|
+
],
|
|
251
|
+
stateMutability: 'nonpayable',
|
|
252
|
+
type: 'function',
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
inputs: [
|
|
256
|
+
{
|
|
257
|
+
name: '_recipient',
|
|
258
|
+
type: 'address',
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
name: '_asset',
|
|
213
262
|
type: 'address',
|
|
214
263
|
},
|
|
264
|
+
{
|
|
265
|
+
name: '_amount',
|
|
266
|
+
type: 'uint256',
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
name: '_isCheque',
|
|
270
|
+
type: 'bool',
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
name: '_isSpecialTx',
|
|
274
|
+
type: 'bool',
|
|
275
|
+
},
|
|
276
|
+
],
|
|
277
|
+
name: 'transferFunds',
|
|
278
|
+
outputs: [
|
|
215
279
|
{
|
|
216
280
|
name: '',
|
|
217
281
|
type: 'uint256',
|
|
@@ -226,10 +290,6 @@ export const abi = [
|
|
|
226
290
|
},
|
|
227
291
|
{
|
|
228
292
|
inputs: [
|
|
229
|
-
{
|
|
230
|
-
name: '_userWallet',
|
|
231
|
-
type: 'address',
|
|
232
|
-
},
|
|
233
293
|
{
|
|
234
294
|
name: '_legoId',
|
|
235
295
|
type: 'uint256',
|
|
@@ -238,34 +298,8 @@ export const abi = [
|
|
|
238
298
|
name: '_asset',
|
|
239
299
|
type: 'address',
|
|
240
300
|
},
|
|
241
|
-
{
|
|
242
|
-
name: '_vault',
|
|
243
|
-
type: 'address',
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
name: '_amount',
|
|
247
|
-
type: 'uint256',
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
components: [
|
|
251
|
-
{
|
|
252
|
-
name: 'signature',
|
|
253
|
-
type: 'bytes',
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
name: 'signer',
|
|
257
|
-
type: 'address',
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
name: 'expiration',
|
|
261
|
-
type: 'uint256',
|
|
262
|
-
},
|
|
263
|
-
],
|
|
264
|
-
name: '_sig',
|
|
265
|
-
type: 'tuple',
|
|
266
|
-
},
|
|
267
301
|
],
|
|
268
|
-
name: '
|
|
302
|
+
name: 'depositForYield',
|
|
269
303
|
outputs: [
|
|
270
304
|
{
|
|
271
305
|
name: '',
|
|
@@ -289,10 +323,6 @@ export const abi = [
|
|
|
289
323
|
},
|
|
290
324
|
{
|
|
291
325
|
inputs: [
|
|
292
|
-
{
|
|
293
|
-
name: '_userWallet',
|
|
294
|
-
type: 'address',
|
|
295
|
-
},
|
|
296
326
|
{
|
|
297
327
|
name: '_legoId',
|
|
298
328
|
type: 'uint256',
|
|
@@ -302,16 +332,20 @@ export const abi = [
|
|
|
302
332
|
type: 'address',
|
|
303
333
|
},
|
|
304
334
|
{
|
|
305
|
-
name: '
|
|
335
|
+
name: '_vaultAddr',
|
|
306
336
|
type: 'address',
|
|
307
337
|
},
|
|
308
338
|
],
|
|
309
|
-
name: '
|
|
339
|
+
name: 'depositForYield',
|
|
310
340
|
outputs: [
|
|
311
341
|
{
|
|
312
342
|
name: '',
|
|
313
343
|
type: 'uint256',
|
|
314
344
|
},
|
|
345
|
+
{
|
|
346
|
+
name: '',
|
|
347
|
+
type: 'address',
|
|
348
|
+
},
|
|
315
349
|
{
|
|
316
350
|
name: '',
|
|
317
351
|
type: 'uint256',
|
|
@@ -326,10 +360,6 @@ export const abi = [
|
|
|
326
360
|
},
|
|
327
361
|
{
|
|
328
362
|
inputs: [
|
|
329
|
-
{
|
|
330
|
-
name: '_userWallet',
|
|
331
|
-
type: 'address',
|
|
332
|
-
},
|
|
333
363
|
{
|
|
334
364
|
name: '_legoId',
|
|
335
365
|
type: 'uint256',
|
|
@@ -339,20 +369,24 @@ export const abi = [
|
|
|
339
369
|
type: 'address',
|
|
340
370
|
},
|
|
341
371
|
{
|
|
342
|
-
name: '
|
|
372
|
+
name: '_vaultAddr',
|
|
343
373
|
type: 'address',
|
|
344
374
|
},
|
|
345
375
|
{
|
|
346
|
-
name: '
|
|
376
|
+
name: '_amount',
|
|
347
377
|
type: 'uint256',
|
|
348
378
|
},
|
|
349
379
|
],
|
|
350
|
-
name: '
|
|
380
|
+
name: 'depositForYield',
|
|
351
381
|
outputs: [
|
|
352
382
|
{
|
|
353
383
|
name: '',
|
|
354
384
|
type: 'uint256',
|
|
355
385
|
},
|
|
386
|
+
{
|
|
387
|
+
name: '',
|
|
388
|
+
type: 'address',
|
|
389
|
+
},
|
|
356
390
|
{
|
|
357
391
|
name: '',
|
|
358
392
|
type: 'uint256',
|
|
@@ -367,10 +401,6 @@ export const abi = [
|
|
|
367
401
|
},
|
|
368
402
|
{
|
|
369
403
|
inputs: [
|
|
370
|
-
{
|
|
371
|
-
name: '_userWallet',
|
|
372
|
-
type: 'address',
|
|
373
|
-
},
|
|
374
404
|
{
|
|
375
405
|
name: '_legoId',
|
|
376
406
|
type: 'uint256',
|
|
@@ -380,38 +410,28 @@ export const abi = [
|
|
|
380
410
|
type: 'address',
|
|
381
411
|
},
|
|
382
412
|
{
|
|
383
|
-
name: '
|
|
413
|
+
name: '_vaultAddr',
|
|
384
414
|
type: 'address',
|
|
385
415
|
},
|
|
386
416
|
{
|
|
387
|
-
name: '
|
|
417
|
+
name: '_amount',
|
|
388
418
|
type: 'uint256',
|
|
389
419
|
},
|
|
390
420
|
{
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
name: 'signature',
|
|
394
|
-
type: 'bytes',
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
name: 'signer',
|
|
398
|
-
type: 'address',
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
name: 'expiration',
|
|
402
|
-
type: 'uint256',
|
|
403
|
-
},
|
|
404
|
-
],
|
|
405
|
-
name: '_sig',
|
|
406
|
-
type: 'tuple',
|
|
421
|
+
name: '_extraData',
|
|
422
|
+
type: 'bytes32',
|
|
407
423
|
},
|
|
408
424
|
],
|
|
409
|
-
name: '
|
|
425
|
+
name: 'depositForYield',
|
|
410
426
|
outputs: [
|
|
411
427
|
{
|
|
412
428
|
name: '',
|
|
413
429
|
type: 'uint256',
|
|
414
430
|
},
|
|
431
|
+
{
|
|
432
|
+
name: '',
|
|
433
|
+
type: 'address',
|
|
434
|
+
},
|
|
415
435
|
{
|
|
416
436
|
name: '',
|
|
417
437
|
type: 'uint256',
|
|
@@ -427,31 +447,52 @@ export const abi = [
|
|
|
427
447
|
{
|
|
428
448
|
inputs: [
|
|
429
449
|
{
|
|
430
|
-
name: '
|
|
450
|
+
name: '_legoId',
|
|
451
|
+
type: 'uint256',
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
name: '_vaultToken',
|
|
431
455
|
type: 'address',
|
|
432
456
|
},
|
|
457
|
+
],
|
|
458
|
+
name: 'withdrawFromYield',
|
|
459
|
+
outputs: [
|
|
433
460
|
{
|
|
434
|
-
name: '
|
|
461
|
+
name: '',
|
|
435
462
|
type: 'uint256',
|
|
436
463
|
},
|
|
437
464
|
{
|
|
438
|
-
name: '
|
|
465
|
+
name: '',
|
|
439
466
|
type: 'address',
|
|
440
467
|
},
|
|
441
468
|
{
|
|
442
|
-
name: '
|
|
443
|
-
type: '
|
|
469
|
+
name: '',
|
|
470
|
+
type: 'uint256',
|
|
444
471
|
},
|
|
445
472
|
{
|
|
446
|
-
name: '
|
|
473
|
+
name: '',
|
|
474
|
+
type: 'uint256',
|
|
475
|
+
},
|
|
476
|
+
],
|
|
477
|
+
stateMutability: 'nonpayable',
|
|
478
|
+
type: 'function',
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
inputs: [
|
|
482
|
+
{
|
|
483
|
+
name: '_legoId',
|
|
447
484
|
type: 'uint256',
|
|
448
485
|
},
|
|
449
486
|
{
|
|
450
|
-
name: '
|
|
487
|
+
name: '_vaultToken',
|
|
451
488
|
type: 'address',
|
|
452
489
|
},
|
|
490
|
+
{
|
|
491
|
+
name: '_amount',
|
|
492
|
+
type: 'uint256',
|
|
493
|
+
},
|
|
453
494
|
],
|
|
454
|
-
name: '
|
|
495
|
+
name: 'withdrawFromYield',
|
|
455
496
|
outputs: [
|
|
456
497
|
{
|
|
457
498
|
name: '',
|
|
@@ -476,35 +517,23 @@ export const abi = [
|
|
|
476
517
|
{
|
|
477
518
|
inputs: [
|
|
478
519
|
{
|
|
479
|
-
name: '
|
|
480
|
-
type: 'address',
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
name: '_fromLegoId',
|
|
520
|
+
name: '_legoId',
|
|
484
521
|
type: 'uint256',
|
|
485
522
|
},
|
|
486
523
|
{
|
|
487
|
-
name: '
|
|
488
|
-
type: 'address',
|
|
489
|
-
},
|
|
490
|
-
{
|
|
491
|
-
name: '_fromVaultToken',
|
|
524
|
+
name: '_vaultToken',
|
|
492
525
|
type: 'address',
|
|
493
526
|
},
|
|
494
527
|
{
|
|
495
|
-
name: '
|
|
528
|
+
name: '_amount',
|
|
496
529
|
type: 'uint256',
|
|
497
530
|
},
|
|
498
531
|
{
|
|
499
|
-
name: '
|
|
500
|
-
type: '
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
name: '_fromVaultTokenAmount',
|
|
504
|
-
type: 'uint256',
|
|
532
|
+
name: '_extraData',
|
|
533
|
+
type: 'bytes32',
|
|
505
534
|
},
|
|
506
535
|
],
|
|
507
|
-
name: '
|
|
536
|
+
name: 'withdrawFromYield',
|
|
508
537
|
outputs: [
|
|
509
538
|
{
|
|
510
539
|
name: '',
|
|
@@ -529,53 +558,64 @@ export const abi = [
|
|
|
529
558
|
{
|
|
530
559
|
inputs: [
|
|
531
560
|
{
|
|
532
|
-
name: '
|
|
561
|
+
name: '_legoId',
|
|
562
|
+
type: 'uint256',
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
name: '_vaultToken',
|
|
533
566
|
type: 'address',
|
|
534
567
|
},
|
|
535
568
|
{
|
|
536
|
-
name: '
|
|
569
|
+
name: '_amount',
|
|
537
570
|
type: 'uint256',
|
|
538
571
|
},
|
|
539
572
|
{
|
|
540
|
-
name: '
|
|
541
|
-
type: '
|
|
573
|
+
name: '_extraData',
|
|
574
|
+
type: 'bytes32',
|
|
542
575
|
},
|
|
543
576
|
{
|
|
544
|
-
name: '
|
|
545
|
-
type: '
|
|
577
|
+
name: '_isSpecialTx',
|
|
578
|
+
type: 'bool',
|
|
546
579
|
},
|
|
580
|
+
],
|
|
581
|
+
name: 'withdrawFromYield',
|
|
582
|
+
outputs: [
|
|
547
583
|
{
|
|
548
|
-
name: '
|
|
584
|
+
name: '',
|
|
549
585
|
type: 'uint256',
|
|
550
586
|
},
|
|
551
587
|
{
|
|
552
|
-
name: '
|
|
588
|
+
name: '',
|
|
553
589
|
type: 'address',
|
|
554
590
|
},
|
|
555
591
|
{
|
|
556
|
-
name: '
|
|
592
|
+
name: '',
|
|
557
593
|
type: 'uint256',
|
|
558
594
|
},
|
|
559
595
|
{
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
name: '
|
|
575
|
-
type: '
|
|
596
|
+
name: '',
|
|
597
|
+
type: 'uint256',
|
|
598
|
+
},
|
|
599
|
+
],
|
|
600
|
+
stateMutability: 'nonpayable',
|
|
601
|
+
type: 'function',
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
inputs: [
|
|
605
|
+
{
|
|
606
|
+
name: '_fromLegoId',
|
|
607
|
+
type: 'uint256',
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
name: '_fromVaultToken',
|
|
611
|
+
type: 'address',
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
name: '_toLegoId',
|
|
615
|
+
type: 'uint256',
|
|
576
616
|
},
|
|
577
617
|
],
|
|
578
|
-
name: '
|
|
618
|
+
name: 'rebalanceYieldPosition',
|
|
579
619
|
outputs: [
|
|
580
620
|
{
|
|
581
621
|
name: '',
|
|
@@ -600,42 +640,32 @@ export const abi = [
|
|
|
600
640
|
{
|
|
601
641
|
inputs: [
|
|
602
642
|
{
|
|
603
|
-
name: '
|
|
643
|
+
name: '_fromLegoId',
|
|
644
|
+
type: 'uint256',
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
name: '_fromVaultToken',
|
|
604
648
|
type: 'address',
|
|
605
649
|
},
|
|
606
650
|
{
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
name: 'amountIn',
|
|
614
|
-
type: 'uint256',
|
|
615
|
-
},
|
|
616
|
-
{
|
|
617
|
-
name: 'minAmountOut',
|
|
618
|
-
type: 'uint256',
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
name: 'tokenPath',
|
|
622
|
-
type: 'address[]',
|
|
623
|
-
},
|
|
624
|
-
{
|
|
625
|
-
name: 'poolPath',
|
|
626
|
-
type: 'address[]',
|
|
627
|
-
},
|
|
628
|
-
],
|
|
629
|
-
name: '_swapInstructions',
|
|
630
|
-
type: 'tuple[]',
|
|
651
|
+
name: '_toLegoId',
|
|
652
|
+
type: 'uint256',
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
name: '_toVaultAddr',
|
|
656
|
+
type: 'address',
|
|
631
657
|
},
|
|
632
658
|
],
|
|
633
|
-
name: '
|
|
659
|
+
name: 'rebalanceYieldPosition',
|
|
634
660
|
outputs: [
|
|
635
661
|
{
|
|
636
662
|
name: '',
|
|
637
663
|
type: 'uint256',
|
|
638
664
|
},
|
|
665
|
+
{
|
|
666
|
+
name: '',
|
|
667
|
+
type: 'address',
|
|
668
|
+
},
|
|
639
669
|
{
|
|
640
670
|
name: '',
|
|
641
671
|
type: 'uint256',
|
|
@@ -651,60 +681,36 @@ export const abi = [
|
|
|
651
681
|
{
|
|
652
682
|
inputs: [
|
|
653
683
|
{
|
|
654
|
-
name: '
|
|
684
|
+
name: '_fromLegoId',
|
|
685
|
+
type: 'uint256',
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
name: '_fromVaultToken',
|
|
655
689
|
type: 'address',
|
|
656
690
|
},
|
|
657
691
|
{
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
name: 'legoId',
|
|
661
|
-
type: 'uint256',
|
|
662
|
-
},
|
|
663
|
-
{
|
|
664
|
-
name: 'amountIn',
|
|
665
|
-
type: 'uint256',
|
|
666
|
-
},
|
|
667
|
-
{
|
|
668
|
-
name: 'minAmountOut',
|
|
669
|
-
type: 'uint256',
|
|
670
|
-
},
|
|
671
|
-
{
|
|
672
|
-
name: 'tokenPath',
|
|
673
|
-
type: 'address[]',
|
|
674
|
-
},
|
|
675
|
-
{
|
|
676
|
-
name: 'poolPath',
|
|
677
|
-
type: 'address[]',
|
|
678
|
-
},
|
|
679
|
-
],
|
|
680
|
-
name: '_swapInstructions',
|
|
681
|
-
type: 'tuple[]',
|
|
692
|
+
name: '_toLegoId',
|
|
693
|
+
type: 'uint256',
|
|
682
694
|
},
|
|
683
695
|
{
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
name: 'signer',
|
|
691
|
-
type: 'address',
|
|
692
|
-
},
|
|
693
|
-
{
|
|
694
|
-
name: 'expiration',
|
|
695
|
-
type: 'uint256',
|
|
696
|
-
},
|
|
697
|
-
],
|
|
698
|
-
name: '_sig',
|
|
699
|
-
type: 'tuple',
|
|
696
|
+
name: '_toVaultAddr',
|
|
697
|
+
type: 'address',
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
name: '_fromVaultAmount',
|
|
701
|
+
type: 'uint256',
|
|
700
702
|
},
|
|
701
703
|
],
|
|
702
|
-
name: '
|
|
704
|
+
name: 'rebalanceYieldPosition',
|
|
703
705
|
outputs: [
|
|
704
706
|
{
|
|
705
707
|
name: '',
|
|
706
708
|
type: 'uint256',
|
|
707
709
|
},
|
|
710
|
+
{
|
|
711
|
+
name: '',
|
|
712
|
+
type: 'address',
|
|
713
|
+
},
|
|
708
714
|
{
|
|
709
715
|
name: '',
|
|
710
716
|
type: 'uint256',
|
|
@@ -720,9 +726,54 @@ export const abi = [
|
|
|
720
726
|
{
|
|
721
727
|
inputs: [
|
|
722
728
|
{
|
|
723
|
-
name: '
|
|
729
|
+
name: '_fromLegoId',
|
|
730
|
+
type: 'uint256',
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
name: '_fromVaultToken',
|
|
734
|
+
type: 'address',
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
name: '_toLegoId',
|
|
738
|
+
type: 'uint256',
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
name: '_toVaultAddr',
|
|
742
|
+
type: 'address',
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
name: '_fromVaultAmount',
|
|
746
|
+
type: 'uint256',
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
name: '_extraData',
|
|
750
|
+
type: 'bytes32',
|
|
751
|
+
},
|
|
752
|
+
],
|
|
753
|
+
name: 'rebalanceYieldPosition',
|
|
754
|
+
outputs: [
|
|
755
|
+
{
|
|
756
|
+
name: '',
|
|
757
|
+
type: 'uint256',
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
name: '',
|
|
724
761
|
type: 'address',
|
|
725
762
|
},
|
|
763
|
+
{
|
|
764
|
+
name: '',
|
|
765
|
+
type: 'uint256',
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
name: '',
|
|
769
|
+
type: 'uint256',
|
|
770
|
+
},
|
|
771
|
+
],
|
|
772
|
+
stateMutability: 'nonpayable',
|
|
773
|
+
type: 'function',
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
inputs: [
|
|
726
777
|
{
|
|
727
778
|
components: [
|
|
728
779
|
{
|
|
@@ -746,37 +797,20 @@ export const abi = [
|
|
|
746
797
|
type: 'address[]',
|
|
747
798
|
},
|
|
748
799
|
],
|
|
749
|
-
name: '
|
|
800
|
+
name: '_instructions',
|
|
750
801
|
type: 'tuple[]',
|
|
751
802
|
},
|
|
752
|
-
{
|
|
753
|
-
name: '_expiration',
|
|
754
|
-
type: 'uint256',
|
|
755
|
-
},
|
|
756
803
|
],
|
|
757
|
-
name: '
|
|
804
|
+
name: 'swapTokens',
|
|
758
805
|
outputs: [
|
|
759
806
|
{
|
|
760
807
|
name: '',
|
|
761
|
-
type: 'bytes32',
|
|
762
|
-
},
|
|
763
|
-
],
|
|
764
|
-
stateMutability: 'view',
|
|
765
|
-
type: 'function',
|
|
766
|
-
},
|
|
767
|
-
{
|
|
768
|
-
inputs: [
|
|
769
|
-
{
|
|
770
|
-
name: '_userWallet',
|
|
771
808
|
type: 'address',
|
|
772
809
|
},
|
|
773
810
|
{
|
|
774
|
-
name: '
|
|
811
|
+
name: '',
|
|
775
812
|
type: 'uint256',
|
|
776
813
|
},
|
|
777
|
-
],
|
|
778
|
-
name: 'borrow',
|
|
779
|
-
outputs: [
|
|
780
814
|
{
|
|
781
815
|
name: '',
|
|
782
816
|
type: 'address',
|
|
@@ -795,29 +829,33 @@ export const abi = [
|
|
|
795
829
|
},
|
|
796
830
|
{
|
|
797
831
|
inputs: [
|
|
798
|
-
{
|
|
799
|
-
name: '_userWallet',
|
|
800
|
-
type: 'address',
|
|
801
|
-
},
|
|
802
832
|
{
|
|
803
833
|
name: '_legoId',
|
|
804
834
|
type: 'uint256',
|
|
805
835
|
},
|
|
806
836
|
{
|
|
807
|
-
name: '
|
|
837
|
+
name: '_tokenIn',
|
|
838
|
+
type: 'address',
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
name: '_tokenOut',
|
|
808
842
|
type: 'address',
|
|
809
843
|
},
|
|
810
844
|
],
|
|
811
|
-
name: '
|
|
845
|
+
name: 'mintOrRedeemAsset',
|
|
812
846
|
outputs: [
|
|
813
847
|
{
|
|
814
848
|
name: '',
|
|
815
|
-
type: '
|
|
849
|
+
type: 'uint256',
|
|
816
850
|
},
|
|
817
851
|
{
|
|
818
852
|
name: '',
|
|
819
853
|
type: 'uint256',
|
|
820
854
|
},
|
|
855
|
+
{
|
|
856
|
+
name: '',
|
|
857
|
+
type: 'bool',
|
|
858
|
+
},
|
|
821
859
|
{
|
|
822
860
|
name: '',
|
|
823
861
|
type: 'uint256',
|
|
@@ -828,33 +866,37 @@ export const abi = [
|
|
|
828
866
|
},
|
|
829
867
|
{
|
|
830
868
|
inputs: [
|
|
831
|
-
{
|
|
832
|
-
name: '_userWallet',
|
|
833
|
-
type: 'address',
|
|
834
|
-
},
|
|
835
869
|
{
|
|
836
870
|
name: '_legoId',
|
|
837
871
|
type: 'uint256',
|
|
838
872
|
},
|
|
839
873
|
{
|
|
840
|
-
name: '
|
|
874
|
+
name: '_tokenIn',
|
|
841
875
|
type: 'address',
|
|
842
876
|
},
|
|
843
877
|
{
|
|
844
|
-
name: '
|
|
878
|
+
name: '_tokenOut',
|
|
879
|
+
type: 'address',
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
name: '_amountIn',
|
|
845
883
|
type: 'uint256',
|
|
846
884
|
},
|
|
847
885
|
],
|
|
848
|
-
name: '
|
|
886
|
+
name: 'mintOrRedeemAsset',
|
|
849
887
|
outputs: [
|
|
850
888
|
{
|
|
851
889
|
name: '',
|
|
852
|
-
type: '
|
|
890
|
+
type: 'uint256',
|
|
853
891
|
},
|
|
854
892
|
{
|
|
855
893
|
name: '',
|
|
856
894
|
type: 'uint256',
|
|
857
895
|
},
|
|
896
|
+
{
|
|
897
|
+
name: '',
|
|
898
|
+
type: 'bool',
|
|
899
|
+
},
|
|
858
900
|
{
|
|
859
901
|
name: '',
|
|
860
902
|
type: 'uint256',
|
|
@@ -865,51 +907,41 @@ export const abi = [
|
|
|
865
907
|
},
|
|
866
908
|
{
|
|
867
909
|
inputs: [
|
|
868
|
-
{
|
|
869
|
-
name: '_userWallet',
|
|
870
|
-
type: 'address',
|
|
871
|
-
},
|
|
872
910
|
{
|
|
873
911
|
name: '_legoId',
|
|
874
912
|
type: 'uint256',
|
|
875
913
|
},
|
|
876
914
|
{
|
|
877
|
-
name: '
|
|
915
|
+
name: '_tokenIn',
|
|
878
916
|
type: 'address',
|
|
879
917
|
},
|
|
880
918
|
{
|
|
881
|
-
name: '
|
|
919
|
+
name: '_tokenOut',
|
|
920
|
+
type: 'address',
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
name: '_amountIn',
|
|
882
924
|
type: 'uint256',
|
|
883
925
|
},
|
|
884
926
|
{
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
name: 'signature',
|
|
888
|
-
type: 'bytes',
|
|
889
|
-
},
|
|
890
|
-
{
|
|
891
|
-
name: 'signer',
|
|
892
|
-
type: 'address',
|
|
893
|
-
},
|
|
894
|
-
{
|
|
895
|
-
name: 'expiration',
|
|
896
|
-
type: 'uint256',
|
|
897
|
-
},
|
|
898
|
-
],
|
|
899
|
-
name: '_sig',
|
|
900
|
-
type: 'tuple',
|
|
927
|
+
name: '_minAmountOut',
|
|
928
|
+
type: 'uint256',
|
|
901
929
|
},
|
|
902
930
|
],
|
|
903
|
-
name: '
|
|
931
|
+
name: 'mintOrRedeemAsset',
|
|
904
932
|
outputs: [
|
|
905
933
|
{
|
|
906
934
|
name: '',
|
|
907
|
-
type: '
|
|
935
|
+
type: 'uint256',
|
|
908
936
|
},
|
|
909
937
|
{
|
|
910
938
|
name: '',
|
|
911
939
|
type: 'uint256',
|
|
912
940
|
},
|
|
941
|
+
{
|
|
942
|
+
name: '',
|
|
943
|
+
type: 'bool',
|
|
944
|
+
},
|
|
913
945
|
{
|
|
914
946
|
name: '',
|
|
915
947
|
type: 'uint256',
|
|
@@ -920,25 +952,33 @@ export const abi = [
|
|
|
920
952
|
},
|
|
921
953
|
{
|
|
922
954
|
inputs: [
|
|
923
|
-
{
|
|
924
|
-
name: '_userWallet',
|
|
925
|
-
type: 'address',
|
|
926
|
-
},
|
|
927
955
|
{
|
|
928
956
|
name: '_legoId',
|
|
929
957
|
type: 'uint256',
|
|
930
958
|
},
|
|
931
959
|
{
|
|
932
|
-
name: '
|
|
960
|
+
name: '_tokenIn',
|
|
933
961
|
type: 'address',
|
|
934
962
|
},
|
|
935
|
-
],
|
|
936
|
-
name: 'repayDebt',
|
|
937
|
-
outputs: [
|
|
938
963
|
{
|
|
939
|
-
name: '',
|
|
964
|
+
name: '_tokenOut',
|
|
940
965
|
type: 'address',
|
|
941
966
|
},
|
|
967
|
+
{
|
|
968
|
+
name: '_amountIn',
|
|
969
|
+
type: 'uint256',
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
name: '_minAmountOut',
|
|
973
|
+
type: 'uint256',
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
name: '_extraData',
|
|
977
|
+
type: 'bytes32',
|
|
978
|
+
},
|
|
979
|
+
],
|
|
980
|
+
name: 'mintOrRedeemAsset',
|
|
981
|
+
outputs: [
|
|
942
982
|
{
|
|
943
983
|
name: '',
|
|
944
984
|
type: 'uint256',
|
|
@@ -947,6 +987,10 @@ export const abi = [
|
|
|
947
987
|
name: '',
|
|
948
988
|
type: 'uint256',
|
|
949
989
|
},
|
|
990
|
+
{
|
|
991
|
+
name: '',
|
|
992
|
+
type: 'bool',
|
|
993
|
+
},
|
|
950
994
|
{
|
|
951
995
|
name: '',
|
|
952
996
|
type: 'uint256',
|
|
@@ -957,33 +1001,21 @@ export const abi = [
|
|
|
957
1001
|
},
|
|
958
1002
|
{
|
|
959
1003
|
inputs: [
|
|
960
|
-
{
|
|
961
|
-
name: '_userWallet',
|
|
962
|
-
type: 'address',
|
|
963
|
-
},
|
|
964
1004
|
{
|
|
965
1005
|
name: '_legoId',
|
|
966
1006
|
type: 'uint256',
|
|
967
1007
|
},
|
|
968
1008
|
{
|
|
969
|
-
name: '
|
|
1009
|
+
name: '_tokenIn',
|
|
970
1010
|
type: 'address',
|
|
971
1011
|
},
|
|
972
1012
|
{
|
|
973
|
-
name: '
|
|
974
|
-
type: '
|
|
1013
|
+
name: '_tokenOut',
|
|
1014
|
+
type: 'address',
|
|
975
1015
|
},
|
|
976
1016
|
],
|
|
977
|
-
name: '
|
|
1017
|
+
name: 'confirmMintOrRedeemAsset',
|
|
978
1018
|
outputs: [
|
|
979
|
-
{
|
|
980
|
-
name: '',
|
|
981
|
-
type: 'address',
|
|
982
|
-
},
|
|
983
|
-
{
|
|
984
|
-
name: '',
|
|
985
|
-
type: 'uint256',
|
|
986
|
-
},
|
|
987
1019
|
{
|
|
988
1020
|
name: '',
|
|
989
1021
|
type: 'uint256',
|
|
@@ -998,51 +1030,25 @@ export const abi = [
|
|
|
998
1030
|
},
|
|
999
1031
|
{
|
|
1000
1032
|
inputs: [
|
|
1001
|
-
{
|
|
1002
|
-
name: '_userWallet',
|
|
1003
|
-
type: 'address',
|
|
1004
|
-
},
|
|
1005
1033
|
{
|
|
1006
1034
|
name: '_legoId',
|
|
1007
1035
|
type: 'uint256',
|
|
1008
1036
|
},
|
|
1009
1037
|
{
|
|
1010
|
-
name: '
|
|
1038
|
+
name: '_tokenIn',
|
|
1011
1039
|
type: 'address',
|
|
1012
1040
|
},
|
|
1013
1041
|
{
|
|
1014
|
-
name: '
|
|
1015
|
-
type: '
|
|
1042
|
+
name: '_tokenOut',
|
|
1043
|
+
type: 'address',
|
|
1016
1044
|
},
|
|
1017
1045
|
{
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
name: 'signature',
|
|
1021
|
-
type: 'bytes',
|
|
1022
|
-
},
|
|
1023
|
-
{
|
|
1024
|
-
name: 'signer',
|
|
1025
|
-
type: 'address',
|
|
1026
|
-
},
|
|
1027
|
-
{
|
|
1028
|
-
name: 'expiration',
|
|
1029
|
-
type: 'uint256',
|
|
1030
|
-
},
|
|
1031
|
-
],
|
|
1032
|
-
name: '_sig',
|
|
1033
|
-
type: 'tuple',
|
|
1046
|
+
name: '_extraData',
|
|
1047
|
+
type: 'bytes32',
|
|
1034
1048
|
},
|
|
1035
1049
|
],
|
|
1036
|
-
name: '
|
|
1050
|
+
name: 'confirmMintOrRedeemAsset',
|
|
1037
1051
|
outputs: [
|
|
1038
|
-
{
|
|
1039
|
-
name: '',
|
|
1040
|
-
type: 'address',
|
|
1041
|
-
},
|
|
1042
|
-
{
|
|
1043
|
-
name: '',
|
|
1044
|
-
type: 'uint256',
|
|
1045
|
-
},
|
|
1046
1052
|
{
|
|
1047
1053
|
name: '',
|
|
1048
1054
|
type: 'uint256',
|
|
@@ -1057,206 +1063,165 @@ export const abi = [
|
|
|
1057
1063
|
},
|
|
1058
1064
|
{
|
|
1059
1065
|
inputs: [
|
|
1060
|
-
{
|
|
1061
|
-
name: '_userWallet',
|
|
1062
|
-
type: 'address',
|
|
1063
|
-
},
|
|
1064
1066
|
{
|
|
1065
1067
|
name: '_legoId',
|
|
1066
1068
|
type: 'uint256',
|
|
1067
1069
|
},
|
|
1068
|
-
],
|
|
1069
|
-
name: 'claimRewards',
|
|
1070
|
-
outputs: [],
|
|
1071
|
-
stateMutability: 'nonpayable',
|
|
1072
|
-
type: 'function',
|
|
1073
|
-
},
|
|
1074
|
-
{
|
|
1075
|
-
inputs: [
|
|
1076
1070
|
{
|
|
1077
|
-
name: '
|
|
1071
|
+
name: '_asset',
|
|
1078
1072
|
type: 'address',
|
|
1079
1073
|
},
|
|
1074
|
+
],
|
|
1075
|
+
name: 'addCollateral',
|
|
1076
|
+
outputs: [
|
|
1080
1077
|
{
|
|
1081
|
-
name: '
|
|
1078
|
+
name: '',
|
|
1082
1079
|
type: 'uint256',
|
|
1083
1080
|
},
|
|
1084
1081
|
{
|
|
1085
|
-
name: '
|
|
1086
|
-
type: '
|
|
1082
|
+
name: '',
|
|
1083
|
+
type: 'uint256',
|
|
1087
1084
|
},
|
|
1088
1085
|
],
|
|
1089
|
-
name: 'claimRewards',
|
|
1090
|
-
outputs: [],
|
|
1091
1086
|
stateMutability: 'nonpayable',
|
|
1092
1087
|
type: 'function',
|
|
1093
1088
|
},
|
|
1094
1089
|
{
|
|
1095
1090
|
inputs: [
|
|
1096
1091
|
{
|
|
1097
|
-
name: '
|
|
1092
|
+
name: '_legoId',
|
|
1093
|
+
type: 'uint256',
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
name: '_asset',
|
|
1098
1097
|
type: 'address',
|
|
1099
1098
|
},
|
|
1100
1099
|
{
|
|
1101
|
-
name: '
|
|
1100
|
+
name: '_amount',
|
|
1102
1101
|
type: 'uint256',
|
|
1103
1102
|
},
|
|
1103
|
+
],
|
|
1104
|
+
name: 'addCollateral',
|
|
1105
|
+
outputs: [
|
|
1104
1106
|
{
|
|
1105
|
-
name: '
|
|
1106
|
-
type: '
|
|
1107
|
+
name: '',
|
|
1108
|
+
type: 'uint256',
|
|
1107
1109
|
},
|
|
1108
1110
|
{
|
|
1109
|
-
name: '
|
|
1110
|
-
type: '
|
|
1111
|
+
name: '',
|
|
1112
|
+
type: 'uint256',
|
|
1111
1113
|
},
|
|
1112
1114
|
],
|
|
1113
|
-
name: 'claimRewards',
|
|
1114
|
-
outputs: [],
|
|
1115
1115
|
stateMutability: 'nonpayable',
|
|
1116
1116
|
type: 'function',
|
|
1117
1117
|
},
|
|
1118
1118
|
{
|
|
1119
1119
|
inputs: [
|
|
1120
1120
|
{
|
|
1121
|
-
name: '
|
|
1121
|
+
name: '_legoId',
|
|
1122
|
+
type: 'uint256',
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
name: '_asset',
|
|
1122
1126
|
type: 'address',
|
|
1123
1127
|
},
|
|
1124
1128
|
{
|
|
1125
|
-
name: '
|
|
1129
|
+
name: '_amount',
|
|
1126
1130
|
type: 'uint256',
|
|
1127
1131
|
},
|
|
1128
1132
|
{
|
|
1129
|
-
name: '
|
|
1130
|
-
type: '
|
|
1133
|
+
name: '_extraData',
|
|
1134
|
+
type: 'bytes32',
|
|
1131
1135
|
},
|
|
1136
|
+
],
|
|
1137
|
+
name: 'addCollateral',
|
|
1138
|
+
outputs: [
|
|
1132
1139
|
{
|
|
1133
|
-
name: '
|
|
1134
|
-
type: '
|
|
1140
|
+
name: '',
|
|
1141
|
+
type: 'uint256',
|
|
1135
1142
|
},
|
|
1136
1143
|
{
|
|
1137
|
-
name: '
|
|
1144
|
+
name: '',
|
|
1138
1145
|
type: 'uint256',
|
|
1139
1146
|
},
|
|
1140
1147
|
],
|
|
1141
|
-
name: 'claimRewards',
|
|
1142
|
-
outputs: [],
|
|
1143
1148
|
stateMutability: 'nonpayable',
|
|
1144
1149
|
type: 'function',
|
|
1145
1150
|
},
|
|
1146
1151
|
{
|
|
1147
1152
|
inputs: [
|
|
1148
|
-
{
|
|
1149
|
-
name: '_userWallet',
|
|
1150
|
-
type: 'address',
|
|
1151
|
-
},
|
|
1152
1153
|
{
|
|
1153
1154
|
name: '_legoId',
|
|
1154
1155
|
type: 'uint256',
|
|
1155
1156
|
},
|
|
1156
1157
|
{
|
|
1157
|
-
name: '
|
|
1158
|
-
type: 'address',
|
|
1159
|
-
},
|
|
1160
|
-
{
|
|
1161
|
-
name: '_rewardToken',
|
|
1158
|
+
name: '_asset',
|
|
1162
1159
|
type: 'address',
|
|
1163
1160
|
},
|
|
1161
|
+
],
|
|
1162
|
+
name: 'removeCollateral',
|
|
1163
|
+
outputs: [
|
|
1164
1164
|
{
|
|
1165
|
-
name: '
|
|
1165
|
+
name: '',
|
|
1166
1166
|
type: 'uint256',
|
|
1167
1167
|
},
|
|
1168
1168
|
{
|
|
1169
|
-
name: '
|
|
1170
|
-
type: '
|
|
1169
|
+
name: '',
|
|
1170
|
+
type: 'uint256',
|
|
1171
1171
|
},
|
|
1172
1172
|
],
|
|
1173
|
-
name: 'claimRewards',
|
|
1174
|
-
outputs: [],
|
|
1175
1173
|
stateMutability: 'nonpayable',
|
|
1176
1174
|
type: 'function',
|
|
1177
1175
|
},
|
|
1178
1176
|
{
|
|
1179
1177
|
inputs: [
|
|
1180
|
-
{
|
|
1181
|
-
name: '_userWallet',
|
|
1182
|
-
type: 'address',
|
|
1183
|
-
},
|
|
1184
1178
|
{
|
|
1185
1179
|
name: '_legoId',
|
|
1186
1180
|
type: 'uint256',
|
|
1187
1181
|
},
|
|
1188
1182
|
{
|
|
1189
|
-
name: '
|
|
1190
|
-
type: 'address',
|
|
1191
|
-
},
|
|
1192
|
-
{
|
|
1193
|
-
name: '_rewardToken',
|
|
1183
|
+
name: '_asset',
|
|
1194
1184
|
type: 'address',
|
|
1195
1185
|
},
|
|
1196
1186
|
{
|
|
1197
|
-
name: '
|
|
1187
|
+
name: '_amount',
|
|
1198
1188
|
type: 'uint256',
|
|
1199
1189
|
},
|
|
1190
|
+
],
|
|
1191
|
+
name: 'removeCollateral',
|
|
1192
|
+
outputs: [
|
|
1200
1193
|
{
|
|
1201
|
-
name: '
|
|
1202
|
-
type: '
|
|
1194
|
+
name: '',
|
|
1195
|
+
type: 'uint256',
|
|
1203
1196
|
},
|
|
1204
1197
|
{
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
name: 'signature',
|
|
1208
|
-
type: 'bytes',
|
|
1209
|
-
},
|
|
1210
|
-
{
|
|
1211
|
-
name: 'signer',
|
|
1212
|
-
type: 'address',
|
|
1213
|
-
},
|
|
1214
|
-
{
|
|
1215
|
-
name: 'expiration',
|
|
1216
|
-
type: 'uint256',
|
|
1217
|
-
},
|
|
1218
|
-
],
|
|
1219
|
-
name: '_sig',
|
|
1220
|
-
type: 'tuple',
|
|
1198
|
+
name: '',
|
|
1199
|
+
type: 'uint256',
|
|
1221
1200
|
},
|
|
1222
1201
|
],
|
|
1223
|
-
name: 'claimRewards',
|
|
1224
|
-
outputs: [],
|
|
1225
1202
|
stateMutability: 'nonpayable',
|
|
1226
1203
|
type: 'function',
|
|
1227
1204
|
},
|
|
1228
1205
|
{
|
|
1229
1206
|
inputs: [
|
|
1230
|
-
{
|
|
1231
|
-
name: '_userWallet',
|
|
1232
|
-
type: 'address',
|
|
1233
|
-
},
|
|
1234
1207
|
{
|
|
1235
1208
|
name: '_legoId',
|
|
1236
1209
|
type: 'uint256',
|
|
1237
1210
|
},
|
|
1238
1211
|
{
|
|
1239
|
-
name: '
|
|
1212
|
+
name: '_asset',
|
|
1240
1213
|
type: 'address',
|
|
1241
1214
|
},
|
|
1242
1215
|
{
|
|
1243
|
-
name: '
|
|
1216
|
+
name: '_amount',
|
|
1244
1217
|
type: 'uint256',
|
|
1245
1218
|
},
|
|
1246
1219
|
{
|
|
1247
|
-
name: '
|
|
1248
|
-
type: '
|
|
1249
|
-
},
|
|
1250
|
-
{
|
|
1251
|
-
name: '_tokenA',
|
|
1252
|
-
type: 'address',
|
|
1253
|
-
},
|
|
1254
|
-
{
|
|
1255
|
-
name: '_tokenB',
|
|
1256
|
-
type: 'address',
|
|
1220
|
+
name: '_extraData',
|
|
1221
|
+
type: 'bytes32',
|
|
1257
1222
|
},
|
|
1258
1223
|
],
|
|
1259
|
-
name: '
|
|
1224
|
+
name: 'removeCollateral',
|
|
1260
1225
|
outputs: [
|
|
1261
1226
|
{
|
|
1262
1227
|
name: '',
|
|
@@ -1266,10 +1231,23 @@ export const abi = [
|
|
|
1266
1231
|
name: '',
|
|
1267
1232
|
type: 'uint256',
|
|
1268
1233
|
},
|
|
1234
|
+
],
|
|
1235
|
+
stateMutability: 'nonpayable',
|
|
1236
|
+
type: 'function',
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
inputs: [
|
|
1269
1240
|
{
|
|
1270
|
-
name: '',
|
|
1241
|
+
name: '_legoId',
|
|
1271
1242
|
type: 'uint256',
|
|
1272
1243
|
},
|
|
1244
|
+
{
|
|
1245
|
+
name: '_borrowAsset',
|
|
1246
|
+
type: 'address',
|
|
1247
|
+
},
|
|
1248
|
+
],
|
|
1249
|
+
name: 'borrow',
|
|
1250
|
+
outputs: [
|
|
1273
1251
|
{
|
|
1274
1252
|
name: '',
|
|
1275
1253
|
type: 'uint256',
|
|
@@ -1284,40 +1262,53 @@ export const abi = [
|
|
|
1284
1262
|
},
|
|
1285
1263
|
{
|
|
1286
1264
|
inputs: [
|
|
1287
|
-
{
|
|
1288
|
-
name: '_userWallet',
|
|
1289
|
-
type: 'address',
|
|
1290
|
-
},
|
|
1291
1265
|
{
|
|
1292
1266
|
name: '_legoId',
|
|
1293
1267
|
type: 'uint256',
|
|
1294
1268
|
},
|
|
1295
1269
|
{
|
|
1296
|
-
name: '
|
|
1270
|
+
name: '_borrowAsset',
|
|
1297
1271
|
type: 'address',
|
|
1298
1272
|
},
|
|
1299
1273
|
{
|
|
1300
|
-
name: '
|
|
1274
|
+
name: '_amount',
|
|
1301
1275
|
type: 'uint256',
|
|
1302
1276
|
},
|
|
1277
|
+
],
|
|
1278
|
+
name: 'borrow',
|
|
1279
|
+
outputs: [
|
|
1303
1280
|
{
|
|
1304
|
-
name: '
|
|
1305
|
-
type: '
|
|
1281
|
+
name: '',
|
|
1282
|
+
type: 'uint256',
|
|
1306
1283
|
},
|
|
1307
1284
|
{
|
|
1308
|
-
name: '
|
|
1309
|
-
type: '
|
|
1285
|
+
name: '',
|
|
1286
|
+
type: 'uint256',
|
|
1287
|
+
},
|
|
1288
|
+
],
|
|
1289
|
+
stateMutability: 'nonpayable',
|
|
1290
|
+
type: 'function',
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
inputs: [
|
|
1294
|
+
{
|
|
1295
|
+
name: '_legoId',
|
|
1296
|
+
type: 'uint256',
|
|
1310
1297
|
},
|
|
1311
1298
|
{
|
|
1312
|
-
name: '
|
|
1299
|
+
name: '_borrowAsset',
|
|
1313
1300
|
type: 'address',
|
|
1314
1301
|
},
|
|
1315
1302
|
{
|
|
1316
|
-
name: '
|
|
1303
|
+
name: '_amount',
|
|
1317
1304
|
type: 'uint256',
|
|
1318
1305
|
},
|
|
1306
|
+
{
|
|
1307
|
+
name: '_extraData',
|
|
1308
|
+
type: 'bytes32',
|
|
1309
|
+
},
|
|
1319
1310
|
],
|
|
1320
|
-
name: '
|
|
1311
|
+
name: 'borrow',
|
|
1321
1312
|
outputs: [
|
|
1322
1313
|
{
|
|
1323
1314
|
name: '',
|
|
@@ -1327,10 +1318,23 @@ export const abi = [
|
|
|
1327
1318
|
name: '',
|
|
1328
1319
|
type: 'uint256',
|
|
1329
1320
|
},
|
|
1321
|
+
],
|
|
1322
|
+
stateMutability: 'nonpayable',
|
|
1323
|
+
type: 'function',
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
inputs: [
|
|
1330
1327
|
{
|
|
1331
|
-
name: '',
|
|
1328
|
+
name: '_legoId',
|
|
1332
1329
|
type: 'uint256',
|
|
1333
1330
|
},
|
|
1331
|
+
{
|
|
1332
|
+
name: '_paymentAsset',
|
|
1333
|
+
type: 'address',
|
|
1334
|
+
},
|
|
1335
|
+
],
|
|
1336
|
+
name: 'repayDebt',
|
|
1337
|
+
outputs: [
|
|
1334
1338
|
{
|
|
1335
1339
|
name: '',
|
|
1336
1340
|
type: 'uint256',
|
|
@@ -1345,44 +1349,53 @@ export const abi = [
|
|
|
1345
1349
|
},
|
|
1346
1350
|
{
|
|
1347
1351
|
inputs: [
|
|
1348
|
-
{
|
|
1349
|
-
name: '_userWallet',
|
|
1350
|
-
type: 'address',
|
|
1351
|
-
},
|
|
1352
1352
|
{
|
|
1353
1353
|
name: '_legoId',
|
|
1354
1354
|
type: 'uint256',
|
|
1355
1355
|
},
|
|
1356
1356
|
{
|
|
1357
|
-
name: '
|
|
1357
|
+
name: '_paymentAsset',
|
|
1358
1358
|
type: 'address',
|
|
1359
1359
|
},
|
|
1360
1360
|
{
|
|
1361
|
-
name: '
|
|
1361
|
+
name: '_paymentAmount',
|
|
1362
1362
|
type: 'uint256',
|
|
1363
1363
|
},
|
|
1364
|
+
],
|
|
1365
|
+
name: 'repayDebt',
|
|
1366
|
+
outputs: [
|
|
1364
1367
|
{
|
|
1365
|
-
name: '
|
|
1366
|
-
type: '
|
|
1368
|
+
name: '',
|
|
1369
|
+
type: 'uint256',
|
|
1367
1370
|
},
|
|
1368
1371
|
{
|
|
1369
|
-
name: '
|
|
1370
|
-
type: '
|
|
1372
|
+
name: '',
|
|
1373
|
+
type: 'uint256',
|
|
1371
1374
|
},
|
|
1375
|
+
],
|
|
1376
|
+
stateMutability: 'nonpayable',
|
|
1377
|
+
type: 'function',
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
inputs: [
|
|
1372
1381
|
{
|
|
1373
|
-
name: '
|
|
1382
|
+
name: '_legoId',
|
|
1383
|
+
type: 'uint256',
|
|
1384
|
+
},
|
|
1385
|
+
{
|
|
1386
|
+
name: '_paymentAsset',
|
|
1374
1387
|
type: 'address',
|
|
1375
1388
|
},
|
|
1376
1389
|
{
|
|
1377
|
-
name: '
|
|
1390
|
+
name: '_paymentAmount',
|
|
1378
1391
|
type: 'uint256',
|
|
1379
1392
|
},
|
|
1380
1393
|
{
|
|
1381
|
-
name: '
|
|
1382
|
-
type: '
|
|
1394
|
+
name: '_extraData',
|
|
1395
|
+
type: 'bytes32',
|
|
1383
1396
|
},
|
|
1384
1397
|
],
|
|
1385
|
-
name: '
|
|
1398
|
+
name: 'repayDebt',
|
|
1386
1399
|
outputs: [
|
|
1387
1400
|
{
|
|
1388
1401
|
name: '',
|
|
@@ -1392,10 +1405,19 @@ export const abi = [
|
|
|
1392
1405
|
name: '',
|
|
1393
1406
|
type: 'uint256',
|
|
1394
1407
|
},
|
|
1408
|
+
],
|
|
1409
|
+
stateMutability: 'nonpayable',
|
|
1410
|
+
type: 'function',
|
|
1411
|
+
},
|
|
1412
|
+
{
|
|
1413
|
+
inputs: [
|
|
1395
1414
|
{
|
|
1396
|
-
name: '',
|
|
1415
|
+
name: '_legoId',
|
|
1397
1416
|
type: 'uint256',
|
|
1398
1417
|
},
|
|
1418
|
+
],
|
|
1419
|
+
name: 'claimIncentives',
|
|
1420
|
+
outputs: [
|
|
1399
1421
|
{
|
|
1400
1422
|
name: '',
|
|
1401
1423
|
type: 'uint256',
|
|
@@ -1411,47 +1433,93 @@ export const abi = [
|
|
|
1411
1433
|
{
|
|
1412
1434
|
inputs: [
|
|
1413
1435
|
{
|
|
1414
|
-
name: '
|
|
1436
|
+
name: '_legoId',
|
|
1437
|
+
type: 'uint256',
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
name: '_rewardToken',
|
|
1415
1441
|
type: 'address',
|
|
1416
1442
|
},
|
|
1443
|
+
],
|
|
1444
|
+
name: 'claimIncentives',
|
|
1445
|
+
outputs: [
|
|
1446
|
+
{
|
|
1447
|
+
name: '',
|
|
1448
|
+
type: 'uint256',
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
name: '',
|
|
1452
|
+
type: 'uint256',
|
|
1453
|
+
},
|
|
1454
|
+
],
|
|
1455
|
+
stateMutability: 'nonpayable',
|
|
1456
|
+
type: 'function',
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
inputs: [
|
|
1417
1460
|
{
|
|
1418
1461
|
name: '_legoId',
|
|
1419
1462
|
type: 'uint256',
|
|
1420
1463
|
},
|
|
1421
1464
|
{
|
|
1422
|
-
name: '
|
|
1465
|
+
name: '_rewardToken',
|
|
1423
1466
|
type: 'address',
|
|
1424
1467
|
},
|
|
1425
1468
|
{
|
|
1426
|
-
name: '
|
|
1469
|
+
name: '_rewardAmount',
|
|
1470
|
+
type: 'uint256',
|
|
1471
|
+
},
|
|
1472
|
+
],
|
|
1473
|
+
name: 'claimIncentives',
|
|
1474
|
+
outputs: [
|
|
1475
|
+
{
|
|
1476
|
+
name: '',
|
|
1427
1477
|
type: 'uint256',
|
|
1428
1478
|
},
|
|
1429
1479
|
{
|
|
1430
|
-
name: '
|
|
1431
|
-
type: '
|
|
1480
|
+
name: '',
|
|
1481
|
+
type: 'uint256',
|
|
1432
1482
|
},
|
|
1483
|
+
],
|
|
1484
|
+
stateMutability: 'nonpayable',
|
|
1485
|
+
type: 'function',
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
inputs: [
|
|
1433
1489
|
{
|
|
1434
|
-
name: '
|
|
1435
|
-
type: '
|
|
1490
|
+
name: '_legoId',
|
|
1491
|
+
type: 'uint256',
|
|
1436
1492
|
},
|
|
1437
1493
|
{
|
|
1438
|
-
name: '
|
|
1494
|
+
name: '_rewardToken',
|
|
1439
1495
|
type: 'address',
|
|
1440
1496
|
},
|
|
1441
1497
|
{
|
|
1442
|
-
name: '
|
|
1498
|
+
name: '_rewardAmount',
|
|
1443
1499
|
type: 'uint256',
|
|
1444
1500
|
},
|
|
1445
1501
|
{
|
|
1446
|
-
name: '
|
|
1502
|
+
name: '_proofs',
|
|
1503
|
+
type: 'bytes32[]',
|
|
1504
|
+
},
|
|
1505
|
+
],
|
|
1506
|
+
name: 'claimIncentives',
|
|
1507
|
+
outputs: [
|
|
1508
|
+
{
|
|
1509
|
+
name: '',
|
|
1447
1510
|
type: 'uint256',
|
|
1448
1511
|
},
|
|
1449
1512
|
{
|
|
1450
|
-
name: '
|
|
1451
|
-
type: '
|
|
1513
|
+
name: '',
|
|
1514
|
+
type: 'uint256',
|
|
1452
1515
|
},
|
|
1453
1516
|
],
|
|
1454
|
-
|
|
1517
|
+
stateMutability: 'nonpayable',
|
|
1518
|
+
type: 'function',
|
|
1519
|
+
},
|
|
1520
|
+
{
|
|
1521
|
+
inputs: [],
|
|
1522
|
+
name: 'convertWethToEth',
|
|
1455
1523
|
outputs: [
|
|
1456
1524
|
{
|
|
1457
1525
|
name: '',
|
|
@@ -1461,10 +1529,19 @@ export const abi = [
|
|
|
1461
1529
|
name: '',
|
|
1462
1530
|
type: 'uint256',
|
|
1463
1531
|
},
|
|
1532
|
+
],
|
|
1533
|
+
stateMutability: 'nonpayable',
|
|
1534
|
+
type: 'function',
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
inputs: [
|
|
1464
1538
|
{
|
|
1465
|
-
name: '',
|
|
1539
|
+
name: '_amount',
|
|
1466
1540
|
type: 'uint256',
|
|
1467
1541
|
},
|
|
1542
|
+
],
|
|
1543
|
+
name: 'convertWethToEth',
|
|
1544
|
+
outputs: [
|
|
1468
1545
|
{
|
|
1469
1546
|
name: '',
|
|
1470
1547
|
type: 'uint256',
|
|
@@ -1477,22 +1554,47 @@ export const abi = [
|
|
|
1477
1554
|
stateMutability: 'nonpayable',
|
|
1478
1555
|
type: 'function',
|
|
1479
1556
|
},
|
|
1557
|
+
{
|
|
1558
|
+
inputs: [],
|
|
1559
|
+
name: 'convertEthToWeth',
|
|
1560
|
+
outputs: [
|
|
1561
|
+
{
|
|
1562
|
+
name: '',
|
|
1563
|
+
type: 'uint256',
|
|
1564
|
+
},
|
|
1565
|
+
{
|
|
1566
|
+
name: '',
|
|
1567
|
+
type: 'uint256',
|
|
1568
|
+
},
|
|
1569
|
+
],
|
|
1570
|
+
stateMutability: 'payable',
|
|
1571
|
+
type: 'function',
|
|
1572
|
+
},
|
|
1480
1573
|
{
|
|
1481
1574
|
inputs: [
|
|
1482
1575
|
{
|
|
1483
|
-
name: '
|
|
1484
|
-
type: '
|
|
1576
|
+
name: '_amount',
|
|
1577
|
+
type: 'uint256',
|
|
1485
1578
|
},
|
|
1579
|
+
],
|
|
1580
|
+
name: 'convertEthToWeth',
|
|
1581
|
+
outputs: [
|
|
1486
1582
|
{
|
|
1487
|
-
name: '
|
|
1583
|
+
name: '',
|
|
1488
1584
|
type: 'uint256',
|
|
1489
1585
|
},
|
|
1490
1586
|
{
|
|
1491
|
-
name: '
|
|
1492
|
-
type: '
|
|
1587
|
+
name: '',
|
|
1588
|
+
type: 'uint256',
|
|
1493
1589
|
},
|
|
1590
|
+
],
|
|
1591
|
+
stateMutability: 'payable',
|
|
1592
|
+
type: 'function',
|
|
1593
|
+
},
|
|
1594
|
+
{
|
|
1595
|
+
inputs: [
|
|
1494
1596
|
{
|
|
1495
|
-
name: '
|
|
1597
|
+
name: '_legoId',
|
|
1496
1598
|
type: 'uint256',
|
|
1497
1599
|
},
|
|
1498
1600
|
{
|
|
@@ -1507,29 +1609,54 @@ export const abi = [
|
|
|
1507
1609
|
name: '_tokenB',
|
|
1508
1610
|
type: 'address',
|
|
1509
1611
|
},
|
|
1612
|
+
],
|
|
1613
|
+
name: 'addLiquidity',
|
|
1614
|
+
outputs: [
|
|
1510
1615
|
{
|
|
1511
|
-
name: '
|
|
1616
|
+
name: '',
|
|
1512
1617
|
type: 'uint256',
|
|
1513
1618
|
},
|
|
1514
1619
|
{
|
|
1515
|
-
name: '
|
|
1620
|
+
name: '',
|
|
1516
1621
|
type: 'uint256',
|
|
1517
1622
|
},
|
|
1518
1623
|
{
|
|
1519
|
-
name: '
|
|
1520
|
-
type: '
|
|
1624
|
+
name: '',
|
|
1625
|
+
type: 'uint256',
|
|
1521
1626
|
},
|
|
1522
1627
|
{
|
|
1523
|
-
name: '
|
|
1524
|
-
type: '
|
|
1628
|
+
name: '',
|
|
1629
|
+
type: 'uint256',
|
|
1525
1630
|
},
|
|
1526
1631
|
],
|
|
1527
|
-
|
|
1528
|
-
|
|
1632
|
+
stateMutability: 'nonpayable',
|
|
1633
|
+
type: 'function',
|
|
1634
|
+
},
|
|
1635
|
+
{
|
|
1636
|
+
inputs: [
|
|
1529
1637
|
{
|
|
1530
|
-
name: '',
|
|
1638
|
+
name: '_legoId',
|
|
1639
|
+
type: 'uint256',
|
|
1640
|
+
},
|
|
1641
|
+
{
|
|
1642
|
+
name: '_pool',
|
|
1643
|
+
type: 'address',
|
|
1644
|
+
},
|
|
1645
|
+
{
|
|
1646
|
+
name: '_tokenA',
|
|
1647
|
+
type: 'address',
|
|
1648
|
+
},
|
|
1649
|
+
{
|
|
1650
|
+
name: '_tokenB',
|
|
1651
|
+
type: 'address',
|
|
1652
|
+
},
|
|
1653
|
+
{
|
|
1654
|
+
name: '_amountA',
|
|
1531
1655
|
type: 'uint256',
|
|
1532
1656
|
},
|
|
1657
|
+
],
|
|
1658
|
+
name: 'addLiquidity',
|
|
1659
|
+
outputs: [
|
|
1533
1660
|
{
|
|
1534
1661
|
name: '',
|
|
1535
1662
|
type: 'uint256',
|
|
@@ -1552,22 +1679,10 @@ export const abi = [
|
|
|
1552
1679
|
},
|
|
1553
1680
|
{
|
|
1554
1681
|
inputs: [
|
|
1555
|
-
{
|
|
1556
|
-
name: '_userWallet',
|
|
1557
|
-
type: 'address',
|
|
1558
|
-
},
|
|
1559
1682
|
{
|
|
1560
1683
|
name: '_legoId',
|
|
1561
1684
|
type: 'uint256',
|
|
1562
1685
|
},
|
|
1563
|
-
{
|
|
1564
|
-
name: '_nftAddr',
|
|
1565
|
-
type: 'address',
|
|
1566
|
-
},
|
|
1567
|
-
{
|
|
1568
|
-
name: '_nftTokenId',
|
|
1569
|
-
type: 'uint256',
|
|
1570
|
-
},
|
|
1571
1686
|
{
|
|
1572
1687
|
name: '_pool',
|
|
1573
1688
|
type: 'address',
|
|
@@ -1588,18 +1703,6 @@ export const abi = [
|
|
|
1588
1703
|
name: '_amountB',
|
|
1589
1704
|
type: 'uint256',
|
|
1590
1705
|
},
|
|
1591
|
-
{
|
|
1592
|
-
name: '_tickLower',
|
|
1593
|
-
type: 'int24',
|
|
1594
|
-
},
|
|
1595
|
-
{
|
|
1596
|
-
name: '_tickUpper',
|
|
1597
|
-
type: 'int24',
|
|
1598
|
-
},
|
|
1599
|
-
{
|
|
1600
|
-
name: '_minAmountA',
|
|
1601
|
-
type: 'uint256',
|
|
1602
|
-
},
|
|
1603
1706
|
],
|
|
1604
1707
|
name: 'addLiquidity',
|
|
1605
1708
|
outputs: [
|
|
@@ -1619,32 +1722,16 @@ export const abi = [
|
|
|
1619
1722
|
name: '',
|
|
1620
1723
|
type: 'uint256',
|
|
1621
1724
|
},
|
|
1622
|
-
{
|
|
1623
|
-
name: '',
|
|
1624
|
-
type: 'uint256',
|
|
1625
|
-
},
|
|
1626
1725
|
],
|
|
1627
1726
|
stateMutability: 'nonpayable',
|
|
1628
1727
|
type: 'function',
|
|
1629
1728
|
},
|
|
1630
1729
|
{
|
|
1631
1730
|
inputs: [
|
|
1632
|
-
{
|
|
1633
|
-
name: '_userWallet',
|
|
1634
|
-
type: 'address',
|
|
1635
|
-
},
|
|
1636
1731
|
{
|
|
1637
1732
|
name: '_legoId',
|
|
1638
1733
|
type: 'uint256',
|
|
1639
1734
|
},
|
|
1640
|
-
{
|
|
1641
|
-
name: '_nftAddr',
|
|
1642
|
-
type: 'address',
|
|
1643
|
-
},
|
|
1644
|
-
{
|
|
1645
|
-
name: '_nftTokenId',
|
|
1646
|
-
type: 'uint256',
|
|
1647
|
-
},
|
|
1648
1735
|
{
|
|
1649
1736
|
name: '_pool',
|
|
1650
1737
|
type: 'address',
|
|
@@ -1665,22 +1752,10 @@ export const abi = [
|
|
|
1665
1752
|
name: '_amountB',
|
|
1666
1753
|
type: 'uint256',
|
|
1667
1754
|
},
|
|
1668
|
-
{
|
|
1669
|
-
name: '_tickLower',
|
|
1670
|
-
type: 'int24',
|
|
1671
|
-
},
|
|
1672
|
-
{
|
|
1673
|
-
name: '_tickUpper',
|
|
1674
|
-
type: 'int24',
|
|
1675
|
-
},
|
|
1676
1755
|
{
|
|
1677
1756
|
name: '_minAmountA',
|
|
1678
1757
|
type: 'uint256',
|
|
1679
1758
|
},
|
|
1680
|
-
{
|
|
1681
|
-
name: '_minAmountB',
|
|
1682
|
-
type: 'uint256',
|
|
1683
|
-
},
|
|
1684
1759
|
],
|
|
1685
1760
|
name: 'addLiquidity',
|
|
1686
1761
|
outputs: [
|
|
@@ -1700,32 +1775,16 @@ export const abi = [
|
|
|
1700
1775
|
name: '',
|
|
1701
1776
|
type: 'uint256',
|
|
1702
1777
|
},
|
|
1703
|
-
{
|
|
1704
|
-
name: '',
|
|
1705
|
-
type: 'uint256',
|
|
1706
|
-
},
|
|
1707
1778
|
],
|
|
1708
1779
|
stateMutability: 'nonpayable',
|
|
1709
1780
|
type: 'function',
|
|
1710
1781
|
},
|
|
1711
1782
|
{
|
|
1712
1783
|
inputs: [
|
|
1713
|
-
{
|
|
1714
|
-
name: '_userWallet',
|
|
1715
|
-
type: 'address',
|
|
1716
|
-
},
|
|
1717
1784
|
{
|
|
1718
1785
|
name: '_legoId',
|
|
1719
1786
|
type: 'uint256',
|
|
1720
1787
|
},
|
|
1721
|
-
{
|
|
1722
|
-
name: '_nftAddr',
|
|
1723
|
-
type: 'address',
|
|
1724
|
-
},
|
|
1725
|
-
{
|
|
1726
|
-
name: '_nftTokenId',
|
|
1727
|
-
type: 'uint256',
|
|
1728
|
-
},
|
|
1729
1788
|
{
|
|
1730
1789
|
name: '_pool',
|
|
1731
1790
|
type: 'address',
|
|
@@ -1747,12 +1806,61 @@ export const abi = [
|
|
|
1747
1806
|
type: 'uint256',
|
|
1748
1807
|
},
|
|
1749
1808
|
{
|
|
1750
|
-
name: '
|
|
1751
|
-
type: '
|
|
1809
|
+
name: '_minAmountA',
|
|
1810
|
+
type: 'uint256',
|
|
1752
1811
|
},
|
|
1753
1812
|
{
|
|
1754
|
-
name: '
|
|
1755
|
-
type: '
|
|
1813
|
+
name: '_minAmountB',
|
|
1814
|
+
type: 'uint256',
|
|
1815
|
+
},
|
|
1816
|
+
],
|
|
1817
|
+
name: 'addLiquidity',
|
|
1818
|
+
outputs: [
|
|
1819
|
+
{
|
|
1820
|
+
name: '',
|
|
1821
|
+
type: 'uint256',
|
|
1822
|
+
},
|
|
1823
|
+
{
|
|
1824
|
+
name: '',
|
|
1825
|
+
type: 'uint256',
|
|
1826
|
+
},
|
|
1827
|
+
{
|
|
1828
|
+
name: '',
|
|
1829
|
+
type: 'uint256',
|
|
1830
|
+
},
|
|
1831
|
+
{
|
|
1832
|
+
name: '',
|
|
1833
|
+
type: 'uint256',
|
|
1834
|
+
},
|
|
1835
|
+
],
|
|
1836
|
+
stateMutability: 'nonpayable',
|
|
1837
|
+
type: 'function',
|
|
1838
|
+
},
|
|
1839
|
+
{
|
|
1840
|
+
inputs: [
|
|
1841
|
+
{
|
|
1842
|
+
name: '_legoId',
|
|
1843
|
+
type: 'uint256',
|
|
1844
|
+
},
|
|
1845
|
+
{
|
|
1846
|
+
name: '_pool',
|
|
1847
|
+
type: 'address',
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
name: '_tokenA',
|
|
1851
|
+
type: 'address',
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
name: '_tokenB',
|
|
1855
|
+
type: 'address',
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
name: '_amountA',
|
|
1859
|
+
type: 'uint256',
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
name: '_amountB',
|
|
1863
|
+
type: 'uint256',
|
|
1756
1864
|
},
|
|
1757
1865
|
{
|
|
1758
1866
|
name: '_minAmountA',
|
|
@@ -1785,32 +1893,16 @@ export const abi = [
|
|
|
1785
1893
|
name: '',
|
|
1786
1894
|
type: 'uint256',
|
|
1787
1895
|
},
|
|
1788
|
-
{
|
|
1789
|
-
name: '',
|
|
1790
|
-
type: 'uint256',
|
|
1791
|
-
},
|
|
1792
1896
|
],
|
|
1793
1897
|
stateMutability: 'nonpayable',
|
|
1794
1898
|
type: 'function',
|
|
1795
1899
|
},
|
|
1796
1900
|
{
|
|
1797
1901
|
inputs: [
|
|
1798
|
-
{
|
|
1799
|
-
name: '_userWallet',
|
|
1800
|
-
type: 'address',
|
|
1801
|
-
},
|
|
1802
1902
|
{
|
|
1803
1903
|
name: '_legoId',
|
|
1804
1904
|
type: 'uint256',
|
|
1805
1905
|
},
|
|
1806
|
-
{
|
|
1807
|
-
name: '_nftAddr',
|
|
1808
|
-
type: 'address',
|
|
1809
|
-
},
|
|
1810
|
-
{
|
|
1811
|
-
name: '_nftTokenId',
|
|
1812
|
-
type: 'uint256',
|
|
1813
|
-
},
|
|
1814
1906
|
{
|
|
1815
1907
|
name: '_pool',
|
|
1816
1908
|
type: 'address',
|
|
@@ -1831,14 +1923,6 @@ export const abi = [
|
|
|
1831
1923
|
name: '_amountB',
|
|
1832
1924
|
type: 'uint256',
|
|
1833
1925
|
},
|
|
1834
|
-
{
|
|
1835
|
-
name: '_tickLower',
|
|
1836
|
-
type: 'int24',
|
|
1837
|
-
},
|
|
1838
|
-
{
|
|
1839
|
-
name: '_tickUpper',
|
|
1840
|
-
type: 'int24',
|
|
1841
|
-
},
|
|
1842
1926
|
{
|
|
1843
1927
|
name: '_minAmountA',
|
|
1844
1928
|
type: 'uint256',
|
|
@@ -1852,22 +1936,8 @@ export const abi = [
|
|
|
1852
1936
|
type: 'uint256',
|
|
1853
1937
|
},
|
|
1854
1938
|
{
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
name: 'signature',
|
|
1858
|
-
type: 'bytes',
|
|
1859
|
-
},
|
|
1860
|
-
{
|
|
1861
|
-
name: 'signer',
|
|
1862
|
-
type: 'address',
|
|
1863
|
-
},
|
|
1864
|
-
{
|
|
1865
|
-
name: 'expiration',
|
|
1866
|
-
type: 'uint256',
|
|
1867
|
-
},
|
|
1868
|
-
],
|
|
1869
|
-
name: '_sig',
|
|
1870
|
-
type: 'tuple',
|
|
1939
|
+
name: '_extraData',
|
|
1940
|
+
type: 'bytes32',
|
|
1871
1941
|
},
|
|
1872
1942
|
],
|
|
1873
1943
|
name: 'addLiquidity',
|
|
@@ -1888,32 +1958,16 @@ export const abi = [
|
|
|
1888
1958
|
name: '',
|
|
1889
1959
|
type: 'uint256',
|
|
1890
1960
|
},
|
|
1891
|
-
{
|
|
1892
|
-
name: '',
|
|
1893
|
-
type: 'uint256',
|
|
1894
|
-
},
|
|
1895
1961
|
],
|
|
1896
1962
|
stateMutability: 'nonpayable',
|
|
1897
1963
|
type: 'function',
|
|
1898
1964
|
},
|
|
1899
1965
|
{
|
|
1900
1966
|
inputs: [
|
|
1901
|
-
{
|
|
1902
|
-
name: '_userWallet',
|
|
1903
|
-
type: 'address',
|
|
1904
|
-
},
|
|
1905
1967
|
{
|
|
1906
1968
|
name: '_legoId',
|
|
1907
1969
|
type: 'uint256',
|
|
1908
1970
|
},
|
|
1909
|
-
{
|
|
1910
|
-
name: '_nftAddr',
|
|
1911
|
-
type: 'address',
|
|
1912
|
-
},
|
|
1913
|
-
{
|
|
1914
|
-
name: '_nftTokenId',
|
|
1915
|
-
type: 'uint256',
|
|
1916
|
-
},
|
|
1917
1971
|
{
|
|
1918
1972
|
name: '_pool',
|
|
1919
1973
|
type: 'address',
|
|
@@ -1926,6 +1980,10 @@ export const abi = [
|
|
|
1926
1980
|
name: '_tokenB',
|
|
1927
1981
|
type: 'address',
|
|
1928
1982
|
},
|
|
1983
|
+
{
|
|
1984
|
+
name: '_lpToken',
|
|
1985
|
+
type: 'address',
|
|
1986
|
+
},
|
|
1929
1987
|
],
|
|
1930
1988
|
name: 'removeLiquidity',
|
|
1931
1989
|
outputs: [
|
|
@@ -1943,7 +2001,7 @@ export const abi = [
|
|
|
1943
2001
|
},
|
|
1944
2002
|
{
|
|
1945
2003
|
name: '',
|
|
1946
|
-
type: '
|
|
2004
|
+
type: 'uint256',
|
|
1947
2005
|
},
|
|
1948
2006
|
],
|
|
1949
2007
|
stateMutability: 'nonpayable',
|
|
@@ -1951,22 +2009,10 @@ export const abi = [
|
|
|
1951
2009
|
},
|
|
1952
2010
|
{
|
|
1953
2011
|
inputs: [
|
|
1954
|
-
{
|
|
1955
|
-
name: '_userWallet',
|
|
1956
|
-
type: 'address',
|
|
1957
|
-
},
|
|
1958
2012
|
{
|
|
1959
2013
|
name: '_legoId',
|
|
1960
2014
|
type: 'uint256',
|
|
1961
2015
|
},
|
|
1962
|
-
{
|
|
1963
|
-
name: '_nftAddr',
|
|
1964
|
-
type: 'address',
|
|
1965
|
-
},
|
|
1966
|
-
{
|
|
1967
|
-
name: '_nftTokenId',
|
|
1968
|
-
type: 'uint256',
|
|
1969
|
-
},
|
|
1970
2016
|
{
|
|
1971
2017
|
name: '_pool',
|
|
1972
2018
|
type: 'address',
|
|
@@ -1980,7 +2026,11 @@ export const abi = [
|
|
|
1980
2026
|
type: 'address',
|
|
1981
2027
|
},
|
|
1982
2028
|
{
|
|
1983
|
-
name: '
|
|
2029
|
+
name: '_lpToken',
|
|
2030
|
+
type: 'address',
|
|
2031
|
+
},
|
|
2032
|
+
{
|
|
2033
|
+
name: '_lpAmount',
|
|
1984
2034
|
type: 'uint256',
|
|
1985
2035
|
},
|
|
1986
2036
|
],
|
|
@@ -2000,7 +2050,7 @@ export const abi = [
|
|
|
2000
2050
|
},
|
|
2001
2051
|
{
|
|
2002
2052
|
name: '',
|
|
2003
|
-
type: '
|
|
2053
|
+
type: 'uint256',
|
|
2004
2054
|
},
|
|
2005
2055
|
],
|
|
2006
2056
|
stateMutability: 'nonpayable',
|
|
@@ -2008,22 +2058,10 @@ export const abi = [
|
|
|
2008
2058
|
},
|
|
2009
2059
|
{
|
|
2010
2060
|
inputs: [
|
|
2011
|
-
{
|
|
2012
|
-
name: '_userWallet',
|
|
2013
|
-
type: 'address',
|
|
2014
|
-
},
|
|
2015
2061
|
{
|
|
2016
2062
|
name: '_legoId',
|
|
2017
2063
|
type: 'uint256',
|
|
2018
2064
|
},
|
|
2019
|
-
{
|
|
2020
|
-
name: '_nftAddr',
|
|
2021
|
-
type: 'address',
|
|
2022
|
-
},
|
|
2023
|
-
{
|
|
2024
|
-
name: '_nftTokenId',
|
|
2025
|
-
type: 'uint256',
|
|
2026
|
-
},
|
|
2027
2065
|
{
|
|
2028
2066
|
name: '_pool',
|
|
2029
2067
|
type: 'address',
|
|
@@ -2037,7 +2075,11 @@ export const abi = [
|
|
|
2037
2075
|
type: 'address',
|
|
2038
2076
|
},
|
|
2039
2077
|
{
|
|
2040
|
-
name: '
|
|
2078
|
+
name: '_lpToken',
|
|
2079
|
+
type: 'address',
|
|
2080
|
+
},
|
|
2081
|
+
{
|
|
2082
|
+
name: '_lpAmount',
|
|
2041
2083
|
type: 'uint256',
|
|
2042
2084
|
},
|
|
2043
2085
|
{
|
|
@@ -2061,7 +2103,7 @@ export const abi = [
|
|
|
2061
2103
|
},
|
|
2062
2104
|
{
|
|
2063
2105
|
name: '',
|
|
2064
|
-
type: '
|
|
2106
|
+
type: 'uint256',
|
|
2065
2107
|
},
|
|
2066
2108
|
],
|
|
2067
2109
|
stateMutability: 'nonpayable',
|
|
@@ -2069,22 +2111,10 @@ export const abi = [
|
|
|
2069
2111
|
},
|
|
2070
2112
|
{
|
|
2071
2113
|
inputs: [
|
|
2072
|
-
{
|
|
2073
|
-
name: '_userWallet',
|
|
2074
|
-
type: 'address',
|
|
2075
|
-
},
|
|
2076
2114
|
{
|
|
2077
2115
|
name: '_legoId',
|
|
2078
2116
|
type: 'uint256',
|
|
2079
2117
|
},
|
|
2080
|
-
{
|
|
2081
|
-
name: '_nftAddr',
|
|
2082
|
-
type: 'address',
|
|
2083
|
-
},
|
|
2084
|
-
{
|
|
2085
|
-
name: '_nftTokenId',
|
|
2086
|
-
type: 'uint256',
|
|
2087
|
-
},
|
|
2088
2118
|
{
|
|
2089
2119
|
name: '_pool',
|
|
2090
2120
|
type: 'address',
|
|
@@ -2098,7 +2128,11 @@ export const abi = [
|
|
|
2098
2128
|
type: 'address',
|
|
2099
2129
|
},
|
|
2100
2130
|
{
|
|
2101
|
-
name: '
|
|
2131
|
+
name: '_lpToken',
|
|
2132
|
+
type: 'address',
|
|
2133
|
+
},
|
|
2134
|
+
{
|
|
2135
|
+
name: '_lpAmount',
|
|
2102
2136
|
type: 'uint256',
|
|
2103
2137
|
},
|
|
2104
2138
|
{
|
|
@@ -2126,7 +2160,7 @@ export const abi = [
|
|
|
2126
2160
|
},
|
|
2127
2161
|
{
|
|
2128
2162
|
name: '',
|
|
2129
|
-
type: '
|
|
2163
|
+
type: 'uint256',
|
|
2130
2164
|
},
|
|
2131
2165
|
],
|
|
2132
2166
|
stateMutability: 'nonpayable',
|
|
@@ -2134,22 +2168,10 @@ export const abi = [
|
|
|
2134
2168
|
},
|
|
2135
2169
|
{
|
|
2136
2170
|
inputs: [
|
|
2137
|
-
{
|
|
2138
|
-
name: '_userWallet',
|
|
2139
|
-
type: 'address',
|
|
2140
|
-
},
|
|
2141
2171
|
{
|
|
2142
2172
|
name: '_legoId',
|
|
2143
2173
|
type: 'uint256',
|
|
2144
2174
|
},
|
|
2145
|
-
{
|
|
2146
|
-
name: '_nftAddr',
|
|
2147
|
-
type: 'address',
|
|
2148
|
-
},
|
|
2149
|
-
{
|
|
2150
|
-
name: '_nftTokenId',
|
|
2151
|
-
type: 'uint256',
|
|
2152
|
-
},
|
|
2153
2175
|
{
|
|
2154
2176
|
name: '_pool',
|
|
2155
2177
|
type: 'address',
|
|
@@ -2163,7 +2185,11 @@ export const abi = [
|
|
|
2163
2185
|
type: 'address',
|
|
2164
2186
|
},
|
|
2165
2187
|
{
|
|
2166
|
-
name: '
|
|
2188
|
+
name: '_lpToken',
|
|
2189
|
+
type: 'address',
|
|
2190
|
+
},
|
|
2191
|
+
{
|
|
2192
|
+
name: '_lpAmount',
|
|
2167
2193
|
type: 'uint256',
|
|
2168
2194
|
},
|
|
2169
2195
|
{
|
|
@@ -2175,22 +2201,8 @@ export const abi = [
|
|
|
2175
2201
|
type: 'uint256',
|
|
2176
2202
|
},
|
|
2177
2203
|
{
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
name: 'signature',
|
|
2181
|
-
type: 'bytes',
|
|
2182
|
-
},
|
|
2183
|
-
{
|
|
2184
|
-
name: 'signer',
|
|
2185
|
-
type: 'address',
|
|
2186
|
-
},
|
|
2187
|
-
{
|
|
2188
|
-
name: 'expiration',
|
|
2189
|
-
type: 'uint256',
|
|
2190
|
-
},
|
|
2191
|
-
],
|
|
2192
|
-
name: '_sig',
|
|
2193
|
-
type: 'tuple',
|
|
2204
|
+
name: '_extraData',
|
|
2205
|
+
type: 'bytes32',
|
|
2194
2206
|
},
|
|
2195
2207
|
],
|
|
2196
2208
|
name: 'removeLiquidity',
|
|
@@ -2209,7 +2221,7 @@ export const abi = [
|
|
|
2209
2221
|
},
|
|
2210
2222
|
{
|
|
2211
2223
|
name: '',
|
|
2212
|
-
type: '
|
|
2224
|
+
type: 'uint256',
|
|
2213
2225
|
},
|
|
2214
2226
|
],
|
|
2215
2227
|
stateMutability: 'nonpayable',
|
|
@@ -2218,44 +2230,31 @@ export const abi = [
|
|
|
2218
2230
|
{
|
|
2219
2231
|
inputs: [
|
|
2220
2232
|
{
|
|
2221
|
-
name: '
|
|
2222
|
-
type: '
|
|
2233
|
+
name: '_legoId',
|
|
2234
|
+
type: 'uint256',
|
|
2223
2235
|
},
|
|
2224
2236
|
{
|
|
2225
|
-
name: '
|
|
2237
|
+
name: '_nftAddr',
|
|
2226
2238
|
type: 'address',
|
|
2227
2239
|
},
|
|
2228
|
-
],
|
|
2229
|
-
name: 'transferFunds',
|
|
2230
|
-
outputs: [
|
|
2231
|
-
{
|
|
2232
|
-
name: '',
|
|
2233
|
-
type: 'uint256',
|
|
2234
|
-
},
|
|
2235
2240
|
{
|
|
2236
|
-
name: '',
|
|
2241
|
+
name: '_nftTokenId',
|
|
2237
2242
|
type: 'uint256',
|
|
2238
2243
|
},
|
|
2239
|
-
],
|
|
2240
|
-
stateMutability: 'nonpayable',
|
|
2241
|
-
type: 'function',
|
|
2242
|
-
},
|
|
2243
|
-
{
|
|
2244
|
-
inputs: [
|
|
2245
2244
|
{
|
|
2246
|
-
name: '
|
|
2245
|
+
name: '_pool',
|
|
2247
2246
|
type: 'address',
|
|
2248
2247
|
},
|
|
2249
2248
|
{
|
|
2250
|
-
name: '
|
|
2249
|
+
name: '_tokenA',
|
|
2251
2250
|
type: 'address',
|
|
2252
2251
|
},
|
|
2253
2252
|
{
|
|
2254
|
-
name: '
|
|
2255
|
-
type: '
|
|
2253
|
+
name: '_tokenB',
|
|
2254
|
+
type: 'address',
|
|
2256
2255
|
},
|
|
2257
2256
|
],
|
|
2258
|
-
name: '
|
|
2257
|
+
name: 'addLiquidityConcentrated',
|
|
2259
2258
|
outputs: [
|
|
2260
2259
|
{
|
|
2261
2260
|
name: '',
|
|
@@ -2265,31 +2264,10 @@ export const abi = [
|
|
|
2265
2264
|
name: '',
|
|
2266
2265
|
type: 'uint256',
|
|
2267
2266
|
},
|
|
2268
|
-
],
|
|
2269
|
-
stateMutability: 'nonpayable',
|
|
2270
|
-
type: 'function',
|
|
2271
|
-
},
|
|
2272
|
-
{
|
|
2273
|
-
inputs: [
|
|
2274
|
-
{
|
|
2275
|
-
name: '_userWallet',
|
|
2276
|
-
type: 'address',
|
|
2277
|
-
},
|
|
2278
|
-
{
|
|
2279
|
-
name: '_recipient',
|
|
2280
|
-
type: 'address',
|
|
2281
|
-
},
|
|
2282
2267
|
{
|
|
2283
|
-
name: '
|
|
2268
|
+
name: '',
|
|
2284
2269
|
type: 'uint256',
|
|
2285
2270
|
},
|
|
2286
|
-
{
|
|
2287
|
-
name: '_asset',
|
|
2288
|
-
type: 'address',
|
|
2289
|
-
},
|
|
2290
|
-
],
|
|
2291
|
-
name: 'transferFunds',
|
|
2292
|
-
outputs: [
|
|
2293
2271
|
{
|
|
2294
2272
|
name: '',
|
|
2295
2273
|
type: 'uint256',
|
|
@@ -2305,41 +2283,35 @@ export const abi = [
|
|
|
2305
2283
|
{
|
|
2306
2284
|
inputs: [
|
|
2307
2285
|
{
|
|
2308
|
-
name: '
|
|
2309
|
-
type: '
|
|
2286
|
+
name: '_legoId',
|
|
2287
|
+
type: 'uint256',
|
|
2310
2288
|
},
|
|
2311
2289
|
{
|
|
2312
|
-
name: '
|
|
2290
|
+
name: '_nftAddr',
|
|
2313
2291
|
type: 'address',
|
|
2314
2292
|
},
|
|
2315
2293
|
{
|
|
2316
|
-
name: '
|
|
2294
|
+
name: '_nftTokenId',
|
|
2317
2295
|
type: 'uint256',
|
|
2318
2296
|
},
|
|
2319
2297
|
{
|
|
2320
|
-
name: '
|
|
2298
|
+
name: '_pool',
|
|
2321
2299
|
type: 'address',
|
|
2322
2300
|
},
|
|
2323
2301
|
{
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
name: 'expiration',
|
|
2335
|
-
type: 'uint256',
|
|
2336
|
-
},
|
|
2337
|
-
],
|
|
2338
|
-
name: '_sig',
|
|
2339
|
-
type: 'tuple',
|
|
2302
|
+
name: '_tokenA',
|
|
2303
|
+
type: 'address',
|
|
2304
|
+
},
|
|
2305
|
+
{
|
|
2306
|
+
name: '_tokenB',
|
|
2307
|
+
type: 'address',
|
|
2308
|
+
},
|
|
2309
|
+
{
|
|
2310
|
+
name: '_amountA',
|
|
2311
|
+
type: 'uint256',
|
|
2340
2312
|
},
|
|
2341
2313
|
],
|
|
2342
|
-
name: '
|
|
2314
|
+
name: 'addLiquidityConcentrated',
|
|
2343
2315
|
outputs: [
|
|
2344
2316
|
{
|
|
2345
2317
|
name: '',
|
|
@@ -2349,26 +2321,13 @@ export const abi = [
|
|
|
2349
2321
|
name: '',
|
|
2350
2322
|
type: 'uint256',
|
|
2351
2323
|
},
|
|
2352
|
-
],
|
|
2353
|
-
stateMutability: 'nonpayable',
|
|
2354
|
-
type: 'function',
|
|
2355
|
-
},
|
|
2356
|
-
{
|
|
2357
|
-
inputs: [
|
|
2358
|
-
{
|
|
2359
|
-
name: '_userWallet',
|
|
2360
|
-
type: 'address',
|
|
2361
|
-
},
|
|
2362
|
-
],
|
|
2363
|
-
name: 'convertEthToWeth',
|
|
2364
|
-
outputs: [
|
|
2365
2324
|
{
|
|
2366
2325
|
name: '',
|
|
2367
2326
|
type: 'uint256',
|
|
2368
2327
|
},
|
|
2369
2328
|
{
|
|
2370
2329
|
name: '',
|
|
2371
|
-
type: '
|
|
2330
|
+
type: 'uint256',
|
|
2372
2331
|
},
|
|
2373
2332
|
{
|
|
2374
2333
|
name: '',
|
|
@@ -2381,48 +2340,39 @@ export const abi = [
|
|
|
2381
2340
|
{
|
|
2382
2341
|
inputs: [
|
|
2383
2342
|
{
|
|
2384
|
-
name: '
|
|
2385
|
-
type: '
|
|
2343
|
+
name: '_legoId',
|
|
2344
|
+
type: 'uint256',
|
|
2386
2345
|
},
|
|
2387
2346
|
{
|
|
2388
|
-
name: '
|
|
2389
|
-
type: '
|
|
2347
|
+
name: '_nftAddr',
|
|
2348
|
+
type: 'address',
|
|
2390
2349
|
},
|
|
2391
|
-
],
|
|
2392
|
-
name: 'convertEthToWeth',
|
|
2393
|
-
outputs: [
|
|
2394
2350
|
{
|
|
2395
|
-
name: '',
|
|
2351
|
+
name: '_nftTokenId',
|
|
2396
2352
|
type: 'uint256',
|
|
2397
2353
|
},
|
|
2398
2354
|
{
|
|
2399
|
-
name: '',
|
|
2355
|
+
name: '_pool',
|
|
2400
2356
|
type: 'address',
|
|
2401
2357
|
},
|
|
2402
2358
|
{
|
|
2403
|
-
name: '',
|
|
2404
|
-
type: '
|
|
2359
|
+
name: '_tokenA',
|
|
2360
|
+
type: 'address',
|
|
2405
2361
|
},
|
|
2406
|
-
],
|
|
2407
|
-
stateMutability: 'nonpayable',
|
|
2408
|
-
type: 'function',
|
|
2409
|
-
},
|
|
2410
|
-
{
|
|
2411
|
-
inputs: [
|
|
2412
2362
|
{
|
|
2413
|
-
name: '
|
|
2363
|
+
name: '_tokenB',
|
|
2414
2364
|
type: 'address',
|
|
2415
2365
|
},
|
|
2416
2366
|
{
|
|
2417
|
-
name: '
|
|
2367
|
+
name: '_amountA',
|
|
2418
2368
|
type: 'uint256',
|
|
2419
2369
|
},
|
|
2420
2370
|
{
|
|
2421
|
-
name: '
|
|
2371
|
+
name: '_amountB',
|
|
2422
2372
|
type: 'uint256',
|
|
2423
2373
|
},
|
|
2424
2374
|
],
|
|
2425
|
-
name: '
|
|
2375
|
+
name: 'addLiquidityConcentrated',
|
|
2426
2376
|
outputs: [
|
|
2427
2377
|
{
|
|
2428
2378
|
name: '',
|
|
@@ -2430,7 +2380,15 @@ export const abi = [
|
|
|
2430
2380
|
},
|
|
2431
2381
|
{
|
|
2432
2382
|
name: '',
|
|
2433
|
-
type: '
|
|
2383
|
+
type: 'uint256',
|
|
2384
|
+
},
|
|
2385
|
+
{
|
|
2386
|
+
name: '',
|
|
2387
|
+
type: 'uint256',
|
|
2388
|
+
},
|
|
2389
|
+
{
|
|
2390
|
+
name: '',
|
|
2391
|
+
type: 'uint256',
|
|
2434
2392
|
},
|
|
2435
2393
|
{
|
|
2436
2394
|
name: '',
|
|
@@ -2443,23 +2401,43 @@ export const abi = [
|
|
|
2443
2401
|
{
|
|
2444
2402
|
inputs: [
|
|
2445
2403
|
{
|
|
2446
|
-
name: '
|
|
2404
|
+
name: '_legoId',
|
|
2405
|
+
type: 'uint256',
|
|
2406
|
+
},
|
|
2407
|
+
{
|
|
2408
|
+
name: '_nftAddr',
|
|
2447
2409
|
type: 'address',
|
|
2448
2410
|
},
|
|
2449
2411
|
{
|
|
2450
|
-
name: '
|
|
2412
|
+
name: '_nftTokenId',
|
|
2451
2413
|
type: 'uint256',
|
|
2452
2414
|
},
|
|
2453
2415
|
{
|
|
2454
|
-
name: '
|
|
2455
|
-
type: '
|
|
2416
|
+
name: '_pool',
|
|
2417
|
+
type: 'address',
|
|
2418
|
+
},
|
|
2419
|
+
{
|
|
2420
|
+
name: '_tokenA',
|
|
2421
|
+
type: 'address',
|
|
2456
2422
|
},
|
|
2457
2423
|
{
|
|
2458
|
-
name: '
|
|
2424
|
+
name: '_tokenB',
|
|
2459
2425
|
type: 'address',
|
|
2460
2426
|
},
|
|
2427
|
+
{
|
|
2428
|
+
name: '_amountA',
|
|
2429
|
+
type: 'uint256',
|
|
2430
|
+
},
|
|
2431
|
+
{
|
|
2432
|
+
name: '_amountB',
|
|
2433
|
+
type: 'uint256',
|
|
2434
|
+
},
|
|
2435
|
+
{
|
|
2436
|
+
name: '_tickLower',
|
|
2437
|
+
type: 'int24',
|
|
2438
|
+
},
|
|
2461
2439
|
],
|
|
2462
|
-
name: '
|
|
2440
|
+
name: 'addLiquidityConcentrated',
|
|
2463
2441
|
outputs: [
|
|
2464
2442
|
{
|
|
2465
2443
|
name: '',
|
|
@@ -2467,7 +2445,15 @@ export const abi = [
|
|
|
2467
2445
|
},
|
|
2468
2446
|
{
|
|
2469
2447
|
name: '',
|
|
2470
|
-
type: '
|
|
2448
|
+
type: 'uint256',
|
|
2449
|
+
},
|
|
2450
|
+
{
|
|
2451
|
+
name: '',
|
|
2452
|
+
type: 'uint256',
|
|
2453
|
+
},
|
|
2454
|
+
{
|
|
2455
|
+
name: '',
|
|
2456
|
+
type: 'uint256',
|
|
2471
2457
|
},
|
|
2472
2458
|
{
|
|
2473
2459
|
name: '',
|
|
@@ -2480,88 +2466,64 @@ export const abi = [
|
|
|
2480
2466
|
{
|
|
2481
2467
|
inputs: [
|
|
2482
2468
|
{
|
|
2483
|
-
name: '
|
|
2469
|
+
name: '_legoId',
|
|
2470
|
+
type: 'uint256',
|
|
2471
|
+
},
|
|
2472
|
+
{
|
|
2473
|
+
name: '_nftAddr',
|
|
2484
2474
|
type: 'address',
|
|
2485
2475
|
},
|
|
2486
2476
|
{
|
|
2487
|
-
name: '
|
|
2477
|
+
name: '_nftTokenId',
|
|
2488
2478
|
type: 'uint256',
|
|
2489
2479
|
},
|
|
2490
2480
|
{
|
|
2491
|
-
name: '
|
|
2492
|
-
type: '
|
|
2481
|
+
name: '_pool',
|
|
2482
|
+
type: 'address',
|
|
2493
2483
|
},
|
|
2494
2484
|
{
|
|
2495
|
-
name: '
|
|
2485
|
+
name: '_tokenA',
|
|
2496
2486
|
type: 'address',
|
|
2497
2487
|
},
|
|
2498
2488
|
{
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
name: 'signature',
|
|
2502
|
-
type: 'bytes',
|
|
2503
|
-
},
|
|
2504
|
-
{
|
|
2505
|
-
name: 'signer',
|
|
2506
|
-
type: 'address',
|
|
2507
|
-
},
|
|
2508
|
-
{
|
|
2509
|
-
name: 'expiration',
|
|
2510
|
-
type: 'uint256',
|
|
2511
|
-
},
|
|
2512
|
-
],
|
|
2513
|
-
name: '_sig',
|
|
2514
|
-
type: 'tuple',
|
|
2489
|
+
name: '_tokenB',
|
|
2490
|
+
type: 'address',
|
|
2515
2491
|
},
|
|
2516
|
-
],
|
|
2517
|
-
name: 'convertEthToWeth',
|
|
2518
|
-
outputs: [
|
|
2519
2492
|
{
|
|
2520
|
-
name: '',
|
|
2493
|
+
name: '_amountA',
|
|
2521
2494
|
type: 'uint256',
|
|
2522
2495
|
},
|
|
2523
2496
|
{
|
|
2524
|
-
name: '',
|
|
2525
|
-
type: '
|
|
2497
|
+
name: '_amountB',
|
|
2498
|
+
type: 'uint256',
|
|
2526
2499
|
},
|
|
2527
2500
|
{
|
|
2528
|
-
name: '',
|
|
2529
|
-
type: '
|
|
2501
|
+
name: '_tickLower',
|
|
2502
|
+
type: 'int24',
|
|
2530
2503
|
},
|
|
2531
|
-
],
|
|
2532
|
-
stateMutability: 'nonpayable',
|
|
2533
|
-
type: 'function',
|
|
2534
|
-
},
|
|
2535
|
-
{
|
|
2536
|
-
inputs: [
|
|
2537
2504
|
{
|
|
2538
|
-
name: '
|
|
2539
|
-
type: '
|
|
2505
|
+
name: '_tickUpper',
|
|
2506
|
+
type: 'int24',
|
|
2540
2507
|
},
|
|
2541
2508
|
],
|
|
2542
|
-
name: '
|
|
2509
|
+
name: 'addLiquidityConcentrated',
|
|
2543
2510
|
outputs: [
|
|
2544
2511
|
{
|
|
2545
2512
|
name: '',
|
|
2546
2513
|
type: 'uint256',
|
|
2547
2514
|
},
|
|
2548
|
-
],
|
|
2549
|
-
stateMutability: 'nonpayable',
|
|
2550
|
-
type: 'function',
|
|
2551
|
-
},
|
|
2552
|
-
{
|
|
2553
|
-
inputs: [
|
|
2554
2515
|
{
|
|
2555
|
-
name: '
|
|
2556
|
-
type: '
|
|
2516
|
+
name: '',
|
|
2517
|
+
type: 'uint256',
|
|
2557
2518
|
},
|
|
2558
2519
|
{
|
|
2559
|
-
name: '
|
|
2520
|
+
name: '',
|
|
2521
|
+
type: 'uint256',
|
|
2522
|
+
},
|
|
2523
|
+
{
|
|
2524
|
+
name: '',
|
|
2560
2525
|
type: 'uint256',
|
|
2561
2526
|
},
|
|
2562
|
-
],
|
|
2563
|
-
name: 'convertWethToEth',
|
|
2564
|
-
outputs: [
|
|
2565
2527
|
{
|
|
2566
2528
|
name: '',
|
|
2567
2529
|
type: 'uint256',
|
|
@@ -2573,82 +2535,68 @@ export const abi = [
|
|
|
2573
2535
|
{
|
|
2574
2536
|
inputs: [
|
|
2575
2537
|
{
|
|
2576
|
-
name: '
|
|
2538
|
+
name: '_legoId',
|
|
2539
|
+
type: 'uint256',
|
|
2540
|
+
},
|
|
2541
|
+
{
|
|
2542
|
+
name: '_nftAddr',
|
|
2577
2543
|
type: 'address',
|
|
2578
2544
|
},
|
|
2579
2545
|
{
|
|
2580
|
-
name: '
|
|
2546
|
+
name: '_nftTokenId',
|
|
2581
2547
|
type: 'uint256',
|
|
2582
2548
|
},
|
|
2583
2549
|
{
|
|
2584
|
-
name: '
|
|
2550
|
+
name: '_pool',
|
|
2585
2551
|
type: 'address',
|
|
2586
2552
|
},
|
|
2587
|
-
],
|
|
2588
|
-
name: 'convertWethToEth',
|
|
2589
|
-
outputs: [
|
|
2590
2553
|
{
|
|
2591
|
-
name: '',
|
|
2592
|
-
type: '
|
|
2554
|
+
name: '_tokenA',
|
|
2555
|
+
type: 'address',
|
|
2593
2556
|
},
|
|
2594
|
-
],
|
|
2595
|
-
stateMutability: 'nonpayable',
|
|
2596
|
-
type: 'function',
|
|
2597
|
-
},
|
|
2598
|
-
{
|
|
2599
|
-
inputs: [
|
|
2600
2557
|
{
|
|
2601
|
-
name: '
|
|
2558
|
+
name: '_tokenB',
|
|
2602
2559
|
type: 'address',
|
|
2603
2560
|
},
|
|
2604
2561
|
{
|
|
2605
|
-
name: '
|
|
2562
|
+
name: '_amountA',
|
|
2606
2563
|
type: 'uint256',
|
|
2607
2564
|
},
|
|
2608
2565
|
{
|
|
2609
|
-
name: '
|
|
2610
|
-
type: '
|
|
2566
|
+
name: '_amountB',
|
|
2567
|
+
type: 'uint256',
|
|
2568
|
+
},
|
|
2569
|
+
{
|
|
2570
|
+
name: '_tickLower',
|
|
2571
|
+
type: 'int24',
|
|
2572
|
+
},
|
|
2573
|
+
{
|
|
2574
|
+
name: '_tickUpper',
|
|
2575
|
+
type: 'int24',
|
|
2611
2576
|
},
|
|
2612
2577
|
{
|
|
2613
|
-
name: '
|
|
2578
|
+
name: '_minAmountA',
|
|
2614
2579
|
type: 'uint256',
|
|
2615
2580
|
},
|
|
2616
2581
|
],
|
|
2617
|
-
name: '
|
|
2582
|
+
name: 'addLiquidityConcentrated',
|
|
2618
2583
|
outputs: [
|
|
2619
2584
|
{
|
|
2620
2585
|
name: '',
|
|
2621
2586
|
type: 'uint256',
|
|
2622
2587
|
},
|
|
2623
|
-
],
|
|
2624
|
-
stateMutability: 'nonpayable',
|
|
2625
|
-
type: 'function',
|
|
2626
|
-
},
|
|
2627
|
-
{
|
|
2628
|
-
inputs: [
|
|
2629
|
-
{
|
|
2630
|
-
name: '_userWallet',
|
|
2631
|
-
type: 'address',
|
|
2632
|
-
},
|
|
2633
2588
|
{
|
|
2634
|
-
name: '
|
|
2589
|
+
name: '',
|
|
2635
2590
|
type: 'uint256',
|
|
2636
2591
|
},
|
|
2637
2592
|
{
|
|
2638
|
-
name: '
|
|
2639
|
-
type: 'address',
|
|
2640
|
-
},
|
|
2641
|
-
{
|
|
2642
|
-
name: '_withdrawLegoId',
|
|
2593
|
+
name: '',
|
|
2643
2594
|
type: 'uint256',
|
|
2644
2595
|
},
|
|
2645
2596
|
{
|
|
2646
|
-
name: '
|
|
2647
|
-
type: '
|
|
2597
|
+
name: '',
|
|
2598
|
+
type: 'uint256',
|
|
2648
2599
|
},
|
|
2649
|
-
],
|
|
2650
|
-
name: 'convertWethToEth',
|
|
2651
|
-
outputs: [
|
|
2652
2600
|
{
|
|
2653
2601
|
name: '',
|
|
2654
2602
|
type: 'uint256',
|
|
@@ -2660,50 +2608,76 @@ export const abi = [
|
|
|
2660
2608
|
{
|
|
2661
2609
|
inputs: [
|
|
2662
2610
|
{
|
|
2663
|
-
name: '
|
|
2611
|
+
name: '_legoId',
|
|
2612
|
+
type: 'uint256',
|
|
2613
|
+
},
|
|
2614
|
+
{
|
|
2615
|
+
name: '_nftAddr',
|
|
2664
2616
|
type: 'address',
|
|
2665
2617
|
},
|
|
2666
2618
|
{
|
|
2667
|
-
name: '
|
|
2619
|
+
name: '_nftTokenId',
|
|
2668
2620
|
type: 'uint256',
|
|
2669
2621
|
},
|
|
2670
2622
|
{
|
|
2671
|
-
name: '
|
|
2623
|
+
name: '_pool',
|
|
2672
2624
|
type: 'address',
|
|
2673
2625
|
},
|
|
2674
2626
|
{
|
|
2675
|
-
name: '
|
|
2676
|
-
type: '
|
|
2627
|
+
name: '_tokenA',
|
|
2628
|
+
type: 'address',
|
|
2677
2629
|
},
|
|
2678
2630
|
{
|
|
2679
|
-
name: '
|
|
2631
|
+
name: '_tokenB',
|
|
2680
2632
|
type: 'address',
|
|
2681
2633
|
},
|
|
2682
2634
|
{
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2635
|
+
name: '_amountA',
|
|
2636
|
+
type: 'uint256',
|
|
2637
|
+
},
|
|
2638
|
+
{
|
|
2639
|
+
name: '_amountB',
|
|
2640
|
+
type: 'uint256',
|
|
2641
|
+
},
|
|
2642
|
+
{
|
|
2643
|
+
name: '_tickLower',
|
|
2644
|
+
type: 'int24',
|
|
2645
|
+
},
|
|
2646
|
+
{
|
|
2647
|
+
name: '_tickUpper',
|
|
2648
|
+
type: 'int24',
|
|
2649
|
+
},
|
|
2650
|
+
{
|
|
2651
|
+
name: '_minAmountA',
|
|
2652
|
+
type: 'uint256',
|
|
2653
|
+
},
|
|
2654
|
+
{
|
|
2655
|
+
name: '_minAmountB',
|
|
2656
|
+
type: 'uint256',
|
|
2699
2657
|
},
|
|
2700
2658
|
],
|
|
2701
|
-
name: '
|
|
2659
|
+
name: 'addLiquidityConcentrated',
|
|
2702
2660
|
outputs: [
|
|
2703
2661
|
{
|
|
2704
2662
|
name: '',
|
|
2705
2663
|
type: 'uint256',
|
|
2706
2664
|
},
|
|
2665
|
+
{
|
|
2666
|
+
name: '',
|
|
2667
|
+
type: 'uint256',
|
|
2668
|
+
},
|
|
2669
|
+
{
|
|
2670
|
+
name: '',
|
|
2671
|
+
type: 'uint256',
|
|
2672
|
+
},
|
|
2673
|
+
{
|
|
2674
|
+
name: '',
|
|
2675
|
+
type: 'uint256',
|
|
2676
|
+
},
|
|
2677
|
+
{
|
|
2678
|
+
name: '',
|
|
2679
|
+
type: 'uint256',
|
|
2680
|
+
},
|
|
2707
2681
|
],
|
|
2708
2682
|
stateMutability: 'nonpayable',
|
|
2709
2683
|
type: 'function',
|
|
@@ -2711,113 +2685,393 @@ export const abi = [
|
|
|
2711
2685
|
{
|
|
2712
2686
|
inputs: [
|
|
2713
2687
|
{
|
|
2714
|
-
name: '
|
|
2688
|
+
name: '_legoId',
|
|
2689
|
+
type: 'uint256',
|
|
2690
|
+
},
|
|
2691
|
+
{
|
|
2692
|
+
name: '_nftAddr',
|
|
2715
2693
|
type: 'address',
|
|
2716
2694
|
},
|
|
2717
2695
|
{
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2696
|
+
name: '_nftTokenId',
|
|
2697
|
+
type: 'uint256',
|
|
2698
|
+
},
|
|
2699
|
+
{
|
|
2700
|
+
name: '_pool',
|
|
2701
|
+
type: 'address',
|
|
2702
|
+
},
|
|
2703
|
+
{
|
|
2704
|
+
name: '_tokenA',
|
|
2705
|
+
type: 'address',
|
|
2706
|
+
},
|
|
2707
|
+
{
|
|
2708
|
+
name: '_tokenB',
|
|
2709
|
+
type: 'address',
|
|
2710
|
+
},
|
|
2711
|
+
{
|
|
2712
|
+
name: '_amountA',
|
|
2713
|
+
type: 'uint256',
|
|
2714
|
+
},
|
|
2715
|
+
{
|
|
2716
|
+
name: '_amountB',
|
|
2717
|
+
type: 'uint256',
|
|
2718
|
+
},
|
|
2719
|
+
{
|
|
2720
|
+
name: '_tickLower',
|
|
2721
|
+
type: 'int24',
|
|
2722
|
+
},
|
|
2723
|
+
{
|
|
2724
|
+
name: '_tickUpper',
|
|
2725
|
+
type: 'int24',
|
|
2726
|
+
},
|
|
2727
|
+
{
|
|
2728
|
+
name: '_minAmountA',
|
|
2729
|
+
type: 'uint256',
|
|
2730
|
+
},
|
|
2731
|
+
{
|
|
2732
|
+
name: '_minAmountB',
|
|
2733
|
+
type: 'uint256',
|
|
2734
|
+
},
|
|
2735
|
+
{
|
|
2736
|
+
name: '_extraData',
|
|
2737
|
+
type: 'bytes32',
|
|
2738
|
+
},
|
|
2739
|
+
],
|
|
2740
|
+
name: 'addLiquidityConcentrated',
|
|
2741
|
+
outputs: [
|
|
2742
|
+
{
|
|
2743
|
+
name: '',
|
|
2744
|
+
type: 'uint256',
|
|
2745
|
+
},
|
|
2746
|
+
{
|
|
2747
|
+
name: '',
|
|
2748
|
+
type: 'uint256',
|
|
2749
|
+
},
|
|
2750
|
+
{
|
|
2751
|
+
name: '',
|
|
2752
|
+
type: 'uint256',
|
|
2753
|
+
},
|
|
2754
|
+
{
|
|
2755
|
+
name: '',
|
|
2756
|
+
type: 'uint256',
|
|
2757
|
+
},
|
|
2758
|
+
{
|
|
2759
|
+
name: '',
|
|
2760
|
+
type: 'uint256',
|
|
2761
|
+
},
|
|
2762
|
+
],
|
|
2763
|
+
stateMutability: 'nonpayable',
|
|
2764
|
+
type: 'function',
|
|
2765
|
+
},
|
|
2766
|
+
{
|
|
2767
|
+
inputs: [
|
|
2768
|
+
{
|
|
2769
|
+
name: '_legoId',
|
|
2770
|
+
type: 'uint256',
|
|
2771
|
+
},
|
|
2772
|
+
{
|
|
2773
|
+
name: '_nftAddr',
|
|
2774
|
+
type: 'address',
|
|
2775
|
+
},
|
|
2776
|
+
{
|
|
2777
|
+
name: '_nftTokenId',
|
|
2778
|
+
type: 'uint256',
|
|
2779
|
+
},
|
|
2780
|
+
{
|
|
2781
|
+
name: '_pool',
|
|
2782
|
+
type: 'address',
|
|
2783
|
+
},
|
|
2784
|
+
{
|
|
2785
|
+
name: '_tokenA',
|
|
2786
|
+
type: 'address',
|
|
2787
|
+
},
|
|
2788
|
+
{
|
|
2789
|
+
name: '_tokenB',
|
|
2790
|
+
type: 'address',
|
|
2791
|
+
},
|
|
2792
|
+
],
|
|
2793
|
+
name: 'removeLiquidityConcentrated',
|
|
2794
|
+
outputs: [
|
|
2795
|
+
{
|
|
2796
|
+
name: '',
|
|
2797
|
+
type: 'uint256',
|
|
2798
|
+
},
|
|
2799
|
+
{
|
|
2800
|
+
name: '',
|
|
2801
|
+
type: 'uint256',
|
|
2802
|
+
},
|
|
2803
|
+
{
|
|
2804
|
+
name: '',
|
|
2805
|
+
type: 'uint256',
|
|
2806
|
+
},
|
|
2807
|
+
{
|
|
2808
|
+
name: '',
|
|
2809
|
+
type: 'uint256',
|
|
2810
|
+
},
|
|
2811
|
+
],
|
|
2812
|
+
stateMutability: 'nonpayable',
|
|
2813
|
+
type: 'function',
|
|
2814
|
+
},
|
|
2815
|
+
{
|
|
2816
|
+
inputs: [
|
|
2817
|
+
{
|
|
2818
|
+
name: '_legoId',
|
|
2819
|
+
type: 'uint256',
|
|
2820
|
+
},
|
|
2821
|
+
{
|
|
2822
|
+
name: '_nftAddr',
|
|
2823
|
+
type: 'address',
|
|
2824
|
+
},
|
|
2825
|
+
{
|
|
2826
|
+
name: '_nftTokenId',
|
|
2827
|
+
type: 'uint256',
|
|
2828
|
+
},
|
|
2829
|
+
{
|
|
2830
|
+
name: '_pool',
|
|
2831
|
+
type: 'address',
|
|
2832
|
+
},
|
|
2833
|
+
{
|
|
2834
|
+
name: '_tokenA',
|
|
2835
|
+
type: 'address',
|
|
2836
|
+
},
|
|
2837
|
+
{
|
|
2838
|
+
name: '_tokenB',
|
|
2839
|
+
type: 'address',
|
|
2840
|
+
},
|
|
2841
|
+
{
|
|
2842
|
+
name: '_liqToRemove',
|
|
2843
|
+
type: 'uint256',
|
|
2844
|
+
},
|
|
2845
|
+
],
|
|
2846
|
+
name: 'removeLiquidityConcentrated',
|
|
2847
|
+
outputs: [
|
|
2848
|
+
{
|
|
2849
|
+
name: '',
|
|
2850
|
+
type: 'uint256',
|
|
2851
|
+
},
|
|
2852
|
+
{
|
|
2853
|
+
name: '',
|
|
2854
|
+
type: 'uint256',
|
|
2855
|
+
},
|
|
2856
|
+
{
|
|
2857
|
+
name: '',
|
|
2858
|
+
type: 'uint256',
|
|
2859
|
+
},
|
|
2860
|
+
{
|
|
2861
|
+
name: '',
|
|
2862
|
+
type: 'uint256',
|
|
2863
|
+
},
|
|
2864
|
+
],
|
|
2865
|
+
stateMutability: 'nonpayable',
|
|
2866
|
+
type: 'function',
|
|
2867
|
+
},
|
|
2868
|
+
{
|
|
2869
|
+
inputs: [
|
|
2870
|
+
{
|
|
2871
|
+
name: '_legoId',
|
|
2872
|
+
type: 'uint256',
|
|
2873
|
+
},
|
|
2874
|
+
{
|
|
2875
|
+
name: '_nftAddr',
|
|
2876
|
+
type: 'address',
|
|
2877
|
+
},
|
|
2878
|
+
{
|
|
2879
|
+
name: '_nftTokenId',
|
|
2880
|
+
type: 'uint256',
|
|
2881
|
+
},
|
|
2882
|
+
{
|
|
2883
|
+
name: '_pool',
|
|
2884
|
+
type: 'address',
|
|
2885
|
+
},
|
|
2886
|
+
{
|
|
2887
|
+
name: '_tokenA',
|
|
2888
|
+
type: 'address',
|
|
2889
|
+
},
|
|
2890
|
+
{
|
|
2891
|
+
name: '_tokenB',
|
|
2892
|
+
type: 'address',
|
|
2893
|
+
},
|
|
2894
|
+
{
|
|
2895
|
+
name: '_liqToRemove',
|
|
2896
|
+
type: 'uint256',
|
|
2897
|
+
},
|
|
2898
|
+
{
|
|
2899
|
+
name: '_minAmountA',
|
|
2900
|
+
type: 'uint256',
|
|
2901
|
+
},
|
|
2902
|
+
],
|
|
2903
|
+
name: 'removeLiquidityConcentrated',
|
|
2904
|
+
outputs: [
|
|
2905
|
+
{
|
|
2906
|
+
name: '',
|
|
2907
|
+
type: 'uint256',
|
|
2908
|
+
},
|
|
2909
|
+
{
|
|
2910
|
+
name: '',
|
|
2911
|
+
type: 'uint256',
|
|
2912
|
+
},
|
|
2913
|
+
{
|
|
2914
|
+
name: '',
|
|
2915
|
+
type: 'uint256',
|
|
2916
|
+
},
|
|
2917
|
+
{
|
|
2918
|
+
name: '',
|
|
2919
|
+
type: 'uint256',
|
|
2920
|
+
},
|
|
2921
|
+
],
|
|
2922
|
+
stateMutability: 'nonpayable',
|
|
2923
|
+
type: 'function',
|
|
2924
|
+
},
|
|
2925
|
+
{
|
|
2926
|
+
inputs: [
|
|
2927
|
+
{
|
|
2928
|
+
name: '_legoId',
|
|
2929
|
+
type: 'uint256',
|
|
2930
|
+
},
|
|
2931
|
+
{
|
|
2932
|
+
name: '_nftAddr',
|
|
2933
|
+
type: 'address',
|
|
2934
|
+
},
|
|
2935
|
+
{
|
|
2936
|
+
name: '_nftTokenId',
|
|
2937
|
+
type: 'uint256',
|
|
2938
|
+
},
|
|
2939
|
+
{
|
|
2940
|
+
name: '_pool',
|
|
2941
|
+
type: 'address',
|
|
2942
|
+
},
|
|
2943
|
+
{
|
|
2944
|
+
name: '_tokenA',
|
|
2945
|
+
type: 'address',
|
|
2946
|
+
},
|
|
2947
|
+
{
|
|
2948
|
+
name: '_tokenB',
|
|
2949
|
+
type: 'address',
|
|
2950
|
+
},
|
|
2951
|
+
{
|
|
2952
|
+
name: '_liqToRemove',
|
|
2953
|
+
type: 'uint256',
|
|
2954
|
+
},
|
|
2955
|
+
{
|
|
2956
|
+
name: '_minAmountA',
|
|
2957
|
+
type: 'uint256',
|
|
2958
|
+
},
|
|
2959
|
+
{
|
|
2960
|
+
name: '_minAmountB',
|
|
2961
|
+
type: 'uint256',
|
|
2962
|
+
},
|
|
2963
|
+
],
|
|
2964
|
+
name: 'removeLiquidityConcentrated',
|
|
2965
|
+
outputs: [
|
|
2966
|
+
{
|
|
2967
|
+
name: '',
|
|
2968
|
+
type: 'uint256',
|
|
2969
|
+
},
|
|
2970
|
+
{
|
|
2971
|
+
name: '',
|
|
2972
|
+
type: 'uint256',
|
|
2973
|
+
},
|
|
2974
|
+
{
|
|
2975
|
+
name: '',
|
|
2976
|
+
type: 'uint256',
|
|
2977
|
+
},
|
|
2978
|
+
{
|
|
2979
|
+
name: '',
|
|
2980
|
+
type: 'uint256',
|
|
2981
|
+
},
|
|
2982
|
+
],
|
|
2983
|
+
stateMutability: 'nonpayable',
|
|
2984
|
+
type: 'function',
|
|
2985
|
+
},
|
|
2986
|
+
{
|
|
2987
|
+
inputs: [
|
|
2988
|
+
{
|
|
2989
|
+
name: '_legoId',
|
|
2990
|
+
type: 'uint256',
|
|
2991
|
+
},
|
|
2992
|
+
{
|
|
2993
|
+
name: '_nftAddr',
|
|
2994
|
+
type: 'address',
|
|
2995
|
+
},
|
|
2996
|
+
{
|
|
2997
|
+
name: '_nftTokenId',
|
|
2998
|
+
type: 'uint256',
|
|
2999
|
+
},
|
|
3000
|
+
{
|
|
3001
|
+
name: '_pool',
|
|
3002
|
+
type: 'address',
|
|
3003
|
+
},
|
|
3004
|
+
{
|
|
3005
|
+
name: '_tokenA',
|
|
3006
|
+
type: 'address',
|
|
3007
|
+
},
|
|
3008
|
+
{
|
|
3009
|
+
name: '_tokenB',
|
|
3010
|
+
type: 'address',
|
|
3011
|
+
},
|
|
3012
|
+
{
|
|
3013
|
+
name: '_liqToRemove',
|
|
3014
|
+
type: 'uint256',
|
|
3015
|
+
},
|
|
3016
|
+
{
|
|
3017
|
+
name: '_minAmountA',
|
|
3018
|
+
type: 'uint256',
|
|
3019
|
+
},
|
|
3020
|
+
{
|
|
3021
|
+
name: '_minAmountB',
|
|
3022
|
+
type: 'uint256',
|
|
3023
|
+
},
|
|
3024
|
+
{
|
|
3025
|
+
name: '_extraData',
|
|
3026
|
+
type: 'bytes32',
|
|
3027
|
+
},
|
|
3028
|
+
],
|
|
3029
|
+
name: 'removeLiquidityConcentrated',
|
|
3030
|
+
outputs: [
|
|
3031
|
+
{
|
|
3032
|
+
name: '',
|
|
3033
|
+
type: 'uint256',
|
|
3034
|
+
},
|
|
3035
|
+
{
|
|
3036
|
+
name: '',
|
|
3037
|
+
type: 'uint256',
|
|
3038
|
+
},
|
|
3039
|
+
{
|
|
3040
|
+
name: '',
|
|
3041
|
+
type: 'uint256',
|
|
3042
|
+
},
|
|
3043
|
+
{
|
|
3044
|
+
name: '',
|
|
3045
|
+
type: 'uint256',
|
|
3046
|
+
},
|
|
3047
|
+
],
|
|
3048
|
+
stateMutability: 'nonpayable',
|
|
3049
|
+
type: 'function',
|
|
3050
|
+
},
|
|
3051
|
+
{
|
|
3052
|
+
inputs: [
|
|
3053
|
+
{
|
|
3054
|
+
name: '_legoId',
|
|
3055
|
+
type: 'uint256',
|
|
3056
|
+
},
|
|
3057
|
+
{
|
|
3058
|
+
name: '_asset',
|
|
3059
|
+
type: 'address',
|
|
3060
|
+
},
|
|
3061
|
+
{
|
|
3062
|
+
name: '_shouldCheckYield',
|
|
3063
|
+
type: 'bool',
|
|
3064
|
+
},
|
|
3065
|
+
{
|
|
3066
|
+
name: '_prevTotalUsdValue',
|
|
3067
|
+
type: 'uint256',
|
|
2814
3068
|
},
|
|
2815
3069
|
],
|
|
2816
|
-
name: '
|
|
3070
|
+
name: 'updateAssetData',
|
|
2817
3071
|
outputs: [
|
|
2818
3072
|
{
|
|
2819
3073
|
name: '',
|
|
2820
|
-
type: '
|
|
3074
|
+
type: 'uint256',
|
|
2821
3075
|
},
|
|
2822
3076
|
],
|
|
2823
3077
|
stateMutability: 'nonpayable',
|
|
@@ -2826,131 +3080,113 @@ export const abi = [
|
|
|
2826
3080
|
{
|
|
2827
3081
|
inputs: [
|
|
2828
3082
|
{
|
|
2829
|
-
name: '
|
|
3083
|
+
name: '_legoId',
|
|
3084
|
+
type: 'uint256',
|
|
3085
|
+
},
|
|
3086
|
+
{
|
|
3087
|
+
name: '_asset',
|
|
2830
3088
|
type: 'address',
|
|
2831
3089
|
},
|
|
3090
|
+
{
|
|
3091
|
+
name: '_shouldCheckYield',
|
|
3092
|
+
type: 'bool',
|
|
3093
|
+
},
|
|
3094
|
+
{
|
|
3095
|
+
name: '_prevTotalUsdValue',
|
|
3096
|
+
type: 'uint256',
|
|
3097
|
+
},
|
|
2832
3098
|
{
|
|
2833
3099
|
components: [
|
|
2834
3100
|
{
|
|
2835
|
-
name: '
|
|
2836
|
-
type: 'bool',
|
|
2837
|
-
},
|
|
2838
|
-
{
|
|
2839
|
-
name: 'action',
|
|
2840
|
-
type: 'uint256',
|
|
2841
|
-
},
|
|
2842
|
-
{
|
|
2843
|
-
name: 'legoId',
|
|
2844
|
-
type: 'uint256',
|
|
2845
|
-
},
|
|
2846
|
-
{
|
|
2847
|
-
name: 'asset',
|
|
3101
|
+
name: 'ledger',
|
|
2848
3102
|
type: 'address',
|
|
2849
3103
|
},
|
|
2850
3104
|
{
|
|
2851
|
-
name: '
|
|
3105
|
+
name: 'missionControl',
|
|
2852
3106
|
type: 'address',
|
|
2853
3107
|
},
|
|
2854
3108
|
{
|
|
2855
|
-
name: '
|
|
2856
|
-
type: '
|
|
2857
|
-
},
|
|
2858
|
-
{
|
|
2859
|
-
name: 'altLegoId',
|
|
2860
|
-
type: 'uint256',
|
|
3109
|
+
name: 'legoBook',
|
|
3110
|
+
type: 'address',
|
|
2861
3111
|
},
|
|
2862
3112
|
{
|
|
2863
|
-
name: '
|
|
3113
|
+
name: 'hatchery',
|
|
2864
3114
|
type: 'address',
|
|
2865
3115
|
},
|
|
2866
3116
|
{
|
|
2867
|
-
name: '
|
|
3117
|
+
name: 'lootDistributor',
|
|
2868
3118
|
type: 'address',
|
|
2869
3119
|
},
|
|
2870
3120
|
{
|
|
2871
|
-
name: '
|
|
2872
|
-
type: '
|
|
3121
|
+
name: 'appraiser',
|
|
3122
|
+
type: 'address',
|
|
2873
3123
|
},
|
|
2874
3124
|
{
|
|
2875
|
-
name: '
|
|
2876
|
-
type: '
|
|
3125
|
+
name: 'billing',
|
|
3126
|
+
type: 'address',
|
|
2877
3127
|
},
|
|
2878
3128
|
{
|
|
2879
|
-
name: '
|
|
3129
|
+
name: 'vaultRegistry',
|
|
2880
3130
|
type: 'address',
|
|
2881
3131
|
},
|
|
2882
3132
|
{
|
|
2883
|
-
name: '
|
|
2884
|
-
type: '
|
|
3133
|
+
name: 'wallet',
|
|
3134
|
+
type: 'address',
|
|
2885
3135
|
},
|
|
2886
3136
|
{
|
|
2887
|
-
name: '
|
|
3137
|
+
name: 'walletConfig',
|
|
2888
3138
|
type: 'address',
|
|
2889
3139
|
},
|
|
2890
3140
|
{
|
|
2891
|
-
name: '
|
|
2892
|
-
type: '
|
|
3141
|
+
name: 'walletOwner',
|
|
3142
|
+
type: 'address',
|
|
2893
3143
|
},
|
|
2894
3144
|
{
|
|
2895
|
-
name: '
|
|
2896
|
-
type: '
|
|
3145
|
+
name: 'inEjectMode',
|
|
3146
|
+
type: 'bool',
|
|
2897
3147
|
},
|
|
2898
3148
|
{
|
|
2899
|
-
name: '
|
|
2900
|
-
type: '
|
|
3149
|
+
name: 'isFrozen',
|
|
3150
|
+
type: 'bool',
|
|
2901
3151
|
},
|
|
2902
3152
|
{
|
|
2903
|
-
name: '
|
|
3153
|
+
name: 'lastTotalUsdValue',
|
|
2904
3154
|
type: 'uint256',
|
|
2905
3155
|
},
|
|
2906
3156
|
{
|
|
2907
|
-
name: '
|
|
2908
|
-
type: '
|
|
3157
|
+
name: 'signer',
|
|
3158
|
+
type: 'address',
|
|
2909
3159
|
},
|
|
2910
3160
|
{
|
|
2911
|
-
name: '
|
|
2912
|
-
type: '
|
|
3161
|
+
name: 'isManager',
|
|
3162
|
+
type: 'bool',
|
|
2913
3163
|
},
|
|
2914
3164
|
{
|
|
2915
|
-
name: '
|
|
3165
|
+
name: 'legoId',
|
|
2916
3166
|
type: 'uint256',
|
|
2917
3167
|
},
|
|
2918
3168
|
{
|
|
2919
|
-
name: '
|
|
3169
|
+
name: 'legoAddr',
|
|
2920
3170
|
type: 'address',
|
|
2921
3171
|
},
|
|
2922
3172
|
{
|
|
2923
|
-
name: '
|
|
2924
|
-
type: 'bool',
|
|
2925
|
-
},
|
|
2926
|
-
],
|
|
2927
|
-
name: '_instructions',
|
|
2928
|
-
type: 'tuple[]',
|
|
2929
|
-
},
|
|
2930
|
-
{
|
|
2931
|
-
components: [
|
|
2932
|
-
{
|
|
2933
|
-
name: 'signature',
|
|
2934
|
-
type: 'bytes',
|
|
2935
|
-
},
|
|
2936
|
-
{
|
|
2937
|
-
name: 'signer',
|
|
3173
|
+
name: 'eth',
|
|
2938
3174
|
type: 'address',
|
|
2939
3175
|
},
|
|
2940
3176
|
{
|
|
2941
|
-
name: '
|
|
2942
|
-
type: '
|
|
3177
|
+
name: 'weth',
|
|
3178
|
+
type: 'address',
|
|
2943
3179
|
},
|
|
2944
3180
|
],
|
|
2945
|
-
name: '
|
|
3181
|
+
name: '_ad',
|
|
2946
3182
|
type: 'tuple',
|
|
2947
3183
|
},
|
|
2948
3184
|
],
|
|
2949
|
-
name: '
|
|
3185
|
+
name: 'updateAssetData',
|
|
2950
3186
|
outputs: [
|
|
2951
3187
|
{
|
|
2952
3188
|
name: '',
|
|
2953
|
-
type: '
|
|
3189
|
+
type: 'uint256',
|
|
2954
3190
|
},
|
|
2955
3191
|
],
|
|
2956
3192
|
stateMutability: 'nonpayable',
|
|
@@ -2959,168 +3195,36 @@ export const abi = [
|
|
|
2959
3195
|
{
|
|
2960
3196
|
inputs: [
|
|
2961
3197
|
{
|
|
2962
|
-
name: '
|
|
3198
|
+
name: '_asset',
|
|
2963
3199
|
type: 'address',
|
|
2964
3200
|
},
|
|
2965
|
-
{
|
|
2966
|
-
components: [
|
|
2967
|
-
{
|
|
2968
|
-
name: 'usePrevAmountOut',
|
|
2969
|
-
type: 'bool',
|
|
2970
|
-
},
|
|
2971
|
-
{
|
|
2972
|
-
name: 'action',
|
|
2973
|
-
type: 'uint256',
|
|
2974
|
-
},
|
|
2975
|
-
{
|
|
2976
|
-
name: 'legoId',
|
|
2977
|
-
type: 'uint256',
|
|
2978
|
-
},
|
|
2979
|
-
{
|
|
2980
|
-
name: 'asset',
|
|
2981
|
-
type: 'address',
|
|
2982
|
-
},
|
|
2983
|
-
{
|
|
2984
|
-
name: 'vault',
|
|
2985
|
-
type: 'address',
|
|
2986
|
-
},
|
|
2987
|
-
{
|
|
2988
|
-
name: 'amount',
|
|
2989
|
-
type: 'uint256',
|
|
2990
|
-
},
|
|
2991
|
-
{
|
|
2992
|
-
name: 'altLegoId',
|
|
2993
|
-
type: 'uint256',
|
|
2994
|
-
},
|
|
2995
|
-
{
|
|
2996
|
-
name: 'altAsset',
|
|
2997
|
-
type: 'address',
|
|
2998
|
-
},
|
|
2999
|
-
{
|
|
3000
|
-
name: 'altVault',
|
|
3001
|
-
type: 'address',
|
|
3002
|
-
},
|
|
3003
|
-
{
|
|
3004
|
-
name: 'altAmount',
|
|
3005
|
-
type: 'uint256',
|
|
3006
|
-
},
|
|
3007
|
-
{
|
|
3008
|
-
name: 'minAmountOut',
|
|
3009
|
-
type: 'uint256',
|
|
3010
|
-
},
|
|
3011
|
-
{
|
|
3012
|
-
name: 'pool',
|
|
3013
|
-
type: 'address',
|
|
3014
|
-
},
|
|
3015
|
-
{
|
|
3016
|
-
name: 'proof',
|
|
3017
|
-
type: 'bytes32',
|
|
3018
|
-
},
|
|
3019
|
-
{
|
|
3020
|
-
name: 'nftAddr',
|
|
3021
|
-
type: 'address',
|
|
3022
|
-
},
|
|
3023
|
-
{
|
|
3024
|
-
name: 'nftTokenId',
|
|
3025
|
-
type: 'uint256',
|
|
3026
|
-
},
|
|
3027
|
-
{
|
|
3028
|
-
name: 'tickLower',
|
|
3029
|
-
type: 'int24',
|
|
3030
|
-
},
|
|
3031
|
-
{
|
|
3032
|
-
name: 'tickUpper',
|
|
3033
|
-
type: 'int24',
|
|
3034
|
-
},
|
|
3035
|
-
{
|
|
3036
|
-
name: 'minAmountA',
|
|
3037
|
-
type: 'uint256',
|
|
3038
|
-
},
|
|
3039
|
-
{
|
|
3040
|
-
name: 'minAmountB',
|
|
3041
|
-
type: 'uint256',
|
|
3042
|
-
},
|
|
3043
|
-
{
|
|
3044
|
-
name: 'minLpAmount',
|
|
3045
|
-
type: 'uint256',
|
|
3046
|
-
},
|
|
3047
|
-
{
|
|
3048
|
-
name: 'liqToRemove',
|
|
3049
|
-
type: 'uint256',
|
|
3050
|
-
},
|
|
3051
|
-
{
|
|
3052
|
-
name: 'recipient',
|
|
3053
|
-
type: 'address',
|
|
3054
|
-
},
|
|
3055
|
-
{
|
|
3056
|
-
name: 'isWethToEthConversion',
|
|
3057
|
-
type: 'bool',
|
|
3058
|
-
},
|
|
3059
|
-
],
|
|
3060
|
-
name: '_instructions',
|
|
3061
|
-
type: 'tuple[]',
|
|
3062
|
-
},
|
|
3063
|
-
{
|
|
3064
|
-
name: '_expiration',
|
|
3065
|
-
type: 'uint256',
|
|
3066
|
-
},
|
|
3067
|
-
],
|
|
3068
|
-
name: 'getBatchActionHash',
|
|
3069
|
-
outputs: [
|
|
3070
|
-
{
|
|
3071
|
-
name: '',
|
|
3072
|
-
type: 'bytes32',
|
|
3073
|
-
},
|
|
3074
3201
|
],
|
|
3075
|
-
|
|
3076
|
-
type: 'function',
|
|
3077
|
-
},
|
|
3078
|
-
{
|
|
3079
|
-
inputs: [],
|
|
3080
|
-
name: 'DOMAIN_SEPARATOR',
|
|
3202
|
+
name: 'deregisterAsset',
|
|
3081
3203
|
outputs: [
|
|
3082
3204
|
{
|
|
3083
3205
|
name: '',
|
|
3084
|
-
type: '
|
|
3206
|
+
type: 'bool',
|
|
3085
3207
|
},
|
|
3086
3208
|
],
|
|
3087
|
-
stateMutability: '
|
|
3209
|
+
stateMutability: 'nonpayable',
|
|
3088
3210
|
type: 'function',
|
|
3089
3211
|
},
|
|
3090
3212
|
{
|
|
3091
3213
|
inputs: [
|
|
3092
3214
|
{
|
|
3093
|
-
name: '
|
|
3215
|
+
name: '_collection',
|
|
3094
3216
|
type: 'address',
|
|
3095
3217
|
},
|
|
3096
|
-
],
|
|
3097
|
-
name: 'changeOwnership',
|
|
3098
|
-
outputs: [],
|
|
3099
|
-
stateMutability: 'nonpayable',
|
|
3100
|
-
type: 'function',
|
|
3101
|
-
},
|
|
3102
|
-
{
|
|
3103
|
-
inputs: [],
|
|
3104
|
-
name: 'confirmOwnershipChange',
|
|
3105
|
-
outputs: [],
|
|
3106
|
-
stateMutability: 'nonpayable',
|
|
3107
|
-
type: 'function',
|
|
3108
|
-
},
|
|
3109
|
-
{
|
|
3110
|
-
inputs: [],
|
|
3111
|
-
name: 'cancelOwnershipChange',
|
|
3112
|
-
outputs: [],
|
|
3113
|
-
stateMutability: 'nonpayable',
|
|
3114
|
-
type: 'function',
|
|
3115
|
-
},
|
|
3116
|
-
{
|
|
3117
|
-
inputs: [
|
|
3118
3218
|
{
|
|
3119
|
-
name: '
|
|
3219
|
+
name: '_nftTokenId',
|
|
3120
3220
|
type: 'uint256',
|
|
3121
3221
|
},
|
|
3222
|
+
{
|
|
3223
|
+
name: '_recipient',
|
|
3224
|
+
type: 'address',
|
|
3225
|
+
},
|
|
3122
3226
|
],
|
|
3123
|
-
name: '
|
|
3227
|
+
name: 'recoverNft',
|
|
3124
3228
|
outputs: [],
|
|
3125
3229
|
stateMutability: 'nonpayable',
|
|
3126
3230
|
type: 'function',
|
|
@@ -3128,11 +3232,15 @@ export const abi = [
|
|
|
3128
3232
|
{
|
|
3129
3233
|
inputs: [
|
|
3130
3234
|
{
|
|
3131
|
-
name: '
|
|
3235
|
+
name: '_legoAddr',
|
|
3132
3236
|
type: 'address',
|
|
3133
3237
|
},
|
|
3238
|
+
{
|
|
3239
|
+
name: '_action',
|
|
3240
|
+
type: 'uint256',
|
|
3241
|
+
},
|
|
3134
3242
|
],
|
|
3135
|
-
name: '
|
|
3243
|
+
name: 'setLegoAccessForAction',
|
|
3136
3244
|
outputs: [
|
|
3137
3245
|
{
|
|
3138
3246
|
name: '',
|
|
@@ -3144,11 +3252,11 @@ export const abi = [
|
|
|
3144
3252
|
},
|
|
3145
3253
|
{
|
|
3146
3254
|
inputs: [],
|
|
3147
|
-
name: '
|
|
3255
|
+
name: 'walletConfig',
|
|
3148
3256
|
outputs: [
|
|
3149
3257
|
{
|
|
3150
3258
|
name: '',
|
|
3151
|
-
type: '
|
|
3259
|
+
type: 'address',
|
|
3152
3260
|
},
|
|
3153
3261
|
],
|
|
3154
3262
|
stateMutability: 'view',
|
|
@@ -3158,22 +3266,45 @@ export const abi = [
|
|
|
3158
3266
|
inputs: [
|
|
3159
3267
|
{
|
|
3160
3268
|
name: 'arg0',
|
|
3161
|
-
type: '
|
|
3269
|
+
type: 'address',
|
|
3162
3270
|
},
|
|
3163
3271
|
],
|
|
3164
|
-
name: '
|
|
3272
|
+
name: 'assetData',
|
|
3165
3273
|
outputs: [
|
|
3166
3274
|
{
|
|
3275
|
+
components: [
|
|
3276
|
+
{
|
|
3277
|
+
name: 'assetBalance',
|
|
3278
|
+
type: 'uint256',
|
|
3279
|
+
},
|
|
3280
|
+
{
|
|
3281
|
+
name: 'usdValue',
|
|
3282
|
+
type: 'uint256',
|
|
3283
|
+
},
|
|
3284
|
+
{
|
|
3285
|
+
name: 'isYieldAsset',
|
|
3286
|
+
type: 'bool',
|
|
3287
|
+
},
|
|
3288
|
+
{
|
|
3289
|
+
name: 'lastPricePerShare',
|
|
3290
|
+
type: 'uint256',
|
|
3291
|
+
},
|
|
3292
|
+
],
|
|
3167
3293
|
name: '',
|
|
3168
|
-
type: '
|
|
3294
|
+
type: 'tuple',
|
|
3169
3295
|
},
|
|
3170
3296
|
],
|
|
3171
3297
|
stateMutability: 'view',
|
|
3172
3298
|
type: 'function',
|
|
3173
3299
|
},
|
|
3174
3300
|
{
|
|
3175
|
-
inputs: [
|
|
3176
|
-
|
|
3301
|
+
inputs: [
|
|
3302
|
+
{
|
|
3303
|
+
name: 'arg0',
|
|
3304
|
+
type: 'uint256',
|
|
3305
|
+
},
|
|
3306
|
+
],
|
|
3307
|
+
name: 'assets',
|
|
3177
3308
|
outputs: [
|
|
3178
3309
|
{
|
|
3179
3310
|
name: '',
|
|
@@ -3184,26 +3315,17 @@ export const abi = [
|
|
|
3184
3315
|
type: 'function',
|
|
3185
3316
|
},
|
|
3186
3317
|
{
|
|
3187
|
-
inputs: [
|
|
3188
|
-
|
|
3318
|
+
inputs: [
|
|
3319
|
+
{
|
|
3320
|
+
name: 'arg0',
|
|
3321
|
+
type: 'address',
|
|
3322
|
+
},
|
|
3323
|
+
],
|
|
3324
|
+
name: 'indexOfAsset',
|
|
3189
3325
|
outputs: [
|
|
3190
3326
|
{
|
|
3191
|
-
components: [
|
|
3192
|
-
{
|
|
3193
|
-
name: 'newOwner',
|
|
3194
|
-
type: 'address',
|
|
3195
|
-
},
|
|
3196
|
-
{
|
|
3197
|
-
name: 'initiatedBlock',
|
|
3198
|
-
type: 'uint256',
|
|
3199
|
-
},
|
|
3200
|
-
{
|
|
3201
|
-
name: 'confirmBlock',
|
|
3202
|
-
type: 'uint256',
|
|
3203
|
-
},
|
|
3204
|
-
],
|
|
3205
3327
|
name: '',
|
|
3206
|
-
type: '
|
|
3328
|
+
type: 'uint256',
|
|
3207
3329
|
},
|
|
3208
3330
|
],
|
|
3209
3331
|
stateMutability: 'view',
|
|
@@ -3211,7 +3333,7 @@ export const abi = [
|
|
|
3211
3333
|
},
|
|
3212
3334
|
{
|
|
3213
3335
|
inputs: [],
|
|
3214
|
-
name: '
|
|
3336
|
+
name: 'numAssets',
|
|
3215
3337
|
outputs: [
|
|
3216
3338
|
{
|
|
3217
3339
|
name: '',
|
|
@@ -3223,11 +3345,11 @@ export const abi = [
|
|
|
3223
3345
|
},
|
|
3224
3346
|
{
|
|
3225
3347
|
inputs: [],
|
|
3226
|
-
name: '
|
|
3348
|
+
name: 'WETH',
|
|
3227
3349
|
outputs: [
|
|
3228
3350
|
{
|
|
3229
3351
|
name: '',
|
|
3230
|
-
type: '
|
|
3352
|
+
type: 'address',
|
|
3231
3353
|
},
|
|
3232
3354
|
],
|
|
3233
3355
|
stateMutability: 'view',
|
|
@@ -3235,11 +3357,11 @@ export const abi = [
|
|
|
3235
3357
|
},
|
|
3236
3358
|
{
|
|
3237
3359
|
inputs: [],
|
|
3238
|
-
name: '
|
|
3360
|
+
name: 'ETH',
|
|
3239
3361
|
outputs: [
|
|
3240
3362
|
{
|
|
3241
3363
|
name: '',
|
|
3242
|
-
type: '
|
|
3364
|
+
type: 'address',
|
|
3243
3365
|
},
|
|
3244
3366
|
],
|
|
3245
3367
|
stateMutability: 'view',
|
|
@@ -3248,12 +3370,16 @@ export const abi = [
|
|
|
3248
3370
|
{
|
|
3249
3371
|
inputs: [
|
|
3250
3372
|
{
|
|
3251
|
-
name: '
|
|
3252
|
-
type: '
|
|
3373
|
+
name: '_wethAddr',
|
|
3374
|
+
type: 'address',
|
|
3253
3375
|
},
|
|
3254
3376
|
{
|
|
3255
|
-
name: '
|
|
3256
|
-
type: '
|
|
3377
|
+
name: '_ethAddr',
|
|
3378
|
+
type: 'address',
|
|
3379
|
+
},
|
|
3380
|
+
{
|
|
3381
|
+
name: '_walletConfig',
|
|
3382
|
+
type: 'address',
|
|
3257
3383
|
},
|
|
3258
3384
|
],
|
|
3259
3385
|
outputs: [],
|
|
@@ -3261,12 +3387,12 @@ export const abi = [
|
|
|
3261
3387
|
type: 'constructor',
|
|
3262
3388
|
},
|
|
3263
3389
|
];
|
|
3264
|
-
export const deployAddress = '
|
|
3390
|
+
export const deployAddress = '0x880E453Ec494FB17bffba537BeaB4Cc6CD1B7C12';
|
|
3265
3391
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
3266
3392
|
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
3267
3393
|
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|
|
3268
3394
|
const call = {
|
|
3269
|
-
contractName: '
|
|
3395
|
+
contractName: 'UserWalletV1',
|
|
3270
3396
|
method,
|
|
3271
3397
|
args,
|
|
3272
3398
|
address,
|
|
@@ -3290,21 +3416,19 @@ function getRequest(method, args, contractAddressOrOptions) {
|
|
|
3290
3416
|
return call;
|
|
3291
3417
|
}
|
|
3292
3418
|
export const call = {
|
|
3419
|
+
onERC721Received: (...args) => getRequest('onERC721Received', args),
|
|
3293
3420
|
apiVersion: (...args) => getRequest('apiVersion', args),
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
ownershipChangeDelay: (...args) => getRequest('ownershipChangeDelay', args),
|
|
3302
|
-
MIN_OWNER_CHANGE_DELAY: (...args) => getRequest('MIN_OWNER_CHANGE_DELAY', args),
|
|
3303
|
-
MAX_OWNER_CHANGE_DELAY: (...args) => getRequest('MAX_OWNER_CHANGE_DELAY', args),
|
|
3421
|
+
walletConfig: (...args) => getRequest('walletConfig', args),
|
|
3422
|
+
assetData: (...args) => getRequest('assetData', args),
|
|
3423
|
+
assets: (...args) => getRequest('assets', args),
|
|
3424
|
+
indexOfAsset: (...args) => getRequest('indexOfAsset', args),
|
|
3425
|
+
numAssets: (...args) => getRequest('numAssets', args),
|
|
3426
|
+
WETH: (...args) => getRequest('WETH', args),
|
|
3427
|
+
ETH: (...args) => getRequest('ETH', args),
|
|
3304
3428
|
};
|
|
3305
3429
|
function getMutation(functionName) {
|
|
3306
3430
|
return {
|
|
3307
|
-
contractName: '
|
|
3431
|
+
contractName: 'UserWalletV1',
|
|
3308
3432
|
functionName,
|
|
3309
3433
|
deployAddress,
|
|
3310
3434
|
argsType: undefined,
|
|
@@ -3312,61 +3436,65 @@ function getMutation(functionName) {
|
|
|
3312
3436
|
};
|
|
3313
3437
|
}
|
|
3314
3438
|
export const mutation = {
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3439
|
+
transferFunds: getMutation('transferFunds'),
|
|
3440
|
+
depositForYield: getMutation('depositForYield'),
|
|
3441
|
+
withdrawFromYield: getMutation('withdrawFromYield'),
|
|
3442
|
+
rebalanceYieldPosition: getMutation('rebalanceYieldPosition'),
|
|
3319
3443
|
swapTokens: getMutation('swapTokens'),
|
|
3444
|
+
mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
|
|
3445
|
+
confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
|
|
3446
|
+
addCollateral: getMutation('addCollateral'),
|
|
3447
|
+
removeCollateral: getMutation('removeCollateral'),
|
|
3320
3448
|
borrow: getMutation('borrow'),
|
|
3321
3449
|
repayDebt: getMutation('repayDebt'),
|
|
3322
|
-
|
|
3450
|
+
claimIncentives: getMutation('claimIncentives'),
|
|
3451
|
+
convertWethToEth: getMutation('convertWethToEth'),
|
|
3452
|
+
convertEthToWeth: getMutation('convertEthToWeth'),
|
|
3323
3453
|
addLiquidity: getMutation('addLiquidity'),
|
|
3324
3454
|
removeLiquidity: getMutation('removeLiquidity'),
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
cancelOwnershipChange: getMutation('cancelOwnershipChange'),
|
|
3332
|
-
setOwnershipChangeDelay: getMutation('setOwnershipChangeDelay'),
|
|
3333
|
-
recoverFunds: getMutation('recoverFunds'),
|
|
3455
|
+
addLiquidityConcentrated: getMutation('addLiquidityConcentrated'),
|
|
3456
|
+
removeLiquidityConcentrated: getMutation('removeLiquidityConcentrated'),
|
|
3457
|
+
updateAssetData: getMutation('updateAssetData'),
|
|
3458
|
+
deregisterAsset: getMutation('deregisterAsset'),
|
|
3459
|
+
recoverNft: getMutation('recoverNft'),
|
|
3460
|
+
setLegoAccessForAction: getMutation('setLegoAccessForAction'),
|
|
3334
3461
|
};
|
|
3335
3462
|
export function toSdk(deployAddress, publicClient, walletClient) {
|
|
3336
3463
|
return {
|
|
3337
3464
|
deployAddress,
|
|
3338
3465
|
abi,
|
|
3339
3466
|
// Queries
|
|
3467
|
+
onERC721Received: (...args) => singleQuery(publicClient, call.onERC721Received(...args).at(deployAddress)),
|
|
3340
3468
|
apiVersion: (...args) => singleQuery(publicClient, call.apiVersion(...args).at(deployAddress)),
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
ownershipChangeDelay: (...args) => singleQuery(publicClient, call.ownershipChangeDelay(...args).at(deployAddress)),
|
|
3349
|
-
MIN_OWNER_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_OWNER_CHANGE_DELAY(...args).at(deployAddress)),
|
|
3350
|
-
MAX_OWNER_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_OWNER_CHANGE_DELAY(...args).at(deployAddress)),
|
|
3469
|
+
walletConfig: (...args) => singleQuery(publicClient, call.walletConfig(...args).at(deployAddress)),
|
|
3470
|
+
assetData: (...args) => singleQuery(publicClient, call.assetData(...args).at(deployAddress)),
|
|
3471
|
+
assets: (...args) => singleQuery(publicClient, call.assets(...args).at(deployAddress)),
|
|
3472
|
+
indexOfAsset: (...args) => singleQuery(publicClient, call.indexOfAsset(...args).at(deployAddress)),
|
|
3473
|
+
numAssets: (...args) => singleQuery(publicClient, call.numAssets(...args).at(deployAddress)),
|
|
3474
|
+
WETH: (...args) => singleQuery(publicClient, call.WETH(...args).at(deployAddress)),
|
|
3475
|
+
ETH: (...args) => singleQuery(publicClient, call.ETH(...args).at(deployAddress)),
|
|
3351
3476
|
// Mutations
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3477
|
+
transferFunds: (...args) => mutate(walletClient, mutation.transferFunds, { address: deployAddress })(...args),
|
|
3478
|
+
depositForYield: (...args) => mutate(walletClient, mutation.depositForYield, { address: deployAddress })(...args),
|
|
3479
|
+
withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield, { address: deployAddress })(...args),
|
|
3480
|
+
rebalanceYieldPosition: (...args) => mutate(walletClient, mutation.rebalanceYieldPosition, { address: deployAddress })(...args),
|
|
3356
3481
|
swapTokens: (...args) => mutate(walletClient, mutation.swapTokens, { address: deployAddress })(...args),
|
|
3482
|
+
mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset, { address: deployAddress })(...args),
|
|
3483
|
+
confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset, { address: deployAddress })(...args),
|
|
3484
|
+
addCollateral: (...args) => mutate(walletClient, mutation.addCollateral, { address: deployAddress })(...args),
|
|
3485
|
+
removeCollateral: (...args) => mutate(walletClient, mutation.removeCollateral, { address: deployAddress })(...args),
|
|
3357
3486
|
borrow: (...args) => mutate(walletClient, mutation.borrow, { address: deployAddress })(...args),
|
|
3358
3487
|
repayDebt: (...args) => mutate(walletClient, mutation.repayDebt, { address: deployAddress })(...args),
|
|
3359
|
-
|
|
3488
|
+
claimIncentives: (...args) => mutate(walletClient, mutation.claimIncentives, { address: deployAddress })(...args),
|
|
3489
|
+
convertWethToEth: (...args) => mutate(walletClient, mutation.convertWethToEth, { address: deployAddress })(...args),
|
|
3490
|
+
convertEthToWeth: (...args) => mutate(walletClient, mutation.convertEthToWeth, { address: deployAddress })(...args),
|
|
3360
3491
|
addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity, { address: deployAddress })(...args),
|
|
3361
3492
|
removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity, { address: deployAddress })(...args),
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
cancelOwnershipChange: (...args) => mutate(walletClient, mutation.cancelOwnershipChange, { address: deployAddress })(...args),
|
|
3369
|
-
setOwnershipChangeDelay: (...args) => mutate(walletClient, mutation.setOwnershipChangeDelay, { address: deployAddress })(...args),
|
|
3370
|
-
recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds, { address: deployAddress })(...args),
|
|
3493
|
+
addLiquidityConcentrated: (...args) => mutate(walletClient, mutation.addLiquidityConcentrated, { address: deployAddress })(...args),
|
|
3494
|
+
removeLiquidityConcentrated: (...args) => mutate(walletClient, mutation.removeLiquidityConcentrated, { address: deployAddress })(...args),
|
|
3495
|
+
updateAssetData: (...args) => mutate(walletClient, mutation.updateAssetData, { address: deployAddress })(...args),
|
|
3496
|
+
deregisterAsset: (...args) => mutate(walletClient, mutation.deregisterAsset, { address: deployAddress })(...args),
|
|
3497
|
+
recoverNft: (...args) => mutate(walletClient, mutation.recoverNft, { address: deployAddress })(...args),
|
|
3498
|
+
setLegoAccessForAction: (...args) => mutate(walletClient, mutation.setLegoAccessForAction, { address: deployAddress })(...args),
|
|
3371
3499
|
};
|
|
3372
3500
|
}
|