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