@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
|
@@ -8,22 +8,17 @@ export const abi = [
|
|
|
8
8
|
anonymous: false,
|
|
9
9
|
inputs: [
|
|
10
10
|
{
|
|
11
|
-
indexed:
|
|
12
|
-
name: '
|
|
13
|
-
type: '
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
indexed: true,
|
|
17
|
-
name: 'recipient',
|
|
18
|
-
type: 'address',
|
|
11
|
+
indexed: false,
|
|
12
|
+
name: 'oldNonce',
|
|
13
|
+
type: 'uint256',
|
|
19
14
|
},
|
|
20
15
|
{
|
|
21
16
|
indexed: false,
|
|
22
|
-
name: '
|
|
17
|
+
name: 'newNonce',
|
|
23
18
|
type: 'uint256',
|
|
24
19
|
},
|
|
25
20
|
],
|
|
26
|
-
name: '
|
|
21
|
+
name: 'NonceIncremented',
|
|
27
22
|
type: 'event',
|
|
28
23
|
},
|
|
29
24
|
{
|
|
@@ -107,25 +102,13 @@ export const abi = [
|
|
|
107
102
|
inputs: [
|
|
108
103
|
{
|
|
109
104
|
indexed: false,
|
|
110
|
-
name: '
|
|
105
|
+
name: 'numBlocks',
|
|
111
106
|
type: 'uint256',
|
|
112
107
|
},
|
|
113
108
|
],
|
|
114
|
-
name: '
|
|
109
|
+
name: 'OwnershipTimeLockSet',
|
|
115
110
|
type: 'event',
|
|
116
111
|
},
|
|
117
|
-
{
|
|
118
|
-
inputs: [],
|
|
119
|
-
name: 'hasPendingOwnerChange',
|
|
120
|
-
outputs: [
|
|
121
|
-
{
|
|
122
|
-
name: '',
|
|
123
|
-
type: 'bool',
|
|
124
|
-
},
|
|
125
|
-
],
|
|
126
|
-
stateMutability: 'view',
|
|
127
|
-
type: 'function',
|
|
128
|
-
},
|
|
129
112
|
{
|
|
130
113
|
inputs: [
|
|
131
114
|
{
|
|
@@ -152,6 +135,18 @@ export const abi = [
|
|
|
152
135
|
stateMutability: 'nonpayable',
|
|
153
136
|
type: 'function',
|
|
154
137
|
},
|
|
138
|
+
{
|
|
139
|
+
inputs: [],
|
|
140
|
+
name: 'hasPendingOwnerChange',
|
|
141
|
+
outputs: [
|
|
142
|
+
{
|
|
143
|
+
name: '',
|
|
144
|
+
type: 'bool',
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
stateMutability: 'view',
|
|
148
|
+
type: 'function',
|
|
149
|
+
},
|
|
155
150
|
{
|
|
156
151
|
inputs: [
|
|
157
152
|
{
|
|
@@ -159,7 +154,7 @@ export const abi = [
|
|
|
159
154
|
type: 'uint256',
|
|
160
155
|
},
|
|
161
156
|
],
|
|
162
|
-
name: '
|
|
157
|
+
name: 'setOwnershipTimeLock',
|
|
163
158
|
outputs: [],
|
|
164
159
|
stateMutability: 'nonpayable',
|
|
165
160
|
type: 'function',
|
|
@@ -176,6 +171,18 @@ export const abi = [
|
|
|
176
171
|
stateMutability: 'view',
|
|
177
172
|
type: 'function',
|
|
178
173
|
},
|
|
174
|
+
{
|
|
175
|
+
inputs: [],
|
|
176
|
+
name: 'ownershipTimeLock',
|
|
177
|
+
outputs: [
|
|
178
|
+
{
|
|
179
|
+
name: '',
|
|
180
|
+
type: 'uint256',
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
stateMutability: 'view',
|
|
184
|
+
type: 'function',
|
|
185
|
+
},
|
|
179
186
|
{
|
|
180
187
|
inputs: [],
|
|
181
188
|
name: 'pendingOwner',
|
|
@@ -204,7 +211,7 @@ export const abi = [
|
|
|
204
211
|
},
|
|
205
212
|
{
|
|
206
213
|
inputs: [],
|
|
207
|
-
name: '
|
|
214
|
+
name: 'MIN_OWNERSHIP_TIMELOCK',
|
|
208
215
|
outputs: [
|
|
209
216
|
{
|
|
210
217
|
name: '',
|
|
@@ -216,7 +223,7 @@ export const abi = [
|
|
|
216
223
|
},
|
|
217
224
|
{
|
|
218
225
|
inputs: [],
|
|
219
|
-
name: '
|
|
226
|
+
name: 'MAX_OWNERSHIP_TIMELOCK',
|
|
220
227
|
outputs: [
|
|
221
228
|
{
|
|
222
229
|
name: '',
|
|
@@ -227,39 +234,57 @@ export const abi = [
|
|
|
227
234
|
type: 'function',
|
|
228
235
|
},
|
|
229
236
|
{
|
|
230
|
-
inputs: [
|
|
231
|
-
|
|
237
|
+
inputs: [
|
|
238
|
+
{
|
|
239
|
+
name: '_userWallet',
|
|
240
|
+
type: 'address',
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
name: '_recipient',
|
|
244
|
+
type: 'address',
|
|
245
|
+
},
|
|
246
|
+
],
|
|
247
|
+
name: 'transferFunds',
|
|
232
248
|
outputs: [
|
|
233
249
|
{
|
|
234
250
|
name: '',
|
|
235
251
|
type: 'uint256',
|
|
236
252
|
},
|
|
253
|
+
{
|
|
254
|
+
name: '',
|
|
255
|
+
type: 'uint256',
|
|
256
|
+
},
|
|
237
257
|
],
|
|
238
|
-
stateMutability: '
|
|
258
|
+
stateMutability: 'nonpayable',
|
|
239
259
|
type: 'function',
|
|
240
260
|
},
|
|
241
261
|
{
|
|
242
|
-
inputs: [
|
|
243
|
-
name: '_ADDY_REGISTRY',
|
|
244
|
-
outputs: [
|
|
262
|
+
inputs: [
|
|
245
263
|
{
|
|
246
|
-
name: '',
|
|
264
|
+
name: '_userWallet',
|
|
265
|
+
type: 'address',
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
name: '_recipient',
|
|
269
|
+
type: 'address',
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
name: '_asset',
|
|
247
273
|
type: 'address',
|
|
248
274
|
},
|
|
249
275
|
],
|
|
250
|
-
|
|
251
|
-
type: 'function',
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
inputs: [],
|
|
255
|
-
name: 'apiVersion',
|
|
276
|
+
name: 'transferFunds',
|
|
256
277
|
outputs: [
|
|
257
278
|
{
|
|
258
279
|
name: '',
|
|
259
|
-
type: '
|
|
280
|
+
type: 'uint256',
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
name: '',
|
|
284
|
+
type: 'uint256',
|
|
260
285
|
},
|
|
261
286
|
],
|
|
262
|
-
stateMutability: '
|
|
287
|
+
stateMutability: 'nonpayable',
|
|
263
288
|
type: 'function',
|
|
264
289
|
},
|
|
265
290
|
{
|
|
@@ -269,28 +294,20 @@ export const abi = [
|
|
|
269
294
|
type: 'address',
|
|
270
295
|
},
|
|
271
296
|
{
|
|
272
|
-
name: '
|
|
273
|
-
type: '
|
|
297
|
+
name: '_recipient',
|
|
298
|
+
type: 'address',
|
|
274
299
|
},
|
|
275
300
|
{
|
|
276
301
|
name: '_asset',
|
|
277
302
|
type: 'address',
|
|
278
303
|
},
|
|
279
304
|
{
|
|
280
|
-
name: '
|
|
281
|
-
type: '
|
|
305
|
+
name: '_amount',
|
|
306
|
+
type: 'uint256',
|
|
282
307
|
},
|
|
283
308
|
],
|
|
284
|
-
name: '
|
|
309
|
+
name: 'transferFunds',
|
|
285
310
|
outputs: [
|
|
286
|
-
{
|
|
287
|
-
name: '',
|
|
288
|
-
type: 'uint256',
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
name: '',
|
|
292
|
-
type: 'address',
|
|
293
|
-
},
|
|
294
311
|
{
|
|
295
312
|
name: '',
|
|
296
313
|
type: 'uint256',
|
|
@@ -310,32 +327,24 @@ export const abi = [
|
|
|
310
327
|
type: 'address',
|
|
311
328
|
},
|
|
312
329
|
{
|
|
313
|
-
name: '
|
|
314
|
-
type: 'uint256',
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
name: '_asset',
|
|
330
|
+
name: '_recipient',
|
|
318
331
|
type: 'address',
|
|
319
332
|
},
|
|
320
333
|
{
|
|
321
|
-
name: '
|
|
334
|
+
name: '_asset',
|
|
322
335
|
type: 'address',
|
|
323
336
|
},
|
|
324
337
|
{
|
|
325
338
|
name: '_amount',
|
|
326
339
|
type: 'uint256',
|
|
327
340
|
},
|
|
328
|
-
],
|
|
329
|
-
name: 'depositTokens',
|
|
330
|
-
outputs: [
|
|
331
|
-
{
|
|
332
|
-
name: '',
|
|
333
|
-
type: 'uint256',
|
|
334
|
-
},
|
|
335
341
|
{
|
|
336
|
-
name: '',
|
|
337
|
-
type: '
|
|
342
|
+
name: '_isCheque',
|
|
343
|
+
type: 'bool',
|
|
338
344
|
},
|
|
345
|
+
],
|
|
346
|
+
name: 'transferFunds',
|
|
347
|
+
outputs: [
|
|
339
348
|
{
|
|
340
349
|
name: '',
|
|
341
350
|
type: 'uint256',
|
|
@@ -355,21 +364,21 @@ export const abi = [
|
|
|
355
364
|
type: 'address',
|
|
356
365
|
},
|
|
357
366
|
{
|
|
358
|
-
name: '
|
|
359
|
-
type: 'uint256',
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
name: '_asset',
|
|
367
|
+
name: '_recipient',
|
|
363
368
|
type: 'address',
|
|
364
369
|
},
|
|
365
370
|
{
|
|
366
|
-
name: '
|
|
371
|
+
name: '_asset',
|
|
367
372
|
type: 'address',
|
|
368
373
|
},
|
|
369
374
|
{
|
|
370
375
|
name: '_amount',
|
|
371
376
|
type: 'uint256',
|
|
372
377
|
},
|
|
378
|
+
{
|
|
379
|
+
name: '_isCheque',
|
|
380
|
+
type: 'bool',
|
|
381
|
+
},
|
|
373
382
|
{
|
|
374
383
|
components: [
|
|
375
384
|
{
|
|
@@ -377,8 +386,8 @@ export const abi = [
|
|
|
377
386
|
type: 'bytes',
|
|
378
387
|
},
|
|
379
388
|
{
|
|
380
|
-
name: '
|
|
381
|
-
type: '
|
|
389
|
+
name: 'nonce',
|
|
390
|
+
type: 'uint256',
|
|
382
391
|
},
|
|
383
392
|
{
|
|
384
393
|
name: 'expiration',
|
|
@@ -389,16 +398,8 @@ export const abi = [
|
|
|
389
398
|
type: 'tuple',
|
|
390
399
|
},
|
|
391
400
|
],
|
|
392
|
-
name: '
|
|
401
|
+
name: 'transferFunds',
|
|
393
402
|
outputs: [
|
|
394
|
-
{
|
|
395
|
-
name: '',
|
|
396
|
-
type: 'uint256',
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
name: '',
|
|
400
|
-
type: 'address',
|
|
401
|
-
},
|
|
402
403
|
{
|
|
403
404
|
name: '',
|
|
404
405
|
type: 'uint256',
|
|
@@ -425,17 +426,17 @@ export const abi = [
|
|
|
425
426
|
name: '_asset',
|
|
426
427
|
type: 'address',
|
|
427
428
|
},
|
|
428
|
-
{
|
|
429
|
-
name: '_vaultToken',
|
|
430
|
-
type: 'address',
|
|
431
|
-
},
|
|
432
429
|
],
|
|
433
|
-
name: '
|
|
430
|
+
name: 'depositForYield',
|
|
434
431
|
outputs: [
|
|
435
432
|
{
|
|
436
433
|
name: '',
|
|
437
434
|
type: 'uint256',
|
|
438
435
|
},
|
|
436
|
+
{
|
|
437
|
+
name: '',
|
|
438
|
+
type: 'address',
|
|
439
|
+
},
|
|
439
440
|
{
|
|
440
441
|
name: '',
|
|
441
442
|
type: 'uint256',
|
|
@@ -463,20 +464,20 @@ export const abi = [
|
|
|
463
464
|
type: 'address',
|
|
464
465
|
},
|
|
465
466
|
{
|
|
466
|
-
name: '
|
|
467
|
+
name: '_vaultAddr',
|
|
467
468
|
type: 'address',
|
|
468
469
|
},
|
|
469
|
-
{
|
|
470
|
-
name: '_vaultTokenAmount',
|
|
471
|
-
type: 'uint256',
|
|
472
|
-
},
|
|
473
470
|
],
|
|
474
|
-
name: '
|
|
471
|
+
name: 'depositForYield',
|
|
475
472
|
outputs: [
|
|
476
473
|
{
|
|
477
474
|
name: '',
|
|
478
475
|
type: 'uint256',
|
|
479
476
|
},
|
|
477
|
+
{
|
|
478
|
+
name: '',
|
|
479
|
+
type: 'address',
|
|
480
|
+
},
|
|
480
481
|
{
|
|
481
482
|
name: '',
|
|
482
483
|
type: 'uint256',
|
|
@@ -504,38 +505,24 @@ export const abi = [
|
|
|
504
505
|
type: 'address',
|
|
505
506
|
},
|
|
506
507
|
{
|
|
507
|
-
name: '
|
|
508
|
+
name: '_vaultAddr',
|
|
508
509
|
type: 'address',
|
|
509
510
|
},
|
|
510
511
|
{
|
|
511
|
-
name: '
|
|
512
|
+
name: '_amount',
|
|
512
513
|
type: 'uint256',
|
|
513
514
|
},
|
|
514
|
-
{
|
|
515
|
-
components: [
|
|
516
|
-
{
|
|
517
|
-
name: 'signature',
|
|
518
|
-
type: 'bytes',
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
name: 'signer',
|
|
522
|
-
type: 'address',
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
name: 'expiration',
|
|
526
|
-
type: 'uint256',
|
|
527
|
-
},
|
|
528
|
-
],
|
|
529
|
-
name: '_sig',
|
|
530
|
-
type: 'tuple',
|
|
531
|
-
},
|
|
532
515
|
],
|
|
533
|
-
name: '
|
|
516
|
+
name: 'depositForYield',
|
|
534
517
|
outputs: [
|
|
535
518
|
{
|
|
536
519
|
name: '',
|
|
537
520
|
type: 'uint256',
|
|
538
521
|
},
|
|
522
|
+
{
|
|
523
|
+
name: '',
|
|
524
|
+
type: 'address',
|
|
525
|
+
},
|
|
539
526
|
{
|
|
540
527
|
name: '',
|
|
541
528
|
type: 'uint256',
|
|
@@ -555,27 +542,27 @@ export const abi = [
|
|
|
555
542
|
type: 'address',
|
|
556
543
|
},
|
|
557
544
|
{
|
|
558
|
-
name: '
|
|
545
|
+
name: '_legoId',
|
|
559
546
|
type: 'uint256',
|
|
560
547
|
},
|
|
561
548
|
{
|
|
562
|
-
name: '
|
|
549
|
+
name: '_asset',
|
|
563
550
|
type: 'address',
|
|
564
551
|
},
|
|
565
552
|
{
|
|
566
|
-
name: '
|
|
553
|
+
name: '_vaultAddr',
|
|
567
554
|
type: 'address',
|
|
568
555
|
},
|
|
569
556
|
{
|
|
570
|
-
name: '
|
|
557
|
+
name: '_amount',
|
|
571
558
|
type: 'uint256',
|
|
572
559
|
},
|
|
573
560
|
{
|
|
574
|
-
name: '
|
|
575
|
-
type: '
|
|
561
|
+
name: '_extraData',
|
|
562
|
+
type: 'bytes32',
|
|
576
563
|
},
|
|
577
564
|
],
|
|
578
|
-
name: '
|
|
565
|
+
name: 'depositForYield',
|
|
579
566
|
outputs: [
|
|
580
567
|
{
|
|
581
568
|
name: '',
|
|
@@ -604,31 +591,45 @@ export const abi = [
|
|
|
604
591
|
type: 'address',
|
|
605
592
|
},
|
|
606
593
|
{
|
|
607
|
-
name: '
|
|
594
|
+
name: '_legoId',
|
|
608
595
|
type: 'uint256',
|
|
609
596
|
},
|
|
610
597
|
{
|
|
611
|
-
name: '
|
|
598
|
+
name: '_asset',
|
|
612
599
|
type: 'address',
|
|
613
600
|
},
|
|
614
601
|
{
|
|
615
|
-
name: '
|
|
602
|
+
name: '_vaultAddr',
|
|
616
603
|
type: 'address',
|
|
617
604
|
},
|
|
618
605
|
{
|
|
619
|
-
name: '
|
|
606
|
+
name: '_amount',
|
|
620
607
|
type: 'uint256',
|
|
621
608
|
},
|
|
622
609
|
{
|
|
623
|
-
name: '
|
|
624
|
-
type: '
|
|
610
|
+
name: '_extraData',
|
|
611
|
+
type: 'bytes32',
|
|
625
612
|
},
|
|
626
613
|
{
|
|
627
|
-
|
|
628
|
-
|
|
614
|
+
components: [
|
|
615
|
+
{
|
|
616
|
+
name: 'signature',
|
|
617
|
+
type: 'bytes',
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
name: 'nonce',
|
|
621
|
+
type: 'uint256',
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
name: 'expiration',
|
|
625
|
+
type: 'uint256',
|
|
626
|
+
},
|
|
627
|
+
],
|
|
628
|
+
name: '_sig',
|
|
629
|
+
type: 'tuple',
|
|
629
630
|
},
|
|
630
631
|
],
|
|
631
|
-
name: '
|
|
632
|
+
name: 'depositForYield',
|
|
632
633
|
outputs: [
|
|
633
634
|
{
|
|
634
635
|
name: '',
|
|
@@ -657,49 +658,15 @@ export const abi = [
|
|
|
657
658
|
type: 'address',
|
|
658
659
|
},
|
|
659
660
|
{
|
|
660
|
-
name: '
|
|
661
|
-
type: 'uint256',
|
|
662
|
-
},
|
|
663
|
-
{
|
|
664
|
-
name: '_fromAsset',
|
|
665
|
-
type: 'address',
|
|
666
|
-
},
|
|
667
|
-
{
|
|
668
|
-
name: '_fromVaultToken',
|
|
669
|
-
type: 'address',
|
|
670
|
-
},
|
|
671
|
-
{
|
|
672
|
-
name: '_toLegoId',
|
|
661
|
+
name: '_legoId',
|
|
673
662
|
type: 'uint256',
|
|
674
663
|
},
|
|
675
664
|
{
|
|
676
|
-
name: '
|
|
665
|
+
name: '_vaultToken',
|
|
677
666
|
type: 'address',
|
|
678
667
|
},
|
|
679
|
-
{
|
|
680
|
-
name: '_fromVaultTokenAmount',
|
|
681
|
-
type: 'uint256',
|
|
682
|
-
},
|
|
683
|
-
{
|
|
684
|
-
components: [
|
|
685
|
-
{
|
|
686
|
-
name: 'signature',
|
|
687
|
-
type: 'bytes',
|
|
688
|
-
},
|
|
689
|
-
{
|
|
690
|
-
name: 'signer',
|
|
691
|
-
type: 'address',
|
|
692
|
-
},
|
|
693
|
-
{
|
|
694
|
-
name: 'expiration',
|
|
695
|
-
type: 'uint256',
|
|
696
|
-
},
|
|
697
|
-
],
|
|
698
|
-
name: '_sig',
|
|
699
|
-
type: 'tuple',
|
|
700
|
-
},
|
|
701
668
|
],
|
|
702
|
-
name: '
|
|
669
|
+
name: 'withdrawFromYield',
|
|
703
670
|
outputs: [
|
|
704
671
|
{
|
|
705
672
|
name: '',
|
|
@@ -728,38 +695,28 @@ export const abi = [
|
|
|
728
695
|
type: 'address',
|
|
729
696
|
},
|
|
730
697
|
{
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
name: 'minAmountOut',
|
|
742
|
-
type: 'uint256',
|
|
743
|
-
},
|
|
744
|
-
{
|
|
745
|
-
name: 'tokenPath',
|
|
746
|
-
type: 'address[]',
|
|
747
|
-
},
|
|
748
|
-
{
|
|
749
|
-
name: 'poolPath',
|
|
750
|
-
type: 'address[]',
|
|
751
|
-
},
|
|
752
|
-
],
|
|
753
|
-
name: '_swapInstructions',
|
|
754
|
-
type: 'tuple[]',
|
|
698
|
+
name: '_legoId',
|
|
699
|
+
type: 'uint256',
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
name: '_vaultToken',
|
|
703
|
+
type: 'address',
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
name: '_amount',
|
|
707
|
+
type: 'uint256',
|
|
755
708
|
},
|
|
756
709
|
],
|
|
757
|
-
name: '
|
|
710
|
+
name: 'withdrawFromYield',
|
|
758
711
|
outputs: [
|
|
759
712
|
{
|
|
760
713
|
name: '',
|
|
761
714
|
type: 'uint256',
|
|
762
715
|
},
|
|
716
|
+
{
|
|
717
|
+
name: '',
|
|
718
|
+
type: 'address',
|
|
719
|
+
},
|
|
763
720
|
{
|
|
764
721
|
name: '',
|
|
765
722
|
type: 'uint256',
|
|
@@ -779,56 +736,32 @@ export const abi = [
|
|
|
779
736
|
type: 'address',
|
|
780
737
|
},
|
|
781
738
|
{
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
name: 'legoId',
|
|
785
|
-
type: 'uint256',
|
|
786
|
-
},
|
|
787
|
-
{
|
|
788
|
-
name: 'amountIn',
|
|
789
|
-
type: 'uint256',
|
|
790
|
-
},
|
|
791
|
-
{
|
|
792
|
-
name: 'minAmountOut',
|
|
793
|
-
type: 'uint256',
|
|
794
|
-
},
|
|
795
|
-
{
|
|
796
|
-
name: 'tokenPath',
|
|
797
|
-
type: 'address[]',
|
|
798
|
-
},
|
|
799
|
-
{
|
|
800
|
-
name: 'poolPath',
|
|
801
|
-
type: 'address[]',
|
|
802
|
-
},
|
|
803
|
-
],
|
|
804
|
-
name: '_swapInstructions',
|
|
805
|
-
type: 'tuple[]',
|
|
739
|
+
name: '_legoId',
|
|
740
|
+
type: 'uint256',
|
|
806
741
|
},
|
|
807
742
|
{
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
name: 'expiration',
|
|
819
|
-
type: 'uint256',
|
|
820
|
-
},
|
|
821
|
-
],
|
|
822
|
-
name: '_sig',
|
|
823
|
-
type: 'tuple',
|
|
743
|
+
name: '_vaultToken',
|
|
744
|
+
type: 'address',
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
name: '_amount',
|
|
748
|
+
type: 'uint256',
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
name: '_extraData',
|
|
752
|
+
type: 'bytes32',
|
|
824
753
|
},
|
|
825
754
|
],
|
|
826
|
-
name: '
|
|
755
|
+
name: 'withdrawFromYield',
|
|
827
756
|
outputs: [
|
|
828
757
|
{
|
|
829
758
|
name: '',
|
|
830
759
|
type: 'uint256',
|
|
831
760
|
},
|
|
761
|
+
{
|
|
762
|
+
name: '',
|
|
763
|
+
type: 'address',
|
|
764
|
+
},
|
|
832
765
|
{
|
|
833
766
|
name: '',
|
|
834
767
|
type: 'uint256',
|
|
@@ -847,60 +780,47 @@ export const abi = [
|
|
|
847
780
|
name: '_userWallet',
|
|
848
781
|
type: 'address',
|
|
849
782
|
},
|
|
783
|
+
{
|
|
784
|
+
name: '_legoId',
|
|
785
|
+
type: 'uint256',
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
name: '_vaultToken',
|
|
789
|
+
type: 'address',
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
name: '_amount',
|
|
793
|
+
type: 'uint256',
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
name: '_extraData',
|
|
797
|
+
type: 'bytes32',
|
|
798
|
+
},
|
|
850
799
|
{
|
|
851
800
|
components: [
|
|
852
801
|
{
|
|
853
|
-
name: '
|
|
854
|
-
type: '
|
|
802
|
+
name: 'signature',
|
|
803
|
+
type: 'bytes',
|
|
855
804
|
},
|
|
856
805
|
{
|
|
857
|
-
name: '
|
|
806
|
+
name: 'nonce',
|
|
858
807
|
type: 'uint256',
|
|
859
808
|
},
|
|
860
809
|
{
|
|
861
|
-
name: '
|
|
810
|
+
name: 'expiration',
|
|
862
811
|
type: 'uint256',
|
|
863
812
|
},
|
|
864
|
-
{
|
|
865
|
-
name: 'tokenPath',
|
|
866
|
-
type: 'address[]',
|
|
867
|
-
},
|
|
868
|
-
{
|
|
869
|
-
name: 'poolPath',
|
|
870
|
-
type: 'address[]',
|
|
871
|
-
},
|
|
872
813
|
],
|
|
873
|
-
name: '
|
|
874
|
-
type: 'tuple
|
|
875
|
-
},
|
|
876
|
-
{
|
|
877
|
-
name: '_expiration',
|
|
878
|
-
type: 'uint256',
|
|
814
|
+
name: '_sig',
|
|
815
|
+
type: 'tuple',
|
|
879
816
|
},
|
|
880
817
|
],
|
|
881
|
-
name: '
|
|
818
|
+
name: 'withdrawFromYield',
|
|
882
819
|
outputs: [
|
|
883
820
|
{
|
|
884
821
|
name: '',
|
|
885
|
-
type: 'bytes32',
|
|
886
|
-
},
|
|
887
|
-
],
|
|
888
|
-
stateMutability: 'view',
|
|
889
|
-
type: 'function',
|
|
890
|
-
},
|
|
891
|
-
{
|
|
892
|
-
inputs: [
|
|
893
|
-
{
|
|
894
|
-
name: '_userWallet',
|
|
895
|
-
type: 'address',
|
|
896
|
-
},
|
|
897
|
-
{
|
|
898
|
-
name: '_legoId',
|
|
899
822
|
type: 'uint256',
|
|
900
823
|
},
|
|
901
|
-
],
|
|
902
|
-
name: 'borrow',
|
|
903
|
-
outputs: [
|
|
904
824
|
{
|
|
905
825
|
name: '',
|
|
906
826
|
type: 'address',
|
|
@@ -924,16 +844,24 @@ export const abi = [
|
|
|
924
844
|
type: 'address',
|
|
925
845
|
},
|
|
926
846
|
{
|
|
927
|
-
name: '
|
|
847
|
+
name: '_fromLegoId',
|
|
928
848
|
type: 'uint256',
|
|
929
849
|
},
|
|
930
850
|
{
|
|
931
|
-
name: '
|
|
851
|
+
name: '_fromVaultToken',
|
|
932
852
|
type: 'address',
|
|
933
853
|
},
|
|
854
|
+
{
|
|
855
|
+
name: '_toLegoId',
|
|
856
|
+
type: 'uint256',
|
|
857
|
+
},
|
|
934
858
|
],
|
|
935
|
-
name: '
|
|
859
|
+
name: 'rebalanceYieldPosition',
|
|
936
860
|
outputs: [
|
|
861
|
+
{
|
|
862
|
+
name: '',
|
|
863
|
+
type: 'uint256',
|
|
864
|
+
},
|
|
937
865
|
{
|
|
938
866
|
name: '',
|
|
939
867
|
type: 'address',
|
|
@@ -957,20 +885,28 @@ export const abi = [
|
|
|
957
885
|
type: 'address',
|
|
958
886
|
},
|
|
959
887
|
{
|
|
960
|
-
name: '
|
|
888
|
+
name: '_fromLegoId',
|
|
961
889
|
type: 'uint256',
|
|
962
890
|
},
|
|
963
891
|
{
|
|
964
|
-
name: '
|
|
892
|
+
name: '_fromVaultToken',
|
|
965
893
|
type: 'address',
|
|
966
894
|
},
|
|
967
895
|
{
|
|
968
|
-
name: '
|
|
896
|
+
name: '_toLegoId',
|
|
969
897
|
type: 'uint256',
|
|
970
898
|
},
|
|
899
|
+
{
|
|
900
|
+
name: '_toVaultAddr',
|
|
901
|
+
type: 'address',
|
|
902
|
+
},
|
|
971
903
|
],
|
|
972
|
-
name: '
|
|
904
|
+
name: 'rebalanceYieldPosition',
|
|
973
905
|
outputs: [
|
|
906
|
+
{
|
|
907
|
+
name: '',
|
|
908
|
+
type: 'uint256',
|
|
909
|
+
},
|
|
974
910
|
{
|
|
975
911
|
name: '',
|
|
976
912
|
type: 'address',
|
|
@@ -994,38 +930,32 @@ export const abi = [
|
|
|
994
930
|
type: 'address',
|
|
995
931
|
},
|
|
996
932
|
{
|
|
997
|
-
name: '
|
|
933
|
+
name: '_fromLegoId',
|
|
998
934
|
type: 'uint256',
|
|
999
935
|
},
|
|
1000
936
|
{
|
|
1001
|
-
name: '
|
|
937
|
+
name: '_fromVaultToken',
|
|
1002
938
|
type: 'address',
|
|
1003
939
|
},
|
|
1004
940
|
{
|
|
1005
|
-
name: '
|
|
941
|
+
name: '_toLegoId',
|
|
1006
942
|
type: 'uint256',
|
|
1007
943
|
},
|
|
1008
944
|
{
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
name: 'signer',
|
|
1016
|
-
type: 'address',
|
|
1017
|
-
},
|
|
1018
|
-
{
|
|
1019
|
-
name: 'expiration',
|
|
1020
|
-
type: 'uint256',
|
|
1021
|
-
},
|
|
1022
|
-
],
|
|
1023
|
-
name: '_sig',
|
|
1024
|
-
type: 'tuple',
|
|
945
|
+
name: '_toVaultAddr',
|
|
946
|
+
type: 'address',
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
name: '_fromVaultAmount',
|
|
950
|
+
type: 'uint256',
|
|
1025
951
|
},
|
|
1026
952
|
],
|
|
1027
|
-
name: '
|
|
953
|
+
name: 'rebalanceYieldPosition',
|
|
1028
954
|
outputs: [
|
|
955
|
+
{
|
|
956
|
+
name: '',
|
|
957
|
+
type: 'uint256',
|
|
958
|
+
},
|
|
1029
959
|
{
|
|
1030
960
|
name: '',
|
|
1031
961
|
type: 'address',
|
|
@@ -1049,64 +979,39 @@ export const abi = [
|
|
|
1049
979
|
type: 'address',
|
|
1050
980
|
},
|
|
1051
981
|
{
|
|
1052
|
-
name: '
|
|
982
|
+
name: '_fromLegoId',
|
|
1053
983
|
type: 'uint256',
|
|
1054
984
|
},
|
|
1055
985
|
{
|
|
1056
|
-
name: '
|
|
1057
|
-
type: 'address',
|
|
1058
|
-
},
|
|
1059
|
-
],
|
|
1060
|
-
name: 'repayDebt',
|
|
1061
|
-
outputs: [
|
|
1062
|
-
{
|
|
1063
|
-
name: '',
|
|
986
|
+
name: '_fromVaultToken',
|
|
1064
987
|
type: 'address',
|
|
1065
988
|
},
|
|
1066
989
|
{
|
|
1067
|
-
name: '',
|
|
1068
|
-
type: 'uint256',
|
|
1069
|
-
},
|
|
1070
|
-
{
|
|
1071
|
-
name: '',
|
|
1072
|
-
type: 'uint256',
|
|
1073
|
-
},
|
|
1074
|
-
{
|
|
1075
|
-
name: '',
|
|
990
|
+
name: '_toLegoId',
|
|
1076
991
|
type: 'uint256',
|
|
1077
992
|
},
|
|
1078
|
-
],
|
|
1079
|
-
stateMutability: 'nonpayable',
|
|
1080
|
-
type: 'function',
|
|
1081
|
-
},
|
|
1082
|
-
{
|
|
1083
|
-
inputs: [
|
|
1084
993
|
{
|
|
1085
|
-
name: '
|
|
994
|
+
name: '_toVaultAddr',
|
|
1086
995
|
type: 'address',
|
|
1087
996
|
},
|
|
1088
997
|
{
|
|
1089
|
-
name: '
|
|
998
|
+
name: '_fromVaultAmount',
|
|
1090
999
|
type: 'uint256',
|
|
1091
1000
|
},
|
|
1092
1001
|
{
|
|
1093
|
-
name: '
|
|
1094
|
-
type: '
|
|
1095
|
-
},
|
|
1096
|
-
{
|
|
1097
|
-
name: '_paymentAmount',
|
|
1098
|
-
type: 'uint256',
|
|
1002
|
+
name: '_extraData',
|
|
1003
|
+
type: 'bytes32',
|
|
1099
1004
|
},
|
|
1100
1005
|
],
|
|
1101
|
-
name: '
|
|
1006
|
+
name: 'rebalanceYieldPosition',
|
|
1102
1007
|
outputs: [
|
|
1103
1008
|
{
|
|
1104
1009
|
name: '',
|
|
1105
|
-
type: '
|
|
1010
|
+
type: 'uint256',
|
|
1106
1011
|
},
|
|
1107
1012
|
{
|
|
1108
1013
|
name: '',
|
|
1109
|
-
type: '
|
|
1014
|
+
type: 'address',
|
|
1110
1015
|
},
|
|
1111
1016
|
{
|
|
1112
1017
|
name: '',
|
|
@@ -1127,17 +1032,29 @@ export const abi = [
|
|
|
1127
1032
|
type: 'address',
|
|
1128
1033
|
},
|
|
1129
1034
|
{
|
|
1130
|
-
name: '
|
|
1035
|
+
name: '_fromLegoId',
|
|
1131
1036
|
type: 'uint256',
|
|
1132
1037
|
},
|
|
1133
1038
|
{
|
|
1134
|
-
name: '
|
|
1039
|
+
name: '_fromVaultToken',
|
|
1135
1040
|
type: 'address',
|
|
1136
1041
|
},
|
|
1137
1042
|
{
|
|
1138
|
-
name: '
|
|
1043
|
+
name: '_toLegoId',
|
|
1044
|
+
type: 'uint256',
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
name: '_toVaultAddr',
|
|
1048
|
+
type: 'address',
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
name: '_fromVaultAmount',
|
|
1139
1052
|
type: 'uint256',
|
|
1140
1053
|
},
|
|
1054
|
+
{
|
|
1055
|
+
name: '_extraData',
|
|
1056
|
+
type: 'bytes32',
|
|
1057
|
+
},
|
|
1141
1058
|
{
|
|
1142
1059
|
components: [
|
|
1143
1060
|
{
|
|
@@ -1145,8 +1062,8 @@ export const abi = [
|
|
|
1145
1062
|
type: 'bytes',
|
|
1146
1063
|
},
|
|
1147
1064
|
{
|
|
1148
|
-
name: '
|
|
1149
|
-
type: '
|
|
1065
|
+
name: 'nonce',
|
|
1066
|
+
type: 'uint256',
|
|
1150
1067
|
},
|
|
1151
1068
|
{
|
|
1152
1069
|
name: 'expiration',
|
|
@@ -1157,15 +1074,15 @@ export const abi = [
|
|
|
1157
1074
|
type: 'tuple',
|
|
1158
1075
|
},
|
|
1159
1076
|
],
|
|
1160
|
-
name: '
|
|
1077
|
+
name: 'rebalanceYieldPosition',
|
|
1161
1078
|
outputs: [
|
|
1162
1079
|
{
|
|
1163
1080
|
name: '',
|
|
1164
|
-
type: '
|
|
1081
|
+
type: 'uint256',
|
|
1165
1082
|
},
|
|
1166
1083
|
{
|
|
1167
1084
|
name: '',
|
|
1168
|
-
type: '
|
|
1085
|
+
type: 'address',
|
|
1169
1086
|
},
|
|
1170
1087
|
{
|
|
1171
1088
|
name: '',
|
|
@@ -1186,32 +1103,55 @@ export const abi = [
|
|
|
1186
1103
|
type: 'address',
|
|
1187
1104
|
},
|
|
1188
1105
|
{
|
|
1189
|
-
|
|
1190
|
-
|
|
1106
|
+
components: [
|
|
1107
|
+
{
|
|
1108
|
+
name: 'legoId',
|
|
1109
|
+
type: 'uint256',
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
name: 'amountIn',
|
|
1113
|
+
type: 'uint256',
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
name: 'minAmountOut',
|
|
1117
|
+
type: 'uint256',
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
name: 'tokenPath',
|
|
1121
|
+
type: 'address[]',
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
name: 'poolPath',
|
|
1125
|
+
type: 'address[]',
|
|
1126
|
+
},
|
|
1127
|
+
],
|
|
1128
|
+
name: '_swapInstructions',
|
|
1129
|
+
type: 'tuple[]',
|
|
1191
1130
|
},
|
|
1192
1131
|
],
|
|
1193
|
-
name: '
|
|
1194
|
-
outputs: [
|
|
1195
|
-
stateMutability: 'nonpayable',
|
|
1196
|
-
type: 'function',
|
|
1197
|
-
},
|
|
1198
|
-
{
|
|
1199
|
-
inputs: [
|
|
1132
|
+
name: 'swapTokens',
|
|
1133
|
+
outputs: [
|
|
1200
1134
|
{
|
|
1201
|
-
name: '
|
|
1135
|
+
name: '',
|
|
1202
1136
|
type: 'address',
|
|
1203
1137
|
},
|
|
1204
1138
|
{
|
|
1205
|
-
name: '
|
|
1139
|
+
name: '',
|
|
1206
1140
|
type: 'uint256',
|
|
1207
1141
|
},
|
|
1208
1142
|
{
|
|
1209
|
-
name: '
|
|
1143
|
+
name: '',
|
|
1210
1144
|
type: 'address',
|
|
1211
1145
|
},
|
|
1146
|
+
{
|
|
1147
|
+
name: '',
|
|
1148
|
+
type: 'uint256',
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
name: '',
|
|
1152
|
+
type: 'uint256',
|
|
1153
|
+
},
|
|
1212
1154
|
],
|
|
1213
|
-
name: 'claimRewards',
|
|
1214
|
-
outputs: [],
|
|
1215
1155
|
stateMutability: 'nonpayable',
|
|
1216
1156
|
type: 'function',
|
|
1217
1157
|
},
|
|
@@ -1222,48 +1162,73 @@ export const abi = [
|
|
|
1222
1162
|
type: 'address',
|
|
1223
1163
|
},
|
|
1224
1164
|
{
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1165
|
+
components: [
|
|
1166
|
+
{
|
|
1167
|
+
name: 'legoId',
|
|
1168
|
+
type: 'uint256',
|
|
1169
|
+
},
|
|
1170
|
+
{
|
|
1171
|
+
name: 'amountIn',
|
|
1172
|
+
type: 'uint256',
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
name: 'minAmountOut',
|
|
1176
|
+
type: 'uint256',
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
name: 'tokenPath',
|
|
1180
|
+
type: 'address[]',
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
name: 'poolPath',
|
|
1184
|
+
type: 'address[]',
|
|
1185
|
+
},
|
|
1186
|
+
],
|
|
1187
|
+
name: '_swapInstructions',
|
|
1188
|
+
type: 'tuple[]',
|
|
1231
1189
|
},
|
|
1232
1190
|
{
|
|
1233
|
-
|
|
1234
|
-
|
|
1191
|
+
components: [
|
|
1192
|
+
{
|
|
1193
|
+
name: 'signature',
|
|
1194
|
+
type: 'bytes',
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
name: 'nonce',
|
|
1198
|
+
type: 'uint256',
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
name: 'expiration',
|
|
1202
|
+
type: 'uint256',
|
|
1203
|
+
},
|
|
1204
|
+
],
|
|
1205
|
+
name: '_sig',
|
|
1206
|
+
type: 'tuple',
|
|
1235
1207
|
},
|
|
1236
1208
|
],
|
|
1237
|
-
name: '
|
|
1238
|
-
outputs: [
|
|
1239
|
-
stateMutability: 'nonpayable',
|
|
1240
|
-
type: 'function',
|
|
1241
|
-
},
|
|
1242
|
-
{
|
|
1243
|
-
inputs: [
|
|
1209
|
+
name: 'swapTokens',
|
|
1210
|
+
outputs: [
|
|
1244
1211
|
{
|
|
1245
|
-
name: '
|
|
1212
|
+
name: '',
|
|
1246
1213
|
type: 'address',
|
|
1247
1214
|
},
|
|
1248
1215
|
{
|
|
1249
|
-
name: '
|
|
1216
|
+
name: '',
|
|
1250
1217
|
type: 'uint256',
|
|
1251
1218
|
},
|
|
1252
1219
|
{
|
|
1253
|
-
name: '
|
|
1220
|
+
name: '',
|
|
1254
1221
|
type: 'address',
|
|
1255
1222
|
},
|
|
1256
1223
|
{
|
|
1257
|
-
name: '
|
|
1258
|
-
type: '
|
|
1224
|
+
name: '',
|
|
1225
|
+
type: 'uint256',
|
|
1259
1226
|
},
|
|
1260
1227
|
{
|
|
1261
|
-
name: '
|
|
1228
|
+
name: '',
|
|
1262
1229
|
type: 'uint256',
|
|
1263
1230
|
},
|
|
1264
1231
|
],
|
|
1265
|
-
name: 'claimRewards',
|
|
1266
|
-
outputs: [],
|
|
1267
1232
|
stateMutability: 'nonpayable',
|
|
1268
1233
|
type: 'function',
|
|
1269
1234
|
},
|
|
@@ -1278,24 +1243,33 @@ export const abi = [
|
|
|
1278
1243
|
type: 'uint256',
|
|
1279
1244
|
},
|
|
1280
1245
|
{
|
|
1281
|
-
name: '
|
|
1246
|
+
name: '_tokenIn',
|
|
1282
1247
|
type: 'address',
|
|
1283
1248
|
},
|
|
1284
1249
|
{
|
|
1285
|
-
name: '
|
|
1250
|
+
name: '_tokenOut',
|
|
1286
1251
|
type: 'address',
|
|
1287
1252
|
},
|
|
1253
|
+
],
|
|
1254
|
+
name: 'mintOrRedeemAsset',
|
|
1255
|
+
outputs: [
|
|
1288
1256
|
{
|
|
1289
|
-
name: '
|
|
1257
|
+
name: '',
|
|
1290
1258
|
type: 'uint256',
|
|
1291
1259
|
},
|
|
1292
1260
|
{
|
|
1293
|
-
name: '
|
|
1294
|
-
type: '
|
|
1261
|
+
name: '',
|
|
1262
|
+
type: 'uint256',
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
name: '',
|
|
1266
|
+
type: 'bool',
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
name: '',
|
|
1270
|
+
type: 'uint256',
|
|
1295
1271
|
},
|
|
1296
1272
|
],
|
|
1297
|
-
name: 'claimRewards',
|
|
1298
|
-
outputs: [],
|
|
1299
1273
|
stateMutability: 'nonpayable',
|
|
1300
1274
|
type: 'function',
|
|
1301
1275
|
},
|
|
@@ -1310,42 +1284,37 @@ export const abi = [
|
|
|
1310
1284
|
type: 'uint256',
|
|
1311
1285
|
},
|
|
1312
1286
|
{
|
|
1313
|
-
name: '
|
|
1287
|
+
name: '_tokenIn',
|
|
1314
1288
|
type: 'address',
|
|
1315
1289
|
},
|
|
1316
1290
|
{
|
|
1317
|
-
name: '
|
|
1291
|
+
name: '_tokenOut',
|
|
1318
1292
|
type: 'address',
|
|
1319
1293
|
},
|
|
1320
1294
|
{
|
|
1321
|
-
name: '
|
|
1295
|
+
name: '_amountIn',
|
|
1322
1296
|
type: 'uint256',
|
|
1323
1297
|
},
|
|
1298
|
+
],
|
|
1299
|
+
name: 'mintOrRedeemAsset',
|
|
1300
|
+
outputs: [
|
|
1324
1301
|
{
|
|
1325
|
-
name: '
|
|
1326
|
-
type: '
|
|
1302
|
+
name: '',
|
|
1303
|
+
type: 'uint256',
|
|
1327
1304
|
},
|
|
1328
1305
|
{
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
name: 'expiration',
|
|
1340
|
-
type: 'uint256',
|
|
1341
|
-
},
|
|
1342
|
-
],
|
|
1343
|
-
name: '_sig',
|
|
1344
|
-
type: 'tuple',
|
|
1306
|
+
name: '',
|
|
1307
|
+
type: 'uint256',
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
name: '',
|
|
1311
|
+
type: 'bool',
|
|
1312
|
+
},
|
|
1313
|
+
{
|
|
1314
|
+
name: '',
|
|
1315
|
+
type: 'uint256',
|
|
1345
1316
|
},
|
|
1346
1317
|
],
|
|
1347
|
-
name: 'claimRewards',
|
|
1348
|
-
outputs: [],
|
|
1349
1318
|
stateMutability: 'nonpayable',
|
|
1350
1319
|
type: 'function',
|
|
1351
1320
|
},
|
|
@@ -1360,27 +1329,23 @@ export const abi = [
|
|
|
1360
1329
|
type: 'uint256',
|
|
1361
1330
|
},
|
|
1362
1331
|
{
|
|
1363
|
-
name: '
|
|
1332
|
+
name: '_tokenIn',
|
|
1364
1333
|
type: 'address',
|
|
1365
1334
|
},
|
|
1366
1335
|
{
|
|
1367
|
-
name: '
|
|
1368
|
-
type: 'uint256',
|
|
1369
|
-
},
|
|
1370
|
-
{
|
|
1371
|
-
name: '_pool',
|
|
1336
|
+
name: '_tokenOut',
|
|
1372
1337
|
type: 'address',
|
|
1373
1338
|
},
|
|
1374
1339
|
{
|
|
1375
|
-
name: '
|
|
1376
|
-
type: '
|
|
1340
|
+
name: '_amountIn',
|
|
1341
|
+
type: 'uint256',
|
|
1377
1342
|
},
|
|
1378
1343
|
{
|
|
1379
|
-
name: '
|
|
1380
|
-
type: '
|
|
1344
|
+
name: '_minAmountOut',
|
|
1345
|
+
type: 'uint256',
|
|
1381
1346
|
},
|
|
1382
1347
|
],
|
|
1383
|
-
name: '
|
|
1348
|
+
name: 'mintOrRedeemAsset',
|
|
1384
1349
|
outputs: [
|
|
1385
1350
|
{
|
|
1386
1351
|
name: '',
|
|
@@ -1392,11 +1357,7 @@ export const abi = [
|
|
|
1392
1357
|
},
|
|
1393
1358
|
{
|
|
1394
1359
|
name: '',
|
|
1395
|
-
type: '
|
|
1396
|
-
},
|
|
1397
|
-
{
|
|
1398
|
-
name: '',
|
|
1399
|
-
type: 'uint256',
|
|
1360
|
+
type: 'bool',
|
|
1400
1361
|
},
|
|
1401
1362
|
{
|
|
1402
1363
|
name: '',
|
|
@@ -1417,31 +1378,27 @@ export const abi = [
|
|
|
1417
1378
|
type: 'uint256',
|
|
1418
1379
|
},
|
|
1419
1380
|
{
|
|
1420
|
-
name: '
|
|
1381
|
+
name: '_tokenIn',
|
|
1421
1382
|
type: 'address',
|
|
1422
1383
|
},
|
|
1423
1384
|
{
|
|
1424
|
-
name: '
|
|
1425
|
-
type: 'uint256',
|
|
1426
|
-
},
|
|
1427
|
-
{
|
|
1428
|
-
name: '_pool',
|
|
1385
|
+
name: '_tokenOut',
|
|
1429
1386
|
type: 'address',
|
|
1430
1387
|
},
|
|
1431
1388
|
{
|
|
1432
|
-
name: '
|
|
1433
|
-
type: '
|
|
1389
|
+
name: '_amountIn',
|
|
1390
|
+
type: 'uint256',
|
|
1434
1391
|
},
|
|
1435
1392
|
{
|
|
1436
|
-
name: '
|
|
1437
|
-
type: '
|
|
1393
|
+
name: '_minAmountOut',
|
|
1394
|
+
type: 'uint256',
|
|
1438
1395
|
},
|
|
1439
1396
|
{
|
|
1440
|
-
name: '
|
|
1441
|
-
type: '
|
|
1397
|
+
name: '_extraData',
|
|
1398
|
+
type: 'bytes32',
|
|
1442
1399
|
},
|
|
1443
1400
|
],
|
|
1444
|
-
name: '
|
|
1401
|
+
name: 'mintOrRedeemAsset',
|
|
1445
1402
|
outputs: [
|
|
1446
1403
|
{
|
|
1447
1404
|
name: '',
|
|
@@ -1453,11 +1410,7 @@ export const abi = [
|
|
|
1453
1410
|
},
|
|
1454
1411
|
{
|
|
1455
1412
|
name: '',
|
|
1456
|
-
type: '
|
|
1457
|
-
},
|
|
1458
|
-
{
|
|
1459
|
-
name: '',
|
|
1460
|
-
type: 'uint256',
|
|
1413
|
+
type: 'bool',
|
|
1461
1414
|
},
|
|
1462
1415
|
{
|
|
1463
1416
|
name: '',
|
|
@@ -1478,35 +1431,45 @@ export const abi = [
|
|
|
1478
1431
|
type: 'uint256',
|
|
1479
1432
|
},
|
|
1480
1433
|
{
|
|
1481
|
-
name: '
|
|
1434
|
+
name: '_tokenIn',
|
|
1482
1435
|
type: 'address',
|
|
1483
1436
|
},
|
|
1484
1437
|
{
|
|
1485
|
-
name: '
|
|
1486
|
-
type: 'uint256',
|
|
1487
|
-
},
|
|
1488
|
-
{
|
|
1489
|
-
name: '_pool',
|
|
1438
|
+
name: '_tokenOut',
|
|
1490
1439
|
type: 'address',
|
|
1491
1440
|
},
|
|
1492
1441
|
{
|
|
1493
|
-
name: '
|
|
1494
|
-
type: '
|
|
1442
|
+
name: '_amountIn',
|
|
1443
|
+
type: 'uint256',
|
|
1495
1444
|
},
|
|
1496
1445
|
{
|
|
1497
|
-
name: '
|
|
1498
|
-
type: '
|
|
1446
|
+
name: '_minAmountOut',
|
|
1447
|
+
type: 'uint256',
|
|
1499
1448
|
},
|
|
1500
1449
|
{
|
|
1501
|
-
name: '
|
|
1502
|
-
type: '
|
|
1450
|
+
name: '_extraData',
|
|
1451
|
+
type: 'bytes32',
|
|
1503
1452
|
},
|
|
1504
1453
|
{
|
|
1505
|
-
|
|
1506
|
-
|
|
1454
|
+
components: [
|
|
1455
|
+
{
|
|
1456
|
+
name: 'signature',
|
|
1457
|
+
type: 'bytes',
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
name: 'nonce',
|
|
1461
|
+
type: 'uint256',
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
name: 'expiration',
|
|
1465
|
+
type: 'uint256',
|
|
1466
|
+
},
|
|
1467
|
+
],
|
|
1468
|
+
name: '_sig',
|
|
1469
|
+
type: 'tuple',
|
|
1507
1470
|
},
|
|
1508
1471
|
],
|
|
1509
|
-
name: '
|
|
1472
|
+
name: 'mintOrRedeemAsset',
|
|
1510
1473
|
outputs: [
|
|
1511
1474
|
{
|
|
1512
1475
|
name: '',
|
|
@@ -1518,11 +1481,7 @@ export const abi = [
|
|
|
1518
1481
|
},
|
|
1519
1482
|
{
|
|
1520
1483
|
name: '',
|
|
1521
|
-
type: '
|
|
1522
|
-
},
|
|
1523
|
-
{
|
|
1524
|
-
name: '',
|
|
1525
|
-
type: 'uint256',
|
|
1484
|
+
type: 'bool',
|
|
1526
1485
|
},
|
|
1527
1486
|
{
|
|
1528
1487
|
name: '',
|
|
@@ -1543,12 +1502,1588 @@ export const abi = [
|
|
|
1543
1502
|
type: 'uint256',
|
|
1544
1503
|
},
|
|
1545
1504
|
{
|
|
1546
|
-
name: '
|
|
1505
|
+
name: '_tokenIn',
|
|
1547
1506
|
type: 'address',
|
|
1548
1507
|
},
|
|
1549
1508
|
{
|
|
1550
|
-
name: '
|
|
1551
|
-
type: '
|
|
1509
|
+
name: '_tokenOut',
|
|
1510
|
+
type: 'address',
|
|
1511
|
+
},
|
|
1512
|
+
],
|
|
1513
|
+
name: 'confirmMintOrRedeemAsset',
|
|
1514
|
+
outputs: [
|
|
1515
|
+
{
|
|
1516
|
+
name: '',
|
|
1517
|
+
type: 'uint256',
|
|
1518
|
+
},
|
|
1519
|
+
{
|
|
1520
|
+
name: '',
|
|
1521
|
+
type: 'uint256',
|
|
1522
|
+
},
|
|
1523
|
+
],
|
|
1524
|
+
stateMutability: 'nonpayable',
|
|
1525
|
+
type: 'function',
|
|
1526
|
+
},
|
|
1527
|
+
{
|
|
1528
|
+
inputs: [
|
|
1529
|
+
{
|
|
1530
|
+
name: '_userWallet',
|
|
1531
|
+
type: 'address',
|
|
1532
|
+
},
|
|
1533
|
+
{
|
|
1534
|
+
name: '_legoId',
|
|
1535
|
+
type: 'uint256',
|
|
1536
|
+
},
|
|
1537
|
+
{
|
|
1538
|
+
name: '_tokenIn',
|
|
1539
|
+
type: 'address',
|
|
1540
|
+
},
|
|
1541
|
+
{
|
|
1542
|
+
name: '_tokenOut',
|
|
1543
|
+
type: 'address',
|
|
1544
|
+
},
|
|
1545
|
+
{
|
|
1546
|
+
name: '_extraData',
|
|
1547
|
+
type: 'bytes32',
|
|
1548
|
+
},
|
|
1549
|
+
],
|
|
1550
|
+
name: 'confirmMintOrRedeemAsset',
|
|
1551
|
+
outputs: [
|
|
1552
|
+
{
|
|
1553
|
+
name: '',
|
|
1554
|
+
type: 'uint256',
|
|
1555
|
+
},
|
|
1556
|
+
{
|
|
1557
|
+
name: '',
|
|
1558
|
+
type: 'uint256',
|
|
1559
|
+
},
|
|
1560
|
+
],
|
|
1561
|
+
stateMutability: 'nonpayable',
|
|
1562
|
+
type: 'function',
|
|
1563
|
+
},
|
|
1564
|
+
{
|
|
1565
|
+
inputs: [
|
|
1566
|
+
{
|
|
1567
|
+
name: '_userWallet',
|
|
1568
|
+
type: 'address',
|
|
1569
|
+
},
|
|
1570
|
+
{
|
|
1571
|
+
name: '_legoId',
|
|
1572
|
+
type: 'uint256',
|
|
1573
|
+
},
|
|
1574
|
+
{
|
|
1575
|
+
name: '_tokenIn',
|
|
1576
|
+
type: 'address',
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
name: '_tokenOut',
|
|
1580
|
+
type: 'address',
|
|
1581
|
+
},
|
|
1582
|
+
{
|
|
1583
|
+
name: '_extraData',
|
|
1584
|
+
type: 'bytes32',
|
|
1585
|
+
},
|
|
1586
|
+
{
|
|
1587
|
+
components: [
|
|
1588
|
+
{
|
|
1589
|
+
name: 'signature',
|
|
1590
|
+
type: 'bytes',
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
name: 'nonce',
|
|
1594
|
+
type: 'uint256',
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
name: 'expiration',
|
|
1598
|
+
type: 'uint256',
|
|
1599
|
+
},
|
|
1600
|
+
],
|
|
1601
|
+
name: '_sig',
|
|
1602
|
+
type: 'tuple',
|
|
1603
|
+
},
|
|
1604
|
+
],
|
|
1605
|
+
name: 'confirmMintOrRedeemAsset',
|
|
1606
|
+
outputs: [
|
|
1607
|
+
{
|
|
1608
|
+
name: '',
|
|
1609
|
+
type: 'uint256',
|
|
1610
|
+
},
|
|
1611
|
+
{
|
|
1612
|
+
name: '',
|
|
1613
|
+
type: 'uint256',
|
|
1614
|
+
},
|
|
1615
|
+
],
|
|
1616
|
+
stateMutability: 'nonpayable',
|
|
1617
|
+
type: 'function',
|
|
1618
|
+
},
|
|
1619
|
+
{
|
|
1620
|
+
inputs: [
|
|
1621
|
+
{
|
|
1622
|
+
name: '_userWallet',
|
|
1623
|
+
type: 'address',
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
name: '_legoId',
|
|
1627
|
+
type: 'uint256',
|
|
1628
|
+
},
|
|
1629
|
+
{
|
|
1630
|
+
name: '_asset',
|
|
1631
|
+
type: 'address',
|
|
1632
|
+
},
|
|
1633
|
+
],
|
|
1634
|
+
name: 'addCollateral',
|
|
1635
|
+
outputs: [
|
|
1636
|
+
{
|
|
1637
|
+
name: '',
|
|
1638
|
+
type: 'uint256',
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
name: '',
|
|
1642
|
+
type: 'uint256',
|
|
1643
|
+
},
|
|
1644
|
+
],
|
|
1645
|
+
stateMutability: 'nonpayable',
|
|
1646
|
+
type: 'function',
|
|
1647
|
+
},
|
|
1648
|
+
{
|
|
1649
|
+
inputs: [
|
|
1650
|
+
{
|
|
1651
|
+
name: '_userWallet',
|
|
1652
|
+
type: 'address',
|
|
1653
|
+
},
|
|
1654
|
+
{
|
|
1655
|
+
name: '_legoId',
|
|
1656
|
+
type: 'uint256',
|
|
1657
|
+
},
|
|
1658
|
+
{
|
|
1659
|
+
name: '_asset',
|
|
1660
|
+
type: 'address',
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
name: '_amount',
|
|
1664
|
+
type: 'uint256',
|
|
1665
|
+
},
|
|
1666
|
+
],
|
|
1667
|
+
name: 'addCollateral',
|
|
1668
|
+
outputs: [
|
|
1669
|
+
{
|
|
1670
|
+
name: '',
|
|
1671
|
+
type: 'uint256',
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
name: '',
|
|
1675
|
+
type: 'uint256',
|
|
1676
|
+
},
|
|
1677
|
+
],
|
|
1678
|
+
stateMutability: 'nonpayable',
|
|
1679
|
+
type: 'function',
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
inputs: [
|
|
1683
|
+
{
|
|
1684
|
+
name: '_userWallet',
|
|
1685
|
+
type: 'address',
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
name: '_legoId',
|
|
1689
|
+
type: 'uint256',
|
|
1690
|
+
},
|
|
1691
|
+
{
|
|
1692
|
+
name: '_asset',
|
|
1693
|
+
type: 'address',
|
|
1694
|
+
},
|
|
1695
|
+
{
|
|
1696
|
+
name: '_amount',
|
|
1697
|
+
type: 'uint256',
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
name: '_extraData',
|
|
1701
|
+
type: 'bytes32',
|
|
1702
|
+
},
|
|
1703
|
+
],
|
|
1704
|
+
name: 'addCollateral',
|
|
1705
|
+
outputs: [
|
|
1706
|
+
{
|
|
1707
|
+
name: '',
|
|
1708
|
+
type: 'uint256',
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
name: '',
|
|
1712
|
+
type: 'uint256',
|
|
1713
|
+
},
|
|
1714
|
+
],
|
|
1715
|
+
stateMutability: 'nonpayable',
|
|
1716
|
+
type: 'function',
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
inputs: [
|
|
1720
|
+
{
|
|
1721
|
+
name: '_userWallet',
|
|
1722
|
+
type: 'address',
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
name: '_legoId',
|
|
1726
|
+
type: 'uint256',
|
|
1727
|
+
},
|
|
1728
|
+
{
|
|
1729
|
+
name: '_asset',
|
|
1730
|
+
type: 'address',
|
|
1731
|
+
},
|
|
1732
|
+
{
|
|
1733
|
+
name: '_amount',
|
|
1734
|
+
type: 'uint256',
|
|
1735
|
+
},
|
|
1736
|
+
{
|
|
1737
|
+
name: '_extraData',
|
|
1738
|
+
type: 'bytes32',
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
components: [
|
|
1742
|
+
{
|
|
1743
|
+
name: 'signature',
|
|
1744
|
+
type: 'bytes',
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
name: 'nonce',
|
|
1748
|
+
type: 'uint256',
|
|
1749
|
+
},
|
|
1750
|
+
{
|
|
1751
|
+
name: 'expiration',
|
|
1752
|
+
type: 'uint256',
|
|
1753
|
+
},
|
|
1754
|
+
],
|
|
1755
|
+
name: '_sig',
|
|
1756
|
+
type: 'tuple',
|
|
1757
|
+
},
|
|
1758
|
+
],
|
|
1759
|
+
name: 'addCollateral',
|
|
1760
|
+
outputs: [
|
|
1761
|
+
{
|
|
1762
|
+
name: '',
|
|
1763
|
+
type: 'uint256',
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
name: '',
|
|
1767
|
+
type: 'uint256',
|
|
1768
|
+
},
|
|
1769
|
+
],
|
|
1770
|
+
stateMutability: 'nonpayable',
|
|
1771
|
+
type: 'function',
|
|
1772
|
+
},
|
|
1773
|
+
{
|
|
1774
|
+
inputs: [
|
|
1775
|
+
{
|
|
1776
|
+
name: '_userWallet',
|
|
1777
|
+
type: 'address',
|
|
1778
|
+
},
|
|
1779
|
+
{
|
|
1780
|
+
name: '_legoId',
|
|
1781
|
+
type: 'uint256',
|
|
1782
|
+
},
|
|
1783
|
+
{
|
|
1784
|
+
name: '_asset',
|
|
1785
|
+
type: 'address',
|
|
1786
|
+
},
|
|
1787
|
+
],
|
|
1788
|
+
name: 'removeCollateral',
|
|
1789
|
+
outputs: [
|
|
1790
|
+
{
|
|
1791
|
+
name: '',
|
|
1792
|
+
type: 'uint256',
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
name: '',
|
|
1796
|
+
type: 'uint256',
|
|
1797
|
+
},
|
|
1798
|
+
],
|
|
1799
|
+
stateMutability: 'nonpayable',
|
|
1800
|
+
type: 'function',
|
|
1801
|
+
},
|
|
1802
|
+
{
|
|
1803
|
+
inputs: [
|
|
1804
|
+
{
|
|
1805
|
+
name: '_userWallet',
|
|
1806
|
+
type: 'address',
|
|
1807
|
+
},
|
|
1808
|
+
{
|
|
1809
|
+
name: '_legoId',
|
|
1810
|
+
type: 'uint256',
|
|
1811
|
+
},
|
|
1812
|
+
{
|
|
1813
|
+
name: '_asset',
|
|
1814
|
+
type: 'address',
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
name: '_amount',
|
|
1818
|
+
type: 'uint256',
|
|
1819
|
+
},
|
|
1820
|
+
],
|
|
1821
|
+
name: 'removeCollateral',
|
|
1822
|
+
outputs: [
|
|
1823
|
+
{
|
|
1824
|
+
name: '',
|
|
1825
|
+
type: 'uint256',
|
|
1826
|
+
},
|
|
1827
|
+
{
|
|
1828
|
+
name: '',
|
|
1829
|
+
type: 'uint256',
|
|
1830
|
+
},
|
|
1831
|
+
],
|
|
1832
|
+
stateMutability: 'nonpayable',
|
|
1833
|
+
type: 'function',
|
|
1834
|
+
},
|
|
1835
|
+
{
|
|
1836
|
+
inputs: [
|
|
1837
|
+
{
|
|
1838
|
+
name: '_userWallet',
|
|
1839
|
+
type: 'address',
|
|
1840
|
+
},
|
|
1841
|
+
{
|
|
1842
|
+
name: '_legoId',
|
|
1843
|
+
type: 'uint256',
|
|
1844
|
+
},
|
|
1845
|
+
{
|
|
1846
|
+
name: '_asset',
|
|
1847
|
+
type: 'address',
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
name: '_amount',
|
|
1851
|
+
type: 'uint256',
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
name: '_extraData',
|
|
1855
|
+
type: 'bytes32',
|
|
1856
|
+
},
|
|
1857
|
+
],
|
|
1858
|
+
name: 'removeCollateral',
|
|
1859
|
+
outputs: [
|
|
1860
|
+
{
|
|
1861
|
+
name: '',
|
|
1862
|
+
type: 'uint256',
|
|
1863
|
+
},
|
|
1864
|
+
{
|
|
1865
|
+
name: '',
|
|
1866
|
+
type: 'uint256',
|
|
1867
|
+
},
|
|
1868
|
+
],
|
|
1869
|
+
stateMutability: 'nonpayable',
|
|
1870
|
+
type: 'function',
|
|
1871
|
+
},
|
|
1872
|
+
{
|
|
1873
|
+
inputs: [
|
|
1874
|
+
{
|
|
1875
|
+
name: '_userWallet',
|
|
1876
|
+
type: 'address',
|
|
1877
|
+
},
|
|
1878
|
+
{
|
|
1879
|
+
name: '_legoId',
|
|
1880
|
+
type: 'uint256',
|
|
1881
|
+
},
|
|
1882
|
+
{
|
|
1883
|
+
name: '_asset',
|
|
1884
|
+
type: 'address',
|
|
1885
|
+
},
|
|
1886
|
+
{
|
|
1887
|
+
name: '_amount',
|
|
1888
|
+
type: 'uint256',
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
name: '_extraData',
|
|
1892
|
+
type: 'bytes32',
|
|
1893
|
+
},
|
|
1894
|
+
{
|
|
1895
|
+
components: [
|
|
1896
|
+
{
|
|
1897
|
+
name: 'signature',
|
|
1898
|
+
type: 'bytes',
|
|
1899
|
+
},
|
|
1900
|
+
{
|
|
1901
|
+
name: 'nonce',
|
|
1902
|
+
type: 'uint256',
|
|
1903
|
+
},
|
|
1904
|
+
{
|
|
1905
|
+
name: 'expiration',
|
|
1906
|
+
type: 'uint256',
|
|
1907
|
+
},
|
|
1908
|
+
],
|
|
1909
|
+
name: '_sig',
|
|
1910
|
+
type: 'tuple',
|
|
1911
|
+
},
|
|
1912
|
+
],
|
|
1913
|
+
name: 'removeCollateral',
|
|
1914
|
+
outputs: [
|
|
1915
|
+
{
|
|
1916
|
+
name: '',
|
|
1917
|
+
type: 'uint256',
|
|
1918
|
+
},
|
|
1919
|
+
{
|
|
1920
|
+
name: '',
|
|
1921
|
+
type: 'uint256',
|
|
1922
|
+
},
|
|
1923
|
+
],
|
|
1924
|
+
stateMutability: 'nonpayable',
|
|
1925
|
+
type: 'function',
|
|
1926
|
+
},
|
|
1927
|
+
{
|
|
1928
|
+
inputs: [
|
|
1929
|
+
{
|
|
1930
|
+
name: '_userWallet',
|
|
1931
|
+
type: 'address',
|
|
1932
|
+
},
|
|
1933
|
+
{
|
|
1934
|
+
name: '_legoId',
|
|
1935
|
+
type: 'uint256',
|
|
1936
|
+
},
|
|
1937
|
+
{
|
|
1938
|
+
name: '_borrowAsset',
|
|
1939
|
+
type: 'address',
|
|
1940
|
+
},
|
|
1941
|
+
],
|
|
1942
|
+
name: 'borrow',
|
|
1943
|
+
outputs: [
|
|
1944
|
+
{
|
|
1945
|
+
name: '',
|
|
1946
|
+
type: 'uint256',
|
|
1947
|
+
},
|
|
1948
|
+
{
|
|
1949
|
+
name: '',
|
|
1950
|
+
type: 'uint256',
|
|
1951
|
+
},
|
|
1952
|
+
],
|
|
1953
|
+
stateMutability: 'nonpayable',
|
|
1954
|
+
type: 'function',
|
|
1955
|
+
},
|
|
1956
|
+
{
|
|
1957
|
+
inputs: [
|
|
1958
|
+
{
|
|
1959
|
+
name: '_userWallet',
|
|
1960
|
+
type: 'address',
|
|
1961
|
+
},
|
|
1962
|
+
{
|
|
1963
|
+
name: '_legoId',
|
|
1964
|
+
type: 'uint256',
|
|
1965
|
+
},
|
|
1966
|
+
{
|
|
1967
|
+
name: '_borrowAsset',
|
|
1968
|
+
type: 'address',
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
name: '_amount',
|
|
1972
|
+
type: 'uint256',
|
|
1973
|
+
},
|
|
1974
|
+
],
|
|
1975
|
+
name: 'borrow',
|
|
1976
|
+
outputs: [
|
|
1977
|
+
{
|
|
1978
|
+
name: '',
|
|
1979
|
+
type: 'uint256',
|
|
1980
|
+
},
|
|
1981
|
+
{
|
|
1982
|
+
name: '',
|
|
1983
|
+
type: 'uint256',
|
|
1984
|
+
},
|
|
1985
|
+
],
|
|
1986
|
+
stateMutability: 'nonpayable',
|
|
1987
|
+
type: 'function',
|
|
1988
|
+
},
|
|
1989
|
+
{
|
|
1990
|
+
inputs: [
|
|
1991
|
+
{
|
|
1992
|
+
name: '_userWallet',
|
|
1993
|
+
type: 'address',
|
|
1994
|
+
},
|
|
1995
|
+
{
|
|
1996
|
+
name: '_legoId',
|
|
1997
|
+
type: 'uint256',
|
|
1998
|
+
},
|
|
1999
|
+
{
|
|
2000
|
+
name: '_borrowAsset',
|
|
2001
|
+
type: 'address',
|
|
2002
|
+
},
|
|
2003
|
+
{
|
|
2004
|
+
name: '_amount',
|
|
2005
|
+
type: 'uint256',
|
|
2006
|
+
},
|
|
2007
|
+
{
|
|
2008
|
+
name: '_extraData',
|
|
2009
|
+
type: 'bytes32',
|
|
2010
|
+
},
|
|
2011
|
+
],
|
|
2012
|
+
name: 'borrow',
|
|
2013
|
+
outputs: [
|
|
2014
|
+
{
|
|
2015
|
+
name: '',
|
|
2016
|
+
type: 'uint256',
|
|
2017
|
+
},
|
|
2018
|
+
{
|
|
2019
|
+
name: '',
|
|
2020
|
+
type: 'uint256',
|
|
2021
|
+
},
|
|
2022
|
+
],
|
|
2023
|
+
stateMutability: 'nonpayable',
|
|
2024
|
+
type: 'function',
|
|
2025
|
+
},
|
|
2026
|
+
{
|
|
2027
|
+
inputs: [
|
|
2028
|
+
{
|
|
2029
|
+
name: '_userWallet',
|
|
2030
|
+
type: 'address',
|
|
2031
|
+
},
|
|
2032
|
+
{
|
|
2033
|
+
name: '_legoId',
|
|
2034
|
+
type: 'uint256',
|
|
2035
|
+
},
|
|
2036
|
+
{
|
|
2037
|
+
name: '_borrowAsset',
|
|
2038
|
+
type: 'address',
|
|
2039
|
+
},
|
|
2040
|
+
{
|
|
2041
|
+
name: '_amount',
|
|
2042
|
+
type: 'uint256',
|
|
2043
|
+
},
|
|
2044
|
+
{
|
|
2045
|
+
name: '_extraData',
|
|
2046
|
+
type: 'bytes32',
|
|
2047
|
+
},
|
|
2048
|
+
{
|
|
2049
|
+
components: [
|
|
2050
|
+
{
|
|
2051
|
+
name: 'signature',
|
|
2052
|
+
type: 'bytes',
|
|
2053
|
+
},
|
|
2054
|
+
{
|
|
2055
|
+
name: 'nonce',
|
|
2056
|
+
type: 'uint256',
|
|
2057
|
+
},
|
|
2058
|
+
{
|
|
2059
|
+
name: 'expiration',
|
|
2060
|
+
type: 'uint256',
|
|
2061
|
+
},
|
|
2062
|
+
],
|
|
2063
|
+
name: '_sig',
|
|
2064
|
+
type: 'tuple',
|
|
2065
|
+
},
|
|
2066
|
+
],
|
|
2067
|
+
name: 'borrow',
|
|
2068
|
+
outputs: [
|
|
2069
|
+
{
|
|
2070
|
+
name: '',
|
|
2071
|
+
type: 'uint256',
|
|
2072
|
+
},
|
|
2073
|
+
{
|
|
2074
|
+
name: '',
|
|
2075
|
+
type: 'uint256',
|
|
2076
|
+
},
|
|
2077
|
+
],
|
|
2078
|
+
stateMutability: 'nonpayable',
|
|
2079
|
+
type: 'function',
|
|
2080
|
+
},
|
|
2081
|
+
{
|
|
2082
|
+
inputs: [
|
|
2083
|
+
{
|
|
2084
|
+
name: '_userWallet',
|
|
2085
|
+
type: 'address',
|
|
2086
|
+
},
|
|
2087
|
+
{
|
|
2088
|
+
name: '_legoId',
|
|
2089
|
+
type: 'uint256',
|
|
2090
|
+
},
|
|
2091
|
+
{
|
|
2092
|
+
name: '_paymentAsset',
|
|
2093
|
+
type: 'address',
|
|
2094
|
+
},
|
|
2095
|
+
],
|
|
2096
|
+
name: 'repayDebt',
|
|
2097
|
+
outputs: [
|
|
2098
|
+
{
|
|
2099
|
+
name: '',
|
|
2100
|
+
type: 'uint256',
|
|
2101
|
+
},
|
|
2102
|
+
{
|
|
2103
|
+
name: '',
|
|
2104
|
+
type: 'uint256',
|
|
2105
|
+
},
|
|
2106
|
+
],
|
|
2107
|
+
stateMutability: 'nonpayable',
|
|
2108
|
+
type: 'function',
|
|
2109
|
+
},
|
|
2110
|
+
{
|
|
2111
|
+
inputs: [
|
|
2112
|
+
{
|
|
2113
|
+
name: '_userWallet',
|
|
2114
|
+
type: 'address',
|
|
2115
|
+
},
|
|
2116
|
+
{
|
|
2117
|
+
name: '_legoId',
|
|
2118
|
+
type: 'uint256',
|
|
2119
|
+
},
|
|
2120
|
+
{
|
|
2121
|
+
name: '_paymentAsset',
|
|
2122
|
+
type: 'address',
|
|
2123
|
+
},
|
|
2124
|
+
{
|
|
2125
|
+
name: '_paymentAmount',
|
|
2126
|
+
type: 'uint256',
|
|
2127
|
+
},
|
|
2128
|
+
],
|
|
2129
|
+
name: 'repayDebt',
|
|
2130
|
+
outputs: [
|
|
2131
|
+
{
|
|
2132
|
+
name: '',
|
|
2133
|
+
type: 'uint256',
|
|
2134
|
+
},
|
|
2135
|
+
{
|
|
2136
|
+
name: '',
|
|
2137
|
+
type: 'uint256',
|
|
2138
|
+
},
|
|
2139
|
+
],
|
|
2140
|
+
stateMutability: 'nonpayable',
|
|
2141
|
+
type: 'function',
|
|
2142
|
+
},
|
|
2143
|
+
{
|
|
2144
|
+
inputs: [
|
|
2145
|
+
{
|
|
2146
|
+
name: '_userWallet',
|
|
2147
|
+
type: 'address',
|
|
2148
|
+
},
|
|
2149
|
+
{
|
|
2150
|
+
name: '_legoId',
|
|
2151
|
+
type: 'uint256',
|
|
2152
|
+
},
|
|
2153
|
+
{
|
|
2154
|
+
name: '_paymentAsset',
|
|
2155
|
+
type: 'address',
|
|
2156
|
+
},
|
|
2157
|
+
{
|
|
2158
|
+
name: '_paymentAmount',
|
|
2159
|
+
type: 'uint256',
|
|
2160
|
+
},
|
|
2161
|
+
{
|
|
2162
|
+
name: '_extraData',
|
|
2163
|
+
type: 'bytes32',
|
|
2164
|
+
},
|
|
2165
|
+
],
|
|
2166
|
+
name: 'repayDebt',
|
|
2167
|
+
outputs: [
|
|
2168
|
+
{
|
|
2169
|
+
name: '',
|
|
2170
|
+
type: 'uint256',
|
|
2171
|
+
},
|
|
2172
|
+
{
|
|
2173
|
+
name: '',
|
|
2174
|
+
type: 'uint256',
|
|
2175
|
+
},
|
|
2176
|
+
],
|
|
2177
|
+
stateMutability: 'nonpayable',
|
|
2178
|
+
type: 'function',
|
|
2179
|
+
},
|
|
2180
|
+
{
|
|
2181
|
+
inputs: [
|
|
2182
|
+
{
|
|
2183
|
+
name: '_userWallet',
|
|
2184
|
+
type: 'address',
|
|
2185
|
+
},
|
|
2186
|
+
{
|
|
2187
|
+
name: '_legoId',
|
|
2188
|
+
type: 'uint256',
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
name: '_paymentAsset',
|
|
2192
|
+
type: 'address',
|
|
2193
|
+
},
|
|
2194
|
+
{
|
|
2195
|
+
name: '_paymentAmount',
|
|
2196
|
+
type: 'uint256',
|
|
2197
|
+
},
|
|
2198
|
+
{
|
|
2199
|
+
name: '_extraData',
|
|
2200
|
+
type: 'bytes32',
|
|
2201
|
+
},
|
|
2202
|
+
{
|
|
2203
|
+
components: [
|
|
2204
|
+
{
|
|
2205
|
+
name: 'signature',
|
|
2206
|
+
type: 'bytes',
|
|
2207
|
+
},
|
|
2208
|
+
{
|
|
2209
|
+
name: 'nonce',
|
|
2210
|
+
type: 'uint256',
|
|
2211
|
+
},
|
|
2212
|
+
{
|
|
2213
|
+
name: 'expiration',
|
|
2214
|
+
type: 'uint256',
|
|
2215
|
+
},
|
|
2216
|
+
],
|
|
2217
|
+
name: '_sig',
|
|
2218
|
+
type: 'tuple',
|
|
2219
|
+
},
|
|
2220
|
+
],
|
|
2221
|
+
name: 'repayDebt',
|
|
2222
|
+
outputs: [
|
|
2223
|
+
{
|
|
2224
|
+
name: '',
|
|
2225
|
+
type: 'uint256',
|
|
2226
|
+
},
|
|
2227
|
+
{
|
|
2228
|
+
name: '',
|
|
2229
|
+
type: 'uint256',
|
|
2230
|
+
},
|
|
2231
|
+
],
|
|
2232
|
+
stateMutability: 'nonpayable',
|
|
2233
|
+
type: 'function',
|
|
2234
|
+
},
|
|
2235
|
+
{
|
|
2236
|
+
inputs: [
|
|
2237
|
+
{
|
|
2238
|
+
name: '_userWallet',
|
|
2239
|
+
type: 'address',
|
|
2240
|
+
},
|
|
2241
|
+
{
|
|
2242
|
+
name: '_legoId',
|
|
2243
|
+
type: 'uint256',
|
|
2244
|
+
},
|
|
2245
|
+
],
|
|
2246
|
+
name: 'claimRewards',
|
|
2247
|
+
outputs: [
|
|
2248
|
+
{
|
|
2249
|
+
name: '',
|
|
2250
|
+
type: 'uint256',
|
|
2251
|
+
},
|
|
2252
|
+
{
|
|
2253
|
+
name: '',
|
|
2254
|
+
type: 'uint256',
|
|
2255
|
+
},
|
|
2256
|
+
],
|
|
2257
|
+
stateMutability: 'nonpayable',
|
|
2258
|
+
type: 'function',
|
|
2259
|
+
},
|
|
2260
|
+
{
|
|
2261
|
+
inputs: [
|
|
2262
|
+
{
|
|
2263
|
+
name: '_userWallet',
|
|
2264
|
+
type: 'address',
|
|
2265
|
+
},
|
|
2266
|
+
{
|
|
2267
|
+
name: '_legoId',
|
|
2268
|
+
type: 'uint256',
|
|
2269
|
+
},
|
|
2270
|
+
{
|
|
2271
|
+
name: '_rewardToken',
|
|
2272
|
+
type: 'address',
|
|
2273
|
+
},
|
|
2274
|
+
],
|
|
2275
|
+
name: 'claimRewards',
|
|
2276
|
+
outputs: [
|
|
2277
|
+
{
|
|
2278
|
+
name: '',
|
|
2279
|
+
type: 'uint256',
|
|
2280
|
+
},
|
|
2281
|
+
{
|
|
2282
|
+
name: '',
|
|
2283
|
+
type: 'uint256',
|
|
2284
|
+
},
|
|
2285
|
+
],
|
|
2286
|
+
stateMutability: 'nonpayable',
|
|
2287
|
+
type: 'function',
|
|
2288
|
+
},
|
|
2289
|
+
{
|
|
2290
|
+
inputs: [
|
|
2291
|
+
{
|
|
2292
|
+
name: '_userWallet',
|
|
2293
|
+
type: 'address',
|
|
2294
|
+
},
|
|
2295
|
+
{
|
|
2296
|
+
name: '_legoId',
|
|
2297
|
+
type: 'uint256',
|
|
2298
|
+
},
|
|
2299
|
+
{
|
|
2300
|
+
name: '_rewardToken',
|
|
2301
|
+
type: 'address',
|
|
2302
|
+
},
|
|
2303
|
+
{
|
|
2304
|
+
name: '_rewardAmount',
|
|
2305
|
+
type: 'uint256',
|
|
2306
|
+
},
|
|
2307
|
+
],
|
|
2308
|
+
name: 'claimRewards',
|
|
2309
|
+
outputs: [
|
|
2310
|
+
{
|
|
2311
|
+
name: '',
|
|
2312
|
+
type: 'uint256',
|
|
2313
|
+
},
|
|
2314
|
+
{
|
|
2315
|
+
name: '',
|
|
2316
|
+
type: 'uint256',
|
|
2317
|
+
},
|
|
2318
|
+
],
|
|
2319
|
+
stateMutability: 'nonpayable',
|
|
2320
|
+
type: 'function',
|
|
2321
|
+
},
|
|
2322
|
+
{
|
|
2323
|
+
inputs: [
|
|
2324
|
+
{
|
|
2325
|
+
name: '_userWallet',
|
|
2326
|
+
type: 'address',
|
|
2327
|
+
},
|
|
2328
|
+
{
|
|
2329
|
+
name: '_legoId',
|
|
2330
|
+
type: 'uint256',
|
|
2331
|
+
},
|
|
2332
|
+
{
|
|
2333
|
+
name: '_rewardToken',
|
|
2334
|
+
type: 'address',
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
name: '_rewardAmount',
|
|
2338
|
+
type: 'uint256',
|
|
2339
|
+
},
|
|
2340
|
+
{
|
|
2341
|
+
name: '_extraData',
|
|
2342
|
+
type: 'bytes32',
|
|
2343
|
+
},
|
|
2344
|
+
],
|
|
2345
|
+
name: 'claimRewards',
|
|
2346
|
+
outputs: [
|
|
2347
|
+
{
|
|
2348
|
+
name: '',
|
|
2349
|
+
type: 'uint256',
|
|
2350
|
+
},
|
|
2351
|
+
{
|
|
2352
|
+
name: '',
|
|
2353
|
+
type: 'uint256',
|
|
2354
|
+
},
|
|
2355
|
+
],
|
|
2356
|
+
stateMutability: 'nonpayable',
|
|
2357
|
+
type: 'function',
|
|
2358
|
+
},
|
|
2359
|
+
{
|
|
2360
|
+
inputs: [
|
|
2361
|
+
{
|
|
2362
|
+
name: '_userWallet',
|
|
2363
|
+
type: 'address',
|
|
2364
|
+
},
|
|
2365
|
+
{
|
|
2366
|
+
name: '_legoId',
|
|
2367
|
+
type: 'uint256',
|
|
2368
|
+
},
|
|
2369
|
+
{
|
|
2370
|
+
name: '_rewardToken',
|
|
2371
|
+
type: 'address',
|
|
2372
|
+
},
|
|
2373
|
+
{
|
|
2374
|
+
name: '_rewardAmount',
|
|
2375
|
+
type: 'uint256',
|
|
2376
|
+
},
|
|
2377
|
+
{
|
|
2378
|
+
name: '_extraData',
|
|
2379
|
+
type: 'bytes32',
|
|
2380
|
+
},
|
|
2381
|
+
{
|
|
2382
|
+
components: [
|
|
2383
|
+
{
|
|
2384
|
+
name: 'signature',
|
|
2385
|
+
type: 'bytes',
|
|
2386
|
+
},
|
|
2387
|
+
{
|
|
2388
|
+
name: 'nonce',
|
|
2389
|
+
type: 'uint256',
|
|
2390
|
+
},
|
|
2391
|
+
{
|
|
2392
|
+
name: 'expiration',
|
|
2393
|
+
type: 'uint256',
|
|
2394
|
+
},
|
|
2395
|
+
],
|
|
2396
|
+
name: '_sig',
|
|
2397
|
+
type: 'tuple',
|
|
2398
|
+
},
|
|
2399
|
+
],
|
|
2400
|
+
name: 'claimRewards',
|
|
2401
|
+
outputs: [
|
|
2402
|
+
{
|
|
2403
|
+
name: '',
|
|
2404
|
+
type: 'uint256',
|
|
2405
|
+
},
|
|
2406
|
+
{
|
|
2407
|
+
name: '',
|
|
2408
|
+
type: 'uint256',
|
|
2409
|
+
},
|
|
2410
|
+
],
|
|
2411
|
+
stateMutability: 'nonpayable',
|
|
2412
|
+
type: 'function',
|
|
2413
|
+
},
|
|
2414
|
+
{
|
|
2415
|
+
inputs: [
|
|
2416
|
+
{
|
|
2417
|
+
name: '_userWallet',
|
|
2418
|
+
type: 'address',
|
|
2419
|
+
},
|
|
2420
|
+
],
|
|
2421
|
+
name: 'convertWethToEth',
|
|
2422
|
+
outputs: [
|
|
2423
|
+
{
|
|
2424
|
+
name: '',
|
|
2425
|
+
type: 'uint256',
|
|
2426
|
+
},
|
|
2427
|
+
{
|
|
2428
|
+
name: '',
|
|
2429
|
+
type: 'uint256',
|
|
2430
|
+
},
|
|
2431
|
+
],
|
|
2432
|
+
stateMutability: 'nonpayable',
|
|
2433
|
+
type: 'function',
|
|
2434
|
+
},
|
|
2435
|
+
{
|
|
2436
|
+
inputs: [
|
|
2437
|
+
{
|
|
2438
|
+
name: '_userWallet',
|
|
2439
|
+
type: 'address',
|
|
2440
|
+
},
|
|
2441
|
+
{
|
|
2442
|
+
name: '_amount',
|
|
2443
|
+
type: 'uint256',
|
|
2444
|
+
},
|
|
2445
|
+
],
|
|
2446
|
+
name: 'convertWethToEth',
|
|
2447
|
+
outputs: [
|
|
2448
|
+
{
|
|
2449
|
+
name: '',
|
|
2450
|
+
type: 'uint256',
|
|
2451
|
+
},
|
|
2452
|
+
{
|
|
2453
|
+
name: '',
|
|
2454
|
+
type: 'uint256',
|
|
2455
|
+
},
|
|
2456
|
+
],
|
|
2457
|
+
stateMutability: 'nonpayable',
|
|
2458
|
+
type: 'function',
|
|
2459
|
+
},
|
|
2460
|
+
{
|
|
2461
|
+
inputs: [
|
|
2462
|
+
{
|
|
2463
|
+
name: '_userWallet',
|
|
2464
|
+
type: 'address',
|
|
2465
|
+
},
|
|
2466
|
+
{
|
|
2467
|
+
name: '_amount',
|
|
2468
|
+
type: 'uint256',
|
|
2469
|
+
},
|
|
2470
|
+
{
|
|
2471
|
+
components: [
|
|
2472
|
+
{
|
|
2473
|
+
name: 'signature',
|
|
2474
|
+
type: 'bytes',
|
|
2475
|
+
},
|
|
2476
|
+
{
|
|
2477
|
+
name: 'nonce',
|
|
2478
|
+
type: 'uint256',
|
|
2479
|
+
},
|
|
2480
|
+
{
|
|
2481
|
+
name: 'expiration',
|
|
2482
|
+
type: 'uint256',
|
|
2483
|
+
},
|
|
2484
|
+
],
|
|
2485
|
+
name: '_sig',
|
|
2486
|
+
type: 'tuple',
|
|
2487
|
+
},
|
|
2488
|
+
],
|
|
2489
|
+
name: 'convertWethToEth',
|
|
2490
|
+
outputs: [
|
|
2491
|
+
{
|
|
2492
|
+
name: '',
|
|
2493
|
+
type: 'uint256',
|
|
2494
|
+
},
|
|
2495
|
+
{
|
|
2496
|
+
name: '',
|
|
2497
|
+
type: 'uint256',
|
|
2498
|
+
},
|
|
2499
|
+
],
|
|
2500
|
+
stateMutability: 'nonpayable',
|
|
2501
|
+
type: 'function',
|
|
2502
|
+
},
|
|
2503
|
+
{
|
|
2504
|
+
inputs: [
|
|
2505
|
+
{
|
|
2506
|
+
name: '_userWallet',
|
|
2507
|
+
type: 'address',
|
|
2508
|
+
},
|
|
2509
|
+
],
|
|
2510
|
+
name: 'convertEthToWeth',
|
|
2511
|
+
outputs: [
|
|
2512
|
+
{
|
|
2513
|
+
name: '',
|
|
2514
|
+
type: 'uint256',
|
|
2515
|
+
},
|
|
2516
|
+
{
|
|
2517
|
+
name: '',
|
|
2518
|
+
type: 'uint256',
|
|
2519
|
+
},
|
|
2520
|
+
],
|
|
2521
|
+
stateMutability: 'nonpayable',
|
|
2522
|
+
type: 'function',
|
|
2523
|
+
},
|
|
2524
|
+
{
|
|
2525
|
+
inputs: [
|
|
2526
|
+
{
|
|
2527
|
+
name: '_userWallet',
|
|
2528
|
+
type: 'address',
|
|
2529
|
+
},
|
|
2530
|
+
{
|
|
2531
|
+
name: '_amount',
|
|
2532
|
+
type: 'uint256',
|
|
2533
|
+
},
|
|
2534
|
+
],
|
|
2535
|
+
name: 'convertEthToWeth',
|
|
2536
|
+
outputs: [
|
|
2537
|
+
{
|
|
2538
|
+
name: '',
|
|
2539
|
+
type: 'uint256',
|
|
2540
|
+
},
|
|
2541
|
+
{
|
|
2542
|
+
name: '',
|
|
2543
|
+
type: 'uint256',
|
|
2544
|
+
},
|
|
2545
|
+
],
|
|
2546
|
+
stateMutability: 'nonpayable',
|
|
2547
|
+
type: 'function',
|
|
2548
|
+
},
|
|
2549
|
+
{
|
|
2550
|
+
inputs: [
|
|
2551
|
+
{
|
|
2552
|
+
name: '_userWallet',
|
|
2553
|
+
type: 'address',
|
|
2554
|
+
},
|
|
2555
|
+
{
|
|
2556
|
+
name: '_amount',
|
|
2557
|
+
type: 'uint256',
|
|
2558
|
+
},
|
|
2559
|
+
{
|
|
2560
|
+
components: [
|
|
2561
|
+
{
|
|
2562
|
+
name: 'signature',
|
|
2563
|
+
type: 'bytes',
|
|
2564
|
+
},
|
|
2565
|
+
{
|
|
2566
|
+
name: 'nonce',
|
|
2567
|
+
type: 'uint256',
|
|
2568
|
+
},
|
|
2569
|
+
{
|
|
2570
|
+
name: 'expiration',
|
|
2571
|
+
type: 'uint256',
|
|
2572
|
+
},
|
|
2573
|
+
],
|
|
2574
|
+
name: '_sig',
|
|
2575
|
+
type: 'tuple',
|
|
2576
|
+
},
|
|
2577
|
+
],
|
|
2578
|
+
name: 'convertEthToWeth',
|
|
2579
|
+
outputs: [
|
|
2580
|
+
{
|
|
2581
|
+
name: '',
|
|
2582
|
+
type: 'uint256',
|
|
2583
|
+
},
|
|
2584
|
+
{
|
|
2585
|
+
name: '',
|
|
2586
|
+
type: 'uint256',
|
|
2587
|
+
},
|
|
2588
|
+
],
|
|
2589
|
+
stateMutability: 'nonpayable',
|
|
2590
|
+
type: 'function',
|
|
2591
|
+
},
|
|
2592
|
+
{
|
|
2593
|
+
inputs: [
|
|
2594
|
+
{
|
|
2595
|
+
name: '_userWallet',
|
|
2596
|
+
type: 'address',
|
|
2597
|
+
},
|
|
2598
|
+
{
|
|
2599
|
+
name: '_legoId',
|
|
2600
|
+
type: 'uint256',
|
|
2601
|
+
},
|
|
2602
|
+
{
|
|
2603
|
+
name: '_pool',
|
|
2604
|
+
type: 'address',
|
|
2605
|
+
},
|
|
2606
|
+
{
|
|
2607
|
+
name: '_tokenA',
|
|
2608
|
+
type: 'address',
|
|
2609
|
+
},
|
|
2610
|
+
{
|
|
2611
|
+
name: '_tokenB',
|
|
2612
|
+
type: 'address',
|
|
2613
|
+
},
|
|
2614
|
+
],
|
|
2615
|
+
name: 'addLiquidity',
|
|
2616
|
+
outputs: [
|
|
2617
|
+
{
|
|
2618
|
+
name: '',
|
|
2619
|
+
type: 'uint256',
|
|
2620
|
+
},
|
|
2621
|
+
{
|
|
2622
|
+
name: '',
|
|
2623
|
+
type: 'uint256',
|
|
2624
|
+
},
|
|
2625
|
+
{
|
|
2626
|
+
name: '',
|
|
2627
|
+
type: 'uint256',
|
|
2628
|
+
},
|
|
2629
|
+
{
|
|
2630
|
+
name: '',
|
|
2631
|
+
type: 'uint256',
|
|
2632
|
+
},
|
|
2633
|
+
],
|
|
2634
|
+
stateMutability: 'nonpayable',
|
|
2635
|
+
type: 'function',
|
|
2636
|
+
},
|
|
2637
|
+
{
|
|
2638
|
+
inputs: [
|
|
2639
|
+
{
|
|
2640
|
+
name: '_userWallet',
|
|
2641
|
+
type: 'address',
|
|
2642
|
+
},
|
|
2643
|
+
{
|
|
2644
|
+
name: '_legoId',
|
|
2645
|
+
type: 'uint256',
|
|
2646
|
+
},
|
|
2647
|
+
{
|
|
2648
|
+
name: '_pool',
|
|
2649
|
+
type: 'address',
|
|
2650
|
+
},
|
|
2651
|
+
{
|
|
2652
|
+
name: '_tokenA',
|
|
2653
|
+
type: 'address',
|
|
2654
|
+
},
|
|
2655
|
+
{
|
|
2656
|
+
name: '_tokenB',
|
|
2657
|
+
type: 'address',
|
|
2658
|
+
},
|
|
2659
|
+
{
|
|
2660
|
+
name: '_amountA',
|
|
2661
|
+
type: 'uint256',
|
|
2662
|
+
},
|
|
2663
|
+
],
|
|
2664
|
+
name: 'addLiquidity',
|
|
2665
|
+
outputs: [
|
|
2666
|
+
{
|
|
2667
|
+
name: '',
|
|
2668
|
+
type: 'uint256',
|
|
2669
|
+
},
|
|
2670
|
+
{
|
|
2671
|
+
name: '',
|
|
2672
|
+
type: 'uint256',
|
|
2673
|
+
},
|
|
2674
|
+
{
|
|
2675
|
+
name: '',
|
|
2676
|
+
type: 'uint256',
|
|
2677
|
+
},
|
|
2678
|
+
{
|
|
2679
|
+
name: '',
|
|
2680
|
+
type: 'uint256',
|
|
2681
|
+
},
|
|
2682
|
+
],
|
|
2683
|
+
stateMutability: 'nonpayable',
|
|
2684
|
+
type: 'function',
|
|
2685
|
+
},
|
|
2686
|
+
{
|
|
2687
|
+
inputs: [
|
|
2688
|
+
{
|
|
2689
|
+
name: '_userWallet',
|
|
2690
|
+
type: 'address',
|
|
2691
|
+
},
|
|
2692
|
+
{
|
|
2693
|
+
name: '_legoId',
|
|
2694
|
+
type: 'uint256',
|
|
2695
|
+
},
|
|
2696
|
+
{
|
|
2697
|
+
name: '_pool',
|
|
2698
|
+
type: 'address',
|
|
2699
|
+
},
|
|
2700
|
+
{
|
|
2701
|
+
name: '_tokenA',
|
|
2702
|
+
type: 'address',
|
|
2703
|
+
},
|
|
2704
|
+
{
|
|
2705
|
+
name: '_tokenB',
|
|
2706
|
+
type: 'address',
|
|
2707
|
+
},
|
|
2708
|
+
{
|
|
2709
|
+
name: '_amountA',
|
|
2710
|
+
type: 'uint256',
|
|
2711
|
+
},
|
|
2712
|
+
{
|
|
2713
|
+
name: '_amountB',
|
|
2714
|
+
type: 'uint256',
|
|
2715
|
+
},
|
|
2716
|
+
],
|
|
2717
|
+
name: 'addLiquidity',
|
|
2718
|
+
outputs: [
|
|
2719
|
+
{
|
|
2720
|
+
name: '',
|
|
2721
|
+
type: 'uint256',
|
|
2722
|
+
},
|
|
2723
|
+
{
|
|
2724
|
+
name: '',
|
|
2725
|
+
type: 'uint256',
|
|
2726
|
+
},
|
|
2727
|
+
{
|
|
2728
|
+
name: '',
|
|
2729
|
+
type: 'uint256',
|
|
2730
|
+
},
|
|
2731
|
+
{
|
|
2732
|
+
name: '',
|
|
2733
|
+
type: 'uint256',
|
|
2734
|
+
},
|
|
2735
|
+
],
|
|
2736
|
+
stateMutability: 'nonpayable',
|
|
2737
|
+
type: 'function',
|
|
2738
|
+
},
|
|
2739
|
+
{
|
|
2740
|
+
inputs: [
|
|
2741
|
+
{
|
|
2742
|
+
name: '_userWallet',
|
|
2743
|
+
type: 'address',
|
|
2744
|
+
},
|
|
2745
|
+
{
|
|
2746
|
+
name: '_legoId',
|
|
2747
|
+
type: 'uint256',
|
|
2748
|
+
},
|
|
2749
|
+
{
|
|
2750
|
+
name: '_pool',
|
|
2751
|
+
type: 'address',
|
|
2752
|
+
},
|
|
2753
|
+
{
|
|
2754
|
+
name: '_tokenA',
|
|
2755
|
+
type: 'address',
|
|
2756
|
+
},
|
|
2757
|
+
{
|
|
2758
|
+
name: '_tokenB',
|
|
2759
|
+
type: 'address',
|
|
2760
|
+
},
|
|
2761
|
+
{
|
|
2762
|
+
name: '_amountA',
|
|
2763
|
+
type: 'uint256',
|
|
2764
|
+
},
|
|
2765
|
+
{
|
|
2766
|
+
name: '_amountB',
|
|
2767
|
+
type: 'uint256',
|
|
2768
|
+
},
|
|
2769
|
+
{
|
|
2770
|
+
name: '_minAmountA',
|
|
2771
|
+
type: 'uint256',
|
|
2772
|
+
},
|
|
2773
|
+
],
|
|
2774
|
+
name: 'addLiquidity',
|
|
2775
|
+
outputs: [
|
|
2776
|
+
{
|
|
2777
|
+
name: '',
|
|
2778
|
+
type: 'uint256',
|
|
2779
|
+
},
|
|
2780
|
+
{
|
|
2781
|
+
name: '',
|
|
2782
|
+
type: 'uint256',
|
|
2783
|
+
},
|
|
2784
|
+
{
|
|
2785
|
+
name: '',
|
|
2786
|
+
type: 'uint256',
|
|
2787
|
+
},
|
|
2788
|
+
{
|
|
2789
|
+
name: '',
|
|
2790
|
+
type: 'uint256',
|
|
2791
|
+
},
|
|
2792
|
+
],
|
|
2793
|
+
stateMutability: 'nonpayable',
|
|
2794
|
+
type: 'function',
|
|
2795
|
+
},
|
|
2796
|
+
{
|
|
2797
|
+
inputs: [
|
|
2798
|
+
{
|
|
2799
|
+
name: '_userWallet',
|
|
2800
|
+
type: 'address',
|
|
2801
|
+
},
|
|
2802
|
+
{
|
|
2803
|
+
name: '_legoId',
|
|
2804
|
+
type: 'uint256',
|
|
2805
|
+
},
|
|
2806
|
+
{
|
|
2807
|
+
name: '_pool',
|
|
2808
|
+
type: 'address',
|
|
2809
|
+
},
|
|
2810
|
+
{
|
|
2811
|
+
name: '_tokenA',
|
|
2812
|
+
type: 'address',
|
|
2813
|
+
},
|
|
2814
|
+
{
|
|
2815
|
+
name: '_tokenB',
|
|
2816
|
+
type: 'address',
|
|
2817
|
+
},
|
|
2818
|
+
{
|
|
2819
|
+
name: '_amountA',
|
|
2820
|
+
type: 'uint256',
|
|
2821
|
+
},
|
|
2822
|
+
{
|
|
2823
|
+
name: '_amountB',
|
|
2824
|
+
type: 'uint256',
|
|
2825
|
+
},
|
|
2826
|
+
{
|
|
2827
|
+
name: '_minAmountA',
|
|
2828
|
+
type: 'uint256',
|
|
2829
|
+
},
|
|
2830
|
+
{
|
|
2831
|
+
name: '_minAmountB',
|
|
2832
|
+
type: 'uint256',
|
|
2833
|
+
},
|
|
2834
|
+
],
|
|
2835
|
+
name: 'addLiquidity',
|
|
2836
|
+
outputs: [
|
|
2837
|
+
{
|
|
2838
|
+
name: '',
|
|
2839
|
+
type: 'uint256',
|
|
2840
|
+
},
|
|
2841
|
+
{
|
|
2842
|
+
name: '',
|
|
2843
|
+
type: 'uint256',
|
|
2844
|
+
},
|
|
2845
|
+
{
|
|
2846
|
+
name: '',
|
|
2847
|
+
type: 'uint256',
|
|
2848
|
+
},
|
|
2849
|
+
{
|
|
2850
|
+
name: '',
|
|
2851
|
+
type: 'uint256',
|
|
2852
|
+
},
|
|
2853
|
+
],
|
|
2854
|
+
stateMutability: 'nonpayable',
|
|
2855
|
+
type: 'function',
|
|
2856
|
+
},
|
|
2857
|
+
{
|
|
2858
|
+
inputs: [
|
|
2859
|
+
{
|
|
2860
|
+
name: '_userWallet',
|
|
2861
|
+
type: 'address',
|
|
2862
|
+
},
|
|
2863
|
+
{
|
|
2864
|
+
name: '_legoId',
|
|
2865
|
+
type: 'uint256',
|
|
2866
|
+
},
|
|
2867
|
+
{
|
|
2868
|
+
name: '_pool',
|
|
2869
|
+
type: 'address',
|
|
2870
|
+
},
|
|
2871
|
+
{
|
|
2872
|
+
name: '_tokenA',
|
|
2873
|
+
type: 'address',
|
|
2874
|
+
},
|
|
2875
|
+
{
|
|
2876
|
+
name: '_tokenB',
|
|
2877
|
+
type: 'address',
|
|
2878
|
+
},
|
|
2879
|
+
{
|
|
2880
|
+
name: '_amountA',
|
|
2881
|
+
type: 'uint256',
|
|
2882
|
+
},
|
|
2883
|
+
{
|
|
2884
|
+
name: '_amountB',
|
|
2885
|
+
type: 'uint256',
|
|
2886
|
+
},
|
|
2887
|
+
{
|
|
2888
|
+
name: '_minAmountA',
|
|
2889
|
+
type: 'uint256',
|
|
2890
|
+
},
|
|
2891
|
+
{
|
|
2892
|
+
name: '_minAmountB',
|
|
2893
|
+
type: 'uint256',
|
|
2894
|
+
},
|
|
2895
|
+
{
|
|
2896
|
+
name: '_minLpAmount',
|
|
2897
|
+
type: 'uint256',
|
|
2898
|
+
},
|
|
2899
|
+
],
|
|
2900
|
+
name: 'addLiquidity',
|
|
2901
|
+
outputs: [
|
|
2902
|
+
{
|
|
2903
|
+
name: '',
|
|
2904
|
+
type: 'uint256',
|
|
2905
|
+
},
|
|
2906
|
+
{
|
|
2907
|
+
name: '',
|
|
2908
|
+
type: 'uint256',
|
|
2909
|
+
},
|
|
2910
|
+
{
|
|
2911
|
+
name: '',
|
|
2912
|
+
type: 'uint256',
|
|
2913
|
+
},
|
|
2914
|
+
{
|
|
2915
|
+
name: '',
|
|
2916
|
+
type: 'uint256',
|
|
2917
|
+
},
|
|
2918
|
+
],
|
|
2919
|
+
stateMutability: 'nonpayable',
|
|
2920
|
+
type: 'function',
|
|
2921
|
+
},
|
|
2922
|
+
{
|
|
2923
|
+
inputs: [
|
|
2924
|
+
{
|
|
2925
|
+
name: '_userWallet',
|
|
2926
|
+
type: 'address',
|
|
2927
|
+
},
|
|
2928
|
+
{
|
|
2929
|
+
name: '_legoId',
|
|
2930
|
+
type: 'uint256',
|
|
2931
|
+
},
|
|
2932
|
+
{
|
|
2933
|
+
name: '_pool',
|
|
2934
|
+
type: 'address',
|
|
2935
|
+
},
|
|
2936
|
+
{
|
|
2937
|
+
name: '_tokenA',
|
|
2938
|
+
type: 'address',
|
|
2939
|
+
},
|
|
2940
|
+
{
|
|
2941
|
+
name: '_tokenB',
|
|
2942
|
+
type: 'address',
|
|
2943
|
+
},
|
|
2944
|
+
{
|
|
2945
|
+
name: '_amountA',
|
|
2946
|
+
type: 'uint256',
|
|
2947
|
+
},
|
|
2948
|
+
{
|
|
2949
|
+
name: '_amountB',
|
|
2950
|
+
type: 'uint256',
|
|
2951
|
+
},
|
|
2952
|
+
{
|
|
2953
|
+
name: '_minAmountA',
|
|
2954
|
+
type: 'uint256',
|
|
2955
|
+
},
|
|
2956
|
+
{
|
|
2957
|
+
name: '_minAmountB',
|
|
2958
|
+
type: 'uint256',
|
|
2959
|
+
},
|
|
2960
|
+
{
|
|
2961
|
+
name: '_minLpAmount',
|
|
2962
|
+
type: 'uint256',
|
|
2963
|
+
},
|
|
2964
|
+
{
|
|
2965
|
+
name: '_extraData',
|
|
2966
|
+
type: 'bytes32',
|
|
2967
|
+
},
|
|
2968
|
+
],
|
|
2969
|
+
name: 'addLiquidity',
|
|
2970
|
+
outputs: [
|
|
2971
|
+
{
|
|
2972
|
+
name: '',
|
|
2973
|
+
type: 'uint256',
|
|
2974
|
+
},
|
|
2975
|
+
{
|
|
2976
|
+
name: '',
|
|
2977
|
+
type: 'uint256',
|
|
2978
|
+
},
|
|
2979
|
+
{
|
|
2980
|
+
name: '',
|
|
2981
|
+
type: 'uint256',
|
|
2982
|
+
},
|
|
2983
|
+
{
|
|
2984
|
+
name: '',
|
|
2985
|
+
type: 'uint256',
|
|
2986
|
+
},
|
|
2987
|
+
],
|
|
2988
|
+
stateMutability: 'nonpayable',
|
|
2989
|
+
type: 'function',
|
|
2990
|
+
},
|
|
2991
|
+
{
|
|
2992
|
+
inputs: [
|
|
2993
|
+
{
|
|
2994
|
+
name: '_userWallet',
|
|
2995
|
+
type: 'address',
|
|
2996
|
+
},
|
|
2997
|
+
{
|
|
2998
|
+
name: '_legoId',
|
|
2999
|
+
type: 'uint256',
|
|
3000
|
+
},
|
|
3001
|
+
{
|
|
3002
|
+
name: '_pool',
|
|
3003
|
+
type: 'address',
|
|
3004
|
+
},
|
|
3005
|
+
{
|
|
3006
|
+
name: '_tokenA',
|
|
3007
|
+
type: 'address',
|
|
3008
|
+
},
|
|
3009
|
+
{
|
|
3010
|
+
name: '_tokenB',
|
|
3011
|
+
type: 'address',
|
|
3012
|
+
},
|
|
3013
|
+
{
|
|
3014
|
+
name: '_amountA',
|
|
3015
|
+
type: 'uint256',
|
|
3016
|
+
},
|
|
3017
|
+
{
|
|
3018
|
+
name: '_amountB',
|
|
3019
|
+
type: 'uint256',
|
|
3020
|
+
},
|
|
3021
|
+
{
|
|
3022
|
+
name: '_minAmountA',
|
|
3023
|
+
type: 'uint256',
|
|
3024
|
+
},
|
|
3025
|
+
{
|
|
3026
|
+
name: '_minAmountB',
|
|
3027
|
+
type: 'uint256',
|
|
3028
|
+
},
|
|
3029
|
+
{
|
|
3030
|
+
name: '_minLpAmount',
|
|
3031
|
+
type: 'uint256',
|
|
3032
|
+
},
|
|
3033
|
+
{
|
|
3034
|
+
name: '_extraData',
|
|
3035
|
+
type: 'bytes32',
|
|
3036
|
+
},
|
|
3037
|
+
{
|
|
3038
|
+
components: [
|
|
3039
|
+
{
|
|
3040
|
+
name: 'signature',
|
|
3041
|
+
type: 'bytes',
|
|
3042
|
+
},
|
|
3043
|
+
{
|
|
3044
|
+
name: 'nonce',
|
|
3045
|
+
type: 'uint256',
|
|
3046
|
+
},
|
|
3047
|
+
{
|
|
3048
|
+
name: 'expiration',
|
|
3049
|
+
type: 'uint256',
|
|
3050
|
+
},
|
|
3051
|
+
],
|
|
3052
|
+
name: '_sig',
|
|
3053
|
+
type: 'tuple',
|
|
3054
|
+
},
|
|
3055
|
+
],
|
|
3056
|
+
name: 'addLiquidity',
|
|
3057
|
+
outputs: [
|
|
3058
|
+
{
|
|
3059
|
+
name: '',
|
|
3060
|
+
type: 'uint256',
|
|
3061
|
+
},
|
|
3062
|
+
{
|
|
3063
|
+
name: '',
|
|
3064
|
+
type: 'uint256',
|
|
3065
|
+
},
|
|
3066
|
+
{
|
|
3067
|
+
name: '',
|
|
3068
|
+
type: 'uint256',
|
|
3069
|
+
},
|
|
3070
|
+
{
|
|
3071
|
+
name: '',
|
|
3072
|
+
type: 'uint256',
|
|
3073
|
+
},
|
|
3074
|
+
],
|
|
3075
|
+
stateMutability: 'nonpayable',
|
|
3076
|
+
type: 'function',
|
|
3077
|
+
},
|
|
3078
|
+
{
|
|
3079
|
+
inputs: [
|
|
3080
|
+
{
|
|
3081
|
+
name: '_userWallet',
|
|
3082
|
+
type: 'address',
|
|
3083
|
+
},
|
|
3084
|
+
{
|
|
3085
|
+
name: '_legoId',
|
|
3086
|
+
type: 'uint256',
|
|
1552
3087
|
},
|
|
1553
3088
|
{
|
|
1554
3089
|
name: '_pool',
|
|
@@ -1563,24 +3098,65 @@ export const abi = [
|
|
|
1563
3098
|
type: 'address',
|
|
1564
3099
|
},
|
|
1565
3100
|
{
|
|
1566
|
-
name: '
|
|
3101
|
+
name: '_lpToken',
|
|
3102
|
+
type: 'address',
|
|
3103
|
+
},
|
|
3104
|
+
],
|
|
3105
|
+
name: 'removeLiquidity',
|
|
3106
|
+
outputs: [
|
|
3107
|
+
{
|
|
3108
|
+
name: '',
|
|
1567
3109
|
type: 'uint256',
|
|
1568
3110
|
},
|
|
1569
3111
|
{
|
|
1570
|
-
name: '
|
|
3112
|
+
name: '',
|
|
1571
3113
|
type: 'uint256',
|
|
1572
3114
|
},
|
|
1573
3115
|
{
|
|
1574
|
-
name: '
|
|
1575
|
-
type: '
|
|
3116
|
+
name: '',
|
|
3117
|
+
type: 'uint256',
|
|
1576
3118
|
},
|
|
1577
|
-
],
|
|
1578
|
-
name: 'addLiquidity',
|
|
1579
|
-
outputs: [
|
|
1580
3119
|
{
|
|
1581
3120
|
name: '',
|
|
1582
3121
|
type: 'uint256',
|
|
1583
3122
|
},
|
|
3123
|
+
],
|
|
3124
|
+
stateMutability: 'nonpayable',
|
|
3125
|
+
type: 'function',
|
|
3126
|
+
},
|
|
3127
|
+
{
|
|
3128
|
+
inputs: [
|
|
3129
|
+
{
|
|
3130
|
+
name: '_userWallet',
|
|
3131
|
+
type: 'address',
|
|
3132
|
+
},
|
|
3133
|
+
{
|
|
3134
|
+
name: '_legoId',
|
|
3135
|
+
type: 'uint256',
|
|
3136
|
+
},
|
|
3137
|
+
{
|
|
3138
|
+
name: '_pool',
|
|
3139
|
+
type: 'address',
|
|
3140
|
+
},
|
|
3141
|
+
{
|
|
3142
|
+
name: '_tokenA',
|
|
3143
|
+
type: 'address',
|
|
3144
|
+
},
|
|
3145
|
+
{
|
|
3146
|
+
name: '_tokenB',
|
|
3147
|
+
type: 'address',
|
|
3148
|
+
},
|
|
3149
|
+
{
|
|
3150
|
+
name: '_lpToken',
|
|
3151
|
+
type: 'address',
|
|
3152
|
+
},
|
|
3153
|
+
{
|
|
3154
|
+
name: '_lpAmount',
|
|
3155
|
+
type: 'uint256',
|
|
3156
|
+
},
|
|
3157
|
+
],
|
|
3158
|
+
name: 'removeLiquidity',
|
|
3159
|
+
outputs: [
|
|
1584
3160
|
{
|
|
1585
3161
|
name: '',
|
|
1586
3162
|
type: 'uint256',
|
|
@@ -1612,11 +3188,60 @@ export const abi = [
|
|
|
1612
3188
|
type: 'uint256',
|
|
1613
3189
|
},
|
|
1614
3190
|
{
|
|
1615
|
-
name: '
|
|
3191
|
+
name: '_pool',
|
|
1616
3192
|
type: 'address',
|
|
1617
3193
|
},
|
|
1618
3194
|
{
|
|
1619
|
-
name: '
|
|
3195
|
+
name: '_tokenA',
|
|
3196
|
+
type: 'address',
|
|
3197
|
+
},
|
|
3198
|
+
{
|
|
3199
|
+
name: '_tokenB',
|
|
3200
|
+
type: 'address',
|
|
3201
|
+
},
|
|
3202
|
+
{
|
|
3203
|
+
name: '_lpToken',
|
|
3204
|
+
type: 'address',
|
|
3205
|
+
},
|
|
3206
|
+
{
|
|
3207
|
+
name: '_lpAmount',
|
|
3208
|
+
type: 'uint256',
|
|
3209
|
+
},
|
|
3210
|
+
{
|
|
3211
|
+
name: '_minAmountA',
|
|
3212
|
+
type: 'uint256',
|
|
3213
|
+
},
|
|
3214
|
+
],
|
|
3215
|
+
name: 'removeLiquidity',
|
|
3216
|
+
outputs: [
|
|
3217
|
+
{
|
|
3218
|
+
name: '',
|
|
3219
|
+
type: 'uint256',
|
|
3220
|
+
},
|
|
3221
|
+
{
|
|
3222
|
+
name: '',
|
|
3223
|
+
type: 'uint256',
|
|
3224
|
+
},
|
|
3225
|
+
{
|
|
3226
|
+
name: '',
|
|
3227
|
+
type: 'uint256',
|
|
3228
|
+
},
|
|
3229
|
+
{
|
|
3230
|
+
name: '',
|
|
3231
|
+
type: 'uint256',
|
|
3232
|
+
},
|
|
3233
|
+
],
|
|
3234
|
+
stateMutability: 'nonpayable',
|
|
3235
|
+
type: 'function',
|
|
3236
|
+
},
|
|
3237
|
+
{
|
|
3238
|
+
inputs: [
|
|
3239
|
+
{
|
|
3240
|
+
name: '_userWallet',
|
|
3241
|
+
type: 'address',
|
|
3242
|
+
},
|
|
3243
|
+
{
|
|
3244
|
+
name: '_legoId',
|
|
1620
3245
|
type: 'uint256',
|
|
1621
3246
|
},
|
|
1622
3247
|
{
|
|
@@ -1632,23 +3257,23 @@ export const abi = [
|
|
|
1632
3257
|
type: 'address',
|
|
1633
3258
|
},
|
|
1634
3259
|
{
|
|
1635
|
-
name: '
|
|
1636
|
-
type: '
|
|
3260
|
+
name: '_lpToken',
|
|
3261
|
+
type: 'address',
|
|
1637
3262
|
},
|
|
1638
3263
|
{
|
|
1639
|
-
name: '
|
|
3264
|
+
name: '_lpAmount',
|
|
1640
3265
|
type: 'uint256',
|
|
1641
3266
|
},
|
|
1642
3267
|
{
|
|
1643
|
-
name: '
|
|
1644
|
-
type: '
|
|
3268
|
+
name: '_minAmountA',
|
|
3269
|
+
type: 'uint256',
|
|
1645
3270
|
},
|
|
1646
3271
|
{
|
|
1647
|
-
name: '
|
|
1648
|
-
type: '
|
|
3272
|
+
name: '_minAmountB',
|
|
3273
|
+
type: 'uint256',
|
|
1649
3274
|
},
|
|
1650
3275
|
],
|
|
1651
|
-
name: '
|
|
3276
|
+
name: 'removeLiquidity',
|
|
1652
3277
|
outputs: [
|
|
1653
3278
|
{
|
|
1654
3279
|
name: '',
|
|
@@ -1666,10 +3291,6 @@ export const abi = [
|
|
|
1666
3291
|
name: '',
|
|
1667
3292
|
type: 'uint256',
|
|
1668
3293
|
},
|
|
1669
|
-
{
|
|
1670
|
-
name: '',
|
|
1671
|
-
type: 'uint256',
|
|
1672
|
-
},
|
|
1673
3294
|
],
|
|
1674
3295
|
stateMutability: 'nonpayable',
|
|
1675
3296
|
type: 'function',
|
|
@@ -1684,14 +3305,6 @@ export const abi = [
|
|
|
1684
3305
|
name: '_legoId',
|
|
1685
3306
|
type: 'uint256',
|
|
1686
3307
|
},
|
|
1687
|
-
{
|
|
1688
|
-
name: '_nftAddr',
|
|
1689
|
-
type: 'address',
|
|
1690
|
-
},
|
|
1691
|
-
{
|
|
1692
|
-
name: '_nftTokenId',
|
|
1693
|
-
type: 'uint256',
|
|
1694
|
-
},
|
|
1695
3308
|
{
|
|
1696
3309
|
name: '_pool',
|
|
1697
3310
|
type: 'address',
|
|
@@ -1705,27 +3318,27 @@ export const abi = [
|
|
|
1705
3318
|
type: 'address',
|
|
1706
3319
|
},
|
|
1707
3320
|
{
|
|
1708
|
-
name: '
|
|
1709
|
-
type: '
|
|
3321
|
+
name: '_lpToken',
|
|
3322
|
+
type: 'address',
|
|
1710
3323
|
},
|
|
1711
3324
|
{
|
|
1712
|
-
name: '
|
|
3325
|
+
name: '_lpAmount',
|
|
1713
3326
|
type: 'uint256',
|
|
1714
3327
|
},
|
|
1715
3328
|
{
|
|
1716
|
-
name: '
|
|
1717
|
-
type: '
|
|
3329
|
+
name: '_minAmountA',
|
|
3330
|
+
type: 'uint256',
|
|
1718
3331
|
},
|
|
1719
3332
|
{
|
|
1720
|
-
name: '
|
|
1721
|
-
type: '
|
|
3333
|
+
name: '_minAmountB',
|
|
3334
|
+
type: 'uint256',
|
|
1722
3335
|
},
|
|
1723
3336
|
{
|
|
1724
|
-
name: '
|
|
1725
|
-
type: '
|
|
3337
|
+
name: '_extraData',
|
|
3338
|
+
type: 'bytes32',
|
|
1726
3339
|
},
|
|
1727
3340
|
],
|
|
1728
|
-
name: '
|
|
3341
|
+
name: 'removeLiquidity',
|
|
1729
3342
|
outputs: [
|
|
1730
3343
|
{
|
|
1731
3344
|
name: '',
|
|
@@ -1743,10 +3356,6 @@ export const abi = [
|
|
|
1743
3356
|
name: '',
|
|
1744
3357
|
type: 'uint256',
|
|
1745
3358
|
},
|
|
1746
|
-
{
|
|
1747
|
-
name: '',
|
|
1748
|
-
type: 'uint256',
|
|
1749
|
-
},
|
|
1750
3359
|
],
|
|
1751
3360
|
stateMutability: 'nonpayable',
|
|
1752
3361
|
type: 'function',
|
|
@@ -1762,51 +3371,110 @@ export const abi = [
|
|
|
1762
3371
|
type: 'uint256',
|
|
1763
3372
|
},
|
|
1764
3373
|
{
|
|
1765
|
-
name: '
|
|
3374
|
+
name: '_pool',
|
|
1766
3375
|
type: 'address',
|
|
1767
3376
|
},
|
|
1768
3377
|
{
|
|
1769
|
-
name: '
|
|
1770
|
-
type: '
|
|
3378
|
+
name: '_tokenA',
|
|
3379
|
+
type: 'address',
|
|
1771
3380
|
},
|
|
1772
3381
|
{
|
|
1773
|
-
name: '
|
|
3382
|
+
name: '_tokenB',
|
|
1774
3383
|
type: 'address',
|
|
1775
3384
|
},
|
|
1776
3385
|
{
|
|
1777
|
-
name: '
|
|
3386
|
+
name: '_lpToken',
|
|
1778
3387
|
type: 'address',
|
|
1779
3388
|
},
|
|
1780
3389
|
{
|
|
1781
|
-
name: '
|
|
1782
|
-
type: '
|
|
3390
|
+
name: '_lpAmount',
|
|
3391
|
+
type: 'uint256',
|
|
1783
3392
|
},
|
|
1784
3393
|
{
|
|
1785
|
-
name: '
|
|
3394
|
+
name: '_minAmountA',
|
|
1786
3395
|
type: 'uint256',
|
|
1787
3396
|
},
|
|
1788
3397
|
{
|
|
1789
|
-
name: '
|
|
3398
|
+
name: '_minAmountB',
|
|
1790
3399
|
type: 'uint256',
|
|
1791
3400
|
},
|
|
1792
3401
|
{
|
|
1793
|
-
name: '
|
|
1794
|
-
type: '
|
|
3402
|
+
name: '_extraData',
|
|
3403
|
+
type: 'bytes32',
|
|
3404
|
+
},
|
|
3405
|
+
{
|
|
3406
|
+
components: [
|
|
3407
|
+
{
|
|
3408
|
+
name: 'signature',
|
|
3409
|
+
type: 'bytes',
|
|
3410
|
+
},
|
|
3411
|
+
{
|
|
3412
|
+
name: 'nonce',
|
|
3413
|
+
type: 'uint256',
|
|
3414
|
+
},
|
|
3415
|
+
{
|
|
3416
|
+
name: 'expiration',
|
|
3417
|
+
type: 'uint256',
|
|
3418
|
+
},
|
|
3419
|
+
],
|
|
3420
|
+
name: '_sig',
|
|
3421
|
+
type: 'tuple',
|
|
3422
|
+
},
|
|
3423
|
+
],
|
|
3424
|
+
name: 'removeLiquidity',
|
|
3425
|
+
outputs: [
|
|
3426
|
+
{
|
|
3427
|
+
name: '',
|
|
3428
|
+
type: 'uint256',
|
|
3429
|
+
},
|
|
3430
|
+
{
|
|
3431
|
+
name: '',
|
|
3432
|
+
type: 'uint256',
|
|
3433
|
+
},
|
|
3434
|
+
{
|
|
3435
|
+
name: '',
|
|
3436
|
+
type: 'uint256',
|
|
3437
|
+
},
|
|
3438
|
+
{
|
|
3439
|
+
name: '',
|
|
3440
|
+
type: 'uint256',
|
|
3441
|
+
},
|
|
3442
|
+
],
|
|
3443
|
+
stateMutability: 'nonpayable',
|
|
3444
|
+
type: 'function',
|
|
3445
|
+
},
|
|
3446
|
+
{
|
|
3447
|
+
inputs: [
|
|
3448
|
+
{
|
|
3449
|
+
name: '_userWallet',
|
|
3450
|
+
type: 'address',
|
|
3451
|
+
},
|
|
3452
|
+
{
|
|
3453
|
+
name: '_legoId',
|
|
3454
|
+
type: 'uint256',
|
|
3455
|
+
},
|
|
3456
|
+
{
|
|
3457
|
+
name: '_nftAddr',
|
|
3458
|
+
type: 'address',
|
|
3459
|
+
},
|
|
3460
|
+
{
|
|
3461
|
+
name: '_nftTokenId',
|
|
3462
|
+
type: 'uint256',
|
|
1795
3463
|
},
|
|
1796
3464
|
{
|
|
1797
|
-
name: '
|
|
1798
|
-
type: '
|
|
3465
|
+
name: '_pool',
|
|
3466
|
+
type: 'address',
|
|
1799
3467
|
},
|
|
1800
3468
|
{
|
|
1801
|
-
name: '
|
|
1802
|
-
type: '
|
|
3469
|
+
name: '_tokenA',
|
|
3470
|
+
type: 'address',
|
|
1803
3471
|
},
|
|
1804
3472
|
{
|
|
1805
|
-
name: '
|
|
1806
|
-
type: '
|
|
3473
|
+
name: '_tokenB',
|
|
3474
|
+
type: 'address',
|
|
1807
3475
|
},
|
|
1808
3476
|
],
|
|
1809
|
-
name: '
|
|
3477
|
+
name: 'addLiquidityConcentrated',
|
|
1810
3478
|
outputs: [
|
|
1811
3479
|
{
|
|
1812
3480
|
name: '',
|
|
@@ -1866,32 +3534,8 @@ export const abi = [
|
|
|
1866
3534
|
name: '_amountA',
|
|
1867
3535
|
type: 'uint256',
|
|
1868
3536
|
},
|
|
1869
|
-
{
|
|
1870
|
-
name: '_amountB',
|
|
1871
|
-
type: 'uint256',
|
|
1872
|
-
},
|
|
1873
|
-
{
|
|
1874
|
-
name: '_tickLower',
|
|
1875
|
-
type: 'int24',
|
|
1876
|
-
},
|
|
1877
|
-
{
|
|
1878
|
-
name: '_tickUpper',
|
|
1879
|
-
type: 'int24',
|
|
1880
|
-
},
|
|
1881
|
-
{
|
|
1882
|
-
name: '_minAmountA',
|
|
1883
|
-
type: 'uint256',
|
|
1884
|
-
},
|
|
1885
|
-
{
|
|
1886
|
-
name: '_minAmountB',
|
|
1887
|
-
type: 'uint256',
|
|
1888
|
-
},
|
|
1889
|
-
{
|
|
1890
|
-
name: '_minLpAmount',
|
|
1891
|
-
type: 'uint256',
|
|
1892
|
-
},
|
|
1893
3537
|
],
|
|
1894
|
-
name: '
|
|
3538
|
+
name: 'addLiquidityConcentrated',
|
|
1895
3539
|
outputs: [
|
|
1896
3540
|
{
|
|
1897
3541
|
name: '',
|
|
@@ -1955,46 +3599,8 @@ export const abi = [
|
|
|
1955
3599
|
name: '_amountB',
|
|
1956
3600
|
type: 'uint256',
|
|
1957
3601
|
},
|
|
1958
|
-
{
|
|
1959
|
-
name: '_tickLower',
|
|
1960
|
-
type: 'int24',
|
|
1961
|
-
},
|
|
1962
|
-
{
|
|
1963
|
-
name: '_tickUpper',
|
|
1964
|
-
type: 'int24',
|
|
1965
|
-
},
|
|
1966
|
-
{
|
|
1967
|
-
name: '_minAmountA',
|
|
1968
|
-
type: 'uint256',
|
|
1969
|
-
},
|
|
1970
|
-
{
|
|
1971
|
-
name: '_minAmountB',
|
|
1972
|
-
type: 'uint256',
|
|
1973
|
-
},
|
|
1974
|
-
{
|
|
1975
|
-
name: '_minLpAmount',
|
|
1976
|
-
type: 'uint256',
|
|
1977
|
-
},
|
|
1978
|
-
{
|
|
1979
|
-
components: [
|
|
1980
|
-
{
|
|
1981
|
-
name: 'signature',
|
|
1982
|
-
type: 'bytes',
|
|
1983
|
-
},
|
|
1984
|
-
{
|
|
1985
|
-
name: 'signer',
|
|
1986
|
-
type: 'address',
|
|
1987
|
-
},
|
|
1988
|
-
{
|
|
1989
|
-
name: 'expiration',
|
|
1990
|
-
type: 'uint256',
|
|
1991
|
-
},
|
|
1992
|
-
],
|
|
1993
|
-
name: '_sig',
|
|
1994
|
-
type: 'tuple',
|
|
1995
|
-
},
|
|
1996
3602
|
],
|
|
1997
|
-
name: '
|
|
3603
|
+
name: 'addLiquidityConcentrated',
|
|
1998
3604
|
outputs: [
|
|
1999
3605
|
{
|
|
2000
3606
|
name: '',
|
|
@@ -2050,8 +3656,20 @@ export const abi = [
|
|
|
2050
3656
|
name: '_tokenB',
|
|
2051
3657
|
type: 'address',
|
|
2052
3658
|
},
|
|
3659
|
+
{
|
|
3660
|
+
name: '_amountA',
|
|
3661
|
+
type: 'uint256',
|
|
3662
|
+
},
|
|
3663
|
+
{
|
|
3664
|
+
name: '_amountB',
|
|
3665
|
+
type: 'uint256',
|
|
3666
|
+
},
|
|
3667
|
+
{
|
|
3668
|
+
name: '_tickLower',
|
|
3669
|
+
type: 'int24',
|
|
3670
|
+
},
|
|
2053
3671
|
],
|
|
2054
|
-
name: '
|
|
3672
|
+
name: 'addLiquidityConcentrated',
|
|
2055
3673
|
outputs: [
|
|
2056
3674
|
{
|
|
2057
3675
|
name: '',
|
|
@@ -2067,7 +3685,11 @@ export const abi = [
|
|
|
2067
3685
|
},
|
|
2068
3686
|
{
|
|
2069
3687
|
name: '',
|
|
2070
|
-
type: '
|
|
3688
|
+
type: 'uint256',
|
|
3689
|
+
},
|
|
3690
|
+
{
|
|
3691
|
+
name: '',
|
|
3692
|
+
type: 'uint256',
|
|
2071
3693
|
},
|
|
2072
3694
|
],
|
|
2073
3695
|
stateMutability: 'nonpayable',
|
|
@@ -2104,11 +3726,23 @@ export const abi = [
|
|
|
2104
3726
|
type: 'address',
|
|
2105
3727
|
},
|
|
2106
3728
|
{
|
|
2107
|
-
name: '
|
|
3729
|
+
name: '_amountA',
|
|
3730
|
+
type: 'uint256',
|
|
3731
|
+
},
|
|
3732
|
+
{
|
|
3733
|
+
name: '_amountB',
|
|
2108
3734
|
type: 'uint256',
|
|
2109
3735
|
},
|
|
3736
|
+
{
|
|
3737
|
+
name: '_tickLower',
|
|
3738
|
+
type: 'int24',
|
|
3739
|
+
},
|
|
3740
|
+
{
|
|
3741
|
+
name: '_tickUpper',
|
|
3742
|
+
type: 'int24',
|
|
3743
|
+
},
|
|
2110
3744
|
],
|
|
2111
|
-
name: '
|
|
3745
|
+
name: 'addLiquidityConcentrated',
|
|
2112
3746
|
outputs: [
|
|
2113
3747
|
{
|
|
2114
3748
|
name: '',
|
|
@@ -2124,7 +3758,11 @@ export const abi = [
|
|
|
2124
3758
|
},
|
|
2125
3759
|
{
|
|
2126
3760
|
name: '',
|
|
2127
|
-
type: '
|
|
3761
|
+
type: 'uint256',
|
|
3762
|
+
},
|
|
3763
|
+
{
|
|
3764
|
+
name: '',
|
|
3765
|
+
type: 'uint256',
|
|
2128
3766
|
},
|
|
2129
3767
|
],
|
|
2130
3768
|
stateMutability: 'nonpayable',
|
|
@@ -2161,15 +3799,27 @@ export const abi = [
|
|
|
2161
3799
|
type: 'address',
|
|
2162
3800
|
},
|
|
2163
3801
|
{
|
|
2164
|
-
name: '
|
|
3802
|
+
name: '_amountA',
|
|
3803
|
+
type: 'uint256',
|
|
3804
|
+
},
|
|
3805
|
+
{
|
|
3806
|
+
name: '_amountB',
|
|
2165
3807
|
type: 'uint256',
|
|
2166
3808
|
},
|
|
3809
|
+
{
|
|
3810
|
+
name: '_tickLower',
|
|
3811
|
+
type: 'int24',
|
|
3812
|
+
},
|
|
3813
|
+
{
|
|
3814
|
+
name: '_tickUpper',
|
|
3815
|
+
type: 'int24',
|
|
3816
|
+
},
|
|
2167
3817
|
{
|
|
2168
3818
|
name: '_minAmountA',
|
|
2169
3819
|
type: 'uint256',
|
|
2170
3820
|
},
|
|
2171
3821
|
],
|
|
2172
|
-
name: '
|
|
3822
|
+
name: 'addLiquidityConcentrated',
|
|
2173
3823
|
outputs: [
|
|
2174
3824
|
{
|
|
2175
3825
|
name: '',
|
|
@@ -2185,7 +3835,11 @@ export const abi = [
|
|
|
2185
3835
|
},
|
|
2186
3836
|
{
|
|
2187
3837
|
name: '',
|
|
2188
|
-
type: '
|
|
3838
|
+
type: 'uint256',
|
|
3839
|
+
},
|
|
3840
|
+
{
|
|
3841
|
+
name: '',
|
|
3842
|
+
type: 'uint256',
|
|
2189
3843
|
},
|
|
2190
3844
|
],
|
|
2191
3845
|
stateMutability: 'nonpayable',
|
|
@@ -2222,9 +3876,21 @@ export const abi = [
|
|
|
2222
3876
|
type: 'address',
|
|
2223
3877
|
},
|
|
2224
3878
|
{
|
|
2225
|
-
name: '
|
|
3879
|
+
name: '_amountA',
|
|
3880
|
+
type: 'uint256',
|
|
3881
|
+
},
|
|
3882
|
+
{
|
|
3883
|
+
name: '_amountB',
|
|
2226
3884
|
type: 'uint256',
|
|
2227
3885
|
},
|
|
3886
|
+
{
|
|
3887
|
+
name: '_tickLower',
|
|
3888
|
+
type: 'int24',
|
|
3889
|
+
},
|
|
3890
|
+
{
|
|
3891
|
+
name: '_tickUpper',
|
|
3892
|
+
type: 'int24',
|
|
3893
|
+
},
|
|
2228
3894
|
{
|
|
2229
3895
|
name: '_minAmountA',
|
|
2230
3896
|
type: 'uint256',
|
|
@@ -2234,7 +3900,7 @@ export const abi = [
|
|
|
2234
3900
|
type: 'uint256',
|
|
2235
3901
|
},
|
|
2236
3902
|
],
|
|
2237
|
-
name: '
|
|
3903
|
+
name: 'addLiquidityConcentrated',
|
|
2238
3904
|
outputs: [
|
|
2239
3905
|
{
|
|
2240
3906
|
name: '',
|
|
@@ -2250,7 +3916,11 @@ export const abi = [
|
|
|
2250
3916
|
},
|
|
2251
3917
|
{
|
|
2252
3918
|
name: '',
|
|
2253
|
-
type: '
|
|
3919
|
+
type: 'uint256',
|
|
3920
|
+
},
|
|
3921
|
+
{
|
|
3922
|
+
name: '',
|
|
3923
|
+
type: 'uint256',
|
|
2254
3924
|
},
|
|
2255
3925
|
],
|
|
2256
3926
|
stateMutability: 'nonpayable',
|
|
@@ -2287,9 +3957,21 @@ export const abi = [
|
|
|
2287
3957
|
type: 'address',
|
|
2288
3958
|
},
|
|
2289
3959
|
{
|
|
2290
|
-
name: '
|
|
3960
|
+
name: '_amountA',
|
|
3961
|
+
type: 'uint256',
|
|
3962
|
+
},
|
|
3963
|
+
{
|
|
3964
|
+
name: '_amountB',
|
|
2291
3965
|
type: 'uint256',
|
|
2292
3966
|
},
|
|
3967
|
+
{
|
|
3968
|
+
name: '_tickLower',
|
|
3969
|
+
type: 'int24',
|
|
3970
|
+
},
|
|
3971
|
+
{
|
|
3972
|
+
name: '_tickUpper',
|
|
3973
|
+
type: 'int24',
|
|
3974
|
+
},
|
|
2293
3975
|
{
|
|
2294
3976
|
name: '_minAmountA',
|
|
2295
3977
|
type: 'uint256',
|
|
@@ -2299,25 +3981,11 @@ export const abi = [
|
|
|
2299
3981
|
type: 'uint256',
|
|
2300
3982
|
},
|
|
2301
3983
|
{
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
name: 'signature',
|
|
2305
|
-
type: 'bytes',
|
|
2306
|
-
},
|
|
2307
|
-
{
|
|
2308
|
-
name: 'signer',
|
|
2309
|
-
type: 'address',
|
|
2310
|
-
},
|
|
2311
|
-
{
|
|
2312
|
-
name: 'expiration',
|
|
2313
|
-
type: 'uint256',
|
|
2314
|
-
},
|
|
2315
|
-
],
|
|
2316
|
-
name: '_sig',
|
|
2317
|
-
type: 'tuple',
|
|
3984
|
+
name: '_extraData',
|
|
3985
|
+
type: 'bytes32',
|
|
2318
3986
|
},
|
|
2319
3987
|
],
|
|
2320
|
-
name: '
|
|
3988
|
+
name: 'addLiquidityConcentrated',
|
|
2321
3989
|
outputs: [
|
|
2322
3990
|
{
|
|
2323
3991
|
name: '',
|
|
@@ -2331,27 +3999,6 @@ export const abi = [
|
|
|
2331
3999
|
name: '',
|
|
2332
4000
|
type: 'uint256',
|
|
2333
4001
|
},
|
|
2334
|
-
{
|
|
2335
|
-
name: '',
|
|
2336
|
-
type: 'bool',
|
|
2337
|
-
},
|
|
2338
|
-
],
|
|
2339
|
-
stateMutability: 'nonpayable',
|
|
2340
|
-
type: 'function',
|
|
2341
|
-
},
|
|
2342
|
-
{
|
|
2343
|
-
inputs: [
|
|
2344
|
-
{
|
|
2345
|
-
name: '_userWallet',
|
|
2346
|
-
type: 'address',
|
|
2347
|
-
},
|
|
2348
|
-
{
|
|
2349
|
-
name: '_recipient',
|
|
2350
|
-
type: 'address',
|
|
2351
|
-
},
|
|
2352
|
-
],
|
|
2353
|
-
name: 'transferFunds',
|
|
2354
|
-
outputs: [
|
|
2355
4002
|
{
|
|
2356
4003
|
name: '',
|
|
2357
4004
|
type: 'uint256',
|
|
@@ -2371,78 +4018,56 @@ export const abi = [
|
|
|
2371
4018
|
type: 'address',
|
|
2372
4019
|
},
|
|
2373
4020
|
{
|
|
2374
|
-
name: '
|
|
2375
|
-
type: 'address',
|
|
2376
|
-
},
|
|
2377
|
-
{
|
|
2378
|
-
name: '_amount',
|
|
4021
|
+
name: '_legoId',
|
|
2379
4022
|
type: 'uint256',
|
|
2380
4023
|
},
|
|
2381
|
-
],
|
|
2382
|
-
name: 'transferFunds',
|
|
2383
|
-
outputs: [
|
|
2384
4024
|
{
|
|
2385
|
-
name: '',
|
|
2386
|
-
type: '
|
|
4025
|
+
name: '_nftAddr',
|
|
4026
|
+
type: 'address',
|
|
2387
4027
|
},
|
|
2388
4028
|
{
|
|
2389
|
-
name: '',
|
|
4029
|
+
name: '_nftTokenId',
|
|
2390
4030
|
type: 'uint256',
|
|
2391
4031
|
},
|
|
2392
|
-
],
|
|
2393
|
-
stateMutability: 'nonpayable',
|
|
2394
|
-
type: 'function',
|
|
2395
|
-
},
|
|
2396
|
-
{
|
|
2397
|
-
inputs: [
|
|
2398
4032
|
{
|
|
2399
|
-
name: '
|
|
4033
|
+
name: '_pool',
|
|
2400
4034
|
type: 'address',
|
|
2401
4035
|
},
|
|
2402
4036
|
{
|
|
2403
|
-
name: '
|
|
4037
|
+
name: '_tokenA',
|
|
2404
4038
|
type: 'address',
|
|
2405
4039
|
},
|
|
2406
4040
|
{
|
|
2407
|
-
name: '
|
|
2408
|
-
type: 'uint256',
|
|
2409
|
-
},
|
|
2410
|
-
{
|
|
2411
|
-
name: '_asset',
|
|
4041
|
+
name: '_tokenB',
|
|
2412
4042
|
type: 'address',
|
|
2413
4043
|
},
|
|
2414
|
-
],
|
|
2415
|
-
name: 'transferFunds',
|
|
2416
|
-
outputs: [
|
|
2417
4044
|
{
|
|
2418
|
-
name: '',
|
|
4045
|
+
name: '_amountA',
|
|
2419
4046
|
type: 'uint256',
|
|
2420
4047
|
},
|
|
2421
4048
|
{
|
|
2422
|
-
name: '',
|
|
4049
|
+
name: '_amountB',
|
|
2423
4050
|
type: 'uint256',
|
|
2424
4051
|
},
|
|
2425
|
-
],
|
|
2426
|
-
stateMutability: 'nonpayable',
|
|
2427
|
-
type: 'function',
|
|
2428
|
-
},
|
|
2429
|
-
{
|
|
2430
|
-
inputs: [
|
|
2431
4052
|
{
|
|
2432
|
-
name: '
|
|
2433
|
-
type: '
|
|
4053
|
+
name: '_tickLower',
|
|
4054
|
+
type: 'int24',
|
|
4055
|
+
},
|
|
4056
|
+
{
|
|
4057
|
+
name: '_tickUpper',
|
|
4058
|
+
type: 'int24',
|
|
2434
4059
|
},
|
|
2435
4060
|
{
|
|
2436
|
-
name: '
|
|
2437
|
-
type: '
|
|
4061
|
+
name: '_minAmountA',
|
|
4062
|
+
type: 'uint256',
|
|
2438
4063
|
},
|
|
2439
4064
|
{
|
|
2440
|
-
name: '
|
|
4065
|
+
name: '_minAmountB',
|
|
2441
4066
|
type: 'uint256',
|
|
2442
4067
|
},
|
|
2443
4068
|
{
|
|
2444
|
-
name: '
|
|
2445
|
-
type: '
|
|
4069
|
+
name: '_extraData',
|
|
4070
|
+
type: 'bytes32',
|
|
2446
4071
|
},
|
|
2447
4072
|
{
|
|
2448
4073
|
components: [
|
|
@@ -2451,8 +4076,8 @@ export const abi = [
|
|
|
2451
4076
|
type: 'bytes',
|
|
2452
4077
|
},
|
|
2453
4078
|
{
|
|
2454
|
-
name: '
|
|
2455
|
-
type: '
|
|
4079
|
+
name: 'nonce',
|
|
4080
|
+
type: 'uint256',
|
|
2456
4081
|
},
|
|
2457
4082
|
{
|
|
2458
4083
|
name: 'expiration',
|
|
@@ -2463,7 +4088,7 @@ export const abi = [
|
|
|
2463
4088
|
type: 'tuple',
|
|
2464
4089
|
},
|
|
2465
4090
|
],
|
|
2466
|
-
name: '
|
|
4091
|
+
name: 'addLiquidityConcentrated',
|
|
2467
4092
|
outputs: [
|
|
2468
4093
|
{
|
|
2469
4094
|
name: '',
|
|
@@ -2473,26 +4098,13 @@ export const abi = [
|
|
|
2473
4098
|
name: '',
|
|
2474
4099
|
type: 'uint256',
|
|
2475
4100
|
},
|
|
2476
|
-
],
|
|
2477
|
-
stateMutability: 'nonpayable',
|
|
2478
|
-
type: 'function',
|
|
2479
|
-
},
|
|
2480
|
-
{
|
|
2481
|
-
inputs: [
|
|
2482
|
-
{
|
|
2483
|
-
name: '_userWallet',
|
|
2484
|
-
type: 'address',
|
|
2485
|
-
},
|
|
2486
|
-
],
|
|
2487
|
-
name: 'convertEthToWeth',
|
|
2488
|
-
outputs: [
|
|
2489
4101
|
{
|
|
2490
4102
|
name: '',
|
|
2491
4103
|
type: 'uint256',
|
|
2492
4104
|
},
|
|
2493
4105
|
{
|
|
2494
4106
|
name: '',
|
|
2495
|
-
type: '
|
|
4107
|
+
type: 'uint256',
|
|
2496
4108
|
},
|
|
2497
4109
|
{
|
|
2498
4110
|
name: '',
|
|
@@ -2509,11 +4121,31 @@ export const abi = [
|
|
|
2509
4121
|
type: 'address',
|
|
2510
4122
|
},
|
|
2511
4123
|
{
|
|
2512
|
-
name: '
|
|
4124
|
+
name: '_legoId',
|
|
4125
|
+
type: 'uint256',
|
|
4126
|
+
},
|
|
4127
|
+
{
|
|
4128
|
+
name: '_nftAddr',
|
|
4129
|
+
type: 'address',
|
|
4130
|
+
},
|
|
4131
|
+
{
|
|
4132
|
+
name: '_nftTokenId',
|
|
2513
4133
|
type: 'uint256',
|
|
2514
4134
|
},
|
|
4135
|
+
{
|
|
4136
|
+
name: '_pool',
|
|
4137
|
+
type: 'address',
|
|
4138
|
+
},
|
|
4139
|
+
{
|
|
4140
|
+
name: '_tokenA',
|
|
4141
|
+
type: 'address',
|
|
4142
|
+
},
|
|
4143
|
+
{
|
|
4144
|
+
name: '_tokenB',
|
|
4145
|
+
type: 'address',
|
|
4146
|
+
},
|
|
2515
4147
|
],
|
|
2516
|
-
name: '
|
|
4148
|
+
name: 'removeLiquidityConcentrated',
|
|
2517
4149
|
outputs: [
|
|
2518
4150
|
{
|
|
2519
4151
|
name: '',
|
|
@@ -2521,7 +4153,11 @@ export const abi = [
|
|
|
2521
4153
|
},
|
|
2522
4154
|
{
|
|
2523
4155
|
name: '',
|
|
2524
|
-
type: '
|
|
4156
|
+
type: 'uint256',
|
|
4157
|
+
},
|
|
4158
|
+
{
|
|
4159
|
+
name: '',
|
|
4160
|
+
type: 'uint256',
|
|
2525
4161
|
},
|
|
2526
4162
|
{
|
|
2527
4163
|
name: '',
|
|
@@ -2538,15 +4174,35 @@ export const abi = [
|
|
|
2538
4174
|
type: 'address',
|
|
2539
4175
|
},
|
|
2540
4176
|
{
|
|
2541
|
-
name: '
|
|
4177
|
+
name: '_legoId',
|
|
4178
|
+
type: 'uint256',
|
|
4179
|
+
},
|
|
4180
|
+
{
|
|
4181
|
+
name: '_nftAddr',
|
|
4182
|
+
type: 'address',
|
|
4183
|
+
},
|
|
4184
|
+
{
|
|
4185
|
+
name: '_nftTokenId',
|
|
2542
4186
|
type: 'uint256',
|
|
2543
4187
|
},
|
|
2544
4188
|
{
|
|
2545
|
-
name: '
|
|
4189
|
+
name: '_pool',
|
|
4190
|
+
type: 'address',
|
|
4191
|
+
},
|
|
4192
|
+
{
|
|
4193
|
+
name: '_tokenA',
|
|
4194
|
+
type: 'address',
|
|
4195
|
+
},
|
|
4196
|
+
{
|
|
4197
|
+
name: '_tokenB',
|
|
4198
|
+
type: 'address',
|
|
4199
|
+
},
|
|
4200
|
+
{
|
|
4201
|
+
name: '_liqToRemove',
|
|
2546
4202
|
type: 'uint256',
|
|
2547
4203
|
},
|
|
2548
4204
|
],
|
|
2549
|
-
name: '
|
|
4205
|
+
name: 'removeLiquidityConcentrated',
|
|
2550
4206
|
outputs: [
|
|
2551
4207
|
{
|
|
2552
4208
|
name: '',
|
|
@@ -2554,7 +4210,11 @@ export const abi = [
|
|
|
2554
4210
|
},
|
|
2555
4211
|
{
|
|
2556
4212
|
name: '',
|
|
2557
|
-
type: '
|
|
4213
|
+
type: 'uint256',
|
|
4214
|
+
},
|
|
4215
|
+
{
|
|
4216
|
+
name: '',
|
|
4217
|
+
type: 'uint256',
|
|
2558
4218
|
},
|
|
2559
4219
|
{
|
|
2560
4220
|
name: '',
|
|
@@ -2571,19 +4231,39 @@ export const abi = [
|
|
|
2571
4231
|
type: 'address',
|
|
2572
4232
|
},
|
|
2573
4233
|
{
|
|
2574
|
-
name: '
|
|
4234
|
+
name: '_legoId',
|
|
2575
4235
|
type: 'uint256',
|
|
2576
4236
|
},
|
|
2577
4237
|
{
|
|
2578
|
-
name: '
|
|
4238
|
+
name: '_nftAddr',
|
|
4239
|
+
type: 'address',
|
|
4240
|
+
},
|
|
4241
|
+
{
|
|
4242
|
+
name: '_nftTokenId',
|
|
2579
4243
|
type: 'uint256',
|
|
2580
4244
|
},
|
|
2581
4245
|
{
|
|
2582
|
-
name: '
|
|
4246
|
+
name: '_pool',
|
|
4247
|
+
type: 'address',
|
|
4248
|
+
},
|
|
4249
|
+
{
|
|
4250
|
+
name: '_tokenA',
|
|
4251
|
+
type: 'address',
|
|
4252
|
+
},
|
|
4253
|
+
{
|
|
4254
|
+
name: '_tokenB',
|
|
2583
4255
|
type: 'address',
|
|
2584
4256
|
},
|
|
4257
|
+
{
|
|
4258
|
+
name: '_liqToRemove',
|
|
4259
|
+
type: 'uint256',
|
|
4260
|
+
},
|
|
4261
|
+
{
|
|
4262
|
+
name: '_minAmountA',
|
|
4263
|
+
type: 'uint256',
|
|
4264
|
+
},
|
|
2585
4265
|
],
|
|
2586
|
-
name: '
|
|
4266
|
+
name: 'removeLiquidityConcentrated',
|
|
2587
4267
|
outputs: [
|
|
2588
4268
|
{
|
|
2589
4269
|
name: '',
|
|
@@ -2591,7 +4271,11 @@ export const abi = [
|
|
|
2591
4271
|
},
|
|
2592
4272
|
{
|
|
2593
4273
|
name: '',
|
|
2594
|
-
type: '
|
|
4274
|
+
type: 'uint256',
|
|
4275
|
+
},
|
|
4276
|
+
{
|
|
4277
|
+
name: '',
|
|
4278
|
+
type: 'uint256',
|
|
2595
4279
|
},
|
|
2596
4280
|
{
|
|
2597
4281
|
name: '',
|
|
@@ -2608,84 +4292,56 @@ export const abi = [
|
|
|
2608
4292
|
type: 'address',
|
|
2609
4293
|
},
|
|
2610
4294
|
{
|
|
2611
|
-
name: '
|
|
4295
|
+
name: '_legoId',
|
|
2612
4296
|
type: 'uint256',
|
|
2613
4297
|
},
|
|
2614
4298
|
{
|
|
2615
|
-
name: '
|
|
4299
|
+
name: '_nftAddr',
|
|
4300
|
+
type: 'address',
|
|
4301
|
+
},
|
|
4302
|
+
{
|
|
4303
|
+
name: '_nftTokenId',
|
|
2616
4304
|
type: 'uint256',
|
|
2617
4305
|
},
|
|
2618
4306
|
{
|
|
2619
|
-
name: '
|
|
4307
|
+
name: '_pool',
|
|
2620
4308
|
type: 'address',
|
|
2621
4309
|
},
|
|
2622
4310
|
{
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
name: 'signature',
|
|
2626
|
-
type: 'bytes',
|
|
2627
|
-
},
|
|
2628
|
-
{
|
|
2629
|
-
name: 'signer',
|
|
2630
|
-
type: 'address',
|
|
2631
|
-
},
|
|
2632
|
-
{
|
|
2633
|
-
name: 'expiration',
|
|
2634
|
-
type: 'uint256',
|
|
2635
|
-
},
|
|
2636
|
-
],
|
|
2637
|
-
name: '_sig',
|
|
2638
|
-
type: 'tuple',
|
|
4311
|
+
name: '_tokenA',
|
|
4312
|
+
type: 'address',
|
|
2639
4313
|
},
|
|
2640
|
-
],
|
|
2641
|
-
name: 'convertEthToWeth',
|
|
2642
|
-
outputs: [
|
|
2643
4314
|
{
|
|
2644
|
-
name: '',
|
|
2645
|
-
type: '
|
|
4315
|
+
name: '_tokenB',
|
|
4316
|
+
type: 'address',
|
|
2646
4317
|
},
|
|
2647
4318
|
{
|
|
2648
|
-
name: '',
|
|
2649
|
-
type: '
|
|
4319
|
+
name: '_liqToRemove',
|
|
4320
|
+
type: 'uint256',
|
|
2650
4321
|
},
|
|
2651
4322
|
{
|
|
2652
|
-
name: '',
|
|
4323
|
+
name: '_minAmountA',
|
|
2653
4324
|
type: 'uint256',
|
|
2654
4325
|
},
|
|
2655
|
-
],
|
|
2656
|
-
stateMutability: 'nonpayable',
|
|
2657
|
-
type: 'function',
|
|
2658
|
-
},
|
|
2659
|
-
{
|
|
2660
|
-
inputs: [
|
|
2661
4326
|
{
|
|
2662
|
-
name: '
|
|
2663
|
-
type: '
|
|
4327
|
+
name: '_minAmountB',
|
|
4328
|
+
type: 'uint256',
|
|
2664
4329
|
},
|
|
2665
4330
|
],
|
|
2666
|
-
name: '
|
|
4331
|
+
name: 'removeLiquidityConcentrated',
|
|
2667
4332
|
outputs: [
|
|
2668
4333
|
{
|
|
2669
4334
|
name: '',
|
|
2670
4335
|
type: 'uint256',
|
|
2671
4336
|
},
|
|
2672
|
-
],
|
|
2673
|
-
stateMutability: 'nonpayable',
|
|
2674
|
-
type: 'function',
|
|
2675
|
-
},
|
|
2676
|
-
{
|
|
2677
|
-
inputs: [
|
|
2678
4337
|
{
|
|
2679
|
-
name: '
|
|
2680
|
-
type: '
|
|
4338
|
+
name: '',
|
|
4339
|
+
type: 'uint256',
|
|
2681
4340
|
},
|
|
2682
4341
|
{
|
|
2683
|
-
name: '
|
|
4342
|
+
name: '',
|
|
2684
4343
|
type: 'uint256',
|
|
2685
4344
|
},
|
|
2686
|
-
],
|
|
2687
|
-
name: 'convertWethToEth',
|
|
2688
|
-
outputs: [
|
|
2689
4345
|
{
|
|
2690
4346
|
name: '',
|
|
2691
4347
|
type: 'uint256',
|
|
@@ -2701,49 +4357,64 @@ export const abi = [
|
|
|
2701
4357
|
type: 'address',
|
|
2702
4358
|
},
|
|
2703
4359
|
{
|
|
2704
|
-
name: '
|
|
4360
|
+
name: '_legoId',
|
|
2705
4361
|
type: 'uint256',
|
|
2706
4362
|
},
|
|
2707
4363
|
{
|
|
2708
|
-
name: '
|
|
4364
|
+
name: '_nftAddr',
|
|
2709
4365
|
type: 'address',
|
|
2710
4366
|
},
|
|
2711
|
-
],
|
|
2712
|
-
name: 'convertWethToEth',
|
|
2713
|
-
outputs: [
|
|
2714
4367
|
{
|
|
2715
|
-
name: '',
|
|
4368
|
+
name: '_nftTokenId',
|
|
2716
4369
|
type: 'uint256',
|
|
2717
4370
|
},
|
|
2718
|
-
],
|
|
2719
|
-
stateMutability: 'nonpayable',
|
|
2720
|
-
type: 'function',
|
|
2721
|
-
},
|
|
2722
|
-
{
|
|
2723
|
-
inputs: [
|
|
2724
4371
|
{
|
|
2725
|
-
name: '
|
|
4372
|
+
name: '_pool',
|
|
2726
4373
|
type: 'address',
|
|
2727
4374
|
},
|
|
2728
4375
|
{
|
|
2729
|
-
name: '
|
|
2730
|
-
type: '
|
|
4376
|
+
name: '_tokenA',
|
|
4377
|
+
type: 'address',
|
|
2731
4378
|
},
|
|
2732
4379
|
{
|
|
2733
|
-
name: '
|
|
4380
|
+
name: '_tokenB',
|
|
2734
4381
|
type: 'address',
|
|
2735
4382
|
},
|
|
2736
4383
|
{
|
|
2737
|
-
name: '
|
|
4384
|
+
name: '_liqToRemove',
|
|
4385
|
+
type: 'uint256',
|
|
4386
|
+
},
|
|
4387
|
+
{
|
|
4388
|
+
name: '_minAmountA',
|
|
4389
|
+
type: 'uint256',
|
|
4390
|
+
},
|
|
4391
|
+
{
|
|
4392
|
+
name: '_minAmountB',
|
|
2738
4393
|
type: 'uint256',
|
|
2739
4394
|
},
|
|
4395
|
+
{
|
|
4396
|
+
name: '_extraData',
|
|
4397
|
+
type: 'bytes32',
|
|
4398
|
+
},
|
|
2740
4399
|
],
|
|
2741
|
-
name: '
|
|
4400
|
+
name: 'removeLiquidityConcentrated',
|
|
2742
4401
|
outputs: [
|
|
2743
4402
|
{
|
|
2744
4403
|
name: '',
|
|
2745
4404
|
type: 'uint256',
|
|
2746
4405
|
},
|
|
4406
|
+
{
|
|
4407
|
+
name: '',
|
|
4408
|
+
type: 'uint256',
|
|
4409
|
+
},
|
|
4410
|
+
{
|
|
4411
|
+
name: '',
|
|
4412
|
+
type: 'uint256',
|
|
4413
|
+
},
|
|
4414
|
+
{
|
|
4415
|
+
name: '',
|
|
4416
|
+
type: 'uint256',
|
|
4417
|
+
},
|
|
2747
4418
|
],
|
|
2748
4419
|
stateMutability: 'nonpayable',
|
|
2749
4420
|
type: 'function',
|
|
@@ -2755,53 +4426,44 @@ export const abi = [
|
|
|
2755
4426
|
type: 'address',
|
|
2756
4427
|
},
|
|
2757
4428
|
{
|
|
2758
|
-
name: '
|
|
4429
|
+
name: '_legoId',
|
|
2759
4430
|
type: 'uint256',
|
|
2760
4431
|
},
|
|
2761
4432
|
{
|
|
2762
|
-
name: '
|
|
4433
|
+
name: '_nftAddr',
|
|
2763
4434
|
type: 'address',
|
|
2764
4435
|
},
|
|
2765
4436
|
{
|
|
2766
|
-
name: '
|
|
4437
|
+
name: '_nftTokenId',
|
|
2767
4438
|
type: 'uint256',
|
|
2768
4439
|
},
|
|
2769
4440
|
{
|
|
2770
|
-
name: '
|
|
4441
|
+
name: '_pool',
|
|
2771
4442
|
type: 'address',
|
|
2772
4443
|
},
|
|
2773
|
-
],
|
|
2774
|
-
name: 'convertWethToEth',
|
|
2775
|
-
outputs: [
|
|
2776
4444
|
{
|
|
2777
|
-
name: '',
|
|
2778
|
-
type: '
|
|
2779
|
-
},
|
|
2780
|
-
],
|
|
2781
|
-
stateMutability: 'nonpayable',
|
|
2782
|
-
type: 'function',
|
|
2783
|
-
},
|
|
2784
|
-
{
|
|
2785
|
-
inputs: [
|
|
4445
|
+
name: '_tokenA',
|
|
4446
|
+
type: 'address',
|
|
4447
|
+
},
|
|
2786
4448
|
{
|
|
2787
|
-
name: '
|
|
4449
|
+
name: '_tokenB',
|
|
2788
4450
|
type: 'address',
|
|
2789
4451
|
},
|
|
2790
4452
|
{
|
|
2791
|
-
name: '
|
|
4453
|
+
name: '_liqToRemove',
|
|
2792
4454
|
type: 'uint256',
|
|
2793
4455
|
},
|
|
2794
4456
|
{
|
|
2795
|
-
name: '
|
|
2796
|
-
type: '
|
|
4457
|
+
name: '_minAmountA',
|
|
4458
|
+
type: 'uint256',
|
|
2797
4459
|
},
|
|
2798
4460
|
{
|
|
2799
|
-
name: '
|
|
4461
|
+
name: '_minAmountB',
|
|
2800
4462
|
type: 'uint256',
|
|
2801
4463
|
},
|
|
2802
4464
|
{
|
|
2803
|
-
name: '
|
|
2804
|
-
type: '
|
|
4465
|
+
name: '_extraData',
|
|
4466
|
+
type: 'bytes32',
|
|
2805
4467
|
},
|
|
2806
4468
|
{
|
|
2807
4469
|
components: [
|
|
@@ -2810,8 +4472,8 @@ export const abi = [
|
|
|
2810
4472
|
type: 'bytes',
|
|
2811
4473
|
},
|
|
2812
4474
|
{
|
|
2813
|
-
name: '
|
|
2814
|
-
type: '
|
|
4475
|
+
name: 'nonce',
|
|
4476
|
+
type: 'uint256',
|
|
2815
4477
|
},
|
|
2816
4478
|
{
|
|
2817
4479
|
name: 'expiration',
|
|
@@ -2822,12 +4484,24 @@ export const abi = [
|
|
|
2822
4484
|
type: 'tuple',
|
|
2823
4485
|
},
|
|
2824
4486
|
],
|
|
2825
|
-
name: '
|
|
4487
|
+
name: 'removeLiquidityConcentrated',
|
|
2826
4488
|
outputs: [
|
|
2827
4489
|
{
|
|
2828
4490
|
name: '',
|
|
2829
4491
|
type: 'uint256',
|
|
2830
4492
|
},
|
|
4493
|
+
{
|
|
4494
|
+
name: '',
|
|
4495
|
+
type: 'uint256',
|
|
4496
|
+
},
|
|
4497
|
+
{
|
|
4498
|
+
name: '',
|
|
4499
|
+
type: 'uint256',
|
|
4500
|
+
},
|
|
4501
|
+
{
|
|
4502
|
+
name: '',
|
|
4503
|
+
type: 'uint256',
|
|
4504
|
+
},
|
|
2831
4505
|
],
|
|
2832
4506
|
stateMutability: 'nonpayable',
|
|
2833
4507
|
type: 'function',
|
|
@@ -2846,18 +4520,18 @@ export const abi = [
|
|
|
2846
4520
|
},
|
|
2847
4521
|
{
|
|
2848
4522
|
name: 'action',
|
|
2849
|
-
type: '
|
|
4523
|
+
type: 'uint8',
|
|
2850
4524
|
},
|
|
2851
4525
|
{
|
|
2852
4526
|
name: 'legoId',
|
|
2853
|
-
type: '
|
|
4527
|
+
type: 'uint16',
|
|
2854
4528
|
},
|
|
2855
4529
|
{
|
|
2856
4530
|
name: 'asset',
|
|
2857
4531
|
type: 'address',
|
|
2858
4532
|
},
|
|
2859
4533
|
{
|
|
2860
|
-
name: '
|
|
4534
|
+
name: 'target',
|
|
2861
4535
|
type: 'address',
|
|
2862
4536
|
},
|
|
2863
4537
|
{
|
|
@@ -2865,39 +4539,19 @@ export const abi = [
|
|
|
2865
4539
|
type: 'uint256',
|
|
2866
4540
|
},
|
|
2867
4541
|
{
|
|
2868
|
-
name: '
|
|
2869
|
-
type: 'uint256',
|
|
2870
|
-
},
|
|
2871
|
-
{
|
|
2872
|
-
name: 'altAsset',
|
|
4542
|
+
name: 'asset2',
|
|
2873
4543
|
type: 'address',
|
|
2874
4544
|
},
|
|
2875
4545
|
{
|
|
2876
|
-
name: '
|
|
2877
|
-
type: 'address',
|
|
2878
|
-
},
|
|
2879
|
-
{
|
|
2880
|
-
name: 'altAmount',
|
|
4546
|
+
name: 'amount2',
|
|
2881
4547
|
type: 'uint256',
|
|
2882
4548
|
},
|
|
2883
4549
|
{
|
|
2884
|
-
name: '
|
|
4550
|
+
name: 'minOut1',
|
|
2885
4551
|
type: 'uint256',
|
|
2886
4552
|
},
|
|
2887
4553
|
{
|
|
2888
|
-
name: '
|
|
2889
|
-
type: 'address',
|
|
2890
|
-
},
|
|
2891
|
-
{
|
|
2892
|
-
name: 'proof',
|
|
2893
|
-
type: 'bytes32',
|
|
2894
|
-
},
|
|
2895
|
-
{
|
|
2896
|
-
name: 'nftAddr',
|
|
2897
|
-
type: 'address',
|
|
2898
|
-
},
|
|
2899
|
-
{
|
|
2900
|
-
name: 'nftTokenId',
|
|
4554
|
+
name: 'minOut2',
|
|
2901
4555
|
type: 'uint256',
|
|
2902
4556
|
},
|
|
2903
4557
|
{
|
|
@@ -2909,28 +4563,12 @@ export const abi = [
|
|
|
2909
4563
|
type: 'int24',
|
|
2910
4564
|
},
|
|
2911
4565
|
{
|
|
2912
|
-
name: '
|
|
2913
|
-
type: '
|
|
2914
|
-
},
|
|
2915
|
-
{
|
|
2916
|
-
name: 'minAmountB',
|
|
2917
|
-
type: 'uint256',
|
|
2918
|
-
},
|
|
2919
|
-
{
|
|
2920
|
-
name: 'minLpAmount',
|
|
2921
|
-
type: 'uint256',
|
|
2922
|
-
},
|
|
2923
|
-
{
|
|
2924
|
-
name: 'liqToRemove',
|
|
2925
|
-
type: 'uint256',
|
|
2926
|
-
},
|
|
2927
|
-
{
|
|
2928
|
-
name: 'recipient',
|
|
2929
|
-
type: 'address',
|
|
4566
|
+
name: 'extraData',
|
|
4567
|
+
type: 'bytes32',
|
|
2930
4568
|
},
|
|
2931
4569
|
{
|
|
2932
|
-
name: '
|
|
2933
|
-
type: '
|
|
4570
|
+
name: 'auxData',
|
|
4571
|
+
type: 'bytes32',
|
|
2934
4572
|
},
|
|
2935
4573
|
{
|
|
2936
4574
|
components: [
|
|
@@ -2987,18 +4625,18 @@ export const abi = [
|
|
|
2987
4625
|
},
|
|
2988
4626
|
{
|
|
2989
4627
|
name: 'action',
|
|
2990
|
-
type: '
|
|
4628
|
+
type: 'uint8',
|
|
2991
4629
|
},
|
|
2992
4630
|
{
|
|
2993
4631
|
name: 'legoId',
|
|
2994
|
-
type: '
|
|
4632
|
+
type: 'uint16',
|
|
2995
4633
|
},
|
|
2996
4634
|
{
|
|
2997
4635
|
name: 'asset',
|
|
2998
4636
|
type: 'address',
|
|
2999
4637
|
},
|
|
3000
4638
|
{
|
|
3001
|
-
name: '
|
|
4639
|
+
name: 'target',
|
|
3002
4640
|
type: 'address',
|
|
3003
4641
|
},
|
|
3004
4642
|
{
|
|
@@ -3006,39 +4644,19 @@ export const abi = [
|
|
|
3006
4644
|
type: 'uint256',
|
|
3007
4645
|
},
|
|
3008
4646
|
{
|
|
3009
|
-
name: '
|
|
3010
|
-
type: 'uint256',
|
|
3011
|
-
},
|
|
3012
|
-
{
|
|
3013
|
-
name: 'altAsset',
|
|
3014
|
-
type: 'address',
|
|
3015
|
-
},
|
|
3016
|
-
{
|
|
3017
|
-
name: 'altVault',
|
|
4647
|
+
name: 'asset2',
|
|
3018
4648
|
type: 'address',
|
|
3019
4649
|
},
|
|
3020
4650
|
{
|
|
3021
|
-
name: '
|
|
4651
|
+
name: 'amount2',
|
|
3022
4652
|
type: 'uint256',
|
|
3023
4653
|
},
|
|
3024
4654
|
{
|
|
3025
|
-
name: '
|
|
4655
|
+
name: 'minOut1',
|
|
3026
4656
|
type: 'uint256',
|
|
3027
4657
|
},
|
|
3028
4658
|
{
|
|
3029
|
-
name: '
|
|
3030
|
-
type: 'address',
|
|
3031
|
-
},
|
|
3032
|
-
{
|
|
3033
|
-
name: 'proof',
|
|
3034
|
-
type: 'bytes32',
|
|
3035
|
-
},
|
|
3036
|
-
{
|
|
3037
|
-
name: 'nftAddr',
|
|
3038
|
-
type: 'address',
|
|
3039
|
-
},
|
|
3040
|
-
{
|
|
3041
|
-
name: 'nftTokenId',
|
|
4659
|
+
name: 'minOut2',
|
|
3042
4660
|
type: 'uint256',
|
|
3043
4661
|
},
|
|
3044
4662
|
{
|
|
@@ -3050,28 +4668,12 @@ export const abi = [
|
|
|
3050
4668
|
type: 'int24',
|
|
3051
4669
|
},
|
|
3052
4670
|
{
|
|
3053
|
-
name: '
|
|
3054
|
-
type: '
|
|
3055
|
-
},
|
|
3056
|
-
{
|
|
3057
|
-
name: 'minAmountB',
|
|
3058
|
-
type: 'uint256',
|
|
3059
|
-
},
|
|
3060
|
-
{
|
|
3061
|
-
name: 'minLpAmount',
|
|
3062
|
-
type: 'uint256',
|
|
3063
|
-
},
|
|
3064
|
-
{
|
|
3065
|
-
name: 'liqToRemove',
|
|
3066
|
-
type: 'uint256',
|
|
3067
|
-
},
|
|
3068
|
-
{
|
|
3069
|
-
name: 'recipient',
|
|
3070
|
-
type: 'address',
|
|
4671
|
+
name: 'extraData',
|
|
4672
|
+
type: 'bytes32',
|
|
3071
4673
|
},
|
|
3072
4674
|
{
|
|
3073
|
-
name: '
|
|
3074
|
-
type: '
|
|
4675
|
+
name: 'auxData',
|
|
4676
|
+
type: 'bytes32',
|
|
3075
4677
|
},
|
|
3076
4678
|
{
|
|
3077
4679
|
components: [
|
|
@@ -3110,8 +4712,8 @@ export const abi = [
|
|
|
3110
4712
|
type: 'bytes',
|
|
3111
4713
|
},
|
|
3112
4714
|
{
|
|
3113
|
-
name: '
|
|
3114
|
-
type: '
|
|
4715
|
+
name: 'nonce',
|
|
4716
|
+
type: 'uint256',
|
|
3115
4717
|
},
|
|
3116
4718
|
{
|
|
3117
4719
|
name: 'expiration',
|
|
@@ -3133,191 +4735,43 @@ export const abi = [
|
|
|
3133
4735
|
type: 'function',
|
|
3134
4736
|
},
|
|
3135
4737
|
{
|
|
3136
|
-
inputs: [
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
},
|
|
3141
|
-
{
|
|
3142
|
-
components: [
|
|
3143
|
-
{
|
|
3144
|
-
name: 'usePrevAmountOut',
|
|
3145
|
-
type: 'bool',
|
|
3146
|
-
},
|
|
3147
|
-
{
|
|
3148
|
-
name: 'action',
|
|
3149
|
-
type: 'uint256',
|
|
3150
|
-
},
|
|
3151
|
-
{
|
|
3152
|
-
name: 'legoId',
|
|
3153
|
-
type: 'uint256',
|
|
3154
|
-
},
|
|
3155
|
-
{
|
|
3156
|
-
name: 'asset',
|
|
3157
|
-
type: 'address',
|
|
3158
|
-
},
|
|
3159
|
-
{
|
|
3160
|
-
name: 'vault',
|
|
3161
|
-
type: 'address',
|
|
3162
|
-
},
|
|
3163
|
-
{
|
|
3164
|
-
name: 'amount',
|
|
3165
|
-
type: 'uint256',
|
|
3166
|
-
},
|
|
3167
|
-
{
|
|
3168
|
-
name: 'altLegoId',
|
|
3169
|
-
type: 'uint256',
|
|
3170
|
-
},
|
|
3171
|
-
{
|
|
3172
|
-
name: 'altAsset',
|
|
3173
|
-
type: 'address',
|
|
3174
|
-
},
|
|
3175
|
-
{
|
|
3176
|
-
name: 'altVault',
|
|
3177
|
-
type: 'address',
|
|
3178
|
-
},
|
|
3179
|
-
{
|
|
3180
|
-
name: 'altAmount',
|
|
3181
|
-
type: 'uint256',
|
|
3182
|
-
},
|
|
3183
|
-
{
|
|
3184
|
-
name: 'minAmountOut',
|
|
3185
|
-
type: 'uint256',
|
|
3186
|
-
},
|
|
3187
|
-
{
|
|
3188
|
-
name: 'pool',
|
|
3189
|
-
type: 'address',
|
|
3190
|
-
},
|
|
3191
|
-
{
|
|
3192
|
-
name: 'proof',
|
|
3193
|
-
type: 'bytes32',
|
|
3194
|
-
},
|
|
3195
|
-
{
|
|
3196
|
-
name: 'nftAddr',
|
|
3197
|
-
type: 'address',
|
|
3198
|
-
},
|
|
3199
|
-
{
|
|
3200
|
-
name: 'nftTokenId',
|
|
3201
|
-
type: 'uint256',
|
|
3202
|
-
},
|
|
3203
|
-
{
|
|
3204
|
-
name: 'tickLower',
|
|
3205
|
-
type: 'int24',
|
|
3206
|
-
},
|
|
3207
|
-
{
|
|
3208
|
-
name: 'tickUpper',
|
|
3209
|
-
type: 'int24',
|
|
3210
|
-
},
|
|
3211
|
-
{
|
|
3212
|
-
name: 'minAmountA',
|
|
3213
|
-
type: 'uint256',
|
|
3214
|
-
},
|
|
3215
|
-
{
|
|
3216
|
-
name: 'minAmountB',
|
|
3217
|
-
type: 'uint256',
|
|
3218
|
-
},
|
|
3219
|
-
{
|
|
3220
|
-
name: 'minLpAmount',
|
|
3221
|
-
type: 'uint256',
|
|
3222
|
-
},
|
|
3223
|
-
{
|
|
3224
|
-
name: 'liqToRemove',
|
|
3225
|
-
type: 'uint256',
|
|
3226
|
-
},
|
|
3227
|
-
{
|
|
3228
|
-
name: 'recipient',
|
|
3229
|
-
type: 'address',
|
|
3230
|
-
},
|
|
3231
|
-
{
|
|
3232
|
-
name: 'isWethToEthConversion',
|
|
3233
|
-
type: 'bool',
|
|
3234
|
-
},
|
|
3235
|
-
{
|
|
3236
|
-
components: [
|
|
3237
|
-
{
|
|
3238
|
-
name: 'legoId',
|
|
3239
|
-
type: 'uint256',
|
|
3240
|
-
},
|
|
3241
|
-
{
|
|
3242
|
-
name: 'amountIn',
|
|
3243
|
-
type: 'uint256',
|
|
3244
|
-
},
|
|
3245
|
-
{
|
|
3246
|
-
name: 'minAmountOut',
|
|
3247
|
-
type: 'uint256',
|
|
3248
|
-
},
|
|
3249
|
-
{
|
|
3250
|
-
name: 'tokenPath',
|
|
3251
|
-
type: 'address[]',
|
|
3252
|
-
},
|
|
3253
|
-
{
|
|
3254
|
-
name: 'poolPath',
|
|
3255
|
-
type: 'address[]',
|
|
3256
|
-
},
|
|
3257
|
-
],
|
|
3258
|
-
name: 'swapInstructions',
|
|
3259
|
-
type: 'tuple[]',
|
|
3260
|
-
},
|
|
3261
|
-
],
|
|
3262
|
-
name: '_instructions',
|
|
3263
|
-
type: 'tuple[]',
|
|
3264
|
-
},
|
|
3265
|
-
{
|
|
3266
|
-
name: '_expiration',
|
|
3267
|
-
type: 'uint256',
|
|
3268
|
-
},
|
|
3269
|
-
],
|
|
3270
|
-
name: 'getBatchActionHash',
|
|
3271
|
-
outputs: [
|
|
3272
|
-
{
|
|
3273
|
-
name: '',
|
|
3274
|
-
type: 'bytes32',
|
|
3275
|
-
},
|
|
3276
|
-
],
|
|
3277
|
-
stateMutability: 'view',
|
|
4738
|
+
inputs: [],
|
|
4739
|
+
name: 'incrementNonce',
|
|
4740
|
+
outputs: [],
|
|
4741
|
+
stateMutability: 'nonpayable',
|
|
3278
4742
|
type: 'function',
|
|
3279
4743
|
},
|
|
3280
4744
|
{
|
|
3281
4745
|
inputs: [],
|
|
3282
|
-
name: '
|
|
4746
|
+
name: 'getNonce',
|
|
3283
4747
|
outputs: [
|
|
3284
4748
|
{
|
|
3285
4749
|
name: '',
|
|
3286
|
-
type: '
|
|
4750
|
+
type: 'uint256',
|
|
3287
4751
|
},
|
|
3288
4752
|
],
|
|
3289
4753
|
stateMutability: 'view',
|
|
3290
4754
|
type: 'function',
|
|
3291
4755
|
},
|
|
3292
4756
|
{
|
|
3293
|
-
inputs: [
|
|
3294
|
-
|
|
3295
|
-
name: '_asset',
|
|
3296
|
-
type: 'address',
|
|
3297
|
-
},
|
|
3298
|
-
],
|
|
3299
|
-
name: 'recoverFunds',
|
|
4757
|
+
inputs: [],
|
|
4758
|
+
name: 'groupId',
|
|
3300
4759
|
outputs: [
|
|
3301
4760
|
{
|
|
3302
4761
|
name: '',
|
|
3303
|
-
type: '
|
|
4762
|
+
type: 'uint256',
|
|
3304
4763
|
},
|
|
3305
4764
|
],
|
|
3306
|
-
stateMutability: '
|
|
4765
|
+
stateMutability: 'view',
|
|
3307
4766
|
type: 'function',
|
|
3308
4767
|
},
|
|
3309
4768
|
{
|
|
3310
|
-
inputs: [
|
|
3311
|
-
|
|
3312
|
-
name: 'arg0',
|
|
3313
|
-
type: 'bytes',
|
|
3314
|
-
},
|
|
3315
|
-
],
|
|
3316
|
-
name: 'usedSignatures',
|
|
4769
|
+
inputs: [],
|
|
4770
|
+
name: 'currentNonce',
|
|
3317
4771
|
outputs: [
|
|
3318
4772
|
{
|
|
3319
4773
|
name: '',
|
|
3320
|
-
type: '
|
|
4774
|
+
type: 'uint256',
|
|
3321
4775
|
},
|
|
3322
4776
|
],
|
|
3323
4777
|
stateMutability: 'view',
|
|
@@ -3326,19 +4780,23 @@ export const abi = [
|
|
|
3326
4780
|
{
|
|
3327
4781
|
inputs: [
|
|
3328
4782
|
{
|
|
3329
|
-
name: '
|
|
4783
|
+
name: '_undyHq',
|
|
3330
4784
|
type: 'address',
|
|
3331
4785
|
},
|
|
3332
4786
|
{
|
|
3333
|
-
name: '
|
|
4787
|
+
name: '_owner',
|
|
3334
4788
|
type: 'address',
|
|
3335
4789
|
},
|
|
3336
4790
|
{
|
|
3337
|
-
name: '
|
|
4791
|
+
name: '_groupId',
|
|
4792
|
+
type: 'uint256',
|
|
4793
|
+
},
|
|
4794
|
+
{
|
|
4795
|
+
name: '_minTimeLock',
|
|
3338
4796
|
type: 'uint256',
|
|
3339
4797
|
},
|
|
3340
4798
|
{
|
|
3341
|
-
name: '
|
|
4799
|
+
name: '_maxTimeLock',
|
|
3342
4800
|
type: 'uint256',
|
|
3343
4801
|
},
|
|
3344
4802
|
],
|
|
@@ -3347,12 +4805,12 @@ export const abi = [
|
|
|
3347
4805
|
type: 'constructor',
|
|
3348
4806
|
},
|
|
3349
4807
|
];
|
|
3350
|
-
export const deployAddress = '
|
|
4808
|
+
export const deployAddress = '0x9d3F593380875860cC18F5736373ae4B084Ba2F9';
|
|
3351
4809
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
3352
4810
|
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
3353
4811
|
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|
|
3354
4812
|
const call = {
|
|
3355
|
-
contractName: '
|
|
4813
|
+
contractName: 'AgentWrapperV1',
|
|
3356
4814
|
method,
|
|
3357
4815
|
args,
|
|
3358
4816
|
address,
|
|
@@ -3378,20 +4836,17 @@ function getRequest(method, args, contractAddressOrOptions) {
|
|
|
3378
4836
|
export const call = {
|
|
3379
4837
|
hasPendingOwnerChange: (...args) => getRequest('hasPendingOwnerChange', args),
|
|
3380
4838
|
owner: (...args) => getRequest('owner', args),
|
|
4839
|
+
ownershipTimeLock: (...args) => getRequest('ownershipTimeLock', args),
|
|
3381
4840
|
pendingOwner: (...args) => getRequest('pendingOwner', args),
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
getSwapActionHash: (...args) => getRequest('getSwapActionHash', args),
|
|
3388
|
-
getBatchActionHash: (...args) => getRequest('getBatchActionHash', args),
|
|
3389
|
-
DOMAIN_SEPARATOR: (...args) => getRequest('DOMAIN_SEPARATOR', args),
|
|
3390
|
-
usedSignatures: (...args) => getRequest('usedSignatures', args),
|
|
4841
|
+
MIN_OWNERSHIP_TIMELOCK: (...args) => getRequest('MIN_OWNERSHIP_TIMELOCK', args),
|
|
4842
|
+
MAX_OWNERSHIP_TIMELOCK: (...args) => getRequest('MAX_OWNERSHIP_TIMELOCK', args),
|
|
4843
|
+
getNonce: (...args) => getRequest('getNonce', args),
|
|
4844
|
+
groupId: (...args) => getRequest('groupId', args),
|
|
4845
|
+
currentNonce: (...args) => getRequest('currentNonce', args),
|
|
3391
4846
|
};
|
|
3392
4847
|
function getMutation(functionName) {
|
|
3393
4848
|
return {
|
|
3394
|
-
contractName: '
|
|
4849
|
+
contractName: 'AgentWrapperV1',
|
|
3395
4850
|
functionName,
|
|
3396
4851
|
deployAddress,
|
|
3397
4852
|
argsType: undefined,
|
|
@@ -3402,57 +4857,66 @@ export const mutation = {
|
|
|
3402
4857
|
changeOwnership: getMutation('changeOwnership'),
|
|
3403
4858
|
confirmOwnershipChange: getMutation('confirmOwnershipChange'),
|
|
3404
4859
|
cancelOwnershipChange: getMutation('cancelOwnershipChange'),
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
4860
|
+
setOwnershipTimeLock: getMutation('setOwnershipTimeLock'),
|
|
4861
|
+
transferFunds: getMutation('transferFunds'),
|
|
4862
|
+
depositForYield: getMutation('depositForYield'),
|
|
4863
|
+
withdrawFromYield: getMutation('withdrawFromYield'),
|
|
4864
|
+
rebalanceYieldPosition: getMutation('rebalanceYieldPosition'),
|
|
3409
4865
|
swapTokens: getMutation('swapTokens'),
|
|
4866
|
+
mintOrRedeemAsset: getMutation('mintOrRedeemAsset'),
|
|
4867
|
+
confirmMintOrRedeemAsset: getMutation('confirmMintOrRedeemAsset'),
|
|
4868
|
+
addCollateral: getMutation('addCollateral'),
|
|
4869
|
+
removeCollateral: getMutation('removeCollateral'),
|
|
3410
4870
|
borrow: getMutation('borrow'),
|
|
3411
4871
|
repayDebt: getMutation('repayDebt'),
|
|
3412
4872
|
claimRewards: getMutation('claimRewards'),
|
|
4873
|
+
convertWethToEth: getMutation('convertWethToEth'),
|
|
4874
|
+
convertEthToWeth: getMutation('convertEthToWeth'),
|
|
3413
4875
|
addLiquidity: getMutation('addLiquidity'),
|
|
3414
4876
|
removeLiquidity: getMutation('removeLiquidity'),
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
convertWethToEth: getMutation('convertWethToEth'),
|
|
4877
|
+
addLiquidityConcentrated: getMutation('addLiquidityConcentrated'),
|
|
4878
|
+
removeLiquidityConcentrated: getMutation('removeLiquidityConcentrated'),
|
|
3418
4879
|
performBatchActions: getMutation('performBatchActions'),
|
|
3419
|
-
|
|
4880
|
+
incrementNonce: getMutation('incrementNonce'),
|
|
3420
4881
|
};
|
|
3421
|
-
export function toSdk(
|
|
4882
|
+
export function toSdk(publicClient, walletClient) {
|
|
3422
4883
|
return {
|
|
3423
4884
|
deployAddress,
|
|
3424
4885
|
abi,
|
|
3425
4886
|
// Queries
|
|
3426
|
-
hasPendingOwnerChange: (...args) => singleQuery(publicClient, call.hasPendingOwnerChange(...args)
|
|
3427
|
-
owner: (...args) => singleQuery(publicClient, call.owner(...args)
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
getBatchActionHash: (...args) => singleQuery(publicClient, call.getBatchActionHash(...args).at(deployAddress)),
|
|
3436
|
-
DOMAIN_SEPARATOR: (...args) => singleQuery(publicClient, call.DOMAIN_SEPARATOR(...args).at(deployAddress)),
|
|
3437
|
-
usedSignatures: (...args) => singleQuery(publicClient, call.usedSignatures(...args).at(deployAddress)),
|
|
4887
|
+
hasPendingOwnerChange: (...args) => singleQuery(publicClient, call.hasPendingOwnerChange(...args)),
|
|
4888
|
+
owner: (...args) => singleQuery(publicClient, call.owner(...args)),
|
|
4889
|
+
ownershipTimeLock: (...args) => singleQuery(publicClient, call.ownershipTimeLock(...args)),
|
|
4890
|
+
pendingOwner: (...args) => singleQuery(publicClient, call.pendingOwner(...args)),
|
|
4891
|
+
MIN_OWNERSHIP_TIMELOCK: (...args) => singleQuery(publicClient, call.MIN_OWNERSHIP_TIMELOCK(...args)),
|
|
4892
|
+
MAX_OWNERSHIP_TIMELOCK: (...args) => singleQuery(publicClient, call.MAX_OWNERSHIP_TIMELOCK(...args)),
|
|
4893
|
+
getNonce: (...args) => singleQuery(publicClient, call.getNonce(...args)),
|
|
4894
|
+
groupId: (...args) => singleQuery(publicClient, call.groupId(...args)),
|
|
4895
|
+
currentNonce: (...args) => singleQuery(publicClient, call.currentNonce(...args)),
|
|
3438
4896
|
// Mutations
|
|
3439
|
-
changeOwnership: (...args) => mutate(walletClient, mutation.changeOwnership
|
|
3440
|
-
confirmOwnershipChange: (...args) => mutate(walletClient, mutation.confirmOwnershipChange
|
|
3441
|
-
cancelOwnershipChange: (...args) => mutate(walletClient, mutation.cancelOwnershipChange
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
4897
|
+
changeOwnership: (...args) => mutate(walletClient, mutation.changeOwnership)(...args),
|
|
4898
|
+
confirmOwnershipChange: (...args) => mutate(walletClient, mutation.confirmOwnershipChange)(...args),
|
|
4899
|
+
cancelOwnershipChange: (...args) => mutate(walletClient, mutation.cancelOwnershipChange)(...args),
|
|
4900
|
+
setOwnershipTimeLock: (...args) => mutate(walletClient, mutation.setOwnershipTimeLock)(...args),
|
|
4901
|
+
transferFunds: (...args) => mutate(walletClient, mutation.transferFunds)(...args),
|
|
4902
|
+
depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
|
|
4903
|
+
withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
|
|
4904
|
+
rebalanceYieldPosition: (...args) => mutate(walletClient, mutation.rebalanceYieldPosition)(...args),
|
|
4905
|
+
swapTokens: (...args) => mutate(walletClient, mutation.swapTokens)(...args),
|
|
4906
|
+
mintOrRedeemAsset: (...args) => mutate(walletClient, mutation.mintOrRedeemAsset)(...args),
|
|
4907
|
+
confirmMintOrRedeemAsset: (...args) => mutate(walletClient, mutation.confirmMintOrRedeemAsset)(...args),
|
|
4908
|
+
addCollateral: (...args) => mutate(walletClient, mutation.addCollateral)(...args),
|
|
4909
|
+
removeCollateral: (...args) => mutate(walletClient, mutation.removeCollateral)(...args),
|
|
4910
|
+
borrow: (...args) => mutate(walletClient, mutation.borrow)(...args),
|
|
4911
|
+
repayDebt: (...args) => mutate(walletClient, mutation.repayDebt)(...args),
|
|
4912
|
+
claimRewards: (...args) => mutate(walletClient, mutation.claimRewards)(...args),
|
|
4913
|
+
convertWethToEth: (...args) => mutate(walletClient, mutation.convertWethToEth)(...args),
|
|
4914
|
+
convertEthToWeth: (...args) => mutate(walletClient, mutation.convertEthToWeth)(...args),
|
|
4915
|
+
addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity)(...args),
|
|
4916
|
+
removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity)(...args),
|
|
4917
|
+
addLiquidityConcentrated: (...args) => mutate(walletClient, mutation.addLiquidityConcentrated)(...args),
|
|
4918
|
+
removeLiquidityConcentrated: (...args) => mutate(walletClient, mutation.removeLiquidityConcentrated)(...args),
|
|
4919
|
+
performBatchActions: (...args) => mutate(walletClient, mutation.performBatchActions)(...args),
|
|
4920
|
+
incrementNonce: (...args) => mutate(walletClient, mutation.incrementNonce)(...args),
|
|
3457
4921
|
};
|
|
3458
4922
|
}
|