@underscore-finance/sdk 1.0.11 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contracts/AaveV3.d.ts +603 -279
- package/dist/contracts/AaveV3.d.ts.map +1 -1
- package/dist/contracts/AaveV3.js +718 -331
- package/dist/contracts/AeroClassic.d.ts +4 -17
- package/dist/contracts/AeroClassic.d.ts.map +1 -1
- package/dist/contracts/AeroClassic.js +5 -24
- package/dist/contracts/AeroSlipstream.d.ts +4 -17
- package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
- package/dist/contracts/AeroSlipstream.js +5 -24
- package/dist/contracts/Appraiser.d.ts +4 -0
- package/dist/contracts/Appraiser.d.ts.map +1 -1
- package/dist/contracts/Appraiser.js +5 -1
- package/dist/contracts/CompoundV3.d.ts +556 -246
- package/dist/contracts/CompoundV3.d.ts.map +1 -1
- package/dist/contracts/CompoundV3.js +695 -327
- package/dist/contracts/Curve.d.ts +4 -17
- package/dist/contracts/Curve.d.ts.map +1 -1
- package/dist/contracts/Curve.js +5 -24
- package/dist/contracts/Euler.d.ts +581 -253
- package/dist/contracts/Euler.d.ts.map +1 -1
- package/dist/contracts/Euler.js +714 -324
- package/dist/contracts/Fluid.d.ts +644 -302
- package/dist/contracts/Fluid.d.ts.map +1 -1
- package/dist/contracts/Fluid.js +743 -334
- package/dist/contracts/{Agent_v1.d.ts → FortyAcres.d.ts} +1516 -1699
- package/dist/contracts/FortyAcres.d.ts.map +1 -0
- package/dist/contracts/{AgentTemplate.js → FortyAcres.js} +1681 -1946
- package/dist/contracts/LegoBook.d.ts +7 -0
- package/dist/contracts/LegoBook.d.ts.map +1 -1
- package/dist/contracts/LegoBook.js +9 -1
- package/dist/contracts/LegoTools.d.ts +4 -0
- package/dist/contracts/LegoTools.d.ts.map +1 -1
- package/dist/contracts/LegoTools.js +5 -1
- package/dist/contracts/Moonwell.d.ts +582 -254
- package/dist/contracts/Moonwell.d.ts.map +1 -1
- package/dist/contracts/Moonwell.js +705 -315
- package/dist/contracts/Morpho.d.ts +580 -252
- package/dist/contracts/Morpho.d.ts.map +1 -1
- package/dist/contracts/Morpho.js +723 -333
- package/dist/contracts/RipeLego.d.ts +719 -363
- package/dist/contracts/RipeLego.d.ts.map +1 -1
- package/dist/contracts/RipeLego.js +839 -413
- package/dist/contracts/SignatureHelperV1.d.ts +229 -229
- package/dist/contracts/SignatureHelperV1.js +333 -333
- package/dist/contracts/SwitchboardCharlie.d.ts +1470 -0
- package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
- package/dist/contracts/{v0_3_OracleRegistry.js → SwitchboardCharlie.js} +954 -691
- package/dist/contracts/{v0_1_Agent.d.ts → UnderscoreLego.d.ts} +1469 -1663
- package/dist/contracts/UnderscoreLego.d.ts.map +1 -0
- package/dist/contracts/{Agent_v1.js → UnderscoreLego.js} +1601 -1882
- package/dist/contracts/UndyBtc.d.ts +1487 -0
- package/dist/contracts/UndyBtc.d.ts.map +1 -0
- package/dist/contracts/{LegoUniswapV3.js → UndyBtc.js} +991 -754
- package/dist/contracts/UndyEth.d.ts +1487 -0
- package/dist/contracts/UndyEth.d.ts.map +1 -0
- package/dist/contracts/{v0_3_LegoUniswapV3.js → UndyEth.js} +991 -754
- package/dist/contracts/UndyRewardsLego.d.ts +3 -0
- package/dist/contracts/UndyRewardsLego.d.ts.map +1 -1
- package/dist/contracts/UndyRewardsLego.js +5 -1
- package/dist/contracts/UndyUsd.d.ts +1487 -0
- package/dist/contracts/UndyUsd.d.ts.map +1 -0
- package/dist/contracts/{LegoAeroSlipstream.js → UndyUsd.js} +1009 -725
- package/dist/contracts/UniswapV2.d.ts +4 -17
- package/dist/contracts/UniswapV2.d.ts.map +1 -1
- package/dist/contracts/UniswapV2.js +5 -24
- package/dist/contracts/UniswapV3.d.ts +4 -17
- package/dist/contracts/UniswapV3.d.ts.map +1 -1
- package/dist/contracts/UniswapV3.js +5 -24
- package/dist/contracts/VaultRegistry.d.ts +2265 -0
- package/dist/contracts/VaultRegistry.d.ts.map +1 -0
- package/dist/contracts/VaultRegistry.js +2848 -0
- package/dist/contracts/index.d.ts +7 -0
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +7 -0
- package/dist/contracts/sdk.d.ts +14 -0
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +14 -0
- package/dist/getContracts.d.ts +1 -0
- package/dist/getContracts.d.ts.map +1 -1
- package/dist/getContracts.js +1 -0
- package/package.json +1 -1
- package/dist/contracts/AddyRegistry.d.ts +0 -1109
- package/dist/contracts/AddyRegistry.d.ts.map +0 -1
- package/dist/contracts/AddyRegistry.js +0 -1392
- package/dist/contracts/AddyRegistry_v1.d.ts +0 -473
- package/dist/contracts/AddyRegistry_v1.d.ts.map +0 -1
- package/dist/contracts/AddyRegistry_v1.js +0 -594
- package/dist/contracts/AddyRegistry_v2.d.ts +0 -1050
- package/dist/contracts/AddyRegistry_v2.d.ts.map +0 -1
- package/dist/contracts/AddyRegistry_v2.js +0 -1313
- package/dist/contracts/AgentFactory.d.ts +0 -1665
- package/dist/contracts/AgentFactory.d.ts.map +0 -1
- package/dist/contracts/AgentFactory.js +0 -2078
- package/dist/contracts/AgentFactory_v1.d.ts +0 -1054
- package/dist/contracts/AgentFactory_v1.d.ts.map +0 -1
- package/dist/contracts/AgentFactory_v1.js +0 -1336
- package/dist/contracts/AgentFactory_v2.d.ts +0 -1275
- package/dist/contracts/AgentFactory_v2.d.ts.map +0 -1
- package/dist/contracts/AgentFactory_v2.js +0 -1609
- package/dist/contracts/AgentTemplate.d.ts +0 -2629
- package/dist/contracts/AgentTemplate.d.ts.map +0 -1
- package/dist/contracts/Agent_v1.d.ts.map +0 -1
- package/dist/contracts/Agent_v2.d.ts +0 -2709
- package/dist/contracts/Agent_v2.d.ts.map +0 -1
- package/dist/contracts/Agent_v2.js +0 -3458
- package/dist/contracts/ChainlinkFeeds.d.ts +0 -706
- package/dist/contracts/ChainlinkFeeds.d.ts.map +0 -1
- package/dist/contracts/ChainlinkFeeds.js +0 -900
- package/dist/contracts/LegoAaveV3.d.ts +0 -1033
- package/dist/contracts/LegoAaveV3.d.ts.map +0 -1
- package/dist/contracts/LegoAaveV3.js +0 -1330
- package/dist/contracts/LegoAeroClassic.d.ts +0 -1204
- package/dist/contracts/LegoAeroClassic.d.ts.map +0 -1
- package/dist/contracts/LegoAeroClassic.js +0 -1546
- package/dist/contracts/LegoAeroSlipstream.d.ts +0 -1300
- package/dist/contracts/LegoAeroSlipstream.d.ts.map +0 -1
- package/dist/contracts/LegoCommon.d.ts +0 -164
- package/dist/contracts/LegoCommon.d.ts.map +0 -1
- package/dist/contracts/LegoCommon.js +0 -202
- package/dist/contracts/LegoCompoundV3.d.ts +0 -1060
- package/dist/contracts/LegoCompoundV3.d.ts.map +0 -1
- package/dist/contracts/LegoCompoundV3.js +0 -1365
- package/dist/contracts/LegoCredit.d.ts +0 -140
- package/dist/contracts/LegoCredit.d.ts.map +0 -1
- package/dist/contracts/LegoCredit.js +0 -179
- package/dist/contracts/LegoCurve.d.ts +0 -1189
- package/dist/contracts/LegoCurve.d.ts.map +0 -1
- package/dist/contracts/LegoCurve.js +0 -1519
- package/dist/contracts/LegoDex.d.ts +0 -587
- package/dist/contracts/LegoDex.d.ts.map +0 -1
- package/dist/contracts/LegoDex.js +0 -774
- package/dist/contracts/LegoEuler.d.ts +0 -1074
- package/dist/contracts/LegoEuler.d.ts.map +0 -1
- package/dist/contracts/LegoEuler.js +0 -1383
- package/dist/contracts/LegoFluid.d.ts +0 -1025
- package/dist/contracts/LegoFluid.d.ts.map +0 -1
- package/dist/contracts/LegoFluid.js +0 -1320
- package/dist/contracts/LegoHelper.d.ts +0 -1563
- package/dist/contracts/LegoHelper.d.ts.map +0 -1
- package/dist/contracts/LegoHelper.js +0 -1947
- package/dist/contracts/LegoMoonwell.d.ts +0 -1042
- package/dist/contracts/LegoMoonwell.d.ts.map +0 -1
- package/dist/contracts/LegoMoonwell.js +0 -1342
- package/dist/contracts/LegoMorpho.d.ts +0 -1074
- package/dist/contracts/LegoMorpho.d.ts.map +0 -1
- package/dist/contracts/LegoMorpho.js +0 -1383
- package/dist/contracts/LegoRegistry.d.ts +0 -1079
- package/dist/contracts/LegoRegistry.d.ts.map +0 -1
- package/dist/contracts/LegoRegistry.js +0 -1368
- package/dist/contracts/LegoSky.d.ts +0 -923
- package/dist/contracts/LegoSky.d.ts.map +0 -1
- package/dist/contracts/LegoSky.js +0 -1180
- package/dist/contracts/LegoUniswapV0_2.d.ts +0 -1204
- package/dist/contracts/LegoUniswapV0_2.d.ts.map +0 -1
- package/dist/contracts/LegoUniswapV0_2.js +0 -1546
- package/dist/contracts/LegoUniswapV2.d.ts +0 -1204
- package/dist/contracts/LegoUniswapV2.d.ts.map +0 -1
- package/dist/contracts/LegoUniswapV2.js +0 -1546
- package/dist/contracts/LegoUniswapV3.d.ts +0 -1338
- package/dist/contracts/LegoUniswapV3.d.ts.map +0 -1
- package/dist/contracts/LegoYield.d.ts +0 -390
- package/dist/contracts/LegoYield.d.ts.map +0 -1
- package/dist/contracts/LegoYield.js +0 -511
- package/dist/contracts/OracleParser.d.ts +0 -207
- package/dist/contracts/OracleParser.d.ts.map +0 -1
- package/dist/contracts/OracleParser.js +0 -264
- package/dist/contracts/OracleRegistry.d.ts +0 -1221
- package/dist/contracts/OracleRegistry.d.ts.map +0 -1
- package/dist/contracts/OracleRegistry.js +0 -1562
- package/dist/contracts/PriceSheets.d.ts +0 -1127
- package/dist/contracts/PriceSheets.d.ts.map +0 -1
- package/dist/contracts/PriceSheets.js +0 -1383
- package/dist/contracts/PythFeeds.d.ts +0 -640
- package/dist/contracts/PythFeeds.d.ts.map +0 -1
- package/dist/contracts/PythFeeds.js +0 -813
- package/dist/contracts/StorkFeeds.d.ts +0 -640
- package/dist/contracts/StorkFeeds.d.ts.map +0 -1
- package/dist/contracts/StorkFeeds.js +0 -813
- package/dist/contracts/UserWalletConfig_v1.d.ts +0 -1400
- package/dist/contracts/UserWalletConfig_v1.d.ts.map +0 -1
- package/dist/contracts/UserWalletConfig_v1.js +0 -1676
- package/dist/contracts/UserWalletConfig_v2.d.ts +0 -1468
- package/dist/contracts/UserWalletConfig_v2.d.ts.map +0 -1
- package/dist/contracts/UserWalletConfig_v2.js +0 -1764
- package/dist/contracts/UserWallet_v1.d.ts +0 -1980
- package/dist/contracts/UserWallet_v1.d.ts.map +0 -1
- package/dist/contracts/UserWallet_v1.js +0 -2581
- package/dist/contracts/UserWallet_v2.d.ts +0 -1958
- package/dist/contracts/UserWallet_v2.d.ts.map +0 -1
- package/dist/contracts/UserWallet_v2.js +0 -2553
- package/dist/contracts/WalletConfig.d.ts +0 -1398
- package/dist/contracts/WalletConfig.d.ts.map +0 -1
- package/dist/contracts/WalletConfig.js +0 -1674
- package/dist/contracts/WalletFunds.d.ts +0 -1978
- package/dist/contracts/WalletFunds.d.ts.map +0 -1
- package/dist/contracts/WalletFunds.js +0 -2579
- package/dist/contracts/v0_1_AddyRegistry.d.ts +0 -473
- package/dist/contracts/v0_1_AddyRegistry.d.ts.map +0 -1
- package/dist/contracts/v0_1_AddyRegistry.js +0 -594
- package/dist/contracts/v0_1_Agent.d.ts.map +0 -1
- package/dist/contracts/v0_1_Agent.js +0 -3372
- package/dist/contracts/v0_1_AgentFactory.d.ts +0 -1054
- package/dist/contracts/v0_1_AgentFactory.d.ts.map +0 -1
- package/dist/contracts/v0_1_AgentFactory.js +0 -1336
- package/dist/contracts/v0_1_UserWallet.d.ts +0 -1980
- package/dist/contracts/v0_1_UserWallet.d.ts.map +0 -1
- package/dist/contracts/v0_1_UserWallet.js +0 -2581
- package/dist/contracts/v0_1_UserWalletConfig.d.ts +0 -1400
- package/dist/contracts/v0_1_UserWalletConfig.d.ts.map +0 -1
- package/dist/contracts/v0_1_UserWalletConfig.js +0 -1676
- package/dist/contracts/v0_2_AddyRegistry.d.ts +0 -1050
- package/dist/contracts/v0_2_AddyRegistry.d.ts.map +0 -1
- package/dist/contracts/v0_2_AddyRegistry.js +0 -1313
- package/dist/contracts/v0_2_Agent.d.ts +0 -2709
- package/dist/contracts/v0_2_Agent.d.ts.map +0 -1
- package/dist/contracts/v0_2_Agent.js +0 -3458
- package/dist/contracts/v0_2_AgentFactory.d.ts +0 -1275
- package/dist/contracts/v0_2_AgentFactory.d.ts.map +0 -1
- package/dist/contracts/v0_2_AgentFactory.js +0 -1609
- package/dist/contracts/v0_2_UserWallet.d.ts +0 -1958
- package/dist/contracts/v0_2_UserWallet.d.ts.map +0 -1
- package/dist/contracts/v0_2_UserWallet.js +0 -2553
- package/dist/contracts/v0_2_UserWalletConfig.d.ts +0 -1468
- package/dist/contracts/v0_2_UserWalletConfig.d.ts.map +0 -1
- package/dist/contracts/v0_2_UserWalletConfig.js +0 -1764
- package/dist/contracts/v0_3_AddyRegistry.d.ts +0 -1109
- package/dist/contracts/v0_3_AddyRegistry.d.ts.map +0 -1
- package/dist/contracts/v0_3_AddyRegistry.js +0 -1392
- package/dist/contracts/v0_3_Agent.d.ts +0 -2709
- package/dist/contracts/v0_3_Agent.d.ts.map +0 -1
- package/dist/contracts/v0_3_Agent.js +0 -3458
- package/dist/contracts/v0_3_AgentFactory.d.ts +0 -1665
- package/dist/contracts/v0_3_AgentFactory.d.ts.map +0 -1
- package/dist/contracts/v0_3_AgentFactory.js +0 -2078
- package/dist/contracts/v0_3_ChainlinkFeeds.d.ts +0 -706
- package/dist/contracts/v0_3_ChainlinkFeeds.d.ts.map +0 -1
- package/dist/contracts/v0_3_ChainlinkFeeds.js +0 -900
- package/dist/contracts/v0_3_LegoAaveV3.d.ts +0 -1033
- package/dist/contracts/v0_3_LegoAaveV3.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoAaveV3.js +0 -1330
- package/dist/contracts/v0_3_LegoAeroClassic.d.ts +0 -1204
- package/dist/contracts/v0_3_LegoAeroClassic.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoAeroClassic.js +0 -1546
- package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts +0 -1300
- package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoAeroSlipstream.js +0 -1671
- package/dist/contracts/v0_3_LegoCommon.d.ts +0 -164
- package/dist/contracts/v0_3_LegoCommon.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoCommon.js +0 -202
- package/dist/contracts/v0_3_LegoCompoundV3.d.ts +0 -1060
- package/dist/contracts/v0_3_LegoCompoundV3.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoCompoundV3.js +0 -1365
- package/dist/contracts/v0_3_LegoCredit.d.ts +0 -140
- package/dist/contracts/v0_3_LegoCredit.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoCredit.js +0 -179
- package/dist/contracts/v0_3_LegoCurve.d.ts +0 -1189
- package/dist/contracts/v0_3_LegoCurve.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoCurve.js +0 -1519
- package/dist/contracts/v0_3_LegoDex.d.ts +0 -587
- package/dist/contracts/v0_3_LegoDex.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoDex.js +0 -774
- package/dist/contracts/v0_3_LegoEuler.d.ts +0 -1074
- package/dist/contracts/v0_3_LegoEuler.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoEuler.js +0 -1383
- package/dist/contracts/v0_3_LegoFluid.d.ts +0 -1025
- package/dist/contracts/v0_3_LegoFluid.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoFluid.js +0 -1320
- package/dist/contracts/v0_3_LegoHelper.d.ts +0 -1563
- package/dist/contracts/v0_3_LegoHelper.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoHelper.js +0 -1947
- package/dist/contracts/v0_3_LegoMoonwell.d.ts +0 -1042
- package/dist/contracts/v0_3_LegoMoonwell.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoMoonwell.js +0 -1342
- package/dist/contracts/v0_3_LegoMorpho.d.ts +0 -1074
- package/dist/contracts/v0_3_LegoMorpho.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoMorpho.js +0 -1383
- package/dist/contracts/v0_3_LegoRegistry.d.ts +0 -1079
- package/dist/contracts/v0_3_LegoRegistry.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoRegistry.js +0 -1368
- package/dist/contracts/v0_3_LegoSky.d.ts +0 -923
- package/dist/contracts/v0_3_LegoSky.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoSky.js +0 -1180
- package/dist/contracts/v0_3_LegoUniswapV3.d.ts +0 -1338
- package/dist/contracts/v0_3_LegoUniswapV3.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoYield.d.ts +0 -390
- package/dist/contracts/v0_3_LegoYield.d.ts.map +0 -1
- package/dist/contracts/v0_3_LegoYield.js +0 -511
- package/dist/contracts/v0_3_OracleParser.d.ts +0 -207
- package/dist/contracts/v0_3_OracleParser.d.ts.map +0 -1
- package/dist/contracts/v0_3_OracleParser.js +0 -264
- package/dist/contracts/v0_3_OracleRegistry.d.ts +0 -1221
- package/dist/contracts/v0_3_OracleRegistry.d.ts.map +0 -1
- package/dist/contracts/v0_3_PriceSheets.d.ts +0 -1127
- package/dist/contracts/v0_3_PriceSheets.d.ts.map +0 -1
- package/dist/contracts/v0_3_PriceSheets.js +0 -1383
- package/dist/contracts/v0_3_PythFeeds.d.ts +0 -640
- package/dist/contracts/v0_3_PythFeeds.d.ts.map +0 -1
- package/dist/contracts/v0_3_PythFeeds.js +0 -813
- package/dist/contracts/v0_3_StorkFeeds.d.ts +0 -640
- package/dist/contracts/v0_3_StorkFeeds.d.ts.map +0 -1
- package/dist/contracts/v0_3_StorkFeeds.js +0 -813
- package/dist/contracts/v0_3_UserWallet.d.ts +0 -1975
- package/dist/contracts/v0_3_UserWallet.d.ts.map +0 -1
- package/dist/contracts/v0_3_UserWallet.js +0 -2577
- package/dist/contracts/v0_3_UserWalletConfig.d.ts +0 -1852
- package/dist/contracts/v0_3_UserWalletConfig.d.ts.map +0 -1
- package/dist/contracts/v0_3_UserWalletConfig.js +0 -2263
- package/dist/getLegacyContracts.d.ts +0 -69
- package/dist/getLegacyContracts.d.ts.map +0 -1
- package/dist/getLegacyContracts.js +0 -55
|
@@ -93,6 +93,27 @@ export declare const abi: readonly [{
|
|
|
93
93
|
}];
|
|
94
94
|
readonly anonymous: false;
|
|
95
95
|
readonly type: "event";
|
|
96
|
+
}, {
|
|
97
|
+
readonly name: "SnapShotPriceConfigSet";
|
|
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";
|
|
109
|
+
readonly indexed: false;
|
|
110
|
+
}, {
|
|
111
|
+
readonly name: "staleTime";
|
|
112
|
+
readonly type: "uint256";
|
|
113
|
+
readonly indexed: false;
|
|
114
|
+
}];
|
|
115
|
+
readonly anonymous: false;
|
|
116
|
+
readonly type: "event";
|
|
96
117
|
}, {
|
|
97
118
|
readonly name: "AssetOpportunityAdded";
|
|
98
119
|
readonly inputs: readonly [{
|
|
@@ -119,6 +140,23 @@ export declare const abi: readonly [{
|
|
|
119
140
|
}];
|
|
120
141
|
readonly anonymous: false;
|
|
121
142
|
readonly type: "event";
|
|
143
|
+
}, {
|
|
144
|
+
readonly name: "PricePerShareSnapShotAdded";
|
|
145
|
+
readonly inputs: readonly [{
|
|
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";
|
|
155
|
+
readonly type: "uint256";
|
|
156
|
+
readonly indexed: false;
|
|
157
|
+
}];
|
|
158
|
+
readonly anonymous: false;
|
|
159
|
+
readonly type: "event";
|
|
122
160
|
}, {
|
|
123
161
|
readonly stateMutability: "view";
|
|
124
162
|
readonly type: "function";
|
|
@@ -160,6 +198,9 @@ export declare const abi: readonly [{
|
|
|
160
198
|
}, {
|
|
161
199
|
readonly name: "billing";
|
|
162
200
|
readonly type: "address";
|
|
201
|
+
}, {
|
|
202
|
+
readonly name: "vaultRegistry";
|
|
203
|
+
readonly type: "address";
|
|
163
204
|
}];
|
|
164
205
|
}];
|
|
165
206
|
}, {
|
|
@@ -264,12 +305,109 @@ export declare const abi: readonly [{
|
|
|
264
305
|
}, {
|
|
265
306
|
readonly stateMutability: "view";
|
|
266
307
|
readonly type: "function";
|
|
267
|
-
readonly name: "
|
|
268
|
-
readonly inputs: readonly [
|
|
308
|
+
readonly name: "getWeightedPricePerShare";
|
|
309
|
+
readonly inputs: readonly [{
|
|
310
|
+
readonly name: "_vaultToken";
|
|
311
|
+
readonly type: "address";
|
|
312
|
+
}];
|
|
313
|
+
readonly outputs: readonly [{
|
|
314
|
+
readonly name: "";
|
|
315
|
+
readonly type: "uint256";
|
|
316
|
+
}];
|
|
317
|
+
}, {
|
|
318
|
+
readonly stateMutability: "view";
|
|
319
|
+
readonly type: "function";
|
|
320
|
+
readonly name: "getLatestSnapshot";
|
|
321
|
+
readonly inputs: readonly [{
|
|
322
|
+
readonly name: "_vaultToken";
|
|
323
|
+
readonly type: "address";
|
|
324
|
+
}, {
|
|
325
|
+
readonly name: "_pricePerShare";
|
|
326
|
+
readonly type: "uint256";
|
|
327
|
+
}];
|
|
328
|
+
readonly outputs: readonly [{
|
|
329
|
+
readonly name: "";
|
|
330
|
+
readonly type: "tuple";
|
|
331
|
+
readonly components: readonly [{
|
|
332
|
+
readonly name: "totalSupply";
|
|
333
|
+
readonly type: "uint256";
|
|
334
|
+
}, {
|
|
335
|
+
readonly name: "pricePerShare";
|
|
336
|
+
readonly type: "uint256";
|
|
337
|
+
}, {
|
|
338
|
+
readonly name: "lastUpdate";
|
|
339
|
+
readonly type: "uint256";
|
|
340
|
+
}];
|
|
341
|
+
}];
|
|
342
|
+
}, {
|
|
343
|
+
readonly stateMutability: "nonpayable";
|
|
344
|
+
readonly type: "function";
|
|
345
|
+
readonly name: "setSnapShotPriceConfig";
|
|
346
|
+
readonly inputs: readonly [{
|
|
347
|
+
readonly name: "_config";
|
|
348
|
+
readonly type: "tuple";
|
|
349
|
+
readonly components: readonly [{
|
|
350
|
+
readonly name: "minSnapshotDelay";
|
|
351
|
+
readonly type: "uint256";
|
|
352
|
+
}, {
|
|
353
|
+
readonly name: "maxNumSnapshots";
|
|
354
|
+
readonly type: "uint256";
|
|
355
|
+
}, {
|
|
356
|
+
readonly name: "maxUpsideDeviation";
|
|
357
|
+
readonly type: "uint256";
|
|
358
|
+
}, {
|
|
359
|
+
readonly name: "staleTime";
|
|
360
|
+
readonly type: "uint256";
|
|
361
|
+
}];
|
|
362
|
+
}];
|
|
363
|
+
readonly outputs: readonly [];
|
|
364
|
+
}, {
|
|
365
|
+
readonly stateMutability: "view";
|
|
366
|
+
readonly type: "function";
|
|
367
|
+
readonly name: "isValidPriceConfig";
|
|
368
|
+
readonly inputs: readonly [{
|
|
369
|
+
readonly name: "_config";
|
|
370
|
+
readonly type: "tuple";
|
|
371
|
+
readonly components: readonly [{
|
|
372
|
+
readonly name: "minSnapshotDelay";
|
|
373
|
+
readonly type: "uint256";
|
|
374
|
+
}, {
|
|
375
|
+
readonly name: "maxNumSnapshots";
|
|
376
|
+
readonly type: "uint256";
|
|
377
|
+
}, {
|
|
378
|
+
readonly name: "maxUpsideDeviation";
|
|
379
|
+
readonly type: "uint256";
|
|
380
|
+
}, {
|
|
381
|
+
readonly name: "staleTime";
|
|
382
|
+
readonly type: "uint256";
|
|
383
|
+
}];
|
|
384
|
+
}];
|
|
269
385
|
readonly outputs: readonly [{
|
|
270
386
|
readonly name: "";
|
|
271
387
|
readonly type: "bool";
|
|
272
388
|
}];
|
|
389
|
+
}, {
|
|
390
|
+
readonly stateMutability: "view";
|
|
391
|
+
readonly type: "function";
|
|
392
|
+
readonly name: "vaultToAsset";
|
|
393
|
+
readonly inputs: readonly [{
|
|
394
|
+
readonly name: "arg0";
|
|
395
|
+
readonly type: "address";
|
|
396
|
+
}];
|
|
397
|
+
readonly outputs: readonly [{
|
|
398
|
+
readonly name: "";
|
|
399
|
+
readonly type: "tuple";
|
|
400
|
+
readonly components: readonly [{
|
|
401
|
+
readonly name: "underlyingAsset";
|
|
402
|
+
readonly type: "address";
|
|
403
|
+
}, {
|
|
404
|
+
readonly name: "decimals";
|
|
405
|
+
readonly type: "uint256";
|
|
406
|
+
}, {
|
|
407
|
+
readonly name: "lastAveragePricePerShare";
|
|
408
|
+
readonly type: "uint256";
|
|
409
|
+
}];
|
|
410
|
+
}];
|
|
273
411
|
}, {
|
|
274
412
|
readonly stateMutability: "view";
|
|
275
413
|
readonly type: "function";
|
|
@@ -315,10 +453,10 @@ export declare const abi: readonly [{
|
|
|
315
453
|
}, {
|
|
316
454
|
readonly stateMutability: "view";
|
|
317
455
|
readonly type: "function";
|
|
318
|
-
readonly name: "
|
|
456
|
+
readonly name: "assets";
|
|
319
457
|
readonly inputs: readonly [{
|
|
320
458
|
readonly name: "arg0";
|
|
321
|
-
readonly type: "
|
|
459
|
+
readonly type: "uint256";
|
|
322
460
|
}];
|
|
323
461
|
readonly outputs: readonly [{
|
|
324
462
|
readonly name: "";
|
|
@@ -327,35 +465,108 @@ export declare const abi: readonly [{
|
|
|
327
465
|
}, {
|
|
328
466
|
readonly stateMutability: "view";
|
|
329
467
|
readonly type: "function";
|
|
330
|
-
readonly name: "
|
|
468
|
+
readonly name: "indexOfAsset";
|
|
331
469
|
readonly inputs: readonly [{
|
|
332
470
|
readonly name: "arg0";
|
|
471
|
+
readonly type: "address";
|
|
472
|
+
}];
|
|
473
|
+
readonly outputs: readonly [{
|
|
474
|
+
readonly name: "";
|
|
333
475
|
readonly type: "uint256";
|
|
334
476
|
}];
|
|
477
|
+
}, {
|
|
478
|
+
readonly stateMutability: "view";
|
|
479
|
+
readonly type: "function";
|
|
480
|
+
readonly name: "numAssets";
|
|
481
|
+
readonly inputs: readonly [];
|
|
335
482
|
readonly outputs: readonly [{
|
|
336
483
|
readonly name: "";
|
|
337
|
-
readonly type: "
|
|
484
|
+
readonly type: "uint256";
|
|
338
485
|
}];
|
|
339
486
|
}, {
|
|
340
487
|
readonly stateMutability: "view";
|
|
341
488
|
readonly type: "function";
|
|
342
|
-
readonly name: "
|
|
489
|
+
readonly name: "snapShotData";
|
|
343
490
|
readonly inputs: readonly [{
|
|
344
491
|
readonly name: "arg0";
|
|
345
492
|
readonly type: "address";
|
|
346
493
|
}];
|
|
347
494
|
readonly outputs: readonly [{
|
|
348
495
|
readonly name: "";
|
|
496
|
+
readonly type: "tuple";
|
|
497
|
+
readonly components: readonly [{
|
|
498
|
+
readonly name: "lastSnapShot";
|
|
499
|
+
readonly type: "tuple";
|
|
500
|
+
readonly components: readonly [{
|
|
501
|
+
readonly name: "totalSupply";
|
|
502
|
+
readonly type: "uint256";
|
|
503
|
+
}, {
|
|
504
|
+
readonly name: "pricePerShare";
|
|
505
|
+
readonly type: "uint256";
|
|
506
|
+
}, {
|
|
507
|
+
readonly name: "lastUpdate";
|
|
508
|
+
readonly type: "uint256";
|
|
509
|
+
}];
|
|
510
|
+
}, {
|
|
511
|
+
readonly name: "nextIndex";
|
|
512
|
+
readonly type: "uint256";
|
|
513
|
+
}];
|
|
514
|
+
}];
|
|
515
|
+
}, {
|
|
516
|
+
readonly stateMutability: "view";
|
|
517
|
+
readonly type: "function";
|
|
518
|
+
readonly name: "snapShots";
|
|
519
|
+
readonly inputs: readonly [{
|
|
520
|
+
readonly name: "arg0";
|
|
521
|
+
readonly type: "address";
|
|
522
|
+
}, {
|
|
523
|
+
readonly name: "arg1";
|
|
349
524
|
readonly type: "uint256";
|
|
350
525
|
}];
|
|
526
|
+
readonly outputs: readonly [{
|
|
527
|
+
readonly name: "";
|
|
528
|
+
readonly type: "tuple";
|
|
529
|
+
readonly components: readonly [{
|
|
530
|
+
readonly name: "totalSupply";
|
|
531
|
+
readonly type: "uint256";
|
|
532
|
+
}, {
|
|
533
|
+
readonly name: "pricePerShare";
|
|
534
|
+
readonly type: "uint256";
|
|
535
|
+
}, {
|
|
536
|
+
readonly name: "lastUpdate";
|
|
537
|
+
readonly type: "uint256";
|
|
538
|
+
}];
|
|
539
|
+
}];
|
|
351
540
|
}, {
|
|
352
541
|
readonly stateMutability: "view";
|
|
353
542
|
readonly type: "function";
|
|
354
|
-
readonly name: "
|
|
543
|
+
readonly name: "snapShotPriceConfig";
|
|
355
544
|
readonly inputs: readonly [];
|
|
356
545
|
readonly outputs: readonly [{
|
|
357
546
|
readonly name: "";
|
|
358
|
-
readonly type: "
|
|
547
|
+
readonly type: "tuple";
|
|
548
|
+
readonly components: readonly [{
|
|
549
|
+
readonly name: "minSnapshotDelay";
|
|
550
|
+
readonly type: "uint256";
|
|
551
|
+
}, {
|
|
552
|
+
readonly name: "maxNumSnapshots";
|
|
553
|
+
readonly type: "uint256";
|
|
554
|
+
}, {
|
|
555
|
+
readonly name: "maxUpsideDeviation";
|
|
556
|
+
readonly type: "uint256";
|
|
557
|
+
}, {
|
|
558
|
+
readonly name: "staleTime";
|
|
559
|
+
readonly type: "uint256";
|
|
560
|
+
}];
|
|
561
|
+
}];
|
|
562
|
+
}, {
|
|
563
|
+
readonly stateMutability: "view";
|
|
564
|
+
readonly type: "function";
|
|
565
|
+
readonly name: "isPaused";
|
|
566
|
+
readonly inputs: readonly [];
|
|
567
|
+
readonly outputs: readonly [{
|
|
568
|
+
readonly name: "";
|
|
569
|
+
readonly type: "bool";
|
|
359
570
|
}];
|
|
360
571
|
}, {
|
|
361
572
|
readonly stateMutability: "payable";
|
|
@@ -399,6 +610,198 @@ export declare const abi: readonly [{
|
|
|
399
610
|
readonly name: "";
|
|
400
611
|
readonly type: "bool";
|
|
401
612
|
}];
|
|
613
|
+
}, {
|
|
614
|
+
readonly stateMutability: "view";
|
|
615
|
+
readonly type: "function";
|
|
616
|
+
readonly name: "getUnderlyingAsset";
|
|
617
|
+
readonly inputs: readonly [{
|
|
618
|
+
readonly name: "_vaultToken";
|
|
619
|
+
readonly type: "address";
|
|
620
|
+
}];
|
|
621
|
+
readonly outputs: readonly [{
|
|
622
|
+
readonly name: "";
|
|
623
|
+
readonly type: "address";
|
|
624
|
+
}];
|
|
625
|
+
}, {
|
|
626
|
+
readonly stateMutability: "view";
|
|
627
|
+
readonly type: "function";
|
|
628
|
+
readonly name: "getUnderlyingBalances";
|
|
629
|
+
readonly inputs: readonly [{
|
|
630
|
+
readonly name: "_vaultToken";
|
|
631
|
+
readonly type: "address";
|
|
632
|
+
}, {
|
|
633
|
+
readonly name: "_vaultTokenBalance";
|
|
634
|
+
readonly type: "uint256";
|
|
635
|
+
}];
|
|
636
|
+
readonly outputs: readonly [{
|
|
637
|
+
readonly name: "";
|
|
638
|
+
readonly type: "uint256";
|
|
639
|
+
}, {
|
|
640
|
+
readonly name: "";
|
|
641
|
+
readonly type: "uint256";
|
|
642
|
+
}];
|
|
643
|
+
}, {
|
|
644
|
+
readonly stateMutability: "view";
|
|
645
|
+
readonly type: "function";
|
|
646
|
+
readonly name: "getUnderlyingAmount";
|
|
647
|
+
readonly inputs: readonly [{
|
|
648
|
+
readonly name: "_vaultToken";
|
|
649
|
+
readonly type: "address";
|
|
650
|
+
}, {
|
|
651
|
+
readonly name: "_vaultTokenAmount";
|
|
652
|
+
readonly type: "uint256";
|
|
653
|
+
}];
|
|
654
|
+
readonly outputs: readonly [{
|
|
655
|
+
readonly name: "";
|
|
656
|
+
readonly type: "uint256";
|
|
657
|
+
}];
|
|
658
|
+
}, {
|
|
659
|
+
readonly stateMutability: "view";
|
|
660
|
+
readonly type: "function";
|
|
661
|
+
readonly name: "getUnderlyingAmountSafe";
|
|
662
|
+
readonly inputs: readonly [{
|
|
663
|
+
readonly name: "_vaultToken";
|
|
664
|
+
readonly type: "address";
|
|
665
|
+
}, {
|
|
666
|
+
readonly name: "_vaultTokenBalance";
|
|
667
|
+
readonly type: "uint256";
|
|
668
|
+
}];
|
|
669
|
+
readonly outputs: readonly [{
|
|
670
|
+
readonly name: "";
|
|
671
|
+
readonly type: "uint256";
|
|
672
|
+
}];
|
|
673
|
+
}, {
|
|
674
|
+
readonly stateMutability: "view";
|
|
675
|
+
readonly type: "function";
|
|
676
|
+
readonly name: "getUnderlyingData";
|
|
677
|
+
readonly inputs: readonly [{
|
|
678
|
+
readonly name: "_vaultToken";
|
|
679
|
+
readonly type: "address";
|
|
680
|
+
}, {
|
|
681
|
+
readonly name: "_vaultTokenAmount";
|
|
682
|
+
readonly type: "uint256";
|
|
683
|
+
}];
|
|
684
|
+
readonly outputs: readonly [{
|
|
685
|
+
readonly name: "";
|
|
686
|
+
readonly type: "address";
|
|
687
|
+
}, {
|
|
688
|
+
readonly name: "";
|
|
689
|
+
readonly type: "uint256";
|
|
690
|
+
}, {
|
|
691
|
+
readonly name: "";
|
|
692
|
+
readonly type: "uint256";
|
|
693
|
+
}];
|
|
694
|
+
}, {
|
|
695
|
+
readonly stateMutability: "view";
|
|
696
|
+
readonly type: "function";
|
|
697
|
+
readonly name: "getUnderlyingData";
|
|
698
|
+
readonly inputs: readonly [{
|
|
699
|
+
readonly name: "_vaultToken";
|
|
700
|
+
readonly type: "address";
|
|
701
|
+
}, {
|
|
702
|
+
readonly name: "_vaultTokenAmount";
|
|
703
|
+
readonly type: "uint256";
|
|
704
|
+
}, {
|
|
705
|
+
readonly name: "_appraiser";
|
|
706
|
+
readonly type: "address";
|
|
707
|
+
}];
|
|
708
|
+
readonly outputs: readonly [{
|
|
709
|
+
readonly name: "";
|
|
710
|
+
readonly type: "address";
|
|
711
|
+
}, {
|
|
712
|
+
readonly name: "";
|
|
713
|
+
readonly type: "uint256";
|
|
714
|
+
}, {
|
|
715
|
+
readonly name: "";
|
|
716
|
+
readonly type: "uint256";
|
|
717
|
+
}];
|
|
718
|
+
}, {
|
|
719
|
+
readonly stateMutability: "view";
|
|
720
|
+
readonly type: "function";
|
|
721
|
+
readonly name: "getUsdValueOfVaultToken";
|
|
722
|
+
readonly inputs: readonly [{
|
|
723
|
+
readonly name: "_vaultToken";
|
|
724
|
+
readonly type: "address";
|
|
725
|
+
}, {
|
|
726
|
+
readonly name: "_vaultTokenAmount";
|
|
727
|
+
readonly type: "uint256";
|
|
728
|
+
}];
|
|
729
|
+
readonly outputs: readonly [{
|
|
730
|
+
readonly name: "";
|
|
731
|
+
readonly type: "uint256";
|
|
732
|
+
}];
|
|
733
|
+
}, {
|
|
734
|
+
readonly stateMutability: "view";
|
|
735
|
+
readonly type: "function";
|
|
736
|
+
readonly name: "getUsdValueOfVaultToken";
|
|
737
|
+
readonly inputs: readonly [{
|
|
738
|
+
readonly name: "_vaultToken";
|
|
739
|
+
readonly type: "address";
|
|
740
|
+
}, {
|
|
741
|
+
readonly name: "_vaultTokenAmount";
|
|
742
|
+
readonly type: "uint256";
|
|
743
|
+
}, {
|
|
744
|
+
readonly name: "_appraiser";
|
|
745
|
+
readonly type: "address";
|
|
746
|
+
}];
|
|
747
|
+
readonly outputs: readonly [{
|
|
748
|
+
readonly name: "";
|
|
749
|
+
readonly type: "uint256";
|
|
750
|
+
}];
|
|
751
|
+
}, {
|
|
752
|
+
readonly stateMutability: "view";
|
|
753
|
+
readonly type: "function";
|
|
754
|
+
readonly name: "isRebasing";
|
|
755
|
+
readonly inputs: readonly [];
|
|
756
|
+
readonly outputs: readonly [{
|
|
757
|
+
readonly name: "";
|
|
758
|
+
readonly type: "bool";
|
|
759
|
+
}];
|
|
760
|
+
}, {
|
|
761
|
+
readonly stateMutability: "view";
|
|
762
|
+
readonly type: "function";
|
|
763
|
+
readonly name: "getPricePerShare";
|
|
764
|
+
readonly inputs: readonly [{
|
|
765
|
+
readonly name: "_vaultToken";
|
|
766
|
+
readonly type: "address";
|
|
767
|
+
}];
|
|
768
|
+
readonly outputs: readonly [{
|
|
769
|
+
readonly name: "";
|
|
770
|
+
readonly type: "uint256";
|
|
771
|
+
}];
|
|
772
|
+
}, {
|
|
773
|
+
readonly stateMutability: "view";
|
|
774
|
+
readonly type: "function";
|
|
775
|
+
readonly name: "getPricePerShare";
|
|
776
|
+
readonly inputs: readonly [{
|
|
777
|
+
readonly name: "_vaultToken";
|
|
778
|
+
readonly type: "address";
|
|
779
|
+
}, {
|
|
780
|
+
readonly name: "_decimals";
|
|
781
|
+
readonly type: "uint256";
|
|
782
|
+
}];
|
|
783
|
+
readonly outputs: readonly [{
|
|
784
|
+
readonly name: "";
|
|
785
|
+
readonly type: "uint256";
|
|
786
|
+
}];
|
|
787
|
+
}, {
|
|
788
|
+
readonly stateMutability: "view";
|
|
789
|
+
readonly type: "function";
|
|
790
|
+
readonly name: "getVaultTokenAmount";
|
|
791
|
+
readonly inputs: readonly [{
|
|
792
|
+
readonly name: "_asset";
|
|
793
|
+
readonly type: "address";
|
|
794
|
+
}, {
|
|
795
|
+
readonly name: "_assetAmount";
|
|
796
|
+
readonly type: "uint256";
|
|
797
|
+
}, {
|
|
798
|
+
readonly name: "_vaultToken";
|
|
799
|
+
readonly type: "address";
|
|
800
|
+
}];
|
|
801
|
+
readonly outputs: readonly [{
|
|
802
|
+
readonly name: "";
|
|
803
|
+
readonly type: "uint256";
|
|
804
|
+
}];
|
|
402
805
|
}, {
|
|
403
806
|
readonly stateMutability: "view";
|
|
404
807
|
readonly type: "function";
|
|
@@ -429,8 +832,87 @@ export declare const abi: readonly [{
|
|
|
429
832
|
}, {
|
|
430
833
|
readonly stateMutability: "view";
|
|
431
834
|
readonly type: "function";
|
|
432
|
-
readonly name: "
|
|
433
|
-
readonly inputs: readonly [
|
|
835
|
+
readonly name: "totalAssets";
|
|
836
|
+
readonly inputs: readonly [{
|
|
837
|
+
readonly name: "_vaultToken";
|
|
838
|
+
readonly type: "address";
|
|
839
|
+
}];
|
|
840
|
+
readonly outputs: readonly [{
|
|
841
|
+
readonly name: "";
|
|
842
|
+
readonly type: "uint256";
|
|
843
|
+
}];
|
|
844
|
+
}, {
|
|
845
|
+
readonly stateMutability: "view";
|
|
846
|
+
readonly type: "function";
|
|
847
|
+
readonly name: "totalBorrows";
|
|
848
|
+
readonly inputs: readonly [{
|
|
849
|
+
readonly name: "_vaultToken";
|
|
850
|
+
readonly type: "address";
|
|
851
|
+
}];
|
|
852
|
+
readonly outputs: readonly [{
|
|
853
|
+
readonly name: "";
|
|
854
|
+
readonly type: "uint256";
|
|
855
|
+
}];
|
|
856
|
+
}, {
|
|
857
|
+
readonly stateMutability: "view";
|
|
858
|
+
readonly type: "function";
|
|
859
|
+
readonly name: "canRegisterVaultToken";
|
|
860
|
+
readonly inputs: readonly [{
|
|
861
|
+
readonly name: "_asset";
|
|
862
|
+
readonly type: "address";
|
|
863
|
+
}, {
|
|
864
|
+
readonly name: "_vaultToken";
|
|
865
|
+
readonly type: "address";
|
|
866
|
+
}];
|
|
867
|
+
readonly outputs: readonly [{
|
|
868
|
+
readonly name: "";
|
|
869
|
+
readonly type: "bool";
|
|
870
|
+
}];
|
|
871
|
+
}, {
|
|
872
|
+
readonly stateMutability: "nonpayable";
|
|
873
|
+
readonly type: "function";
|
|
874
|
+
readonly name: "registerVaultTokenLocally";
|
|
875
|
+
readonly inputs: readonly [{
|
|
876
|
+
readonly name: "_asset";
|
|
877
|
+
readonly type: "address";
|
|
878
|
+
}, {
|
|
879
|
+
readonly name: "_vaultAddr";
|
|
880
|
+
readonly type: "address";
|
|
881
|
+
}];
|
|
882
|
+
readonly outputs: readonly [{
|
|
883
|
+
readonly name: "";
|
|
884
|
+
readonly type: "tuple";
|
|
885
|
+
readonly components: readonly [{
|
|
886
|
+
readonly name: "underlyingAsset";
|
|
887
|
+
readonly type: "address";
|
|
888
|
+
}, {
|
|
889
|
+
readonly name: "decimals";
|
|
890
|
+
readonly type: "uint256";
|
|
891
|
+
}, {
|
|
892
|
+
readonly name: "lastAveragePricePerShare";
|
|
893
|
+
readonly type: "uint256";
|
|
894
|
+
}];
|
|
895
|
+
}];
|
|
896
|
+
}, {
|
|
897
|
+
readonly stateMutability: "nonpayable";
|
|
898
|
+
readonly type: "function";
|
|
899
|
+
readonly name: "deregisterVaultTokenLocally";
|
|
900
|
+
readonly inputs: readonly [{
|
|
901
|
+
readonly name: "_asset";
|
|
902
|
+
readonly type: "address";
|
|
903
|
+
}, {
|
|
904
|
+
readonly name: "_vaultAddr";
|
|
905
|
+
readonly type: "address";
|
|
906
|
+
}];
|
|
907
|
+
readonly outputs: readonly [];
|
|
908
|
+
}, {
|
|
909
|
+
readonly stateMutability: "nonpayable";
|
|
910
|
+
readonly type: "function";
|
|
911
|
+
readonly name: "addPriceSnapshot";
|
|
912
|
+
readonly inputs: readonly [{
|
|
913
|
+
readonly name: "_vaultToken";
|
|
914
|
+
readonly type: "address";
|
|
915
|
+
}];
|
|
434
916
|
readonly outputs: readonly [{
|
|
435
917
|
readonly name: "";
|
|
436
918
|
readonly type: "bool";
|
|
@@ -672,201 +1154,24 @@ export declare const abi: readonly [{
|
|
|
672
1154
|
}, {
|
|
673
1155
|
readonly stateMutability: "view";
|
|
674
1156
|
readonly type: "function";
|
|
675
|
-
readonly name: "
|
|
676
|
-
readonly inputs: readonly [{
|
|
677
|
-
readonly name: "_vaultToken";
|
|
678
|
-
readonly type: "address";
|
|
679
|
-
}];
|
|
680
|
-
readonly outputs: readonly [{
|
|
681
|
-
readonly name: "";
|
|
682
|
-
readonly type: "bool";
|
|
683
|
-
}];
|
|
684
|
-
}, {
|
|
685
|
-
readonly stateMutability: "view";
|
|
686
|
-
readonly type: "function";
|
|
687
|
-
readonly name: "getUnderlyingAsset";
|
|
688
|
-
readonly inputs: readonly [{
|
|
689
|
-
readonly name: "_vaultToken";
|
|
690
|
-
readonly type: "address";
|
|
691
|
-
}];
|
|
692
|
-
readonly outputs: readonly [{
|
|
693
|
-
readonly name: "";
|
|
694
|
-
readonly type: "address";
|
|
695
|
-
}];
|
|
696
|
-
}, {
|
|
697
|
-
readonly stateMutability: "view";
|
|
698
|
-
readonly type: "function";
|
|
699
|
-
readonly name: "getUnderlyingAmount";
|
|
700
|
-
readonly inputs: readonly [{
|
|
701
|
-
readonly name: "_vaultToken";
|
|
702
|
-
readonly type: "address";
|
|
703
|
-
}, {
|
|
704
|
-
readonly name: "_vaultTokenAmount";
|
|
705
|
-
readonly type: "uint256";
|
|
706
|
-
}];
|
|
707
|
-
readonly outputs: readonly [{
|
|
708
|
-
readonly name: "";
|
|
709
|
-
readonly type: "uint256";
|
|
710
|
-
}];
|
|
711
|
-
}, {
|
|
712
|
-
readonly stateMutability: "view";
|
|
713
|
-
readonly type: "function";
|
|
714
|
-
readonly name: "getVaultTokenAmount";
|
|
715
|
-
readonly inputs: readonly [{
|
|
716
|
-
readonly name: "_asset";
|
|
717
|
-
readonly type: "address";
|
|
718
|
-
}, {
|
|
719
|
-
readonly name: "_assetAmount";
|
|
720
|
-
readonly type: "uint256";
|
|
721
|
-
}, {
|
|
722
|
-
readonly name: "_vaultToken";
|
|
723
|
-
readonly type: "address";
|
|
724
|
-
}];
|
|
725
|
-
readonly outputs: readonly [{
|
|
726
|
-
readonly name: "";
|
|
727
|
-
readonly type: "uint256";
|
|
728
|
-
}];
|
|
729
|
-
}, {
|
|
730
|
-
readonly stateMutability: "view";
|
|
731
|
-
readonly type: "function";
|
|
732
|
-
readonly name: "getUsdValueOfVaultToken";
|
|
733
|
-
readonly inputs: readonly [{
|
|
734
|
-
readonly name: "_vaultToken";
|
|
735
|
-
readonly type: "address";
|
|
736
|
-
}, {
|
|
737
|
-
readonly name: "_vaultTokenAmount";
|
|
738
|
-
readonly type: "uint256";
|
|
739
|
-
}];
|
|
740
|
-
readonly outputs: readonly [{
|
|
741
|
-
readonly name: "";
|
|
742
|
-
readonly type: "uint256";
|
|
743
|
-
}];
|
|
744
|
-
}, {
|
|
745
|
-
readonly stateMutability: "view";
|
|
746
|
-
readonly type: "function";
|
|
747
|
-
readonly name: "getUsdValueOfVaultToken";
|
|
748
|
-
readonly inputs: readonly [{
|
|
749
|
-
readonly name: "_vaultToken";
|
|
750
|
-
readonly type: "address";
|
|
751
|
-
}, {
|
|
752
|
-
readonly name: "_vaultTokenAmount";
|
|
753
|
-
readonly type: "uint256";
|
|
754
|
-
}, {
|
|
755
|
-
readonly name: "_appraiser";
|
|
756
|
-
readonly type: "address";
|
|
757
|
-
}];
|
|
758
|
-
readonly outputs: readonly [{
|
|
759
|
-
readonly name: "";
|
|
760
|
-
readonly type: "uint256";
|
|
761
|
-
}];
|
|
762
|
-
}, {
|
|
763
|
-
readonly stateMutability: "view";
|
|
764
|
-
readonly type: "function";
|
|
765
|
-
readonly name: "getUnderlyingData";
|
|
766
|
-
readonly inputs: readonly [{
|
|
767
|
-
readonly name: "_vaultToken";
|
|
768
|
-
readonly type: "address";
|
|
769
|
-
}, {
|
|
770
|
-
readonly name: "_vaultTokenAmount";
|
|
771
|
-
readonly type: "uint256";
|
|
772
|
-
}];
|
|
773
|
-
readonly outputs: readonly [{
|
|
774
|
-
readonly name: "";
|
|
775
|
-
readonly type: "address";
|
|
776
|
-
}, {
|
|
777
|
-
readonly name: "";
|
|
778
|
-
readonly type: "uint256";
|
|
779
|
-
}, {
|
|
780
|
-
readonly name: "";
|
|
781
|
-
readonly type: "uint256";
|
|
782
|
-
}];
|
|
783
|
-
}, {
|
|
784
|
-
readonly stateMutability: "view";
|
|
785
|
-
readonly type: "function";
|
|
786
|
-
readonly name: "getUnderlyingData";
|
|
1157
|
+
readonly name: "getAccessForLego";
|
|
787
1158
|
readonly inputs: readonly [{
|
|
788
|
-
readonly name: "
|
|
1159
|
+
readonly name: "_user";
|
|
789
1160
|
readonly type: "address";
|
|
790
1161
|
}, {
|
|
791
|
-
readonly name: "
|
|
1162
|
+
readonly name: "_action";
|
|
792
1163
|
readonly type: "uint256";
|
|
793
|
-
}, {
|
|
794
|
-
readonly name: "_appraiser";
|
|
795
|
-
readonly type: "address";
|
|
796
1164
|
}];
|
|
797
1165
|
readonly outputs: readonly [{
|
|
798
1166
|
readonly name: "";
|
|
799
1167
|
readonly type: "address";
|
|
800
1168
|
}, {
|
|
801
1169
|
readonly name: "";
|
|
802
|
-
readonly type: "
|
|
803
|
-
}, {
|
|
804
|
-
readonly name: "";
|
|
805
|
-
readonly type: "uint256";
|
|
806
|
-
}];
|
|
807
|
-
}, {
|
|
808
|
-
readonly stateMutability: "view";
|
|
809
|
-
readonly type: "function";
|
|
810
|
-
readonly name: "totalAssets";
|
|
811
|
-
readonly inputs: readonly [{
|
|
812
|
-
readonly name: "_vaultToken";
|
|
813
|
-
readonly type: "address";
|
|
814
|
-
}];
|
|
815
|
-
readonly outputs: readonly [{
|
|
816
|
-
readonly name: "";
|
|
817
|
-
readonly type: "uint256";
|
|
818
|
-
}];
|
|
819
|
-
}, {
|
|
820
|
-
readonly stateMutability: "view";
|
|
821
|
-
readonly type: "function";
|
|
822
|
-
readonly name: "totalBorrows";
|
|
823
|
-
readonly inputs: readonly [{
|
|
824
|
-
readonly name: "_vaultToken";
|
|
825
|
-
readonly type: "address";
|
|
826
|
-
}];
|
|
827
|
-
readonly outputs: readonly [{
|
|
828
|
-
readonly name: "";
|
|
829
|
-
readonly type: "uint256";
|
|
830
|
-
}];
|
|
831
|
-
}, {
|
|
832
|
-
readonly stateMutability: "view";
|
|
833
|
-
readonly type: "function";
|
|
834
|
-
readonly name: "getPricePerShare";
|
|
835
|
-
readonly inputs: readonly [{
|
|
836
|
-
readonly name: "_asset";
|
|
837
|
-
readonly type: "address";
|
|
1170
|
+
readonly type: "string";
|
|
838
1171
|
}, {
|
|
839
|
-
readonly name: "_decimals";
|
|
840
|
-
readonly type: "uint256";
|
|
841
|
-
}];
|
|
842
|
-
readonly outputs: readonly [{
|
|
843
1172
|
readonly name: "";
|
|
844
1173
|
readonly type: "uint256";
|
|
845
1174
|
}];
|
|
846
|
-
}, {
|
|
847
|
-
readonly stateMutability: "nonpayable";
|
|
848
|
-
readonly type: "function";
|
|
849
|
-
readonly name: "addAssetOpportunity";
|
|
850
|
-
readonly inputs: readonly [{
|
|
851
|
-
readonly name: "_asset";
|
|
852
|
-
readonly type: "address";
|
|
853
|
-
}, {
|
|
854
|
-
readonly name: "_vaultAddr";
|
|
855
|
-
readonly type: "address";
|
|
856
|
-
}];
|
|
857
|
-
readonly outputs: readonly [];
|
|
858
|
-
}, {
|
|
859
|
-
readonly stateMutability: "nonpayable";
|
|
860
|
-
readonly type: "function";
|
|
861
|
-
readonly name: "removeAssetOpportunity";
|
|
862
|
-
readonly inputs: readonly [{
|
|
863
|
-
readonly name: "_asset";
|
|
864
|
-
readonly type: "address";
|
|
865
|
-
}, {
|
|
866
|
-
readonly name: "_vaultAddr";
|
|
867
|
-
readonly type: "address";
|
|
868
|
-
}];
|
|
869
|
-
readonly outputs: readonly [];
|
|
870
1175
|
}, {
|
|
871
1176
|
readonly stateMutability: "nonpayable";
|
|
872
1177
|
readonly type: "function";
|
|
@@ -1817,42 +2122,6 @@ export declare const abi: readonly [{
|
|
|
1817
2122
|
readonly name: "";
|
|
1818
2123
|
readonly type: "uint256";
|
|
1819
2124
|
}];
|
|
1820
|
-
}, {
|
|
1821
|
-
readonly stateMutability: "view";
|
|
1822
|
-
readonly type: "function";
|
|
1823
|
-
readonly name: "getAccessForLego";
|
|
1824
|
-
readonly inputs: readonly [{
|
|
1825
|
-
readonly name: "_user";
|
|
1826
|
-
readonly type: "address";
|
|
1827
|
-
}, {
|
|
1828
|
-
readonly name: "_action";
|
|
1829
|
-
readonly type: "uint256";
|
|
1830
|
-
}];
|
|
1831
|
-
readonly outputs: readonly [{
|
|
1832
|
-
readonly name: "";
|
|
1833
|
-
readonly type: "address";
|
|
1834
|
-
}, {
|
|
1835
|
-
readonly name: "";
|
|
1836
|
-
readonly type: "string";
|
|
1837
|
-
}, {
|
|
1838
|
-
readonly name: "";
|
|
1839
|
-
readonly type: "uint256";
|
|
1840
|
-
}];
|
|
1841
|
-
}, {
|
|
1842
|
-
readonly stateMutability: "view";
|
|
1843
|
-
readonly type: "function";
|
|
1844
|
-
readonly name: "getPrice";
|
|
1845
|
-
readonly inputs: readonly [{
|
|
1846
|
-
readonly name: "_asset";
|
|
1847
|
-
readonly type: "address";
|
|
1848
|
-
}, {
|
|
1849
|
-
readonly name: "_decimals";
|
|
1850
|
-
readonly type: "uint256";
|
|
1851
|
-
}];
|
|
1852
|
-
readonly outputs: readonly [{
|
|
1853
|
-
readonly name: "";
|
|
1854
|
-
readonly type: "uint256";
|
|
1855
|
-
}];
|
|
1856
2125
|
}, {
|
|
1857
2126
|
readonly stateMutability: "view";
|
|
1858
2127
|
readonly type: "function";
|
|
@@ -1901,6 +2170,7 @@ export type Contract = {
|
|
|
1901
2170
|
appraiser: `0x${string}`;
|
|
1902
2171
|
walletBackpack: `0x${string}`;
|
|
1903
2172
|
billing: `0x${string}`;
|
|
2173
|
+
vaultRegistry: `0x${string}`;
|
|
1904
2174
|
}>;
|
|
1905
2175
|
getUndyHq: () => Promise<`0x${string}`>;
|
|
1906
2176
|
isLegoAsset: (asset: `0x${string}`) => Promise<boolean>;
|
|
@@ -1908,33 +2178,69 @@ export type Contract = {
|
|
|
1908
2178
|
getAssets: () => Promise<`0x${string}`[]>;
|
|
1909
2179
|
isAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<boolean>;
|
|
1910
2180
|
getNumLegoAssets: () => Promise<bigint>;
|
|
1911
|
-
|
|
2181
|
+
getWeightedPricePerShare: (vaultToken: `0x${string}`) => Promise<bigint>;
|
|
2182
|
+
getLatestSnapshot: (vaultToken: `0x${string}`, pricePerShare: bigint) => Promise<{
|
|
2183
|
+
totalSupply: bigint;
|
|
2184
|
+
pricePerShare: bigint;
|
|
2185
|
+
lastUpdate: bigint;
|
|
2186
|
+
}>;
|
|
2187
|
+
isValidPriceConfig: (config: {
|
|
2188
|
+
minSnapshotDelay: bigint;
|
|
2189
|
+
maxNumSnapshots: bigint;
|
|
2190
|
+
maxUpsideDeviation: bigint;
|
|
2191
|
+
staleTime: bigint;
|
|
2192
|
+
}) => Promise<boolean>;
|
|
2193
|
+
vaultToAsset: (arg0: `0x${string}`) => Promise<{
|
|
2194
|
+
underlyingAsset: `0x${string}`;
|
|
2195
|
+
decimals: bigint;
|
|
2196
|
+
lastAveragePricePerShare: bigint;
|
|
2197
|
+
}>;
|
|
1912
2198
|
assetOpportunities: (arg0: `0x${string}`, arg1: bigint) => Promise<`0x${string}`>;
|
|
1913
2199
|
indexOfAssetOpportunity: (arg0: `0x${string}`, arg1: `0x${string}`) => Promise<bigint>;
|
|
1914
2200
|
numAssetOpportunities: (arg0: `0x${string}`) => Promise<bigint>;
|
|
1915
|
-
vaultToAsset: (arg0: `0x${string}`) => Promise<`0x${string}`>;
|
|
1916
2201
|
assets: (arg0: bigint) => Promise<`0x${string}`>;
|
|
1917
2202
|
indexOfAsset: (arg0: `0x${string}`) => Promise<bigint>;
|
|
1918
2203
|
numAssets: () => Promise<bigint>;
|
|
2204
|
+
snapShotData: (arg0: `0x${string}`) => Promise<{
|
|
2205
|
+
lastSnapShot: {
|
|
2206
|
+
totalSupply: bigint;
|
|
2207
|
+
pricePerShare: bigint;
|
|
2208
|
+
lastUpdate: bigint;
|
|
2209
|
+
};
|
|
2210
|
+
nextIndex: bigint;
|
|
2211
|
+
}>;
|
|
2212
|
+
snapShots: (arg0: `0x${string}`, arg1: bigint) => Promise<{
|
|
2213
|
+
totalSupply: bigint;
|
|
2214
|
+
pricePerShare: bigint;
|
|
2215
|
+
lastUpdate: bigint;
|
|
2216
|
+
}>;
|
|
2217
|
+
snapShotPriceConfig: () => Promise<{
|
|
2218
|
+
minSnapshotDelay: bigint;
|
|
2219
|
+
maxNumSnapshots: bigint;
|
|
2220
|
+
maxUpsideDeviation: bigint;
|
|
2221
|
+
staleTime: bigint;
|
|
2222
|
+
}>;
|
|
2223
|
+
isPaused: () => Promise<boolean>;
|
|
1919
2224
|
hasCapability: (action: bigint) => Promise<boolean>;
|
|
1920
2225
|
getRegistries: () => Promise<`0x${string}`[]>;
|
|
1921
2226
|
isYieldLego: () => Promise<boolean>;
|
|
1922
2227
|
isDexLego: () => Promise<boolean>;
|
|
1923
|
-
isEligibleVaultForTrialFunds: (vaultToken: `0x${string}`, underlyingAsset: `0x${string}`) => Promise<boolean>;
|
|
1924
|
-
isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
|
|
1925
|
-
isRebasing: () => Promise<boolean>;
|
|
1926
|
-
hasClaimableRewards: (user: `0x${string}`) => Promise<boolean>;
|
|
1927
|
-
isVaultToken: (vaultToken: `0x${string}`) => Promise<boolean>;
|
|
1928
2228
|
getUnderlyingAsset: (vaultToken: `0x${string}`) => Promise<`0x${string}`>;
|
|
2229
|
+
getUnderlyingBalances: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<[bigint, bigint]>;
|
|
1929
2230
|
getUnderlyingAmount: (vaultToken: `0x${string}`, vaultTokenAmount: bigint) => Promise<bigint>;
|
|
1930
|
-
|
|
1931
|
-
getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
|
|
2231
|
+
getUnderlyingAmountSafe: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<bigint>;
|
|
1932
2232
|
getUnderlyingData: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<[`0x${string}`, bigint, bigint]>;
|
|
2233
|
+
getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
|
|
2234
|
+
isRebasing: () => Promise<boolean>;
|
|
2235
|
+
getPricePerShare: (vaultToken: `0x${string}`, decimals?: bigint) => Promise<bigint>;
|
|
2236
|
+
getVaultTokenAmount: (asset: `0x${string}`, assetAmount: bigint, vaultToken: `0x${string}`) => Promise<bigint>;
|
|
2237
|
+
isEligibleVaultForTrialFunds: (vaultToken: `0x${string}`, underlyingAsset: `0x${string}`) => Promise<boolean>;
|
|
2238
|
+
isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
|
|
1933
2239
|
totalAssets: (vaultToken: `0x${string}`) => Promise<bigint>;
|
|
1934
2240
|
totalBorrows: (vaultToken: `0x${string}`) => Promise<bigint>;
|
|
1935
|
-
|
|
2241
|
+
canRegisterVaultToken: (asset: `0x${string}`, vaultToken: `0x${string}`) => Promise<boolean>;
|
|
2242
|
+
hasClaimableRewards: (user: `0x${string}`) => Promise<boolean>;
|
|
1936
2243
|
getAccessForLego: (user: `0x${string}`, action: bigint) => Promise<[`0x${string}`, string, bigint]>;
|
|
1937
|
-
getPrice: (asset: `0x${string}`, decimals: bigint) => Promise<bigint>;
|
|
1938
2244
|
MOONWELL_COMPTROLLER: () => Promise<`0x${string}`>;
|
|
1939
2245
|
WETH: () => Promise<`0x${string}`>;
|
|
1940
2246
|
};
|
|
@@ -1942,6 +2248,19 @@ export type Contract = {
|
|
|
1942
2248
|
pause: (shouldPause: boolean) => Promise<void>;
|
|
1943
2249
|
recoverFunds: (recipient: `0x${string}`, asset: `0x${string}`) => Promise<void>;
|
|
1944
2250
|
recoverFundsMany: (recipient: `0x${string}`, assets: `0x${string}`[]) => Promise<void>;
|
|
2251
|
+
setSnapShotPriceConfig: (config: {
|
|
2252
|
+
minSnapshotDelay: bigint;
|
|
2253
|
+
maxNumSnapshots: bigint;
|
|
2254
|
+
maxUpsideDeviation: bigint;
|
|
2255
|
+
staleTime: bigint;
|
|
2256
|
+
}) => Promise<void>;
|
|
2257
|
+
registerVaultTokenLocally: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<{
|
|
2258
|
+
underlyingAsset: `0x${string}`;
|
|
2259
|
+
decimals: bigint;
|
|
2260
|
+
lastAveragePricePerShare: bigint;
|
|
2261
|
+
}>;
|
|
2262
|
+
deregisterVaultTokenLocally: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
|
|
2263
|
+
addPriceSnapshot: (vaultToken: `0x${string}`) => Promise<boolean>;
|
|
1945
2264
|
depositForYield: (asset: `0x${string}`, amount: bigint, vaultAddr: `0x${string}`, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
|
|
1946
2265
|
ledger: `0x${string}`;
|
|
1947
2266
|
missionControl: `0x${string}`;
|
|
@@ -1960,8 +2279,6 @@ export type Contract = {
|
|
|
1960
2279
|
legoBook: `0x${string}`;
|
|
1961
2280
|
appraiser: `0x${string}`;
|
|
1962
2281
|
}) => Promise<[bigint, bigint]>;
|
|
1963
|
-
addAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
|
|
1964
|
-
removeAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
|
|
1965
2282
|
swapTokens: (amountIn: bigint, minAmountOut: bigint, tokenPath: `0x${string}`[], poolPath: `0x${string}`[], recipient: `0x${string}`, miniAddys?: {
|
|
1966
2283
|
ledger: `0x${string}`;
|
|
1967
2284
|
missionControl: `0x${string}`;
|
|
@@ -2034,8 +2351,10 @@ export type Contract = {
|
|
|
2034
2351
|
MoonwellWithdrawal: (sender: `0x${string}`, asset: `0x${string}`, vaultToken: `0x${string}`, assetAmountReceived: bigint, usdValue: bigint, vaultTokenAmountBurned: bigint, recipient: `0x${string}`) => Promise<void>;
|
|
2035
2352
|
LegoPauseModified: (isPaused: boolean) => Promise<void>;
|
|
2036
2353
|
LegoFundsRecovered: (asset: `0x${string}`, recipient: `0x${string}`, balance: bigint) => Promise<void>;
|
|
2354
|
+
SnapShotPriceConfigSet: (minSnapshotDelay: bigint, maxNumSnapshots: bigint, maxUpsideDeviation: bigint, staleTime: bigint) => Promise<void>;
|
|
2037
2355
|
AssetOpportunityAdded: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
|
|
2038
2356
|
AssetOpportunityRemoved: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
|
|
2357
|
+
PricePerShareSnapShotAdded: (vaultToken: `0x${string}`, totalSupply: bigint, pricePerShare: bigint) => Promise<void>;
|
|
2039
2358
|
};
|
|
2040
2359
|
};
|
|
2041
2360
|
export type Calls = keyof Contract['calls'];
|
|
@@ -2083,43 +2402,52 @@ export type SDK = {
|
|
|
2083
2402
|
getAssets: (...args: ExtractArgs<Contract['calls']['getAssets']>) => Promise<CallReturn<'getAssets'>>;
|
|
2084
2403
|
isAssetOpportunity: (...args: ExtractArgs<Contract['calls']['isAssetOpportunity']>) => Promise<CallReturn<'isAssetOpportunity'>>;
|
|
2085
2404
|
getNumLegoAssets: (...args: ExtractArgs<Contract['calls']['getNumLegoAssets']>) => Promise<CallReturn<'getNumLegoAssets'>>;
|
|
2086
|
-
|
|
2405
|
+
getWeightedPricePerShare: (...args: ExtractArgs<Contract['calls']['getWeightedPricePerShare']>) => Promise<CallReturn<'getWeightedPricePerShare'>>;
|
|
2406
|
+
getLatestSnapshot: (...args: ExtractArgs<Contract['calls']['getLatestSnapshot']>) => Promise<CallReturn<'getLatestSnapshot'>>;
|
|
2407
|
+
isValidPriceConfig: (...args: ExtractArgs<Contract['calls']['isValidPriceConfig']>) => Promise<CallReturn<'isValidPriceConfig'>>;
|
|
2408
|
+
vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
|
|
2087
2409
|
assetOpportunities: (...args: ExtractArgs<Contract['calls']['assetOpportunities']>) => Promise<CallReturn<'assetOpportunities'>>;
|
|
2088
2410
|
indexOfAssetOpportunity: (...args: ExtractArgs<Contract['calls']['indexOfAssetOpportunity']>) => Promise<CallReturn<'indexOfAssetOpportunity'>>;
|
|
2089
2411
|
numAssetOpportunities: (...args: ExtractArgs<Contract['calls']['numAssetOpportunities']>) => Promise<CallReturn<'numAssetOpportunities'>>;
|
|
2090
|
-
vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
|
|
2091
2412
|
assets: (...args: ExtractArgs<Contract['calls']['assets']>) => Promise<CallReturn<'assets'>>;
|
|
2092
2413
|
indexOfAsset: (...args: ExtractArgs<Contract['calls']['indexOfAsset']>) => Promise<CallReturn<'indexOfAsset'>>;
|
|
2093
2414
|
numAssets: (...args: ExtractArgs<Contract['calls']['numAssets']>) => Promise<CallReturn<'numAssets'>>;
|
|
2415
|
+
snapShotData: (...args: ExtractArgs<Contract['calls']['snapShotData']>) => Promise<CallReturn<'snapShotData'>>;
|
|
2416
|
+
snapShots: (...args: ExtractArgs<Contract['calls']['snapShots']>) => Promise<CallReturn<'snapShots'>>;
|
|
2417
|
+
snapShotPriceConfig: (...args: ExtractArgs<Contract['calls']['snapShotPriceConfig']>) => Promise<CallReturn<'snapShotPriceConfig'>>;
|
|
2418
|
+
isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
|
|
2094
2419
|
hasCapability: (...args: ExtractArgs<Contract['calls']['hasCapability']>) => Promise<CallReturn<'hasCapability'>>;
|
|
2095
2420
|
getRegistries: (...args: ExtractArgs<Contract['calls']['getRegistries']>) => Promise<CallReturn<'getRegistries'>>;
|
|
2096
2421
|
isYieldLego: (...args: ExtractArgs<Contract['calls']['isYieldLego']>) => Promise<CallReturn<'isYieldLego'>>;
|
|
2097
2422
|
isDexLego: (...args: ExtractArgs<Contract['calls']['isDexLego']>) => Promise<CallReturn<'isDexLego'>>;
|
|
2098
|
-
isEligibleVaultForTrialFunds: (...args: ExtractArgs<Contract['calls']['isEligibleVaultForTrialFunds']>) => Promise<CallReturn<'isEligibleVaultForTrialFunds'>>;
|
|
2099
|
-
isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
|
|
2100
|
-
isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
|
|
2101
|
-
hasClaimableRewards: (...args: ExtractArgs<Contract['calls']['hasClaimableRewards']>) => Promise<CallReturn<'hasClaimableRewards'>>;
|
|
2102
|
-
isVaultToken: (...args: ExtractArgs<Contract['calls']['isVaultToken']>) => Promise<CallReturn<'isVaultToken'>>;
|
|
2103
2423
|
getUnderlyingAsset: (...args: ExtractArgs<Contract['calls']['getUnderlyingAsset']>) => Promise<CallReturn<'getUnderlyingAsset'>>;
|
|
2424
|
+
getUnderlyingBalances: (...args: ExtractArgs<Contract['calls']['getUnderlyingBalances']>) => Promise<CallReturn<'getUnderlyingBalances'>>;
|
|
2104
2425
|
getUnderlyingAmount: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmount']>) => Promise<CallReturn<'getUnderlyingAmount'>>;
|
|
2105
|
-
|
|
2106
|
-
getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
|
|
2426
|
+
getUnderlyingAmountSafe: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmountSafe']>) => Promise<CallReturn<'getUnderlyingAmountSafe'>>;
|
|
2107
2427
|
getUnderlyingData: (...args: ExtractArgs<Contract['calls']['getUnderlyingData']>) => Promise<CallReturn<'getUnderlyingData'>>;
|
|
2428
|
+
getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
|
|
2429
|
+
isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
|
|
2430
|
+
getPricePerShare: (...args: ExtractArgs<Contract['calls']['getPricePerShare']>) => Promise<CallReturn<'getPricePerShare'>>;
|
|
2431
|
+
getVaultTokenAmount: (...args: ExtractArgs<Contract['calls']['getVaultTokenAmount']>) => Promise<CallReturn<'getVaultTokenAmount'>>;
|
|
2432
|
+
isEligibleVaultForTrialFunds: (...args: ExtractArgs<Contract['calls']['isEligibleVaultForTrialFunds']>) => Promise<CallReturn<'isEligibleVaultForTrialFunds'>>;
|
|
2433
|
+
isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
|
|
2108
2434
|
totalAssets: (...args: ExtractArgs<Contract['calls']['totalAssets']>) => Promise<CallReturn<'totalAssets'>>;
|
|
2109
2435
|
totalBorrows: (...args: ExtractArgs<Contract['calls']['totalBorrows']>) => Promise<CallReturn<'totalBorrows'>>;
|
|
2110
|
-
|
|
2436
|
+
canRegisterVaultToken: (...args: ExtractArgs<Contract['calls']['canRegisterVaultToken']>) => Promise<CallReturn<'canRegisterVaultToken'>>;
|
|
2437
|
+
hasClaimableRewards: (...args: ExtractArgs<Contract['calls']['hasClaimableRewards']>) => Promise<CallReturn<'hasClaimableRewards'>>;
|
|
2111
2438
|
getAccessForLego: (...args: ExtractArgs<Contract['calls']['getAccessForLego']>) => Promise<CallReturn<'getAccessForLego'>>;
|
|
2112
|
-
getPrice: (...args: ExtractArgs<Contract['calls']['getPrice']>) => Promise<CallReturn<'getPrice'>>;
|
|
2113
2439
|
MOONWELL_COMPTROLLER: (...args: ExtractArgs<Contract['calls']['MOONWELL_COMPTROLLER']>) => Promise<CallReturn<'MOONWELL_COMPTROLLER'>>;
|
|
2114
2440
|
WETH: (...args: ExtractArgs<Contract['calls']['WETH']>) => Promise<CallReturn<'WETH'>>;
|
|
2115
2441
|
pause: (...args: ExtractArgs<Contract['mutations']['pause']>) => Promise<Address>;
|
|
2116
2442
|
recoverFunds: (...args: ExtractArgs<Contract['mutations']['recoverFunds']>) => Promise<Address>;
|
|
2117
2443
|
recoverFundsMany: (...args: ExtractArgs<Contract['mutations']['recoverFundsMany']>) => Promise<Address>;
|
|
2444
|
+
setSnapShotPriceConfig: (...args: ExtractArgs<Contract['mutations']['setSnapShotPriceConfig']>) => Promise<Address>;
|
|
2445
|
+
registerVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['registerVaultTokenLocally']>) => Promise<Address>;
|
|
2446
|
+
deregisterVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['deregisterVaultTokenLocally']>) => Promise<Address>;
|
|
2447
|
+
addPriceSnapshot: (...args: ExtractArgs<Contract['mutations']['addPriceSnapshot']>) => Promise<Address>;
|
|
2118
2448
|
depositForYield: (...args: ExtractArgs<Contract['mutations']['depositForYield']>) => Promise<Address>;
|
|
2119
2449
|
withdrawFromYield: (...args: ExtractArgs<Contract['mutations']['withdrawFromYield']>) => Promise<Address>;
|
|
2120
2450
|
claimRewards: (...args: ExtractArgs<Contract['mutations']['claimRewards']>) => Promise<Address>;
|
|
2121
|
-
addAssetOpportunity: (...args: ExtractArgs<Contract['mutations']['addAssetOpportunity']>) => Promise<Address>;
|
|
2122
|
-
removeAssetOpportunity: (...args: ExtractArgs<Contract['mutations']['removeAssetOpportunity']>) => Promise<Address>;
|
|
2123
2451
|
swapTokens: (...args: ExtractArgs<Contract['mutations']['swapTokens']>) => Promise<Address>;
|
|
2124
2452
|
mintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['mintOrRedeemAsset']>) => Promise<Address>;
|
|
2125
2453
|
confirmMintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['confirmMintOrRedeemAsset']>) => Promise<Address>;
|