@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 [{
|
|
@@ -160,6 +181,9 @@ export declare const abi: readonly [{
|
|
|
160
181
|
}, {
|
|
161
182
|
readonly name: "billing";
|
|
162
183
|
readonly type: "address";
|
|
184
|
+
}, {
|
|
185
|
+
readonly name: "vaultRegistry";
|
|
186
|
+
readonly type: "address";
|
|
163
187
|
}];
|
|
164
188
|
}];
|
|
165
189
|
}, {
|
|
@@ -264,12 +288,109 @@ export declare const abi: readonly [{
|
|
|
264
288
|
}, {
|
|
265
289
|
readonly stateMutability: "view";
|
|
266
290
|
readonly type: "function";
|
|
267
|
-
readonly name: "
|
|
268
|
-
readonly inputs: readonly [
|
|
291
|
+
readonly name: "getWeightedPricePerShare";
|
|
292
|
+
readonly inputs: readonly [{
|
|
293
|
+
readonly name: "_vaultToken";
|
|
294
|
+
readonly type: "address";
|
|
295
|
+
}];
|
|
296
|
+
readonly outputs: readonly [{
|
|
297
|
+
readonly name: "";
|
|
298
|
+
readonly type: "uint256";
|
|
299
|
+
}];
|
|
300
|
+
}, {
|
|
301
|
+
readonly stateMutability: "view";
|
|
302
|
+
readonly type: "function";
|
|
303
|
+
readonly name: "getLatestSnapshot";
|
|
304
|
+
readonly inputs: readonly [{
|
|
305
|
+
readonly name: "_vaultToken";
|
|
306
|
+
readonly type: "address";
|
|
307
|
+
}, {
|
|
308
|
+
readonly name: "_pricePerShare";
|
|
309
|
+
readonly type: "uint256";
|
|
310
|
+
}];
|
|
311
|
+
readonly outputs: readonly [{
|
|
312
|
+
readonly name: "";
|
|
313
|
+
readonly type: "tuple";
|
|
314
|
+
readonly components: readonly [{
|
|
315
|
+
readonly name: "totalSupply";
|
|
316
|
+
readonly type: "uint256";
|
|
317
|
+
}, {
|
|
318
|
+
readonly name: "pricePerShare";
|
|
319
|
+
readonly type: "uint256";
|
|
320
|
+
}, {
|
|
321
|
+
readonly name: "lastUpdate";
|
|
322
|
+
readonly type: "uint256";
|
|
323
|
+
}];
|
|
324
|
+
}];
|
|
325
|
+
}, {
|
|
326
|
+
readonly stateMutability: "nonpayable";
|
|
327
|
+
readonly type: "function";
|
|
328
|
+
readonly name: "setSnapShotPriceConfig";
|
|
329
|
+
readonly inputs: readonly [{
|
|
330
|
+
readonly name: "_config";
|
|
331
|
+
readonly type: "tuple";
|
|
332
|
+
readonly components: readonly [{
|
|
333
|
+
readonly name: "minSnapshotDelay";
|
|
334
|
+
readonly type: "uint256";
|
|
335
|
+
}, {
|
|
336
|
+
readonly name: "maxNumSnapshots";
|
|
337
|
+
readonly type: "uint256";
|
|
338
|
+
}, {
|
|
339
|
+
readonly name: "maxUpsideDeviation";
|
|
340
|
+
readonly type: "uint256";
|
|
341
|
+
}, {
|
|
342
|
+
readonly name: "staleTime";
|
|
343
|
+
readonly type: "uint256";
|
|
344
|
+
}];
|
|
345
|
+
}];
|
|
346
|
+
readonly outputs: readonly [];
|
|
347
|
+
}, {
|
|
348
|
+
readonly stateMutability: "view";
|
|
349
|
+
readonly type: "function";
|
|
350
|
+
readonly name: "isValidPriceConfig";
|
|
351
|
+
readonly inputs: readonly [{
|
|
352
|
+
readonly name: "_config";
|
|
353
|
+
readonly type: "tuple";
|
|
354
|
+
readonly components: readonly [{
|
|
355
|
+
readonly name: "minSnapshotDelay";
|
|
356
|
+
readonly type: "uint256";
|
|
357
|
+
}, {
|
|
358
|
+
readonly name: "maxNumSnapshots";
|
|
359
|
+
readonly type: "uint256";
|
|
360
|
+
}, {
|
|
361
|
+
readonly name: "maxUpsideDeviation";
|
|
362
|
+
readonly type: "uint256";
|
|
363
|
+
}, {
|
|
364
|
+
readonly name: "staleTime";
|
|
365
|
+
readonly type: "uint256";
|
|
366
|
+
}];
|
|
367
|
+
}];
|
|
269
368
|
readonly outputs: readonly [{
|
|
270
369
|
readonly name: "";
|
|
271
370
|
readonly type: "bool";
|
|
272
371
|
}];
|
|
372
|
+
}, {
|
|
373
|
+
readonly stateMutability: "view";
|
|
374
|
+
readonly type: "function";
|
|
375
|
+
readonly name: "vaultToAsset";
|
|
376
|
+
readonly inputs: readonly [{
|
|
377
|
+
readonly name: "arg0";
|
|
378
|
+
readonly type: "address";
|
|
379
|
+
}];
|
|
380
|
+
readonly outputs: readonly [{
|
|
381
|
+
readonly name: "";
|
|
382
|
+
readonly type: "tuple";
|
|
383
|
+
readonly components: readonly [{
|
|
384
|
+
readonly name: "underlyingAsset";
|
|
385
|
+
readonly type: "address";
|
|
386
|
+
}, {
|
|
387
|
+
readonly name: "decimals";
|
|
388
|
+
readonly type: "uint256";
|
|
389
|
+
}, {
|
|
390
|
+
readonly name: "lastAveragePricePerShare";
|
|
391
|
+
readonly type: "uint256";
|
|
392
|
+
}];
|
|
393
|
+
}];
|
|
273
394
|
}, {
|
|
274
395
|
readonly stateMutability: "view";
|
|
275
396
|
readonly type: "function";
|
|
@@ -315,10 +436,10 @@ export declare const abi: readonly [{
|
|
|
315
436
|
}, {
|
|
316
437
|
readonly stateMutability: "view";
|
|
317
438
|
readonly type: "function";
|
|
318
|
-
readonly name: "
|
|
439
|
+
readonly name: "assets";
|
|
319
440
|
readonly inputs: readonly [{
|
|
320
441
|
readonly name: "arg0";
|
|
321
|
-
readonly type: "
|
|
442
|
+
readonly type: "uint256";
|
|
322
443
|
}];
|
|
323
444
|
readonly outputs: readonly [{
|
|
324
445
|
readonly name: "";
|
|
@@ -327,35 +448,108 @@ export declare const abi: readonly [{
|
|
|
327
448
|
}, {
|
|
328
449
|
readonly stateMutability: "view";
|
|
329
450
|
readonly type: "function";
|
|
330
|
-
readonly name: "
|
|
451
|
+
readonly name: "indexOfAsset";
|
|
331
452
|
readonly inputs: readonly [{
|
|
332
453
|
readonly name: "arg0";
|
|
454
|
+
readonly type: "address";
|
|
455
|
+
}];
|
|
456
|
+
readonly outputs: readonly [{
|
|
457
|
+
readonly name: "";
|
|
333
458
|
readonly type: "uint256";
|
|
334
459
|
}];
|
|
460
|
+
}, {
|
|
461
|
+
readonly stateMutability: "view";
|
|
462
|
+
readonly type: "function";
|
|
463
|
+
readonly name: "numAssets";
|
|
464
|
+
readonly inputs: readonly [];
|
|
335
465
|
readonly outputs: readonly [{
|
|
336
466
|
readonly name: "";
|
|
337
|
-
readonly type: "
|
|
467
|
+
readonly type: "uint256";
|
|
338
468
|
}];
|
|
339
469
|
}, {
|
|
340
470
|
readonly stateMutability: "view";
|
|
341
471
|
readonly type: "function";
|
|
342
|
-
readonly name: "
|
|
472
|
+
readonly name: "snapShotData";
|
|
343
473
|
readonly inputs: readonly [{
|
|
344
474
|
readonly name: "arg0";
|
|
345
475
|
readonly type: "address";
|
|
346
476
|
}];
|
|
347
477
|
readonly outputs: readonly [{
|
|
348
478
|
readonly name: "";
|
|
479
|
+
readonly type: "tuple";
|
|
480
|
+
readonly components: readonly [{
|
|
481
|
+
readonly name: "lastSnapShot";
|
|
482
|
+
readonly type: "tuple";
|
|
483
|
+
readonly components: readonly [{
|
|
484
|
+
readonly name: "totalSupply";
|
|
485
|
+
readonly type: "uint256";
|
|
486
|
+
}, {
|
|
487
|
+
readonly name: "pricePerShare";
|
|
488
|
+
readonly type: "uint256";
|
|
489
|
+
}, {
|
|
490
|
+
readonly name: "lastUpdate";
|
|
491
|
+
readonly type: "uint256";
|
|
492
|
+
}];
|
|
493
|
+
}, {
|
|
494
|
+
readonly name: "nextIndex";
|
|
495
|
+
readonly type: "uint256";
|
|
496
|
+
}];
|
|
497
|
+
}];
|
|
498
|
+
}, {
|
|
499
|
+
readonly stateMutability: "view";
|
|
500
|
+
readonly type: "function";
|
|
501
|
+
readonly name: "snapShots";
|
|
502
|
+
readonly inputs: readonly [{
|
|
503
|
+
readonly name: "arg0";
|
|
504
|
+
readonly type: "address";
|
|
505
|
+
}, {
|
|
506
|
+
readonly name: "arg1";
|
|
349
507
|
readonly type: "uint256";
|
|
350
508
|
}];
|
|
509
|
+
readonly outputs: readonly [{
|
|
510
|
+
readonly name: "";
|
|
511
|
+
readonly type: "tuple";
|
|
512
|
+
readonly components: readonly [{
|
|
513
|
+
readonly name: "totalSupply";
|
|
514
|
+
readonly type: "uint256";
|
|
515
|
+
}, {
|
|
516
|
+
readonly name: "pricePerShare";
|
|
517
|
+
readonly type: "uint256";
|
|
518
|
+
}, {
|
|
519
|
+
readonly name: "lastUpdate";
|
|
520
|
+
readonly type: "uint256";
|
|
521
|
+
}];
|
|
522
|
+
}];
|
|
351
523
|
}, {
|
|
352
524
|
readonly stateMutability: "view";
|
|
353
525
|
readonly type: "function";
|
|
354
|
-
readonly name: "
|
|
526
|
+
readonly name: "snapShotPriceConfig";
|
|
355
527
|
readonly inputs: readonly [];
|
|
356
528
|
readonly outputs: readonly [{
|
|
357
529
|
readonly name: "";
|
|
358
|
-
readonly type: "
|
|
530
|
+
readonly type: "tuple";
|
|
531
|
+
readonly components: readonly [{
|
|
532
|
+
readonly name: "minSnapshotDelay";
|
|
533
|
+
readonly type: "uint256";
|
|
534
|
+
}, {
|
|
535
|
+
readonly name: "maxNumSnapshots";
|
|
536
|
+
readonly type: "uint256";
|
|
537
|
+
}, {
|
|
538
|
+
readonly name: "maxUpsideDeviation";
|
|
539
|
+
readonly type: "uint256";
|
|
540
|
+
}, {
|
|
541
|
+
readonly name: "staleTime";
|
|
542
|
+
readonly type: "uint256";
|
|
543
|
+
}];
|
|
544
|
+
}];
|
|
545
|
+
}, {
|
|
546
|
+
readonly stateMutability: "view";
|
|
547
|
+
readonly type: "function";
|
|
548
|
+
readonly name: "isPaused";
|
|
549
|
+
readonly inputs: readonly [];
|
|
550
|
+
readonly outputs: readonly [{
|
|
551
|
+
readonly name: "";
|
|
552
|
+
readonly type: "bool";
|
|
359
553
|
}];
|
|
360
554
|
}, {
|
|
361
555
|
readonly stateMutability: "view";
|
|
@@ -396,6 +590,198 @@ export declare const abi: readonly [{
|
|
|
396
590
|
readonly name: "";
|
|
397
591
|
readonly type: "bool";
|
|
398
592
|
}];
|
|
593
|
+
}, {
|
|
594
|
+
readonly stateMutability: "view";
|
|
595
|
+
readonly type: "function";
|
|
596
|
+
readonly name: "getUnderlyingAsset";
|
|
597
|
+
readonly inputs: readonly [{
|
|
598
|
+
readonly name: "_vaultToken";
|
|
599
|
+
readonly type: "address";
|
|
600
|
+
}];
|
|
601
|
+
readonly outputs: readonly [{
|
|
602
|
+
readonly name: "";
|
|
603
|
+
readonly type: "address";
|
|
604
|
+
}];
|
|
605
|
+
}, {
|
|
606
|
+
readonly stateMutability: "view";
|
|
607
|
+
readonly type: "function";
|
|
608
|
+
readonly name: "getUnderlyingBalances";
|
|
609
|
+
readonly inputs: readonly [{
|
|
610
|
+
readonly name: "_vaultToken";
|
|
611
|
+
readonly type: "address";
|
|
612
|
+
}, {
|
|
613
|
+
readonly name: "_vaultTokenBalance";
|
|
614
|
+
readonly type: "uint256";
|
|
615
|
+
}];
|
|
616
|
+
readonly outputs: readonly [{
|
|
617
|
+
readonly name: "";
|
|
618
|
+
readonly type: "uint256";
|
|
619
|
+
}, {
|
|
620
|
+
readonly name: "";
|
|
621
|
+
readonly type: "uint256";
|
|
622
|
+
}];
|
|
623
|
+
}, {
|
|
624
|
+
readonly stateMutability: "view";
|
|
625
|
+
readonly type: "function";
|
|
626
|
+
readonly name: "getUnderlyingAmount";
|
|
627
|
+
readonly inputs: readonly [{
|
|
628
|
+
readonly name: "_vaultToken";
|
|
629
|
+
readonly type: "address";
|
|
630
|
+
}, {
|
|
631
|
+
readonly name: "_vaultTokenAmount";
|
|
632
|
+
readonly type: "uint256";
|
|
633
|
+
}];
|
|
634
|
+
readonly outputs: readonly [{
|
|
635
|
+
readonly name: "";
|
|
636
|
+
readonly type: "uint256";
|
|
637
|
+
}];
|
|
638
|
+
}, {
|
|
639
|
+
readonly stateMutability: "view";
|
|
640
|
+
readonly type: "function";
|
|
641
|
+
readonly name: "getUnderlyingAmountSafe";
|
|
642
|
+
readonly inputs: readonly [{
|
|
643
|
+
readonly name: "_vaultToken";
|
|
644
|
+
readonly type: "address";
|
|
645
|
+
}, {
|
|
646
|
+
readonly name: "_vaultTokenBalance";
|
|
647
|
+
readonly type: "uint256";
|
|
648
|
+
}];
|
|
649
|
+
readonly outputs: readonly [{
|
|
650
|
+
readonly name: "";
|
|
651
|
+
readonly type: "uint256";
|
|
652
|
+
}];
|
|
653
|
+
}, {
|
|
654
|
+
readonly stateMutability: "view";
|
|
655
|
+
readonly type: "function";
|
|
656
|
+
readonly name: "getUnderlyingData";
|
|
657
|
+
readonly inputs: readonly [{
|
|
658
|
+
readonly name: "_vaultToken";
|
|
659
|
+
readonly type: "address";
|
|
660
|
+
}, {
|
|
661
|
+
readonly name: "_vaultTokenAmount";
|
|
662
|
+
readonly type: "uint256";
|
|
663
|
+
}];
|
|
664
|
+
readonly outputs: readonly [{
|
|
665
|
+
readonly name: "";
|
|
666
|
+
readonly type: "address";
|
|
667
|
+
}, {
|
|
668
|
+
readonly name: "";
|
|
669
|
+
readonly type: "uint256";
|
|
670
|
+
}, {
|
|
671
|
+
readonly name: "";
|
|
672
|
+
readonly type: "uint256";
|
|
673
|
+
}];
|
|
674
|
+
}, {
|
|
675
|
+
readonly stateMutability: "view";
|
|
676
|
+
readonly type: "function";
|
|
677
|
+
readonly name: "getUnderlyingData";
|
|
678
|
+
readonly inputs: readonly [{
|
|
679
|
+
readonly name: "_vaultToken";
|
|
680
|
+
readonly type: "address";
|
|
681
|
+
}, {
|
|
682
|
+
readonly name: "_vaultTokenAmount";
|
|
683
|
+
readonly type: "uint256";
|
|
684
|
+
}, {
|
|
685
|
+
readonly name: "_appraiser";
|
|
686
|
+
readonly type: "address";
|
|
687
|
+
}];
|
|
688
|
+
readonly outputs: readonly [{
|
|
689
|
+
readonly name: "";
|
|
690
|
+
readonly type: "address";
|
|
691
|
+
}, {
|
|
692
|
+
readonly name: "";
|
|
693
|
+
readonly type: "uint256";
|
|
694
|
+
}, {
|
|
695
|
+
readonly name: "";
|
|
696
|
+
readonly type: "uint256";
|
|
697
|
+
}];
|
|
698
|
+
}, {
|
|
699
|
+
readonly stateMutability: "view";
|
|
700
|
+
readonly type: "function";
|
|
701
|
+
readonly name: "getUsdValueOfVaultToken";
|
|
702
|
+
readonly inputs: readonly [{
|
|
703
|
+
readonly name: "_vaultToken";
|
|
704
|
+
readonly type: "address";
|
|
705
|
+
}, {
|
|
706
|
+
readonly name: "_vaultTokenAmount";
|
|
707
|
+
readonly type: "uint256";
|
|
708
|
+
}];
|
|
709
|
+
readonly outputs: readonly [{
|
|
710
|
+
readonly name: "";
|
|
711
|
+
readonly type: "uint256";
|
|
712
|
+
}];
|
|
713
|
+
}, {
|
|
714
|
+
readonly stateMutability: "view";
|
|
715
|
+
readonly type: "function";
|
|
716
|
+
readonly name: "getUsdValueOfVaultToken";
|
|
717
|
+
readonly inputs: readonly [{
|
|
718
|
+
readonly name: "_vaultToken";
|
|
719
|
+
readonly type: "address";
|
|
720
|
+
}, {
|
|
721
|
+
readonly name: "_vaultTokenAmount";
|
|
722
|
+
readonly type: "uint256";
|
|
723
|
+
}, {
|
|
724
|
+
readonly name: "_appraiser";
|
|
725
|
+
readonly type: "address";
|
|
726
|
+
}];
|
|
727
|
+
readonly outputs: readonly [{
|
|
728
|
+
readonly name: "";
|
|
729
|
+
readonly type: "uint256";
|
|
730
|
+
}];
|
|
731
|
+
}, {
|
|
732
|
+
readonly stateMutability: "view";
|
|
733
|
+
readonly type: "function";
|
|
734
|
+
readonly name: "isRebasing";
|
|
735
|
+
readonly inputs: readonly [];
|
|
736
|
+
readonly outputs: readonly [{
|
|
737
|
+
readonly name: "";
|
|
738
|
+
readonly type: "bool";
|
|
739
|
+
}];
|
|
740
|
+
}, {
|
|
741
|
+
readonly stateMutability: "view";
|
|
742
|
+
readonly type: "function";
|
|
743
|
+
readonly name: "getPricePerShare";
|
|
744
|
+
readonly inputs: readonly [{
|
|
745
|
+
readonly name: "_vaultToken";
|
|
746
|
+
readonly type: "address";
|
|
747
|
+
}];
|
|
748
|
+
readonly outputs: readonly [{
|
|
749
|
+
readonly name: "";
|
|
750
|
+
readonly type: "uint256";
|
|
751
|
+
}];
|
|
752
|
+
}, {
|
|
753
|
+
readonly stateMutability: "view";
|
|
754
|
+
readonly type: "function";
|
|
755
|
+
readonly name: "getPricePerShare";
|
|
756
|
+
readonly inputs: readonly [{
|
|
757
|
+
readonly name: "_vaultToken";
|
|
758
|
+
readonly type: "address";
|
|
759
|
+
}, {
|
|
760
|
+
readonly name: "_decimals";
|
|
761
|
+
readonly type: "uint256";
|
|
762
|
+
}];
|
|
763
|
+
readonly outputs: readonly [{
|
|
764
|
+
readonly name: "";
|
|
765
|
+
readonly type: "uint256";
|
|
766
|
+
}];
|
|
767
|
+
}, {
|
|
768
|
+
readonly stateMutability: "view";
|
|
769
|
+
readonly type: "function";
|
|
770
|
+
readonly name: "getVaultTokenAmount";
|
|
771
|
+
readonly inputs: readonly [{
|
|
772
|
+
readonly name: "_asset";
|
|
773
|
+
readonly type: "address";
|
|
774
|
+
}, {
|
|
775
|
+
readonly name: "_assetAmount";
|
|
776
|
+
readonly type: "uint256";
|
|
777
|
+
}, {
|
|
778
|
+
readonly name: "_vaultToken";
|
|
779
|
+
readonly type: "address";
|
|
780
|
+
}];
|
|
781
|
+
readonly outputs: readonly [{
|
|
782
|
+
readonly name: "";
|
|
783
|
+
readonly type: "uint256";
|
|
784
|
+
}];
|
|
399
785
|
}, {
|
|
400
786
|
readonly stateMutability: "view";
|
|
401
787
|
readonly type: "function";
|
|
@@ -426,12 +812,79 @@ export declare const abi: readonly [{
|
|
|
426
812
|
}, {
|
|
427
813
|
readonly stateMutability: "view";
|
|
428
814
|
readonly type: "function";
|
|
429
|
-
readonly name: "
|
|
430
|
-
readonly inputs: readonly [
|
|
815
|
+
readonly name: "totalAssets";
|
|
816
|
+
readonly inputs: readonly [{
|
|
817
|
+
readonly name: "_vaultToken";
|
|
818
|
+
readonly type: "address";
|
|
819
|
+
}];
|
|
820
|
+
readonly outputs: readonly [{
|
|
821
|
+
readonly name: "";
|
|
822
|
+
readonly type: "uint256";
|
|
823
|
+
}];
|
|
824
|
+
}, {
|
|
825
|
+
readonly stateMutability: "view";
|
|
826
|
+
readonly type: "function";
|
|
827
|
+
readonly name: "totalBorrows";
|
|
828
|
+
readonly inputs: readonly [{
|
|
829
|
+
readonly name: "_vaultToken";
|
|
830
|
+
readonly type: "address";
|
|
831
|
+
}];
|
|
832
|
+
readonly outputs: readonly [{
|
|
833
|
+
readonly name: "";
|
|
834
|
+
readonly type: "uint256";
|
|
835
|
+
}];
|
|
836
|
+
}, {
|
|
837
|
+
readonly stateMutability: "view";
|
|
838
|
+
readonly type: "function";
|
|
839
|
+
readonly name: "canRegisterVaultToken";
|
|
840
|
+
readonly inputs: readonly [{
|
|
841
|
+
readonly name: "_asset";
|
|
842
|
+
readonly type: "address";
|
|
843
|
+
}, {
|
|
844
|
+
readonly name: "_vaultToken";
|
|
845
|
+
readonly type: "address";
|
|
846
|
+
}];
|
|
431
847
|
readonly outputs: readonly [{
|
|
432
848
|
readonly name: "";
|
|
433
849
|
readonly type: "bool";
|
|
434
850
|
}];
|
|
851
|
+
}, {
|
|
852
|
+
readonly stateMutability: "nonpayable";
|
|
853
|
+
readonly type: "function";
|
|
854
|
+
readonly name: "registerVaultTokenLocally";
|
|
855
|
+
readonly inputs: readonly [{
|
|
856
|
+
readonly name: "_asset";
|
|
857
|
+
readonly type: "address";
|
|
858
|
+
}, {
|
|
859
|
+
readonly name: "_vaultAddr";
|
|
860
|
+
readonly type: "address";
|
|
861
|
+
}];
|
|
862
|
+
readonly outputs: readonly [{
|
|
863
|
+
readonly name: "";
|
|
864
|
+
readonly type: "tuple";
|
|
865
|
+
readonly components: readonly [{
|
|
866
|
+
readonly name: "underlyingAsset";
|
|
867
|
+
readonly type: "address";
|
|
868
|
+
}, {
|
|
869
|
+
readonly name: "decimals";
|
|
870
|
+
readonly type: "uint256";
|
|
871
|
+
}, {
|
|
872
|
+
readonly name: "lastAveragePricePerShare";
|
|
873
|
+
readonly type: "uint256";
|
|
874
|
+
}];
|
|
875
|
+
}];
|
|
876
|
+
}, {
|
|
877
|
+
readonly stateMutability: "nonpayable";
|
|
878
|
+
readonly type: "function";
|
|
879
|
+
readonly name: "deregisterVaultTokenLocally";
|
|
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 [];
|
|
435
888
|
}, {
|
|
436
889
|
readonly stateMutability: "nonpayable";
|
|
437
890
|
readonly type: "function";
|
|
@@ -591,104 +1044,26 @@ export declare const abi: readonly [{
|
|
|
591
1044
|
readonly type: "uint256";
|
|
592
1045
|
}];
|
|
593
1046
|
}, {
|
|
594
|
-
readonly stateMutability: "
|
|
595
|
-
readonly type: "function";
|
|
596
|
-
readonly name: "isVaultToken";
|
|
597
|
-
readonly inputs: readonly [{
|
|
598
|
-
readonly name: "_vaultToken";
|
|
599
|
-
readonly type: "address";
|
|
600
|
-
}];
|
|
601
|
-
readonly outputs: readonly [{
|
|
602
|
-
readonly name: "";
|
|
603
|
-
readonly type: "bool";
|
|
604
|
-
}];
|
|
605
|
-
}, {
|
|
606
|
-
readonly stateMutability: "view";
|
|
607
|
-
readonly type: "function";
|
|
608
|
-
readonly name: "getUnderlyingAsset";
|
|
609
|
-
readonly inputs: readonly [{
|
|
610
|
-
readonly name: "_vaultToken";
|
|
611
|
-
readonly type: "address";
|
|
612
|
-
}];
|
|
613
|
-
readonly outputs: readonly [{
|
|
614
|
-
readonly name: "";
|
|
615
|
-
readonly type: "address";
|
|
616
|
-
}];
|
|
617
|
-
}, {
|
|
618
|
-
readonly stateMutability: "view";
|
|
619
|
-
readonly type: "function";
|
|
620
|
-
readonly name: "getUnderlyingAmount";
|
|
621
|
-
readonly inputs: readonly [{
|
|
622
|
-
readonly name: "_vaultToken";
|
|
623
|
-
readonly type: "address";
|
|
624
|
-
}, {
|
|
625
|
-
readonly name: "_vaultTokenAmount";
|
|
626
|
-
readonly type: "uint256";
|
|
627
|
-
}];
|
|
628
|
-
readonly outputs: readonly [{
|
|
629
|
-
readonly name: "";
|
|
630
|
-
readonly type: "uint256";
|
|
631
|
-
}];
|
|
632
|
-
}, {
|
|
633
|
-
readonly stateMutability: "view";
|
|
634
|
-
readonly type: "function";
|
|
635
|
-
readonly name: "getVaultTokenAmount";
|
|
636
|
-
readonly inputs: readonly [{
|
|
637
|
-
readonly name: "_asset";
|
|
638
|
-
readonly type: "address";
|
|
639
|
-
}, {
|
|
640
|
-
readonly name: "_assetAmount";
|
|
641
|
-
readonly type: "uint256";
|
|
642
|
-
}, {
|
|
643
|
-
readonly name: "_vaultToken";
|
|
644
|
-
readonly type: "address";
|
|
645
|
-
}];
|
|
646
|
-
readonly outputs: readonly [{
|
|
647
|
-
readonly name: "";
|
|
648
|
-
readonly type: "uint256";
|
|
649
|
-
}];
|
|
650
|
-
}, {
|
|
651
|
-
readonly stateMutability: "view";
|
|
652
|
-
readonly type: "function";
|
|
653
|
-
readonly name: "getUsdValueOfVaultToken";
|
|
654
|
-
readonly inputs: readonly [{
|
|
655
|
-
readonly name: "_vaultToken";
|
|
656
|
-
readonly type: "address";
|
|
657
|
-
}, {
|
|
658
|
-
readonly name: "_vaultTokenAmount";
|
|
659
|
-
readonly type: "uint256";
|
|
660
|
-
}];
|
|
661
|
-
readonly outputs: readonly [{
|
|
662
|
-
readonly name: "";
|
|
663
|
-
readonly type: "uint256";
|
|
664
|
-
}];
|
|
665
|
-
}, {
|
|
666
|
-
readonly stateMutability: "view";
|
|
1047
|
+
readonly stateMutability: "nonpayable";
|
|
667
1048
|
readonly type: "function";
|
|
668
|
-
readonly name: "
|
|
1049
|
+
readonly name: "addPriceSnapshot";
|
|
669
1050
|
readonly inputs: readonly [{
|
|
670
1051
|
readonly name: "_vaultToken";
|
|
671
1052
|
readonly type: "address";
|
|
672
|
-
}, {
|
|
673
|
-
readonly name: "_vaultTokenAmount";
|
|
674
|
-
readonly type: "uint256";
|
|
675
|
-
}, {
|
|
676
|
-
readonly name: "_appraiser";
|
|
677
|
-
readonly type: "address";
|
|
678
1053
|
}];
|
|
679
1054
|
readonly outputs: readonly [{
|
|
680
1055
|
readonly name: "";
|
|
681
|
-
readonly type: "
|
|
1056
|
+
readonly type: "bool";
|
|
682
1057
|
}];
|
|
683
1058
|
}, {
|
|
684
1059
|
readonly stateMutability: "view";
|
|
685
1060
|
readonly type: "function";
|
|
686
|
-
readonly name: "
|
|
1061
|
+
readonly name: "getAccessForLego";
|
|
687
1062
|
readonly inputs: readonly [{
|
|
688
|
-
readonly name: "
|
|
1063
|
+
readonly name: "_user";
|
|
689
1064
|
readonly type: "address";
|
|
690
1065
|
}, {
|
|
691
|
-
readonly name: "
|
|
1066
|
+
readonly name: "_action";
|
|
692
1067
|
readonly type: "uint256";
|
|
693
1068
|
}];
|
|
694
1069
|
readonly outputs: readonly [{
|
|
@@ -696,29 +1071,29 @@ export declare const abi: readonly [{
|
|
|
696
1071
|
readonly type: "address";
|
|
697
1072
|
}, {
|
|
698
1073
|
readonly name: "";
|
|
699
|
-
readonly type: "
|
|
1074
|
+
readonly type: "string";
|
|
700
1075
|
}, {
|
|
701
1076
|
readonly name: "";
|
|
702
1077
|
readonly type: "uint256";
|
|
703
1078
|
}];
|
|
704
1079
|
}, {
|
|
705
|
-
readonly stateMutability: "
|
|
1080
|
+
readonly stateMutability: "nonpayable";
|
|
706
1081
|
readonly type: "function";
|
|
707
|
-
readonly name: "
|
|
1082
|
+
readonly name: "claimRewards";
|
|
708
1083
|
readonly inputs: readonly [{
|
|
709
|
-
readonly name: "
|
|
1084
|
+
readonly name: "_user";
|
|
710
1085
|
readonly type: "address";
|
|
711
1086
|
}, {
|
|
712
|
-
readonly name: "
|
|
1087
|
+
readonly name: "_rewardToken";
|
|
1088
|
+
readonly type: "address";
|
|
1089
|
+
}, {
|
|
1090
|
+
readonly name: "_rewardAmount";
|
|
713
1091
|
readonly type: "uint256";
|
|
714
1092
|
}, {
|
|
715
|
-
readonly name: "
|
|
716
|
-
readonly type: "
|
|
1093
|
+
readonly name: "_extraData";
|
|
1094
|
+
readonly type: "bytes32";
|
|
717
1095
|
}];
|
|
718
1096
|
readonly outputs: readonly [{
|
|
719
|
-
readonly name: "";
|
|
720
|
-
readonly type: "address";
|
|
721
|
-
}, {
|
|
722
1097
|
readonly name: "";
|
|
723
1098
|
readonly type: "uint256";
|
|
724
1099
|
}, {
|
|
@@ -726,68 +1101,57 @@ export declare const abi: readonly [{
|
|
|
726
1101
|
readonly type: "uint256";
|
|
727
1102
|
}];
|
|
728
1103
|
}, {
|
|
729
|
-
readonly stateMutability: "
|
|
1104
|
+
readonly stateMutability: "nonpayable";
|
|
730
1105
|
readonly type: "function";
|
|
731
|
-
readonly name: "
|
|
1106
|
+
readonly name: "claimRewards";
|
|
732
1107
|
readonly inputs: readonly [{
|
|
733
|
-
readonly name: "
|
|
1108
|
+
readonly name: "_user";
|
|
1109
|
+
readonly type: "address";
|
|
1110
|
+
}, {
|
|
1111
|
+
readonly name: "_rewardToken";
|
|
734
1112
|
readonly type: "address";
|
|
1113
|
+
}, {
|
|
1114
|
+
readonly name: "_rewardAmount";
|
|
1115
|
+
readonly type: "uint256";
|
|
1116
|
+
}, {
|
|
1117
|
+
readonly name: "_extraData";
|
|
1118
|
+
readonly type: "bytes32";
|
|
1119
|
+
}, {
|
|
1120
|
+
readonly name: "_miniAddys";
|
|
1121
|
+
readonly type: "tuple";
|
|
1122
|
+
readonly components: readonly [{
|
|
1123
|
+
readonly name: "ledger";
|
|
1124
|
+
readonly type: "address";
|
|
1125
|
+
}, {
|
|
1126
|
+
readonly name: "missionControl";
|
|
1127
|
+
readonly type: "address";
|
|
1128
|
+
}, {
|
|
1129
|
+
readonly name: "legoBook";
|
|
1130
|
+
readonly type: "address";
|
|
1131
|
+
}, {
|
|
1132
|
+
readonly name: "appraiser";
|
|
1133
|
+
readonly type: "address";
|
|
1134
|
+
}];
|
|
735
1135
|
}];
|
|
736
1136
|
readonly outputs: readonly [{
|
|
737
1137
|
readonly name: "";
|
|
738
1138
|
readonly type: "uint256";
|
|
739
|
-
}
|
|
740
|
-
}, {
|
|
741
|
-
readonly stateMutability: "view";
|
|
742
|
-
readonly type: "function";
|
|
743
|
-
readonly name: "totalBorrows";
|
|
744
|
-
readonly inputs: readonly [{
|
|
745
|
-
readonly name: "_vaultToken";
|
|
746
|
-
readonly type: "address";
|
|
747
|
-
}];
|
|
748
|
-
readonly outputs: readonly [{
|
|
1139
|
+
}, {
|
|
749
1140
|
readonly name: "";
|
|
750
1141
|
readonly type: "uint256";
|
|
751
1142
|
}];
|
|
752
1143
|
}, {
|
|
753
1144
|
readonly stateMutability: "view";
|
|
754
1145
|
readonly type: "function";
|
|
755
|
-
readonly name: "
|
|
1146
|
+
readonly name: "hasClaimableRewards";
|
|
756
1147
|
readonly inputs: readonly [{
|
|
757
|
-
readonly name: "
|
|
1148
|
+
readonly name: "_user";
|
|
758
1149
|
readonly type: "address";
|
|
759
|
-
}, {
|
|
760
|
-
readonly name: "_decimals";
|
|
761
|
-
readonly type: "uint256";
|
|
762
1150
|
}];
|
|
763
1151
|
readonly outputs: readonly [{
|
|
764
1152
|
readonly name: "";
|
|
765
|
-
readonly type: "
|
|
766
|
-
}];
|
|
767
|
-
}, {
|
|
768
|
-
readonly stateMutability: "nonpayable";
|
|
769
|
-
readonly type: "function";
|
|
770
|
-
readonly name: "addAssetOpportunity";
|
|
771
|
-
readonly inputs: readonly [{
|
|
772
|
-
readonly name: "_asset";
|
|
773
|
-
readonly type: "address";
|
|
774
|
-
}, {
|
|
775
|
-
readonly name: "_vaultAddr";
|
|
776
|
-
readonly type: "address";
|
|
777
|
-
}];
|
|
778
|
-
readonly outputs: readonly [];
|
|
779
|
-
}, {
|
|
780
|
-
readonly stateMutability: "nonpayable";
|
|
781
|
-
readonly type: "function";
|
|
782
|
-
readonly name: "removeAssetOpportunity";
|
|
783
|
-
readonly inputs: readonly [{
|
|
784
|
-
readonly name: "_asset";
|
|
785
|
-
readonly type: "address";
|
|
786
|
-
}, {
|
|
787
|
-
readonly name: "_vaultAddr";
|
|
788
|
-
readonly type: "address";
|
|
1153
|
+
readonly type: "bool";
|
|
789
1154
|
}];
|
|
790
|
-
readonly outputs: readonly [];
|
|
791
1155
|
}, {
|
|
792
1156
|
readonly stateMutability: "nonpayable";
|
|
793
1157
|
readonly type: "function";
|
|
@@ -1272,70 +1636,6 @@ export declare const abi: readonly [{
|
|
|
1272
1636
|
readonly name: "";
|
|
1273
1637
|
readonly type: "uint256";
|
|
1274
1638
|
}];
|
|
1275
|
-
}, {
|
|
1276
|
-
readonly stateMutability: "nonpayable";
|
|
1277
|
-
readonly type: "function";
|
|
1278
|
-
readonly name: "claimRewards";
|
|
1279
|
-
readonly inputs: readonly [{
|
|
1280
|
-
readonly name: "_user";
|
|
1281
|
-
readonly type: "address";
|
|
1282
|
-
}, {
|
|
1283
|
-
readonly name: "_rewardToken";
|
|
1284
|
-
readonly type: "address";
|
|
1285
|
-
}, {
|
|
1286
|
-
readonly name: "_rewardAmount";
|
|
1287
|
-
readonly type: "uint256";
|
|
1288
|
-
}, {
|
|
1289
|
-
readonly name: "_extraData";
|
|
1290
|
-
readonly type: "bytes32";
|
|
1291
|
-
}];
|
|
1292
|
-
readonly outputs: readonly [{
|
|
1293
|
-
readonly name: "";
|
|
1294
|
-
readonly type: "uint256";
|
|
1295
|
-
}, {
|
|
1296
|
-
readonly name: "";
|
|
1297
|
-
readonly type: "uint256";
|
|
1298
|
-
}];
|
|
1299
|
-
}, {
|
|
1300
|
-
readonly stateMutability: "nonpayable";
|
|
1301
|
-
readonly type: "function";
|
|
1302
|
-
readonly name: "claimRewards";
|
|
1303
|
-
readonly inputs: readonly [{
|
|
1304
|
-
readonly name: "_user";
|
|
1305
|
-
readonly type: "address";
|
|
1306
|
-
}, {
|
|
1307
|
-
readonly name: "_rewardToken";
|
|
1308
|
-
readonly type: "address";
|
|
1309
|
-
}, {
|
|
1310
|
-
readonly name: "_rewardAmount";
|
|
1311
|
-
readonly type: "uint256";
|
|
1312
|
-
}, {
|
|
1313
|
-
readonly name: "_extraData";
|
|
1314
|
-
readonly type: "bytes32";
|
|
1315
|
-
}, {
|
|
1316
|
-
readonly name: "_miniAddys";
|
|
1317
|
-
readonly type: "tuple";
|
|
1318
|
-
readonly components: readonly [{
|
|
1319
|
-
readonly name: "ledger";
|
|
1320
|
-
readonly type: "address";
|
|
1321
|
-
}, {
|
|
1322
|
-
readonly name: "missionControl";
|
|
1323
|
-
readonly type: "address";
|
|
1324
|
-
}, {
|
|
1325
|
-
readonly name: "legoBook";
|
|
1326
|
-
readonly type: "address";
|
|
1327
|
-
}, {
|
|
1328
|
-
readonly name: "appraiser";
|
|
1329
|
-
readonly type: "address";
|
|
1330
|
-
}];
|
|
1331
|
-
}];
|
|
1332
|
-
readonly outputs: readonly [{
|
|
1333
|
-
readonly name: "";
|
|
1334
|
-
readonly type: "uint256";
|
|
1335
|
-
}, {
|
|
1336
|
-
readonly name: "";
|
|
1337
|
-
readonly type: "uint256";
|
|
1338
|
-
}];
|
|
1339
1639
|
}, {
|
|
1340
1640
|
readonly stateMutability: "nonpayable";
|
|
1341
1641
|
readonly type: "function";
|
|
@@ -1802,42 +2102,6 @@ export declare const abi: readonly [{
|
|
|
1802
2102
|
readonly name: "";
|
|
1803
2103
|
readonly type: "uint256";
|
|
1804
2104
|
}];
|
|
1805
|
-
}, {
|
|
1806
|
-
readonly stateMutability: "view";
|
|
1807
|
-
readonly type: "function";
|
|
1808
|
-
readonly name: "getAccessForLego";
|
|
1809
|
-
readonly inputs: readonly [{
|
|
1810
|
-
readonly name: "_user";
|
|
1811
|
-
readonly type: "address";
|
|
1812
|
-
}, {
|
|
1813
|
-
readonly name: "_action";
|
|
1814
|
-
readonly type: "uint256";
|
|
1815
|
-
}];
|
|
1816
|
-
readonly outputs: readonly [{
|
|
1817
|
-
readonly name: "";
|
|
1818
|
-
readonly type: "address";
|
|
1819
|
-
}, {
|
|
1820
|
-
readonly name: "";
|
|
1821
|
-
readonly type: "string";
|
|
1822
|
-
}, {
|
|
1823
|
-
readonly name: "";
|
|
1824
|
-
readonly type: "uint256";
|
|
1825
|
-
}];
|
|
1826
|
-
}, {
|
|
1827
|
-
readonly stateMutability: "view";
|
|
1828
|
-
readonly type: "function";
|
|
1829
|
-
readonly name: "getPrice";
|
|
1830
|
-
readonly inputs: readonly [{
|
|
1831
|
-
readonly name: "_asset";
|
|
1832
|
-
readonly type: "address";
|
|
1833
|
-
}, {
|
|
1834
|
-
readonly name: "_decimals";
|
|
1835
|
-
readonly type: "uint256";
|
|
1836
|
-
}];
|
|
1837
|
-
readonly outputs: readonly [{
|
|
1838
|
-
readonly name: "";
|
|
1839
|
-
readonly type: "uint256";
|
|
1840
|
-
}];
|
|
1841
2105
|
}, {
|
|
1842
2106
|
readonly stateMutability: "view";
|
|
1843
2107
|
readonly type: "function";
|
|
@@ -1886,6 +2150,7 @@ export type Contract = {
|
|
|
1886
2150
|
appraiser: `0x${string}`;
|
|
1887
2151
|
walletBackpack: `0x${string}`;
|
|
1888
2152
|
billing: `0x${string}`;
|
|
2153
|
+
vaultRegistry: `0x${string}`;
|
|
1889
2154
|
}>;
|
|
1890
2155
|
getUndyHq: () => Promise<`0x${string}`>;
|
|
1891
2156
|
isLegoAsset: (asset: `0x${string}`) => Promise<boolean>;
|
|
@@ -1893,32 +2158,69 @@ export type Contract = {
|
|
|
1893
2158
|
getAssets: () => Promise<`0x${string}`[]>;
|
|
1894
2159
|
isAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<boolean>;
|
|
1895
2160
|
getNumLegoAssets: () => Promise<bigint>;
|
|
1896
|
-
|
|
2161
|
+
getWeightedPricePerShare: (vaultToken: `0x${string}`) => Promise<bigint>;
|
|
2162
|
+
getLatestSnapshot: (vaultToken: `0x${string}`, pricePerShare: bigint) => Promise<{
|
|
2163
|
+
totalSupply: bigint;
|
|
2164
|
+
pricePerShare: bigint;
|
|
2165
|
+
lastUpdate: bigint;
|
|
2166
|
+
}>;
|
|
2167
|
+
isValidPriceConfig: (config: {
|
|
2168
|
+
minSnapshotDelay: bigint;
|
|
2169
|
+
maxNumSnapshots: bigint;
|
|
2170
|
+
maxUpsideDeviation: bigint;
|
|
2171
|
+
staleTime: bigint;
|
|
2172
|
+
}) => Promise<boolean>;
|
|
2173
|
+
vaultToAsset: (arg0: `0x${string}`) => Promise<{
|
|
2174
|
+
underlyingAsset: `0x${string}`;
|
|
2175
|
+
decimals: bigint;
|
|
2176
|
+
lastAveragePricePerShare: bigint;
|
|
2177
|
+
}>;
|
|
1897
2178
|
assetOpportunities: (arg0: `0x${string}`, arg1: bigint) => Promise<`0x${string}`>;
|
|
1898
2179
|
indexOfAssetOpportunity: (arg0: `0x${string}`, arg1: `0x${string}`) => Promise<bigint>;
|
|
1899
2180
|
numAssetOpportunities: (arg0: `0x${string}`) => Promise<bigint>;
|
|
1900
|
-
vaultToAsset: (arg0: `0x${string}`) => Promise<`0x${string}`>;
|
|
1901
2181
|
assets: (arg0: bigint) => Promise<`0x${string}`>;
|
|
1902
2182
|
indexOfAsset: (arg0: `0x${string}`) => Promise<bigint>;
|
|
1903
2183
|
numAssets: () => Promise<bigint>;
|
|
2184
|
+
snapShotData: (arg0: `0x${string}`) => Promise<{
|
|
2185
|
+
lastSnapShot: {
|
|
2186
|
+
totalSupply: bigint;
|
|
2187
|
+
pricePerShare: bigint;
|
|
2188
|
+
lastUpdate: bigint;
|
|
2189
|
+
};
|
|
2190
|
+
nextIndex: bigint;
|
|
2191
|
+
}>;
|
|
2192
|
+
snapShots: (arg0: `0x${string}`, arg1: bigint) => Promise<{
|
|
2193
|
+
totalSupply: bigint;
|
|
2194
|
+
pricePerShare: bigint;
|
|
2195
|
+
lastUpdate: bigint;
|
|
2196
|
+
}>;
|
|
2197
|
+
snapShotPriceConfig: () => Promise<{
|
|
2198
|
+
minSnapshotDelay: bigint;
|
|
2199
|
+
maxNumSnapshots: bigint;
|
|
2200
|
+
maxUpsideDeviation: bigint;
|
|
2201
|
+
staleTime: bigint;
|
|
2202
|
+
}>;
|
|
2203
|
+
isPaused: () => Promise<boolean>;
|
|
1904
2204
|
hasCapability: (action: bigint) => Promise<boolean>;
|
|
1905
2205
|
getRegistries: () => Promise<`0x${string}`[]>;
|
|
1906
2206
|
isYieldLego: () => Promise<boolean>;
|
|
1907
2207
|
isDexLego: () => Promise<boolean>;
|
|
1908
|
-
isEligibleVaultForTrialFunds: (vaultToken: `0x${string}`, underlyingAsset: `0x${string}`) => Promise<boolean>;
|
|
1909
|
-
isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
|
|
1910
|
-
isRebasing: () => Promise<boolean>;
|
|
1911
|
-
isVaultToken: (vaultToken: `0x${string}`) => Promise<boolean>;
|
|
1912
2208
|
getUnderlyingAsset: (vaultToken: `0x${string}`) => Promise<`0x${string}`>;
|
|
2209
|
+
getUnderlyingBalances: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<[bigint, bigint]>;
|
|
1913
2210
|
getUnderlyingAmount: (vaultToken: `0x${string}`, vaultTokenAmount: bigint) => Promise<bigint>;
|
|
1914
|
-
|
|
1915
|
-
getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
|
|
2211
|
+
getUnderlyingAmountSafe: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<bigint>;
|
|
1916
2212
|
getUnderlyingData: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<[`0x${string}`, bigint, bigint]>;
|
|
2213
|
+
getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
|
|
2214
|
+
isRebasing: () => Promise<boolean>;
|
|
2215
|
+
getPricePerShare: (vaultToken: `0x${string}`, decimals?: bigint) => Promise<bigint>;
|
|
2216
|
+
getVaultTokenAmount: (asset: `0x${string}`, assetAmount: bigint, vaultToken: `0x${string}`) => Promise<bigint>;
|
|
2217
|
+
isEligibleVaultForTrialFunds: (vaultToken: `0x${string}`, underlyingAsset: `0x${string}`) => Promise<boolean>;
|
|
2218
|
+
isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
|
|
1917
2219
|
totalAssets: (vaultToken: `0x${string}`) => Promise<bigint>;
|
|
1918
2220
|
totalBorrows: (vaultToken: `0x${string}`) => Promise<bigint>;
|
|
1919
|
-
|
|
2221
|
+
canRegisterVaultToken: (asset: `0x${string}`, vaultToken: `0x${string}`) => Promise<boolean>;
|
|
1920
2222
|
getAccessForLego: (user: `0x${string}`, action: bigint) => Promise<[`0x${string}`, string, bigint]>;
|
|
1921
|
-
|
|
2223
|
+
hasClaimableRewards: (user: `0x${string}`) => Promise<boolean>;
|
|
1922
2224
|
AAVE_V3_POOL: () => Promise<`0x${string}`>;
|
|
1923
2225
|
AAVE_V3_ADDRESS_PROVIDER: () => Promise<`0x${string}`>;
|
|
1924
2226
|
};
|
|
@@ -1926,6 +2228,18 @@ export type Contract = {
|
|
|
1926
2228
|
pause: (shouldPause: boolean) => Promise<void>;
|
|
1927
2229
|
recoverFunds: (recipient: `0x${string}`, asset: `0x${string}`) => Promise<void>;
|
|
1928
2230
|
recoverFundsMany: (recipient: `0x${string}`, assets: `0x${string}`[]) => Promise<void>;
|
|
2231
|
+
setSnapShotPriceConfig: (config: {
|
|
2232
|
+
minSnapshotDelay: bigint;
|
|
2233
|
+
maxNumSnapshots: bigint;
|
|
2234
|
+
maxUpsideDeviation: bigint;
|
|
2235
|
+
staleTime: bigint;
|
|
2236
|
+
}) => Promise<void>;
|
|
2237
|
+
registerVaultTokenLocally: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<{
|
|
2238
|
+
underlyingAsset: `0x${string}`;
|
|
2239
|
+
decimals: bigint;
|
|
2240
|
+
lastAveragePricePerShare: bigint;
|
|
2241
|
+
}>;
|
|
2242
|
+
deregisterVaultTokenLocally: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
|
|
1929
2243
|
depositForYield: (asset: `0x${string}`, amount: bigint, vaultAddr: `0x${string}`, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
|
|
1930
2244
|
ledger: `0x${string}`;
|
|
1931
2245
|
missionControl: `0x${string}`;
|
|
@@ -1938,8 +2252,13 @@ export type Contract = {
|
|
|
1938
2252
|
legoBook: `0x${string}`;
|
|
1939
2253
|
appraiser: `0x${string}`;
|
|
1940
2254
|
}) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
|
|
1941
|
-
|
|
1942
|
-
|
|
2255
|
+
addPriceSnapshot: (vaultToken: `0x${string}`) => Promise<boolean>;
|
|
2256
|
+
claimRewards: (user: `0x${string}`, rewardToken: `0x${string}`, rewardAmount: bigint, extraData: `0x${string}`, miniAddys?: {
|
|
2257
|
+
ledger: `0x${string}`;
|
|
2258
|
+
missionControl: `0x${string}`;
|
|
2259
|
+
legoBook: `0x${string}`;
|
|
2260
|
+
appraiser: `0x${string}`;
|
|
2261
|
+
}) => Promise<[bigint, bigint]>;
|
|
1943
2262
|
swapTokens: (amountIn: bigint, minAmountOut: bigint, tokenPath: `0x${string}`[], poolPath: `0x${string}`[], recipient: `0x${string}`, miniAddys?: {
|
|
1944
2263
|
ledger: `0x${string}`;
|
|
1945
2264
|
missionControl: `0x${string}`;
|
|
@@ -1982,12 +2301,6 @@ export type Contract = {
|
|
|
1982
2301
|
legoBook: `0x${string}`;
|
|
1983
2302
|
appraiser: `0x${string}`;
|
|
1984
2303
|
}) => Promise<[bigint, bigint]>;
|
|
1985
|
-
claimRewards: (user: `0x${string}`, rewardToken: `0x${string}`, rewardAmount: bigint, extraData: `0x${string}`, miniAddys?: {
|
|
1986
|
-
ledger: `0x${string}`;
|
|
1987
|
-
missionControl: `0x${string}`;
|
|
1988
|
-
legoBook: `0x${string}`;
|
|
1989
|
-
appraiser: `0x${string}`;
|
|
1990
|
-
}) => Promise<[bigint, bigint]>;
|
|
1991
2304
|
addLiquidity: (pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, amountA: bigint, amountB: bigint, minAmountA: bigint, minAmountB: bigint, minLpAmount: bigint, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
|
|
1992
2305
|
ledger: `0x${string}`;
|
|
1993
2306
|
missionControl: `0x${string}`;
|
|
@@ -2018,6 +2331,7 @@ export type Contract = {
|
|
|
2018
2331
|
AaveV3Withdrawal: (sender: `0x${string}`, asset: `0x${string}`, vaultToken: `0x${string}`, assetAmountReceived: bigint, usdValue: bigint, vaultTokenAmountBurned: bigint, recipient: `0x${string}`) => Promise<void>;
|
|
2019
2332
|
LegoPauseModified: (isPaused: boolean) => Promise<void>;
|
|
2020
2333
|
LegoFundsRecovered: (asset: `0x${string}`, recipient: `0x${string}`, balance: bigint) => Promise<void>;
|
|
2334
|
+
SnapShotPriceConfigSet: (minSnapshotDelay: bigint, maxNumSnapshots: bigint, maxUpsideDeviation: bigint, staleTime: bigint) => Promise<void>;
|
|
2021
2335
|
AssetOpportunityAdded: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
|
|
2022
2336
|
AssetOpportunityRemoved: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
|
|
2023
2337
|
};
|
|
@@ -2067,41 +2381,52 @@ export type SDK = {
|
|
|
2067
2381
|
getAssets: (...args: ExtractArgs<Contract['calls']['getAssets']>) => Promise<CallReturn<'getAssets'>>;
|
|
2068
2382
|
isAssetOpportunity: (...args: ExtractArgs<Contract['calls']['isAssetOpportunity']>) => Promise<CallReturn<'isAssetOpportunity'>>;
|
|
2069
2383
|
getNumLegoAssets: (...args: ExtractArgs<Contract['calls']['getNumLegoAssets']>) => Promise<CallReturn<'getNumLegoAssets'>>;
|
|
2070
|
-
|
|
2384
|
+
getWeightedPricePerShare: (...args: ExtractArgs<Contract['calls']['getWeightedPricePerShare']>) => Promise<CallReturn<'getWeightedPricePerShare'>>;
|
|
2385
|
+
getLatestSnapshot: (...args: ExtractArgs<Contract['calls']['getLatestSnapshot']>) => Promise<CallReturn<'getLatestSnapshot'>>;
|
|
2386
|
+
isValidPriceConfig: (...args: ExtractArgs<Contract['calls']['isValidPriceConfig']>) => Promise<CallReturn<'isValidPriceConfig'>>;
|
|
2387
|
+
vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
|
|
2071
2388
|
assetOpportunities: (...args: ExtractArgs<Contract['calls']['assetOpportunities']>) => Promise<CallReturn<'assetOpportunities'>>;
|
|
2072
2389
|
indexOfAssetOpportunity: (...args: ExtractArgs<Contract['calls']['indexOfAssetOpportunity']>) => Promise<CallReturn<'indexOfAssetOpportunity'>>;
|
|
2073
2390
|
numAssetOpportunities: (...args: ExtractArgs<Contract['calls']['numAssetOpportunities']>) => Promise<CallReturn<'numAssetOpportunities'>>;
|
|
2074
|
-
vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
|
|
2075
2391
|
assets: (...args: ExtractArgs<Contract['calls']['assets']>) => Promise<CallReturn<'assets'>>;
|
|
2076
2392
|
indexOfAsset: (...args: ExtractArgs<Contract['calls']['indexOfAsset']>) => Promise<CallReturn<'indexOfAsset'>>;
|
|
2077
2393
|
numAssets: (...args: ExtractArgs<Contract['calls']['numAssets']>) => Promise<CallReturn<'numAssets'>>;
|
|
2394
|
+
snapShotData: (...args: ExtractArgs<Contract['calls']['snapShotData']>) => Promise<CallReturn<'snapShotData'>>;
|
|
2395
|
+
snapShots: (...args: ExtractArgs<Contract['calls']['snapShots']>) => Promise<CallReturn<'snapShots'>>;
|
|
2396
|
+
snapShotPriceConfig: (...args: ExtractArgs<Contract['calls']['snapShotPriceConfig']>) => Promise<CallReturn<'snapShotPriceConfig'>>;
|
|
2397
|
+
isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
|
|
2078
2398
|
hasCapability: (...args: ExtractArgs<Contract['calls']['hasCapability']>) => Promise<CallReturn<'hasCapability'>>;
|
|
2079
2399
|
getRegistries: (...args: ExtractArgs<Contract['calls']['getRegistries']>) => Promise<CallReturn<'getRegistries'>>;
|
|
2080
2400
|
isYieldLego: (...args: ExtractArgs<Contract['calls']['isYieldLego']>) => Promise<CallReturn<'isYieldLego'>>;
|
|
2081
2401
|
isDexLego: (...args: ExtractArgs<Contract['calls']['isDexLego']>) => Promise<CallReturn<'isDexLego'>>;
|
|
2082
|
-
isEligibleVaultForTrialFunds: (...args: ExtractArgs<Contract['calls']['isEligibleVaultForTrialFunds']>) => Promise<CallReturn<'isEligibleVaultForTrialFunds'>>;
|
|
2083
|
-
isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
|
|
2084
|
-
isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
|
|
2085
|
-
isVaultToken: (...args: ExtractArgs<Contract['calls']['isVaultToken']>) => Promise<CallReturn<'isVaultToken'>>;
|
|
2086
2402
|
getUnderlyingAsset: (...args: ExtractArgs<Contract['calls']['getUnderlyingAsset']>) => Promise<CallReturn<'getUnderlyingAsset'>>;
|
|
2403
|
+
getUnderlyingBalances: (...args: ExtractArgs<Contract['calls']['getUnderlyingBalances']>) => Promise<CallReturn<'getUnderlyingBalances'>>;
|
|
2087
2404
|
getUnderlyingAmount: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmount']>) => Promise<CallReturn<'getUnderlyingAmount'>>;
|
|
2088
|
-
|
|
2089
|
-
getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
|
|
2405
|
+
getUnderlyingAmountSafe: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmountSafe']>) => Promise<CallReturn<'getUnderlyingAmountSafe'>>;
|
|
2090
2406
|
getUnderlyingData: (...args: ExtractArgs<Contract['calls']['getUnderlyingData']>) => Promise<CallReturn<'getUnderlyingData'>>;
|
|
2407
|
+
getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
|
|
2408
|
+
isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
|
|
2409
|
+
getPricePerShare: (...args: ExtractArgs<Contract['calls']['getPricePerShare']>) => Promise<CallReturn<'getPricePerShare'>>;
|
|
2410
|
+
getVaultTokenAmount: (...args: ExtractArgs<Contract['calls']['getVaultTokenAmount']>) => Promise<CallReturn<'getVaultTokenAmount'>>;
|
|
2411
|
+
isEligibleVaultForTrialFunds: (...args: ExtractArgs<Contract['calls']['isEligibleVaultForTrialFunds']>) => Promise<CallReturn<'isEligibleVaultForTrialFunds'>>;
|
|
2412
|
+
isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
|
|
2091
2413
|
totalAssets: (...args: ExtractArgs<Contract['calls']['totalAssets']>) => Promise<CallReturn<'totalAssets'>>;
|
|
2092
2414
|
totalBorrows: (...args: ExtractArgs<Contract['calls']['totalBorrows']>) => Promise<CallReturn<'totalBorrows'>>;
|
|
2093
|
-
|
|
2415
|
+
canRegisterVaultToken: (...args: ExtractArgs<Contract['calls']['canRegisterVaultToken']>) => Promise<CallReturn<'canRegisterVaultToken'>>;
|
|
2094
2416
|
getAccessForLego: (...args: ExtractArgs<Contract['calls']['getAccessForLego']>) => Promise<CallReturn<'getAccessForLego'>>;
|
|
2095
|
-
|
|
2417
|
+
hasClaimableRewards: (...args: ExtractArgs<Contract['calls']['hasClaimableRewards']>) => Promise<CallReturn<'hasClaimableRewards'>>;
|
|
2096
2418
|
AAVE_V3_POOL: (...args: ExtractArgs<Contract['calls']['AAVE_V3_POOL']>) => Promise<CallReturn<'AAVE_V3_POOL'>>;
|
|
2097
2419
|
AAVE_V3_ADDRESS_PROVIDER: (...args: ExtractArgs<Contract['calls']['AAVE_V3_ADDRESS_PROVIDER']>) => Promise<CallReturn<'AAVE_V3_ADDRESS_PROVIDER'>>;
|
|
2098
2420
|
pause: (...args: ExtractArgs<Contract['mutations']['pause']>) => Promise<Address>;
|
|
2099
2421
|
recoverFunds: (...args: ExtractArgs<Contract['mutations']['recoverFunds']>) => Promise<Address>;
|
|
2100
2422
|
recoverFundsMany: (...args: ExtractArgs<Contract['mutations']['recoverFundsMany']>) => Promise<Address>;
|
|
2423
|
+
setSnapShotPriceConfig: (...args: ExtractArgs<Contract['mutations']['setSnapShotPriceConfig']>) => Promise<Address>;
|
|
2424
|
+
registerVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['registerVaultTokenLocally']>) => Promise<Address>;
|
|
2425
|
+
deregisterVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['deregisterVaultTokenLocally']>) => Promise<Address>;
|
|
2101
2426
|
depositForYield: (...args: ExtractArgs<Contract['mutations']['depositForYield']>) => Promise<Address>;
|
|
2102
2427
|
withdrawFromYield: (...args: ExtractArgs<Contract['mutations']['withdrawFromYield']>) => Promise<Address>;
|
|
2103
|
-
|
|
2104
|
-
|
|
2428
|
+
addPriceSnapshot: (...args: ExtractArgs<Contract['mutations']['addPriceSnapshot']>) => Promise<Address>;
|
|
2429
|
+
claimRewards: (...args: ExtractArgs<Contract['mutations']['claimRewards']>) => Promise<Address>;
|
|
2105
2430
|
swapTokens: (...args: ExtractArgs<Contract['mutations']['swapTokens']>) => Promise<Address>;
|
|
2106
2431
|
mintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['mintOrRedeemAsset']>) => Promise<Address>;
|
|
2107
2432
|
confirmMintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['confirmMintOrRedeemAsset']>) => Promise<Address>;
|
|
@@ -2109,7 +2434,6 @@ export type SDK = {
|
|
|
2109
2434
|
removeCollateral: (...args: ExtractArgs<Contract['mutations']['removeCollateral']>) => Promise<Address>;
|
|
2110
2435
|
borrow: (...args: ExtractArgs<Contract['mutations']['borrow']>) => Promise<Address>;
|
|
2111
2436
|
repayDebt: (...args: ExtractArgs<Contract['mutations']['repayDebt']>) => Promise<Address>;
|
|
2112
|
-
claimRewards: (...args: ExtractArgs<Contract['mutations']['claimRewards']>) => Promise<Address>;
|
|
2113
2437
|
addLiquidity: (...args: ExtractArgs<Contract['mutations']['addLiquidity']>) => Promise<Address>;
|
|
2114
2438
|
removeLiquidity: (...args: ExtractArgs<Contract['mutations']['removeLiquidity']>) => Promise<Address>;
|
|
2115
2439
|
addLiquidityConcentrated: (...args: ExtractArgs<Contract['mutations']['addLiquidityConcentrated']>) => Promise<Address>;
|