@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
|
@@ -102,6 +102,27 @@ export declare const abi: readonly [{
|
|
|
102
102
|
}];
|
|
103
103
|
readonly anonymous: false;
|
|
104
104
|
readonly type: "event";
|
|
105
|
+
}, {
|
|
106
|
+
readonly name: "SnapShotPriceConfigSet";
|
|
107
|
+
readonly inputs: readonly [{
|
|
108
|
+
readonly name: "minSnapshotDelay";
|
|
109
|
+
readonly type: "uint256";
|
|
110
|
+
readonly indexed: false;
|
|
111
|
+
}, {
|
|
112
|
+
readonly name: "maxNumSnapshots";
|
|
113
|
+
readonly type: "uint256";
|
|
114
|
+
readonly indexed: false;
|
|
115
|
+
}, {
|
|
116
|
+
readonly name: "maxUpsideDeviation";
|
|
117
|
+
readonly type: "uint256";
|
|
118
|
+
readonly indexed: false;
|
|
119
|
+
}, {
|
|
120
|
+
readonly name: "staleTime";
|
|
121
|
+
readonly type: "uint256";
|
|
122
|
+
readonly indexed: false;
|
|
123
|
+
}];
|
|
124
|
+
readonly anonymous: false;
|
|
125
|
+
readonly type: "event";
|
|
105
126
|
}, {
|
|
106
127
|
readonly name: "AssetOpportunityAdded";
|
|
107
128
|
readonly inputs: readonly [{
|
|
@@ -169,6 +190,9 @@ export declare const abi: readonly [{
|
|
|
169
190
|
}, {
|
|
170
191
|
readonly name: "billing";
|
|
171
192
|
readonly type: "address";
|
|
193
|
+
}, {
|
|
194
|
+
readonly name: "vaultRegistry";
|
|
195
|
+
readonly type: "address";
|
|
172
196
|
}];
|
|
173
197
|
}];
|
|
174
198
|
}, {
|
|
@@ -273,12 +297,109 @@ export declare const abi: readonly [{
|
|
|
273
297
|
}, {
|
|
274
298
|
readonly stateMutability: "view";
|
|
275
299
|
readonly type: "function";
|
|
276
|
-
readonly name: "
|
|
277
|
-
readonly inputs: readonly [
|
|
300
|
+
readonly name: "getWeightedPricePerShare";
|
|
301
|
+
readonly inputs: readonly [{
|
|
302
|
+
readonly name: "_vaultToken";
|
|
303
|
+
readonly type: "address";
|
|
304
|
+
}];
|
|
305
|
+
readonly outputs: readonly [{
|
|
306
|
+
readonly name: "";
|
|
307
|
+
readonly type: "uint256";
|
|
308
|
+
}];
|
|
309
|
+
}, {
|
|
310
|
+
readonly stateMutability: "view";
|
|
311
|
+
readonly type: "function";
|
|
312
|
+
readonly name: "getLatestSnapshot";
|
|
313
|
+
readonly inputs: readonly [{
|
|
314
|
+
readonly name: "_vaultToken";
|
|
315
|
+
readonly type: "address";
|
|
316
|
+
}, {
|
|
317
|
+
readonly name: "_pricePerShare";
|
|
318
|
+
readonly type: "uint256";
|
|
319
|
+
}];
|
|
320
|
+
readonly outputs: readonly [{
|
|
321
|
+
readonly name: "";
|
|
322
|
+
readonly type: "tuple";
|
|
323
|
+
readonly components: readonly [{
|
|
324
|
+
readonly name: "totalSupply";
|
|
325
|
+
readonly type: "uint256";
|
|
326
|
+
}, {
|
|
327
|
+
readonly name: "pricePerShare";
|
|
328
|
+
readonly type: "uint256";
|
|
329
|
+
}, {
|
|
330
|
+
readonly name: "lastUpdate";
|
|
331
|
+
readonly type: "uint256";
|
|
332
|
+
}];
|
|
333
|
+
}];
|
|
334
|
+
}, {
|
|
335
|
+
readonly stateMutability: "nonpayable";
|
|
336
|
+
readonly type: "function";
|
|
337
|
+
readonly name: "setSnapShotPriceConfig";
|
|
338
|
+
readonly inputs: readonly [{
|
|
339
|
+
readonly name: "_config";
|
|
340
|
+
readonly type: "tuple";
|
|
341
|
+
readonly components: readonly [{
|
|
342
|
+
readonly name: "minSnapshotDelay";
|
|
343
|
+
readonly type: "uint256";
|
|
344
|
+
}, {
|
|
345
|
+
readonly name: "maxNumSnapshots";
|
|
346
|
+
readonly type: "uint256";
|
|
347
|
+
}, {
|
|
348
|
+
readonly name: "maxUpsideDeviation";
|
|
349
|
+
readonly type: "uint256";
|
|
350
|
+
}, {
|
|
351
|
+
readonly name: "staleTime";
|
|
352
|
+
readonly type: "uint256";
|
|
353
|
+
}];
|
|
354
|
+
}];
|
|
355
|
+
readonly outputs: readonly [];
|
|
356
|
+
}, {
|
|
357
|
+
readonly stateMutability: "view";
|
|
358
|
+
readonly type: "function";
|
|
359
|
+
readonly name: "isValidPriceConfig";
|
|
360
|
+
readonly inputs: readonly [{
|
|
361
|
+
readonly name: "_config";
|
|
362
|
+
readonly type: "tuple";
|
|
363
|
+
readonly components: readonly [{
|
|
364
|
+
readonly name: "minSnapshotDelay";
|
|
365
|
+
readonly type: "uint256";
|
|
366
|
+
}, {
|
|
367
|
+
readonly name: "maxNumSnapshots";
|
|
368
|
+
readonly type: "uint256";
|
|
369
|
+
}, {
|
|
370
|
+
readonly name: "maxUpsideDeviation";
|
|
371
|
+
readonly type: "uint256";
|
|
372
|
+
}, {
|
|
373
|
+
readonly name: "staleTime";
|
|
374
|
+
readonly type: "uint256";
|
|
375
|
+
}];
|
|
376
|
+
}];
|
|
278
377
|
readonly outputs: readonly [{
|
|
279
378
|
readonly name: "";
|
|
280
379
|
readonly type: "bool";
|
|
281
380
|
}];
|
|
381
|
+
}, {
|
|
382
|
+
readonly stateMutability: "view";
|
|
383
|
+
readonly type: "function";
|
|
384
|
+
readonly name: "vaultToAsset";
|
|
385
|
+
readonly inputs: readonly [{
|
|
386
|
+
readonly name: "arg0";
|
|
387
|
+
readonly type: "address";
|
|
388
|
+
}];
|
|
389
|
+
readonly outputs: readonly [{
|
|
390
|
+
readonly name: "";
|
|
391
|
+
readonly type: "tuple";
|
|
392
|
+
readonly components: readonly [{
|
|
393
|
+
readonly name: "underlyingAsset";
|
|
394
|
+
readonly type: "address";
|
|
395
|
+
}, {
|
|
396
|
+
readonly name: "decimals";
|
|
397
|
+
readonly type: "uint256";
|
|
398
|
+
}, {
|
|
399
|
+
readonly name: "lastAveragePricePerShare";
|
|
400
|
+
readonly type: "uint256";
|
|
401
|
+
}];
|
|
402
|
+
}];
|
|
282
403
|
}, {
|
|
283
404
|
readonly stateMutability: "view";
|
|
284
405
|
readonly type: "function";
|
|
@@ -324,10 +445,10 @@ export declare const abi: readonly [{
|
|
|
324
445
|
}, {
|
|
325
446
|
readonly stateMutability: "view";
|
|
326
447
|
readonly type: "function";
|
|
327
|
-
readonly name: "
|
|
448
|
+
readonly name: "assets";
|
|
328
449
|
readonly inputs: readonly [{
|
|
329
450
|
readonly name: "arg0";
|
|
330
|
-
readonly type: "
|
|
451
|
+
readonly type: "uint256";
|
|
331
452
|
}];
|
|
332
453
|
readonly outputs: readonly [{
|
|
333
454
|
readonly name: "";
|
|
@@ -336,35 +457,108 @@ export declare const abi: readonly [{
|
|
|
336
457
|
}, {
|
|
337
458
|
readonly stateMutability: "view";
|
|
338
459
|
readonly type: "function";
|
|
339
|
-
readonly name: "
|
|
460
|
+
readonly name: "indexOfAsset";
|
|
340
461
|
readonly inputs: readonly [{
|
|
341
462
|
readonly name: "arg0";
|
|
463
|
+
readonly type: "address";
|
|
464
|
+
}];
|
|
465
|
+
readonly outputs: readonly [{
|
|
466
|
+
readonly name: "";
|
|
342
467
|
readonly type: "uint256";
|
|
343
468
|
}];
|
|
469
|
+
}, {
|
|
470
|
+
readonly stateMutability: "view";
|
|
471
|
+
readonly type: "function";
|
|
472
|
+
readonly name: "numAssets";
|
|
473
|
+
readonly inputs: readonly [];
|
|
344
474
|
readonly outputs: readonly [{
|
|
345
475
|
readonly name: "";
|
|
346
|
-
readonly type: "
|
|
476
|
+
readonly type: "uint256";
|
|
347
477
|
}];
|
|
348
478
|
}, {
|
|
349
479
|
readonly stateMutability: "view";
|
|
350
480
|
readonly type: "function";
|
|
351
|
-
readonly name: "
|
|
481
|
+
readonly name: "snapShotData";
|
|
352
482
|
readonly inputs: readonly [{
|
|
353
483
|
readonly name: "arg0";
|
|
354
484
|
readonly type: "address";
|
|
355
485
|
}];
|
|
356
486
|
readonly outputs: readonly [{
|
|
357
487
|
readonly name: "";
|
|
488
|
+
readonly type: "tuple";
|
|
489
|
+
readonly components: readonly [{
|
|
490
|
+
readonly name: "lastSnapShot";
|
|
491
|
+
readonly type: "tuple";
|
|
492
|
+
readonly components: readonly [{
|
|
493
|
+
readonly name: "totalSupply";
|
|
494
|
+
readonly type: "uint256";
|
|
495
|
+
}, {
|
|
496
|
+
readonly name: "pricePerShare";
|
|
497
|
+
readonly type: "uint256";
|
|
498
|
+
}, {
|
|
499
|
+
readonly name: "lastUpdate";
|
|
500
|
+
readonly type: "uint256";
|
|
501
|
+
}];
|
|
502
|
+
}, {
|
|
503
|
+
readonly name: "nextIndex";
|
|
504
|
+
readonly type: "uint256";
|
|
505
|
+
}];
|
|
506
|
+
}];
|
|
507
|
+
}, {
|
|
508
|
+
readonly stateMutability: "view";
|
|
509
|
+
readonly type: "function";
|
|
510
|
+
readonly name: "snapShots";
|
|
511
|
+
readonly inputs: readonly [{
|
|
512
|
+
readonly name: "arg0";
|
|
513
|
+
readonly type: "address";
|
|
514
|
+
}, {
|
|
515
|
+
readonly name: "arg1";
|
|
358
516
|
readonly type: "uint256";
|
|
359
517
|
}];
|
|
518
|
+
readonly outputs: readonly [{
|
|
519
|
+
readonly name: "";
|
|
520
|
+
readonly type: "tuple";
|
|
521
|
+
readonly components: readonly [{
|
|
522
|
+
readonly name: "totalSupply";
|
|
523
|
+
readonly type: "uint256";
|
|
524
|
+
}, {
|
|
525
|
+
readonly name: "pricePerShare";
|
|
526
|
+
readonly type: "uint256";
|
|
527
|
+
}, {
|
|
528
|
+
readonly name: "lastUpdate";
|
|
529
|
+
readonly type: "uint256";
|
|
530
|
+
}];
|
|
531
|
+
}];
|
|
360
532
|
}, {
|
|
361
533
|
readonly stateMutability: "view";
|
|
362
534
|
readonly type: "function";
|
|
363
|
-
readonly name: "
|
|
535
|
+
readonly name: "snapShotPriceConfig";
|
|
364
536
|
readonly inputs: readonly [];
|
|
365
537
|
readonly outputs: readonly [{
|
|
366
538
|
readonly name: "";
|
|
367
|
-
readonly type: "
|
|
539
|
+
readonly type: "tuple";
|
|
540
|
+
readonly components: readonly [{
|
|
541
|
+
readonly name: "minSnapshotDelay";
|
|
542
|
+
readonly type: "uint256";
|
|
543
|
+
}, {
|
|
544
|
+
readonly name: "maxNumSnapshots";
|
|
545
|
+
readonly type: "uint256";
|
|
546
|
+
}, {
|
|
547
|
+
readonly name: "maxUpsideDeviation";
|
|
548
|
+
readonly type: "uint256";
|
|
549
|
+
}, {
|
|
550
|
+
readonly name: "staleTime";
|
|
551
|
+
readonly type: "uint256";
|
|
552
|
+
}];
|
|
553
|
+
}];
|
|
554
|
+
}, {
|
|
555
|
+
readonly stateMutability: "view";
|
|
556
|
+
readonly type: "function";
|
|
557
|
+
readonly name: "isPaused";
|
|
558
|
+
readonly inputs: readonly [];
|
|
559
|
+
readonly outputs: readonly [{
|
|
560
|
+
readonly name: "";
|
|
561
|
+
readonly type: "bool";
|
|
368
562
|
}];
|
|
369
563
|
}, {
|
|
370
564
|
readonly stateMutability: "view";
|
|
@@ -405,6 +599,198 @@ export declare const abi: readonly [{
|
|
|
405
599
|
readonly name: "";
|
|
406
600
|
readonly type: "bool";
|
|
407
601
|
}];
|
|
602
|
+
}, {
|
|
603
|
+
readonly stateMutability: "view";
|
|
604
|
+
readonly type: "function";
|
|
605
|
+
readonly name: "getUnderlyingAsset";
|
|
606
|
+
readonly inputs: readonly [{
|
|
607
|
+
readonly name: "_vaultToken";
|
|
608
|
+
readonly type: "address";
|
|
609
|
+
}];
|
|
610
|
+
readonly outputs: readonly [{
|
|
611
|
+
readonly name: "";
|
|
612
|
+
readonly type: "address";
|
|
613
|
+
}];
|
|
614
|
+
}, {
|
|
615
|
+
readonly stateMutability: "view";
|
|
616
|
+
readonly type: "function";
|
|
617
|
+
readonly name: "getUnderlyingBalances";
|
|
618
|
+
readonly inputs: readonly [{
|
|
619
|
+
readonly name: "_vaultToken";
|
|
620
|
+
readonly type: "address";
|
|
621
|
+
}, {
|
|
622
|
+
readonly name: "_vaultTokenBalance";
|
|
623
|
+
readonly type: "uint256";
|
|
624
|
+
}];
|
|
625
|
+
readonly outputs: readonly [{
|
|
626
|
+
readonly name: "";
|
|
627
|
+
readonly type: "uint256";
|
|
628
|
+
}, {
|
|
629
|
+
readonly name: "";
|
|
630
|
+
readonly type: "uint256";
|
|
631
|
+
}];
|
|
632
|
+
}, {
|
|
633
|
+
readonly stateMutability: "view";
|
|
634
|
+
readonly type: "function";
|
|
635
|
+
readonly name: "getUnderlyingAmount";
|
|
636
|
+
readonly inputs: readonly [{
|
|
637
|
+
readonly name: "_vaultToken";
|
|
638
|
+
readonly type: "address";
|
|
639
|
+
}, {
|
|
640
|
+
readonly name: "_vaultTokenAmount";
|
|
641
|
+
readonly type: "uint256";
|
|
642
|
+
}];
|
|
643
|
+
readonly outputs: readonly [{
|
|
644
|
+
readonly name: "";
|
|
645
|
+
readonly type: "uint256";
|
|
646
|
+
}];
|
|
647
|
+
}, {
|
|
648
|
+
readonly stateMutability: "view";
|
|
649
|
+
readonly type: "function";
|
|
650
|
+
readonly name: "getUnderlyingAmountSafe";
|
|
651
|
+
readonly inputs: readonly [{
|
|
652
|
+
readonly name: "_vaultToken";
|
|
653
|
+
readonly type: "address";
|
|
654
|
+
}, {
|
|
655
|
+
readonly name: "_vaultTokenBalance";
|
|
656
|
+
readonly type: "uint256";
|
|
657
|
+
}];
|
|
658
|
+
readonly outputs: readonly [{
|
|
659
|
+
readonly name: "";
|
|
660
|
+
readonly type: "uint256";
|
|
661
|
+
}];
|
|
662
|
+
}, {
|
|
663
|
+
readonly stateMutability: "view";
|
|
664
|
+
readonly type: "function";
|
|
665
|
+
readonly name: "getUnderlyingData";
|
|
666
|
+
readonly inputs: readonly [{
|
|
667
|
+
readonly name: "_vaultToken";
|
|
668
|
+
readonly type: "address";
|
|
669
|
+
}, {
|
|
670
|
+
readonly name: "_vaultTokenAmount";
|
|
671
|
+
readonly type: "uint256";
|
|
672
|
+
}];
|
|
673
|
+
readonly outputs: readonly [{
|
|
674
|
+
readonly name: "";
|
|
675
|
+
readonly type: "address";
|
|
676
|
+
}, {
|
|
677
|
+
readonly name: "";
|
|
678
|
+
readonly type: "uint256";
|
|
679
|
+
}, {
|
|
680
|
+
readonly name: "";
|
|
681
|
+
readonly type: "uint256";
|
|
682
|
+
}];
|
|
683
|
+
}, {
|
|
684
|
+
readonly stateMutability: "view";
|
|
685
|
+
readonly type: "function";
|
|
686
|
+
readonly name: "getUnderlyingData";
|
|
687
|
+
readonly inputs: readonly [{
|
|
688
|
+
readonly name: "_vaultToken";
|
|
689
|
+
readonly type: "address";
|
|
690
|
+
}, {
|
|
691
|
+
readonly name: "_vaultTokenAmount";
|
|
692
|
+
readonly type: "uint256";
|
|
693
|
+
}, {
|
|
694
|
+
readonly name: "_appraiser";
|
|
695
|
+
readonly type: "address";
|
|
696
|
+
}];
|
|
697
|
+
readonly outputs: readonly [{
|
|
698
|
+
readonly name: "";
|
|
699
|
+
readonly type: "address";
|
|
700
|
+
}, {
|
|
701
|
+
readonly name: "";
|
|
702
|
+
readonly type: "uint256";
|
|
703
|
+
}, {
|
|
704
|
+
readonly name: "";
|
|
705
|
+
readonly type: "uint256";
|
|
706
|
+
}];
|
|
707
|
+
}, {
|
|
708
|
+
readonly stateMutability: "view";
|
|
709
|
+
readonly type: "function";
|
|
710
|
+
readonly name: "getUsdValueOfVaultToken";
|
|
711
|
+
readonly inputs: readonly [{
|
|
712
|
+
readonly name: "_vaultToken";
|
|
713
|
+
readonly type: "address";
|
|
714
|
+
}, {
|
|
715
|
+
readonly name: "_vaultTokenAmount";
|
|
716
|
+
readonly type: "uint256";
|
|
717
|
+
}];
|
|
718
|
+
readonly outputs: readonly [{
|
|
719
|
+
readonly name: "";
|
|
720
|
+
readonly type: "uint256";
|
|
721
|
+
}];
|
|
722
|
+
}, {
|
|
723
|
+
readonly stateMutability: "view";
|
|
724
|
+
readonly type: "function";
|
|
725
|
+
readonly name: "getUsdValueOfVaultToken";
|
|
726
|
+
readonly inputs: readonly [{
|
|
727
|
+
readonly name: "_vaultToken";
|
|
728
|
+
readonly type: "address";
|
|
729
|
+
}, {
|
|
730
|
+
readonly name: "_vaultTokenAmount";
|
|
731
|
+
readonly type: "uint256";
|
|
732
|
+
}, {
|
|
733
|
+
readonly name: "_appraiser";
|
|
734
|
+
readonly type: "address";
|
|
735
|
+
}];
|
|
736
|
+
readonly outputs: readonly [{
|
|
737
|
+
readonly name: "";
|
|
738
|
+
readonly type: "uint256";
|
|
739
|
+
}];
|
|
740
|
+
}, {
|
|
741
|
+
readonly stateMutability: "view";
|
|
742
|
+
readonly type: "function";
|
|
743
|
+
readonly name: "isRebasing";
|
|
744
|
+
readonly inputs: readonly [];
|
|
745
|
+
readonly outputs: readonly [{
|
|
746
|
+
readonly name: "";
|
|
747
|
+
readonly type: "bool";
|
|
748
|
+
}];
|
|
749
|
+
}, {
|
|
750
|
+
readonly stateMutability: "view";
|
|
751
|
+
readonly type: "function";
|
|
752
|
+
readonly name: "getPricePerShare";
|
|
753
|
+
readonly inputs: readonly [{
|
|
754
|
+
readonly name: "_vaultToken";
|
|
755
|
+
readonly type: "address";
|
|
756
|
+
}];
|
|
757
|
+
readonly outputs: readonly [{
|
|
758
|
+
readonly name: "";
|
|
759
|
+
readonly type: "uint256";
|
|
760
|
+
}];
|
|
761
|
+
}, {
|
|
762
|
+
readonly stateMutability: "view";
|
|
763
|
+
readonly type: "function";
|
|
764
|
+
readonly name: "getPricePerShare";
|
|
765
|
+
readonly inputs: readonly [{
|
|
766
|
+
readonly name: "_vaultToken";
|
|
767
|
+
readonly type: "address";
|
|
768
|
+
}, {
|
|
769
|
+
readonly name: "_decimals";
|
|
770
|
+
readonly type: "uint256";
|
|
771
|
+
}];
|
|
772
|
+
readonly outputs: readonly [{
|
|
773
|
+
readonly name: "";
|
|
774
|
+
readonly type: "uint256";
|
|
775
|
+
}];
|
|
776
|
+
}, {
|
|
777
|
+
readonly stateMutability: "view";
|
|
778
|
+
readonly type: "function";
|
|
779
|
+
readonly name: "getVaultTokenAmount";
|
|
780
|
+
readonly inputs: readonly [{
|
|
781
|
+
readonly name: "_asset";
|
|
782
|
+
readonly type: "address";
|
|
783
|
+
}, {
|
|
784
|
+
readonly name: "_assetAmount";
|
|
785
|
+
readonly type: "uint256";
|
|
786
|
+
}, {
|
|
787
|
+
readonly name: "_vaultToken";
|
|
788
|
+
readonly type: "address";
|
|
789
|
+
}];
|
|
790
|
+
readonly outputs: readonly [{
|
|
791
|
+
readonly name: "";
|
|
792
|
+
readonly type: "uint256";
|
|
793
|
+
}];
|
|
408
794
|
}, {
|
|
409
795
|
readonly stateMutability: "view";
|
|
410
796
|
readonly type: "function";
|
|
@@ -433,14 +819,81 @@ export declare const abi: readonly [{
|
|
|
433
819
|
readonly type: "bool";
|
|
434
820
|
}];
|
|
435
821
|
}, {
|
|
436
|
-
readonly stateMutability: "view";
|
|
822
|
+
readonly stateMutability: "view";
|
|
823
|
+
readonly type: "function";
|
|
824
|
+
readonly name: "totalAssets";
|
|
825
|
+
readonly inputs: readonly [{
|
|
826
|
+
readonly name: "_vaultToken";
|
|
827
|
+
readonly type: "address";
|
|
828
|
+
}];
|
|
829
|
+
readonly outputs: readonly [{
|
|
830
|
+
readonly name: "";
|
|
831
|
+
readonly type: "uint256";
|
|
832
|
+
}];
|
|
833
|
+
}, {
|
|
834
|
+
readonly stateMutability: "view";
|
|
835
|
+
readonly type: "function";
|
|
836
|
+
readonly name: "totalBorrows";
|
|
837
|
+
readonly inputs: readonly [{
|
|
838
|
+
readonly name: "_vaultToken";
|
|
839
|
+
readonly type: "address";
|
|
840
|
+
}];
|
|
841
|
+
readonly outputs: readonly [{
|
|
842
|
+
readonly name: "";
|
|
843
|
+
readonly type: "uint256";
|
|
844
|
+
}];
|
|
845
|
+
}, {
|
|
846
|
+
readonly stateMutability: "view";
|
|
847
|
+
readonly type: "function";
|
|
848
|
+
readonly name: "canRegisterVaultToken";
|
|
849
|
+
readonly inputs: readonly [{
|
|
850
|
+
readonly name: "_asset";
|
|
851
|
+
readonly type: "address";
|
|
852
|
+
}, {
|
|
853
|
+
readonly name: "_vaultToken";
|
|
854
|
+
readonly type: "address";
|
|
855
|
+
}];
|
|
856
|
+
readonly outputs: readonly [{
|
|
857
|
+
readonly name: "";
|
|
858
|
+
readonly type: "bool";
|
|
859
|
+
}];
|
|
860
|
+
}, {
|
|
861
|
+
readonly stateMutability: "nonpayable";
|
|
862
|
+
readonly type: "function";
|
|
863
|
+
readonly name: "registerVaultTokenLocally";
|
|
864
|
+
readonly inputs: readonly [{
|
|
865
|
+
readonly name: "_asset";
|
|
866
|
+
readonly type: "address";
|
|
867
|
+
}, {
|
|
868
|
+
readonly name: "_vaultAddr";
|
|
869
|
+
readonly type: "address";
|
|
870
|
+
}];
|
|
871
|
+
readonly outputs: readonly [{
|
|
872
|
+
readonly name: "";
|
|
873
|
+
readonly type: "tuple";
|
|
874
|
+
readonly components: readonly [{
|
|
875
|
+
readonly name: "underlyingAsset";
|
|
876
|
+
readonly type: "address";
|
|
877
|
+
}, {
|
|
878
|
+
readonly name: "decimals";
|
|
879
|
+
readonly type: "uint256";
|
|
880
|
+
}, {
|
|
881
|
+
readonly name: "lastAveragePricePerShare";
|
|
882
|
+
readonly type: "uint256";
|
|
883
|
+
}];
|
|
884
|
+
}];
|
|
885
|
+
}, {
|
|
886
|
+
readonly stateMutability: "nonpayable";
|
|
437
887
|
readonly type: "function";
|
|
438
|
-
readonly name: "
|
|
439
|
-
readonly inputs: readonly [
|
|
440
|
-
|
|
441
|
-
readonly
|
|
442
|
-
|
|
888
|
+
readonly name: "deregisterVaultTokenLocally";
|
|
889
|
+
readonly inputs: readonly [{
|
|
890
|
+
readonly name: "_asset";
|
|
891
|
+
readonly type: "address";
|
|
892
|
+
}, {
|
|
893
|
+
readonly name: "_vaultAddr";
|
|
894
|
+
readonly type: "address";
|
|
443
895
|
}];
|
|
896
|
+
readonly outputs: readonly [];
|
|
444
897
|
}, {
|
|
445
898
|
readonly stateMutability: "nonpayable";
|
|
446
899
|
readonly type: "function";
|
|
@@ -688,9 +1141,9 @@ export declare const abi: readonly [{
|
|
|
688
1141
|
readonly type: "bool";
|
|
689
1142
|
}];
|
|
690
1143
|
}, {
|
|
691
|
-
readonly stateMutability: "
|
|
1144
|
+
readonly stateMutability: "nonpayable";
|
|
692
1145
|
readonly type: "function";
|
|
693
|
-
readonly name: "
|
|
1146
|
+
readonly name: "addPriceSnapshot";
|
|
694
1147
|
readonly inputs: readonly [{
|
|
695
1148
|
readonly name: "_vaultToken";
|
|
696
1149
|
readonly type: "address";
|
|
@@ -702,189 +1155,24 @@ export declare const abi: readonly [{
|
|
|
702
1155
|
}, {
|
|
703
1156
|
readonly stateMutability: "view";
|
|
704
1157
|
readonly type: "function";
|
|
705
|
-
readonly name: "
|
|
706
|
-
readonly inputs: readonly [{
|
|
707
|
-
readonly name: "_vaultToken";
|
|
708
|
-
readonly type: "address";
|
|
709
|
-
}];
|
|
710
|
-
readonly outputs: readonly [{
|
|
711
|
-
readonly name: "";
|
|
712
|
-
readonly type: "address";
|
|
713
|
-
}];
|
|
714
|
-
}, {
|
|
715
|
-
readonly stateMutability: "view";
|
|
716
|
-
readonly type: "function";
|
|
717
|
-
readonly name: "getUnderlyingAmount";
|
|
718
|
-
readonly inputs: readonly [{
|
|
719
|
-
readonly name: "_vaultToken";
|
|
720
|
-
readonly type: "address";
|
|
721
|
-
}, {
|
|
722
|
-
readonly name: "_vaultTokenAmount";
|
|
723
|
-
readonly type: "uint256";
|
|
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: "getVaultTokenAmount";
|
|
733
|
-
readonly inputs: readonly [{
|
|
734
|
-
readonly name: "_asset";
|
|
735
|
-
readonly type: "address";
|
|
736
|
-
}, {
|
|
737
|
-
readonly name: "_assetAmount";
|
|
738
|
-
readonly type: "uint256";
|
|
739
|
-
}, {
|
|
740
|
-
readonly name: "_vaultToken";
|
|
741
|
-
readonly type: "address";
|
|
742
|
-
}];
|
|
743
|
-
readonly outputs: readonly [{
|
|
744
|
-
readonly name: "";
|
|
745
|
-
readonly type: "uint256";
|
|
746
|
-
}];
|
|
747
|
-
}, {
|
|
748
|
-
readonly stateMutability: "view";
|
|
749
|
-
readonly type: "function";
|
|
750
|
-
readonly name: "getUsdValueOfVaultToken";
|
|
751
|
-
readonly inputs: readonly [{
|
|
752
|
-
readonly name: "_vaultToken";
|
|
753
|
-
readonly type: "address";
|
|
754
|
-
}, {
|
|
755
|
-
readonly name: "_vaultTokenAmount";
|
|
756
|
-
readonly type: "uint256";
|
|
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: "getUsdValueOfVaultToken";
|
|
766
|
-
readonly inputs: readonly [{
|
|
767
|
-
readonly name: "_vaultToken";
|
|
768
|
-
readonly type: "address";
|
|
769
|
-
}, {
|
|
770
|
-
readonly name: "_vaultTokenAmount";
|
|
771
|
-
readonly type: "uint256";
|
|
772
|
-
}, {
|
|
773
|
-
readonly name: "_appraiser";
|
|
774
|
-
readonly type: "address";
|
|
775
|
-
}];
|
|
776
|
-
readonly outputs: readonly [{
|
|
777
|
-
readonly name: "";
|
|
778
|
-
readonly type: "uint256";
|
|
779
|
-
}];
|
|
780
|
-
}, {
|
|
781
|
-
readonly stateMutability: "view";
|
|
782
|
-
readonly type: "function";
|
|
783
|
-
readonly name: "getUnderlyingData";
|
|
784
|
-
readonly inputs: readonly [{
|
|
785
|
-
readonly name: "_vaultToken";
|
|
786
|
-
readonly type: "address";
|
|
787
|
-
}, {
|
|
788
|
-
readonly name: "_vaultTokenAmount";
|
|
789
|
-
readonly type: "uint256";
|
|
790
|
-
}];
|
|
791
|
-
readonly outputs: readonly [{
|
|
792
|
-
readonly name: "";
|
|
793
|
-
readonly type: "address";
|
|
794
|
-
}, {
|
|
795
|
-
readonly name: "";
|
|
796
|
-
readonly type: "uint256";
|
|
797
|
-
}, {
|
|
798
|
-
readonly name: "";
|
|
799
|
-
readonly type: "uint256";
|
|
800
|
-
}];
|
|
801
|
-
}, {
|
|
802
|
-
readonly stateMutability: "view";
|
|
803
|
-
readonly type: "function";
|
|
804
|
-
readonly name: "getUnderlyingData";
|
|
1158
|
+
readonly name: "getAccessForLego";
|
|
805
1159
|
readonly inputs: readonly [{
|
|
806
|
-
readonly name: "
|
|
1160
|
+
readonly name: "_user";
|
|
807
1161
|
readonly type: "address";
|
|
808
1162
|
}, {
|
|
809
|
-
readonly name: "
|
|
1163
|
+
readonly name: "_action";
|
|
810
1164
|
readonly type: "uint256";
|
|
811
|
-
}, {
|
|
812
|
-
readonly name: "_appraiser";
|
|
813
|
-
readonly type: "address";
|
|
814
1165
|
}];
|
|
815
1166
|
readonly outputs: readonly [{
|
|
816
1167
|
readonly name: "";
|
|
817
1168
|
readonly type: "address";
|
|
818
1169
|
}, {
|
|
819
1170
|
readonly name: "";
|
|
820
|
-
readonly type: "
|
|
821
|
-
}, {
|
|
822
|
-
readonly name: "";
|
|
823
|
-
readonly type: "uint256";
|
|
824
|
-
}];
|
|
825
|
-
}, {
|
|
826
|
-
readonly stateMutability: "view";
|
|
827
|
-
readonly type: "function";
|
|
828
|
-
readonly name: "totalAssets";
|
|
829
|
-
readonly inputs: readonly [{
|
|
830
|
-
readonly name: "_vaultToken";
|
|
831
|
-
readonly type: "address";
|
|
832
|
-
}];
|
|
833
|
-
readonly outputs: readonly [{
|
|
834
|
-
readonly name: "";
|
|
835
|
-
readonly type: "uint256";
|
|
836
|
-
}];
|
|
837
|
-
}, {
|
|
838
|
-
readonly stateMutability: "view";
|
|
839
|
-
readonly type: "function";
|
|
840
|
-
readonly name: "totalBorrows";
|
|
841
|
-
readonly inputs: readonly [{
|
|
842
|
-
readonly name: "_vaultToken";
|
|
843
|
-
readonly type: "address";
|
|
844
|
-
}];
|
|
845
|
-
readonly outputs: readonly [{
|
|
846
|
-
readonly name: "";
|
|
847
|
-
readonly type: "uint256";
|
|
848
|
-
}];
|
|
849
|
-
}, {
|
|
850
|
-
readonly stateMutability: "view";
|
|
851
|
-
readonly type: "function";
|
|
852
|
-
readonly name: "getPricePerShare";
|
|
853
|
-
readonly inputs: readonly [{
|
|
854
|
-
readonly name: "_asset";
|
|
855
|
-
readonly type: "address";
|
|
1171
|
+
readonly type: "string";
|
|
856
1172
|
}, {
|
|
857
|
-
readonly name: "_decimals";
|
|
858
|
-
readonly type: "uint256";
|
|
859
|
-
}];
|
|
860
|
-
readonly outputs: readonly [{
|
|
861
1173
|
readonly name: "";
|
|
862
1174
|
readonly type: "uint256";
|
|
863
1175
|
}];
|
|
864
|
-
}, {
|
|
865
|
-
readonly stateMutability: "nonpayable";
|
|
866
|
-
readonly type: "function";
|
|
867
|
-
readonly name: "addAssetOpportunity";
|
|
868
|
-
readonly inputs: readonly [{
|
|
869
|
-
readonly name: "_asset";
|
|
870
|
-
readonly type: "address";
|
|
871
|
-
}, {
|
|
872
|
-
readonly name: "_vaultAddr";
|
|
873
|
-
readonly type: "address";
|
|
874
|
-
}];
|
|
875
|
-
readonly outputs: readonly [];
|
|
876
|
-
}, {
|
|
877
|
-
readonly stateMutability: "nonpayable";
|
|
878
|
-
readonly type: "function";
|
|
879
|
-
readonly name: "removeAssetOpportunity";
|
|
880
|
-
readonly inputs: readonly [{
|
|
881
|
-
readonly name: "_asset";
|
|
882
|
-
readonly type: "address";
|
|
883
|
-
}, {
|
|
884
|
-
readonly name: "_vaultAddr";
|
|
885
|
-
readonly type: "address";
|
|
886
|
-
}];
|
|
887
|
-
readonly outputs: readonly [];
|
|
888
1176
|
}, {
|
|
889
1177
|
readonly stateMutability: "nonpayable";
|
|
890
1178
|
readonly type: "function";
|
|
@@ -1835,42 +2123,6 @@ export declare const abi: readonly [{
|
|
|
1835
2123
|
readonly name: "";
|
|
1836
2124
|
readonly type: "uint256";
|
|
1837
2125
|
}];
|
|
1838
|
-
}, {
|
|
1839
|
-
readonly stateMutability: "view";
|
|
1840
|
-
readonly type: "function";
|
|
1841
|
-
readonly name: "getAccessForLego";
|
|
1842
|
-
readonly inputs: readonly [{
|
|
1843
|
-
readonly name: "_user";
|
|
1844
|
-
readonly type: "address";
|
|
1845
|
-
}, {
|
|
1846
|
-
readonly name: "_action";
|
|
1847
|
-
readonly type: "uint256";
|
|
1848
|
-
}];
|
|
1849
|
-
readonly outputs: readonly [{
|
|
1850
|
-
readonly name: "";
|
|
1851
|
-
readonly type: "address";
|
|
1852
|
-
}, {
|
|
1853
|
-
readonly name: "";
|
|
1854
|
-
readonly type: "string";
|
|
1855
|
-
}, {
|
|
1856
|
-
readonly name: "";
|
|
1857
|
-
readonly type: "uint256";
|
|
1858
|
-
}];
|
|
1859
|
-
}, {
|
|
1860
|
-
readonly stateMutability: "view";
|
|
1861
|
-
readonly type: "function";
|
|
1862
|
-
readonly name: "getPrice";
|
|
1863
|
-
readonly inputs: readonly [{
|
|
1864
|
-
readonly name: "_asset";
|
|
1865
|
-
readonly type: "address";
|
|
1866
|
-
}, {
|
|
1867
|
-
readonly name: "_decimals";
|
|
1868
|
-
readonly type: "uint256";
|
|
1869
|
-
}];
|
|
1870
|
-
readonly outputs: readonly [{
|
|
1871
|
-
readonly name: "";
|
|
1872
|
-
readonly type: "uint256";
|
|
1873
|
-
}];
|
|
1874
2126
|
}, {
|
|
1875
2127
|
readonly stateMutability: "view";
|
|
1876
2128
|
readonly type: "function";
|
|
@@ -1919,6 +2171,7 @@ export type Contract = {
|
|
|
1919
2171
|
appraiser: `0x${string}`;
|
|
1920
2172
|
walletBackpack: `0x${string}`;
|
|
1921
2173
|
billing: `0x${string}`;
|
|
2174
|
+
vaultRegistry: `0x${string}`;
|
|
1922
2175
|
}>;
|
|
1923
2176
|
getUndyHq: () => Promise<`0x${string}`>;
|
|
1924
2177
|
isLegoAsset: (asset: `0x${string}`) => Promise<boolean>;
|
|
@@ -1926,32 +2179,68 @@ export type Contract = {
|
|
|
1926
2179
|
getAssets: () => Promise<`0x${string}`[]>;
|
|
1927
2180
|
isAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<boolean>;
|
|
1928
2181
|
getNumLegoAssets: () => Promise<bigint>;
|
|
1929
|
-
|
|
2182
|
+
getWeightedPricePerShare: (vaultToken: `0x${string}`) => Promise<bigint>;
|
|
2183
|
+
getLatestSnapshot: (vaultToken: `0x${string}`, pricePerShare: bigint) => Promise<{
|
|
2184
|
+
totalSupply: bigint;
|
|
2185
|
+
pricePerShare: bigint;
|
|
2186
|
+
lastUpdate: bigint;
|
|
2187
|
+
}>;
|
|
2188
|
+
isValidPriceConfig: (config: {
|
|
2189
|
+
minSnapshotDelay: bigint;
|
|
2190
|
+
maxNumSnapshots: bigint;
|
|
2191
|
+
maxUpsideDeviation: bigint;
|
|
2192
|
+
staleTime: bigint;
|
|
2193
|
+
}) => Promise<boolean>;
|
|
2194
|
+
vaultToAsset: (arg0: `0x${string}`) => Promise<{
|
|
2195
|
+
underlyingAsset: `0x${string}`;
|
|
2196
|
+
decimals: bigint;
|
|
2197
|
+
lastAveragePricePerShare: bigint;
|
|
2198
|
+
}>;
|
|
1930
2199
|
assetOpportunities: (arg0: `0x${string}`, arg1: bigint) => Promise<`0x${string}`>;
|
|
1931
2200
|
indexOfAssetOpportunity: (arg0: `0x${string}`, arg1: `0x${string}`) => Promise<bigint>;
|
|
1932
2201
|
numAssetOpportunities: (arg0: `0x${string}`) => Promise<bigint>;
|
|
1933
|
-
vaultToAsset: (arg0: `0x${string}`) => Promise<`0x${string}`>;
|
|
1934
2202
|
assets: (arg0: bigint) => Promise<`0x${string}`>;
|
|
1935
2203
|
indexOfAsset: (arg0: `0x${string}`) => Promise<bigint>;
|
|
1936
2204
|
numAssets: () => Promise<bigint>;
|
|
2205
|
+
snapShotData: (arg0: `0x${string}`) => Promise<{
|
|
2206
|
+
lastSnapShot: {
|
|
2207
|
+
totalSupply: bigint;
|
|
2208
|
+
pricePerShare: bigint;
|
|
2209
|
+
lastUpdate: bigint;
|
|
2210
|
+
};
|
|
2211
|
+
nextIndex: bigint;
|
|
2212
|
+
}>;
|
|
2213
|
+
snapShots: (arg0: `0x${string}`, arg1: bigint) => Promise<{
|
|
2214
|
+
totalSupply: bigint;
|
|
2215
|
+
pricePerShare: bigint;
|
|
2216
|
+
lastUpdate: bigint;
|
|
2217
|
+
}>;
|
|
2218
|
+
snapShotPriceConfig: () => Promise<{
|
|
2219
|
+
minSnapshotDelay: bigint;
|
|
2220
|
+
maxNumSnapshots: bigint;
|
|
2221
|
+
maxUpsideDeviation: bigint;
|
|
2222
|
+
staleTime: bigint;
|
|
2223
|
+
}>;
|
|
2224
|
+
isPaused: () => Promise<boolean>;
|
|
1937
2225
|
hasCapability: (action: bigint) => Promise<boolean>;
|
|
1938
2226
|
getRegistries: () => Promise<`0x${string}`[]>;
|
|
1939
2227
|
isYieldLego: () => Promise<boolean>;
|
|
1940
2228
|
isDexLego: () => Promise<boolean>;
|
|
1941
|
-
isEligibleVaultForTrialFunds: (vaultToken: `0x${string}`, underlyingAsset: `0x${string}`) => Promise<boolean>;
|
|
1942
|
-
isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
|
|
1943
|
-
isRebasing: () => Promise<boolean>;
|
|
1944
|
-
isVaultToken: (vaultToken: `0x${string}`) => Promise<boolean>;
|
|
1945
2229
|
getUnderlyingAsset: (vaultToken: `0x${string}`) => Promise<`0x${string}`>;
|
|
2230
|
+
getUnderlyingBalances: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<[bigint, bigint]>;
|
|
1946
2231
|
getUnderlyingAmount: (vaultToken: `0x${string}`, vaultTokenAmount: bigint) => Promise<bigint>;
|
|
1947
|
-
|
|
1948
|
-
getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
|
|
2232
|
+
getUnderlyingAmountSafe: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<bigint>;
|
|
1949
2233
|
getUnderlyingData: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<[`0x${string}`, bigint, bigint]>;
|
|
2234
|
+
getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
|
|
2235
|
+
isRebasing: () => Promise<boolean>;
|
|
2236
|
+
getPricePerShare: (vaultToken: `0x${string}`, decimals?: bigint) => Promise<bigint>;
|
|
2237
|
+
getVaultTokenAmount: (asset: `0x${string}`, assetAmount: bigint, vaultToken: `0x${string}`) => Promise<bigint>;
|
|
2238
|
+
isEligibleVaultForTrialFunds: (vaultToken: `0x${string}`, underlyingAsset: `0x${string}`) => Promise<boolean>;
|
|
2239
|
+
isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
|
|
1950
2240
|
totalAssets: (vaultToken: `0x${string}`) => Promise<bigint>;
|
|
1951
2241
|
totalBorrows: (vaultToken: `0x${string}`) => Promise<bigint>;
|
|
1952
|
-
|
|
2242
|
+
canRegisterVaultToken: (asset: `0x${string}`, vaultToken: `0x${string}`) => Promise<boolean>;
|
|
1953
2243
|
getAccessForLego: (user: `0x${string}`, action: bigint) => Promise<[`0x${string}`, string, bigint]>;
|
|
1954
|
-
getPrice: (asset: `0x${string}`, decimals: bigint) => Promise<bigint>;
|
|
1955
2244
|
compoundRewards: () => Promise<`0x${string}`>;
|
|
1956
2245
|
COMPOUND_V3_CONFIGURATOR: () => Promise<`0x${string}`>;
|
|
1957
2246
|
};
|
|
@@ -1959,6 +2248,18 @@ export type Contract = {
|
|
|
1959
2248
|
pause: (shouldPause: boolean) => Promise<void>;
|
|
1960
2249
|
recoverFunds: (recipient: `0x${string}`, asset: `0x${string}`) => Promise<void>;
|
|
1961
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>;
|
|
1962
2263
|
depositForYield: (asset: `0x${string}`, amount: bigint, vaultAddr: `0x${string}`, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
|
|
1963
2264
|
ledger: `0x${string}`;
|
|
1964
2265
|
missionControl: `0x${string}`;
|
|
@@ -1979,8 +2280,7 @@ export type Contract = {
|
|
|
1979
2280
|
}) => Promise<[bigint, bigint]>;
|
|
1980
2281
|
hasClaimableRewards: (user: `0x${string}`) => Promise<boolean>;
|
|
1981
2282
|
setCompRewardsAddr: (addr: `0x${string}`) => Promise<boolean>;
|
|
1982
|
-
|
|
1983
|
-
removeAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
|
|
2283
|
+
addPriceSnapshot: (vaultToken: `0x${string}`) => Promise<boolean>;
|
|
1984
2284
|
swapTokens: (amountIn: bigint, minAmountOut: bigint, tokenPath: `0x${string}`[], poolPath: `0x${string}`[], recipient: `0x${string}`, miniAddys?: {
|
|
1985
2285
|
ledger: `0x${string}`;
|
|
1986
2286
|
missionControl: `0x${string}`;
|
|
@@ -2054,6 +2354,7 @@ export type Contract = {
|
|
|
2054
2354
|
CompoundV3RewardsAddrSet: (addr: `0x${string}`) => Promise<void>;
|
|
2055
2355
|
LegoPauseModified: (isPaused: boolean) => Promise<void>;
|
|
2056
2356
|
LegoFundsRecovered: (asset: `0x${string}`, recipient: `0x${string}`, balance: bigint) => Promise<void>;
|
|
2357
|
+
SnapShotPriceConfigSet: (minSnapshotDelay: bigint, maxNumSnapshots: bigint, maxUpsideDeviation: bigint, staleTime: bigint) => Promise<void>;
|
|
2057
2358
|
AssetOpportunityAdded: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
|
|
2058
2359
|
AssetOpportunityRemoved: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
|
|
2059
2360
|
};
|
|
@@ -2103,44 +2404,53 @@ export type SDK = {
|
|
|
2103
2404
|
getAssets: (...args: ExtractArgs<Contract['calls']['getAssets']>) => Promise<CallReturn<'getAssets'>>;
|
|
2104
2405
|
isAssetOpportunity: (...args: ExtractArgs<Contract['calls']['isAssetOpportunity']>) => Promise<CallReturn<'isAssetOpportunity'>>;
|
|
2105
2406
|
getNumLegoAssets: (...args: ExtractArgs<Contract['calls']['getNumLegoAssets']>) => Promise<CallReturn<'getNumLegoAssets'>>;
|
|
2106
|
-
|
|
2407
|
+
getWeightedPricePerShare: (...args: ExtractArgs<Contract['calls']['getWeightedPricePerShare']>) => Promise<CallReturn<'getWeightedPricePerShare'>>;
|
|
2408
|
+
getLatestSnapshot: (...args: ExtractArgs<Contract['calls']['getLatestSnapshot']>) => Promise<CallReturn<'getLatestSnapshot'>>;
|
|
2409
|
+
isValidPriceConfig: (...args: ExtractArgs<Contract['calls']['isValidPriceConfig']>) => Promise<CallReturn<'isValidPriceConfig'>>;
|
|
2410
|
+
vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
|
|
2107
2411
|
assetOpportunities: (...args: ExtractArgs<Contract['calls']['assetOpportunities']>) => Promise<CallReturn<'assetOpportunities'>>;
|
|
2108
2412
|
indexOfAssetOpportunity: (...args: ExtractArgs<Contract['calls']['indexOfAssetOpportunity']>) => Promise<CallReturn<'indexOfAssetOpportunity'>>;
|
|
2109
2413
|
numAssetOpportunities: (...args: ExtractArgs<Contract['calls']['numAssetOpportunities']>) => Promise<CallReturn<'numAssetOpportunities'>>;
|
|
2110
|
-
vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
|
|
2111
2414
|
assets: (...args: ExtractArgs<Contract['calls']['assets']>) => Promise<CallReturn<'assets'>>;
|
|
2112
2415
|
indexOfAsset: (...args: ExtractArgs<Contract['calls']['indexOfAsset']>) => Promise<CallReturn<'indexOfAsset'>>;
|
|
2113
2416
|
numAssets: (...args: ExtractArgs<Contract['calls']['numAssets']>) => Promise<CallReturn<'numAssets'>>;
|
|
2417
|
+
snapShotData: (...args: ExtractArgs<Contract['calls']['snapShotData']>) => Promise<CallReturn<'snapShotData'>>;
|
|
2418
|
+
snapShots: (...args: ExtractArgs<Contract['calls']['snapShots']>) => Promise<CallReturn<'snapShots'>>;
|
|
2419
|
+
snapShotPriceConfig: (...args: ExtractArgs<Contract['calls']['snapShotPriceConfig']>) => Promise<CallReturn<'snapShotPriceConfig'>>;
|
|
2420
|
+
isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
|
|
2114
2421
|
hasCapability: (...args: ExtractArgs<Contract['calls']['hasCapability']>) => Promise<CallReturn<'hasCapability'>>;
|
|
2115
2422
|
getRegistries: (...args: ExtractArgs<Contract['calls']['getRegistries']>) => Promise<CallReturn<'getRegistries'>>;
|
|
2116
2423
|
isYieldLego: (...args: ExtractArgs<Contract['calls']['isYieldLego']>) => Promise<CallReturn<'isYieldLego'>>;
|
|
2117
2424
|
isDexLego: (...args: ExtractArgs<Contract['calls']['isDexLego']>) => Promise<CallReturn<'isDexLego'>>;
|
|
2118
|
-
isEligibleVaultForTrialFunds: (...args: ExtractArgs<Contract['calls']['isEligibleVaultForTrialFunds']>) => Promise<CallReturn<'isEligibleVaultForTrialFunds'>>;
|
|
2119
|
-
isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
|
|
2120
|
-
isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
|
|
2121
|
-
isVaultToken: (...args: ExtractArgs<Contract['calls']['isVaultToken']>) => Promise<CallReturn<'isVaultToken'>>;
|
|
2122
2425
|
getUnderlyingAsset: (...args: ExtractArgs<Contract['calls']['getUnderlyingAsset']>) => Promise<CallReturn<'getUnderlyingAsset'>>;
|
|
2426
|
+
getUnderlyingBalances: (...args: ExtractArgs<Contract['calls']['getUnderlyingBalances']>) => Promise<CallReturn<'getUnderlyingBalances'>>;
|
|
2123
2427
|
getUnderlyingAmount: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmount']>) => Promise<CallReturn<'getUnderlyingAmount'>>;
|
|
2124
|
-
|
|
2125
|
-
getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
|
|
2428
|
+
getUnderlyingAmountSafe: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmountSafe']>) => Promise<CallReturn<'getUnderlyingAmountSafe'>>;
|
|
2126
2429
|
getUnderlyingData: (...args: ExtractArgs<Contract['calls']['getUnderlyingData']>) => Promise<CallReturn<'getUnderlyingData'>>;
|
|
2430
|
+
getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
|
|
2431
|
+
isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
|
|
2432
|
+
getPricePerShare: (...args: ExtractArgs<Contract['calls']['getPricePerShare']>) => Promise<CallReturn<'getPricePerShare'>>;
|
|
2433
|
+
getVaultTokenAmount: (...args: ExtractArgs<Contract['calls']['getVaultTokenAmount']>) => Promise<CallReturn<'getVaultTokenAmount'>>;
|
|
2434
|
+
isEligibleVaultForTrialFunds: (...args: ExtractArgs<Contract['calls']['isEligibleVaultForTrialFunds']>) => Promise<CallReturn<'isEligibleVaultForTrialFunds'>>;
|
|
2435
|
+
isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
|
|
2127
2436
|
totalAssets: (...args: ExtractArgs<Contract['calls']['totalAssets']>) => Promise<CallReturn<'totalAssets'>>;
|
|
2128
2437
|
totalBorrows: (...args: ExtractArgs<Contract['calls']['totalBorrows']>) => Promise<CallReturn<'totalBorrows'>>;
|
|
2129
|
-
|
|
2438
|
+
canRegisterVaultToken: (...args: ExtractArgs<Contract['calls']['canRegisterVaultToken']>) => Promise<CallReturn<'canRegisterVaultToken'>>;
|
|
2130
2439
|
getAccessForLego: (...args: ExtractArgs<Contract['calls']['getAccessForLego']>) => Promise<CallReturn<'getAccessForLego'>>;
|
|
2131
|
-
getPrice: (...args: ExtractArgs<Contract['calls']['getPrice']>) => Promise<CallReturn<'getPrice'>>;
|
|
2132
2440
|
compoundRewards: (...args: ExtractArgs<Contract['calls']['compoundRewards']>) => Promise<CallReturn<'compoundRewards'>>;
|
|
2133
2441
|
COMPOUND_V3_CONFIGURATOR: (...args: ExtractArgs<Contract['calls']['COMPOUND_V3_CONFIGURATOR']>) => Promise<CallReturn<'COMPOUND_V3_CONFIGURATOR'>>;
|
|
2134
2442
|
pause: (...args: ExtractArgs<Contract['mutations']['pause']>) => Promise<Address>;
|
|
2135
2443
|
recoverFunds: (...args: ExtractArgs<Contract['mutations']['recoverFunds']>) => Promise<Address>;
|
|
2136
2444
|
recoverFundsMany: (...args: ExtractArgs<Contract['mutations']['recoverFundsMany']>) => Promise<Address>;
|
|
2445
|
+
setSnapShotPriceConfig: (...args: ExtractArgs<Contract['mutations']['setSnapShotPriceConfig']>) => Promise<Address>;
|
|
2446
|
+
registerVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['registerVaultTokenLocally']>) => Promise<Address>;
|
|
2447
|
+
deregisterVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['deregisterVaultTokenLocally']>) => Promise<Address>;
|
|
2137
2448
|
depositForYield: (...args: ExtractArgs<Contract['mutations']['depositForYield']>) => Promise<Address>;
|
|
2138
2449
|
withdrawFromYield: (...args: ExtractArgs<Contract['mutations']['withdrawFromYield']>) => Promise<Address>;
|
|
2139
2450
|
claimRewards: (...args: ExtractArgs<Contract['mutations']['claimRewards']>) => Promise<Address>;
|
|
2140
2451
|
hasClaimableRewards: (...args: ExtractArgs<Contract['mutations']['hasClaimableRewards']>) => Promise<Address>;
|
|
2141
2452
|
setCompRewardsAddr: (...args: ExtractArgs<Contract['mutations']['setCompRewardsAddr']>) => Promise<Address>;
|
|
2142
|
-
|
|
2143
|
-
removeAssetOpportunity: (...args: ExtractArgs<Contract['mutations']['removeAssetOpportunity']>) => Promise<Address>;
|
|
2453
|
+
addPriceSnapshot: (...args: ExtractArgs<Contract['mutations']['addPriceSnapshot']>) => Promise<Address>;
|
|
2144
2454
|
swapTokens: (...args: ExtractArgs<Contract['mutations']['swapTokens']>) => Promise<Address>;
|
|
2145
2455
|
mintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['mintOrRedeemAsset']>) => Promise<Address>;
|
|
2146
2456
|
confirmMintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['confirmMintOrRedeemAsset']>) => Promise<Address>;
|