@underscore-finance/sdk 1.0.12 → 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/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 [{
|
|
@@ -128,6 +149,23 @@ export declare const abi: readonly [{
|
|
|
128
149
|
}];
|
|
129
150
|
readonly anonymous: false;
|
|
130
151
|
readonly type: "event";
|
|
152
|
+
}, {
|
|
153
|
+
readonly name: "PricePerShareSnapShotAdded";
|
|
154
|
+
readonly inputs: readonly [{
|
|
155
|
+
readonly name: "vaultToken";
|
|
156
|
+
readonly type: "address";
|
|
157
|
+
readonly indexed: true;
|
|
158
|
+
}, {
|
|
159
|
+
readonly name: "totalSupply";
|
|
160
|
+
readonly type: "uint256";
|
|
161
|
+
readonly indexed: false;
|
|
162
|
+
}, {
|
|
163
|
+
readonly name: "pricePerShare";
|
|
164
|
+
readonly type: "uint256";
|
|
165
|
+
readonly indexed: false;
|
|
166
|
+
}];
|
|
167
|
+
readonly anonymous: false;
|
|
168
|
+
readonly type: "event";
|
|
131
169
|
}, {
|
|
132
170
|
readonly stateMutability: "view";
|
|
133
171
|
readonly type: "function";
|
|
@@ -169,6 +207,9 @@ export declare const abi: readonly [{
|
|
|
169
207
|
}, {
|
|
170
208
|
readonly name: "billing";
|
|
171
209
|
readonly type: "address";
|
|
210
|
+
}, {
|
|
211
|
+
readonly name: "vaultRegistry";
|
|
212
|
+
readonly type: "address";
|
|
172
213
|
}];
|
|
173
214
|
}];
|
|
174
215
|
}, {
|
|
@@ -273,12 +314,109 @@ export declare const abi: readonly [{
|
|
|
273
314
|
}, {
|
|
274
315
|
readonly stateMutability: "view";
|
|
275
316
|
readonly type: "function";
|
|
276
|
-
readonly name: "
|
|
277
|
-
readonly inputs: readonly [
|
|
317
|
+
readonly name: "getWeightedPricePerShare";
|
|
318
|
+
readonly inputs: readonly [{
|
|
319
|
+
readonly name: "_vaultToken";
|
|
320
|
+
readonly type: "address";
|
|
321
|
+
}];
|
|
322
|
+
readonly outputs: readonly [{
|
|
323
|
+
readonly name: "";
|
|
324
|
+
readonly type: "uint256";
|
|
325
|
+
}];
|
|
326
|
+
}, {
|
|
327
|
+
readonly stateMutability: "view";
|
|
328
|
+
readonly type: "function";
|
|
329
|
+
readonly name: "getLatestSnapshot";
|
|
330
|
+
readonly inputs: readonly [{
|
|
331
|
+
readonly name: "_vaultToken";
|
|
332
|
+
readonly type: "address";
|
|
333
|
+
}, {
|
|
334
|
+
readonly name: "_pricePerShare";
|
|
335
|
+
readonly type: "uint256";
|
|
336
|
+
}];
|
|
337
|
+
readonly outputs: readonly [{
|
|
338
|
+
readonly name: "";
|
|
339
|
+
readonly type: "tuple";
|
|
340
|
+
readonly components: readonly [{
|
|
341
|
+
readonly name: "totalSupply";
|
|
342
|
+
readonly type: "uint256";
|
|
343
|
+
}, {
|
|
344
|
+
readonly name: "pricePerShare";
|
|
345
|
+
readonly type: "uint256";
|
|
346
|
+
}, {
|
|
347
|
+
readonly name: "lastUpdate";
|
|
348
|
+
readonly type: "uint256";
|
|
349
|
+
}];
|
|
350
|
+
}];
|
|
351
|
+
}, {
|
|
352
|
+
readonly stateMutability: "nonpayable";
|
|
353
|
+
readonly type: "function";
|
|
354
|
+
readonly name: "setSnapShotPriceConfig";
|
|
355
|
+
readonly inputs: readonly [{
|
|
356
|
+
readonly name: "_config";
|
|
357
|
+
readonly type: "tuple";
|
|
358
|
+
readonly components: readonly [{
|
|
359
|
+
readonly name: "minSnapshotDelay";
|
|
360
|
+
readonly type: "uint256";
|
|
361
|
+
}, {
|
|
362
|
+
readonly name: "maxNumSnapshots";
|
|
363
|
+
readonly type: "uint256";
|
|
364
|
+
}, {
|
|
365
|
+
readonly name: "maxUpsideDeviation";
|
|
366
|
+
readonly type: "uint256";
|
|
367
|
+
}, {
|
|
368
|
+
readonly name: "staleTime";
|
|
369
|
+
readonly type: "uint256";
|
|
370
|
+
}];
|
|
371
|
+
}];
|
|
372
|
+
readonly outputs: readonly [];
|
|
373
|
+
}, {
|
|
374
|
+
readonly stateMutability: "view";
|
|
375
|
+
readonly type: "function";
|
|
376
|
+
readonly name: "isValidPriceConfig";
|
|
377
|
+
readonly inputs: readonly [{
|
|
378
|
+
readonly name: "_config";
|
|
379
|
+
readonly type: "tuple";
|
|
380
|
+
readonly components: readonly [{
|
|
381
|
+
readonly name: "minSnapshotDelay";
|
|
382
|
+
readonly type: "uint256";
|
|
383
|
+
}, {
|
|
384
|
+
readonly name: "maxNumSnapshots";
|
|
385
|
+
readonly type: "uint256";
|
|
386
|
+
}, {
|
|
387
|
+
readonly name: "maxUpsideDeviation";
|
|
388
|
+
readonly type: "uint256";
|
|
389
|
+
}, {
|
|
390
|
+
readonly name: "staleTime";
|
|
391
|
+
readonly type: "uint256";
|
|
392
|
+
}];
|
|
393
|
+
}];
|
|
278
394
|
readonly outputs: readonly [{
|
|
279
395
|
readonly name: "";
|
|
280
396
|
readonly type: "bool";
|
|
281
397
|
}];
|
|
398
|
+
}, {
|
|
399
|
+
readonly stateMutability: "view";
|
|
400
|
+
readonly type: "function";
|
|
401
|
+
readonly name: "vaultToAsset";
|
|
402
|
+
readonly inputs: readonly [{
|
|
403
|
+
readonly name: "arg0";
|
|
404
|
+
readonly type: "address";
|
|
405
|
+
}];
|
|
406
|
+
readonly outputs: readonly [{
|
|
407
|
+
readonly name: "";
|
|
408
|
+
readonly type: "tuple";
|
|
409
|
+
readonly components: readonly [{
|
|
410
|
+
readonly name: "underlyingAsset";
|
|
411
|
+
readonly type: "address";
|
|
412
|
+
}, {
|
|
413
|
+
readonly name: "decimals";
|
|
414
|
+
readonly type: "uint256";
|
|
415
|
+
}, {
|
|
416
|
+
readonly name: "lastAveragePricePerShare";
|
|
417
|
+
readonly type: "uint256";
|
|
418
|
+
}];
|
|
419
|
+
}];
|
|
282
420
|
}, {
|
|
283
421
|
readonly stateMutability: "view";
|
|
284
422
|
readonly type: "function";
|
|
@@ -324,10 +462,10 @@ export declare const abi: readonly [{
|
|
|
324
462
|
}, {
|
|
325
463
|
readonly stateMutability: "view";
|
|
326
464
|
readonly type: "function";
|
|
327
|
-
readonly name: "
|
|
465
|
+
readonly name: "assets";
|
|
328
466
|
readonly inputs: readonly [{
|
|
329
467
|
readonly name: "arg0";
|
|
330
|
-
readonly type: "
|
|
468
|
+
readonly type: "uint256";
|
|
331
469
|
}];
|
|
332
470
|
readonly outputs: readonly [{
|
|
333
471
|
readonly name: "";
|
|
@@ -336,35 +474,108 @@ export declare const abi: readonly [{
|
|
|
336
474
|
}, {
|
|
337
475
|
readonly stateMutability: "view";
|
|
338
476
|
readonly type: "function";
|
|
339
|
-
readonly name: "
|
|
477
|
+
readonly name: "indexOfAsset";
|
|
340
478
|
readonly inputs: readonly [{
|
|
341
479
|
readonly name: "arg0";
|
|
480
|
+
readonly type: "address";
|
|
481
|
+
}];
|
|
482
|
+
readonly outputs: readonly [{
|
|
483
|
+
readonly name: "";
|
|
342
484
|
readonly type: "uint256";
|
|
343
485
|
}];
|
|
486
|
+
}, {
|
|
487
|
+
readonly stateMutability: "view";
|
|
488
|
+
readonly type: "function";
|
|
489
|
+
readonly name: "numAssets";
|
|
490
|
+
readonly inputs: readonly [];
|
|
344
491
|
readonly outputs: readonly [{
|
|
345
492
|
readonly name: "";
|
|
346
|
-
readonly type: "
|
|
493
|
+
readonly type: "uint256";
|
|
347
494
|
}];
|
|
348
495
|
}, {
|
|
349
496
|
readonly stateMutability: "view";
|
|
350
497
|
readonly type: "function";
|
|
351
|
-
readonly name: "
|
|
498
|
+
readonly name: "snapShotData";
|
|
352
499
|
readonly inputs: readonly [{
|
|
353
500
|
readonly name: "arg0";
|
|
354
501
|
readonly type: "address";
|
|
355
502
|
}];
|
|
356
503
|
readonly outputs: readonly [{
|
|
357
504
|
readonly name: "";
|
|
505
|
+
readonly type: "tuple";
|
|
506
|
+
readonly components: readonly [{
|
|
507
|
+
readonly name: "lastSnapShot";
|
|
508
|
+
readonly type: "tuple";
|
|
509
|
+
readonly components: readonly [{
|
|
510
|
+
readonly name: "totalSupply";
|
|
511
|
+
readonly type: "uint256";
|
|
512
|
+
}, {
|
|
513
|
+
readonly name: "pricePerShare";
|
|
514
|
+
readonly type: "uint256";
|
|
515
|
+
}, {
|
|
516
|
+
readonly name: "lastUpdate";
|
|
517
|
+
readonly type: "uint256";
|
|
518
|
+
}];
|
|
519
|
+
}, {
|
|
520
|
+
readonly name: "nextIndex";
|
|
521
|
+
readonly type: "uint256";
|
|
522
|
+
}];
|
|
523
|
+
}];
|
|
524
|
+
}, {
|
|
525
|
+
readonly stateMutability: "view";
|
|
526
|
+
readonly type: "function";
|
|
527
|
+
readonly name: "snapShots";
|
|
528
|
+
readonly inputs: readonly [{
|
|
529
|
+
readonly name: "arg0";
|
|
530
|
+
readonly type: "address";
|
|
531
|
+
}, {
|
|
532
|
+
readonly name: "arg1";
|
|
358
533
|
readonly type: "uint256";
|
|
359
534
|
}];
|
|
535
|
+
readonly outputs: readonly [{
|
|
536
|
+
readonly name: "";
|
|
537
|
+
readonly type: "tuple";
|
|
538
|
+
readonly components: readonly [{
|
|
539
|
+
readonly name: "totalSupply";
|
|
540
|
+
readonly type: "uint256";
|
|
541
|
+
}, {
|
|
542
|
+
readonly name: "pricePerShare";
|
|
543
|
+
readonly type: "uint256";
|
|
544
|
+
}, {
|
|
545
|
+
readonly name: "lastUpdate";
|
|
546
|
+
readonly type: "uint256";
|
|
547
|
+
}];
|
|
548
|
+
}];
|
|
360
549
|
}, {
|
|
361
550
|
readonly stateMutability: "view";
|
|
362
551
|
readonly type: "function";
|
|
363
|
-
readonly name: "
|
|
552
|
+
readonly name: "snapShotPriceConfig";
|
|
364
553
|
readonly inputs: readonly [];
|
|
365
554
|
readonly outputs: readonly [{
|
|
366
555
|
readonly name: "";
|
|
367
|
-
readonly type: "
|
|
556
|
+
readonly type: "tuple";
|
|
557
|
+
readonly components: readonly [{
|
|
558
|
+
readonly name: "minSnapshotDelay";
|
|
559
|
+
readonly type: "uint256";
|
|
560
|
+
}, {
|
|
561
|
+
readonly name: "maxNumSnapshots";
|
|
562
|
+
readonly type: "uint256";
|
|
563
|
+
}, {
|
|
564
|
+
readonly name: "maxUpsideDeviation";
|
|
565
|
+
readonly type: "uint256";
|
|
566
|
+
}, {
|
|
567
|
+
readonly name: "staleTime";
|
|
568
|
+
readonly type: "uint256";
|
|
569
|
+
}];
|
|
570
|
+
}];
|
|
571
|
+
}, {
|
|
572
|
+
readonly stateMutability: "view";
|
|
573
|
+
readonly type: "function";
|
|
574
|
+
readonly name: "isPaused";
|
|
575
|
+
readonly inputs: readonly [];
|
|
576
|
+
readonly outputs: readonly [{
|
|
577
|
+
readonly name: "";
|
|
578
|
+
readonly type: "bool";
|
|
368
579
|
}];
|
|
369
580
|
}, {
|
|
370
581
|
readonly stateMutability: "view";
|
|
@@ -390,28 +601,163 @@ export declare const abi: readonly [{
|
|
|
390
601
|
}, {
|
|
391
602
|
readonly stateMutability: "view";
|
|
392
603
|
readonly type: "function";
|
|
393
|
-
readonly name: "
|
|
604
|
+
readonly name: "isYieldLego";
|
|
605
|
+
readonly inputs: readonly [];
|
|
606
|
+
readonly outputs: readonly [{
|
|
607
|
+
readonly name: "";
|
|
608
|
+
readonly type: "bool";
|
|
609
|
+
}];
|
|
610
|
+
}, {
|
|
611
|
+
readonly stateMutability: "view";
|
|
612
|
+
readonly type: "function";
|
|
613
|
+
readonly name: "isDexLego";
|
|
614
|
+
readonly inputs: readonly [];
|
|
615
|
+
readonly outputs: readonly [{
|
|
616
|
+
readonly name: "";
|
|
617
|
+
readonly type: "bool";
|
|
618
|
+
}];
|
|
619
|
+
}, {
|
|
620
|
+
readonly stateMutability: "view";
|
|
621
|
+
readonly type: "function";
|
|
622
|
+
readonly name: "getUnderlyingAsset";
|
|
394
623
|
readonly inputs: readonly [{
|
|
395
|
-
readonly name: "
|
|
624
|
+
readonly name: "_vaultToken";
|
|
625
|
+
readonly type: "address";
|
|
626
|
+
}];
|
|
627
|
+
readonly outputs: readonly [{
|
|
628
|
+
readonly name: "";
|
|
629
|
+
readonly type: "address";
|
|
630
|
+
}];
|
|
631
|
+
}, {
|
|
632
|
+
readonly stateMutability: "view";
|
|
633
|
+
readonly type: "function";
|
|
634
|
+
readonly name: "getUnderlyingBalances";
|
|
635
|
+
readonly inputs: readonly [{
|
|
636
|
+
readonly name: "_vaultToken";
|
|
396
637
|
readonly type: "address";
|
|
397
638
|
}, {
|
|
398
|
-
readonly name: "
|
|
639
|
+
readonly name: "_vaultTokenBalance";
|
|
399
640
|
readonly type: "uint256";
|
|
400
641
|
}];
|
|
401
642
|
readonly outputs: readonly [{
|
|
402
643
|
readonly name: "";
|
|
644
|
+
readonly type: "uint256";
|
|
645
|
+
}, {
|
|
646
|
+
readonly name: "";
|
|
647
|
+
readonly type: "uint256";
|
|
648
|
+
}];
|
|
649
|
+
}, {
|
|
650
|
+
readonly stateMutability: "view";
|
|
651
|
+
readonly type: "function";
|
|
652
|
+
readonly name: "getUnderlyingAmount";
|
|
653
|
+
readonly inputs: readonly [{
|
|
654
|
+
readonly name: "_vaultToken";
|
|
403
655
|
readonly type: "address";
|
|
404
656
|
}, {
|
|
657
|
+
readonly name: "_vaultTokenAmount";
|
|
658
|
+
readonly type: "uint256";
|
|
659
|
+
}];
|
|
660
|
+
readonly outputs: readonly [{
|
|
405
661
|
readonly name: "";
|
|
406
|
-
readonly type: "
|
|
662
|
+
readonly type: "uint256";
|
|
663
|
+
}];
|
|
664
|
+
}, {
|
|
665
|
+
readonly stateMutability: "view";
|
|
666
|
+
readonly type: "function";
|
|
667
|
+
readonly name: "getUnderlyingAmountSafe";
|
|
668
|
+
readonly inputs: readonly [{
|
|
669
|
+
readonly name: "_vaultToken";
|
|
670
|
+
readonly type: "address";
|
|
407
671
|
}, {
|
|
672
|
+
readonly name: "_vaultTokenBalance";
|
|
673
|
+
readonly type: "uint256";
|
|
674
|
+
}];
|
|
675
|
+
readonly outputs: readonly [{
|
|
408
676
|
readonly name: "";
|
|
409
677
|
readonly type: "uint256";
|
|
410
678
|
}];
|
|
411
679
|
}, {
|
|
412
680
|
readonly stateMutability: "view";
|
|
413
681
|
readonly type: "function";
|
|
414
|
-
readonly name: "
|
|
682
|
+
readonly name: "getUnderlyingData";
|
|
683
|
+
readonly inputs: readonly [{
|
|
684
|
+
readonly name: "_vaultToken";
|
|
685
|
+
readonly type: "address";
|
|
686
|
+
}, {
|
|
687
|
+
readonly name: "_vaultTokenAmount";
|
|
688
|
+
readonly type: "uint256";
|
|
689
|
+
}];
|
|
690
|
+
readonly outputs: readonly [{
|
|
691
|
+
readonly name: "";
|
|
692
|
+
readonly type: "address";
|
|
693
|
+
}, {
|
|
694
|
+
readonly name: "";
|
|
695
|
+
readonly type: "uint256";
|
|
696
|
+
}, {
|
|
697
|
+
readonly name: "";
|
|
698
|
+
readonly type: "uint256";
|
|
699
|
+
}];
|
|
700
|
+
}, {
|
|
701
|
+
readonly stateMutability: "view";
|
|
702
|
+
readonly type: "function";
|
|
703
|
+
readonly name: "getUnderlyingData";
|
|
704
|
+
readonly inputs: readonly [{
|
|
705
|
+
readonly name: "_vaultToken";
|
|
706
|
+
readonly type: "address";
|
|
707
|
+
}, {
|
|
708
|
+
readonly name: "_vaultTokenAmount";
|
|
709
|
+
readonly type: "uint256";
|
|
710
|
+
}, {
|
|
711
|
+
readonly name: "_appraiser";
|
|
712
|
+
readonly type: "address";
|
|
713
|
+
}];
|
|
714
|
+
readonly outputs: readonly [{
|
|
715
|
+
readonly name: "";
|
|
716
|
+
readonly type: "address";
|
|
717
|
+
}, {
|
|
718
|
+
readonly name: "";
|
|
719
|
+
readonly type: "uint256";
|
|
720
|
+
}, {
|
|
721
|
+
readonly name: "";
|
|
722
|
+
readonly type: "uint256";
|
|
723
|
+
}];
|
|
724
|
+
}, {
|
|
725
|
+
readonly stateMutability: "view";
|
|
726
|
+
readonly type: "function";
|
|
727
|
+
readonly name: "getUsdValueOfVaultToken";
|
|
728
|
+
readonly inputs: readonly [{
|
|
729
|
+
readonly name: "_vaultToken";
|
|
730
|
+
readonly type: "address";
|
|
731
|
+
}, {
|
|
732
|
+
readonly name: "_vaultTokenAmount";
|
|
733
|
+
readonly type: "uint256";
|
|
734
|
+
}];
|
|
735
|
+
readonly outputs: readonly [{
|
|
736
|
+
readonly name: "";
|
|
737
|
+
readonly type: "uint256";
|
|
738
|
+
}];
|
|
739
|
+
}, {
|
|
740
|
+
readonly stateMutability: "view";
|
|
741
|
+
readonly type: "function";
|
|
742
|
+
readonly name: "getUsdValueOfVaultToken";
|
|
743
|
+
readonly inputs: readonly [{
|
|
744
|
+
readonly name: "_vaultToken";
|
|
745
|
+
readonly type: "address";
|
|
746
|
+
}, {
|
|
747
|
+
readonly name: "_vaultTokenAmount";
|
|
748
|
+
readonly type: "uint256";
|
|
749
|
+
}, {
|
|
750
|
+
readonly name: "_appraiser";
|
|
751
|
+
readonly type: "address";
|
|
752
|
+
}];
|
|
753
|
+
readonly outputs: readonly [{
|
|
754
|
+
readonly name: "";
|
|
755
|
+
readonly type: "uint256";
|
|
756
|
+
}];
|
|
757
|
+
}, {
|
|
758
|
+
readonly stateMutability: "view";
|
|
759
|
+
readonly type: "function";
|
|
760
|
+
readonly name: "isRebasing";
|
|
415
761
|
readonly inputs: readonly [];
|
|
416
762
|
readonly outputs: readonly [{
|
|
417
763
|
readonly name: "";
|
|
@@ -420,8 +766,59 @@ export declare const abi: readonly [{
|
|
|
420
766
|
}, {
|
|
421
767
|
readonly stateMutability: "view";
|
|
422
768
|
readonly type: "function";
|
|
423
|
-
readonly name: "
|
|
424
|
-
readonly inputs: readonly [
|
|
769
|
+
readonly name: "getPricePerShare";
|
|
770
|
+
readonly inputs: readonly [{
|
|
771
|
+
readonly name: "_vaultToken";
|
|
772
|
+
readonly type: "address";
|
|
773
|
+
}];
|
|
774
|
+
readonly outputs: readonly [{
|
|
775
|
+
readonly name: "";
|
|
776
|
+
readonly type: "uint256";
|
|
777
|
+
}];
|
|
778
|
+
}, {
|
|
779
|
+
readonly stateMutability: "view";
|
|
780
|
+
readonly type: "function";
|
|
781
|
+
readonly name: "getPricePerShare";
|
|
782
|
+
readonly inputs: readonly [{
|
|
783
|
+
readonly name: "_vaultToken";
|
|
784
|
+
readonly type: "address";
|
|
785
|
+
}, {
|
|
786
|
+
readonly name: "_decimals";
|
|
787
|
+
readonly type: "uint256";
|
|
788
|
+
}];
|
|
789
|
+
readonly outputs: readonly [{
|
|
790
|
+
readonly name: "";
|
|
791
|
+
readonly type: "uint256";
|
|
792
|
+
}];
|
|
793
|
+
}, {
|
|
794
|
+
readonly stateMutability: "view";
|
|
795
|
+
readonly type: "function";
|
|
796
|
+
readonly name: "getVaultTokenAmount";
|
|
797
|
+
readonly inputs: readonly [{
|
|
798
|
+
readonly name: "_asset";
|
|
799
|
+
readonly type: "address";
|
|
800
|
+
}, {
|
|
801
|
+
readonly name: "_assetAmount";
|
|
802
|
+
readonly type: "uint256";
|
|
803
|
+
}, {
|
|
804
|
+
readonly name: "_vaultToken";
|
|
805
|
+
readonly type: "address";
|
|
806
|
+
}];
|
|
807
|
+
readonly outputs: readonly [{
|
|
808
|
+
readonly name: "";
|
|
809
|
+
readonly type: "uint256";
|
|
810
|
+
}];
|
|
811
|
+
}, {
|
|
812
|
+
readonly stateMutability: "view";
|
|
813
|
+
readonly type: "function";
|
|
814
|
+
readonly name: "isEligibleVaultForTrialFunds";
|
|
815
|
+
readonly inputs: readonly [{
|
|
816
|
+
readonly name: "_vaultToken";
|
|
817
|
+
readonly type: "address";
|
|
818
|
+
}, {
|
|
819
|
+
readonly name: "_underlyingAsset";
|
|
820
|
+
readonly type: "address";
|
|
821
|
+
}];
|
|
425
822
|
readonly outputs: readonly [{
|
|
426
823
|
readonly name: "";
|
|
427
824
|
readonly type: "bool";
|
|
@@ -429,33 +826,97 @@ export declare const abi: readonly [{
|
|
|
429
826
|
}, {
|
|
430
827
|
readonly stateMutability: "view";
|
|
431
828
|
readonly type: "function";
|
|
432
|
-
readonly name: "
|
|
433
|
-
readonly inputs: readonly [
|
|
829
|
+
readonly name: "isEligibleForYieldBonus";
|
|
830
|
+
readonly inputs: readonly [{
|
|
831
|
+
readonly name: "_asset";
|
|
832
|
+
readonly type: "address";
|
|
833
|
+
}];
|
|
434
834
|
readonly outputs: readonly [{
|
|
435
835
|
readonly name: "";
|
|
436
836
|
readonly type: "bool";
|
|
437
837
|
}];
|
|
438
838
|
}, {
|
|
439
|
-
readonly stateMutability: "view";
|
|
839
|
+
readonly stateMutability: "view";
|
|
840
|
+
readonly type: "function";
|
|
841
|
+
readonly name: "totalAssets";
|
|
842
|
+
readonly inputs: readonly [{
|
|
843
|
+
readonly name: "_vaultToken";
|
|
844
|
+
readonly type: "address";
|
|
845
|
+
}];
|
|
846
|
+
readonly outputs: readonly [{
|
|
847
|
+
readonly name: "";
|
|
848
|
+
readonly type: "uint256";
|
|
849
|
+
}];
|
|
850
|
+
}, {
|
|
851
|
+
readonly stateMutability: "view";
|
|
852
|
+
readonly type: "function";
|
|
853
|
+
readonly name: "totalBorrows";
|
|
854
|
+
readonly inputs: readonly [{
|
|
855
|
+
readonly name: "_vaultToken";
|
|
856
|
+
readonly type: "address";
|
|
857
|
+
}];
|
|
858
|
+
readonly outputs: readonly [{
|
|
859
|
+
readonly name: "";
|
|
860
|
+
readonly type: "uint256";
|
|
861
|
+
}];
|
|
862
|
+
}, {
|
|
863
|
+
readonly stateMutability: "view";
|
|
864
|
+
readonly type: "function";
|
|
865
|
+
readonly name: "canRegisterVaultToken";
|
|
866
|
+
readonly inputs: readonly [{
|
|
867
|
+
readonly name: "_asset";
|
|
868
|
+
readonly type: "address";
|
|
869
|
+
}, {
|
|
870
|
+
readonly name: "_vaultToken";
|
|
871
|
+
readonly type: "address";
|
|
872
|
+
}];
|
|
873
|
+
readonly outputs: readonly [{
|
|
874
|
+
readonly name: "";
|
|
875
|
+
readonly type: "bool";
|
|
876
|
+
}];
|
|
877
|
+
}, {
|
|
878
|
+
readonly stateMutability: "nonpayable";
|
|
879
|
+
readonly type: "function";
|
|
880
|
+
readonly name: "registerVaultTokenLocally";
|
|
881
|
+
readonly inputs: readonly [{
|
|
882
|
+
readonly name: "_asset";
|
|
883
|
+
readonly type: "address";
|
|
884
|
+
}, {
|
|
885
|
+
readonly name: "_vaultAddr";
|
|
886
|
+
readonly type: "address";
|
|
887
|
+
}];
|
|
888
|
+
readonly outputs: readonly [{
|
|
889
|
+
readonly name: "";
|
|
890
|
+
readonly type: "tuple";
|
|
891
|
+
readonly components: readonly [{
|
|
892
|
+
readonly name: "underlyingAsset";
|
|
893
|
+
readonly type: "address";
|
|
894
|
+
}, {
|
|
895
|
+
readonly name: "decimals";
|
|
896
|
+
readonly type: "uint256";
|
|
897
|
+
}, {
|
|
898
|
+
readonly name: "lastAveragePricePerShare";
|
|
899
|
+
readonly type: "uint256";
|
|
900
|
+
}];
|
|
901
|
+
}];
|
|
902
|
+
}, {
|
|
903
|
+
readonly stateMutability: "nonpayable";
|
|
440
904
|
readonly type: "function";
|
|
441
|
-
readonly name: "
|
|
905
|
+
readonly name: "deregisterVaultTokenLocally";
|
|
442
906
|
readonly inputs: readonly [{
|
|
443
|
-
readonly name: "
|
|
907
|
+
readonly name: "_asset";
|
|
444
908
|
readonly type: "address";
|
|
445
909
|
}, {
|
|
446
|
-
readonly name: "
|
|
910
|
+
readonly name: "_vaultAddr";
|
|
447
911
|
readonly type: "address";
|
|
448
912
|
}];
|
|
449
|
-
readonly outputs: readonly [
|
|
450
|
-
readonly name: "";
|
|
451
|
-
readonly type: "bool";
|
|
452
|
-
}];
|
|
913
|
+
readonly outputs: readonly [];
|
|
453
914
|
}, {
|
|
454
|
-
readonly stateMutability: "
|
|
915
|
+
readonly stateMutability: "nonpayable";
|
|
455
916
|
readonly type: "function";
|
|
456
|
-
readonly name: "
|
|
917
|
+
readonly name: "addPriceSnapshot";
|
|
457
918
|
readonly inputs: readonly [{
|
|
458
|
-
readonly name: "
|
|
919
|
+
readonly name: "_vaultToken";
|
|
459
920
|
readonly type: "address";
|
|
460
921
|
}];
|
|
461
922
|
readonly outputs: readonly [{
|
|
@@ -711,201 +1172,24 @@ export declare const abi: readonly [{
|
|
|
711
1172
|
}, {
|
|
712
1173
|
readonly stateMutability: "view";
|
|
713
1174
|
readonly type: "function";
|
|
714
|
-
readonly name: "
|
|
715
|
-
readonly inputs: readonly [{
|
|
716
|
-
readonly name: "_vaultToken";
|
|
717
|
-
readonly type: "address";
|
|
718
|
-
}];
|
|
719
|
-
readonly outputs: readonly [{
|
|
720
|
-
readonly name: "";
|
|
721
|
-
readonly type: "bool";
|
|
722
|
-
}];
|
|
723
|
-
}, {
|
|
724
|
-
readonly stateMutability: "view";
|
|
725
|
-
readonly type: "function";
|
|
726
|
-
readonly name: "getUnderlyingAsset";
|
|
727
|
-
readonly inputs: readonly [{
|
|
728
|
-
readonly name: "_vaultToken";
|
|
729
|
-
readonly type: "address";
|
|
730
|
-
}];
|
|
731
|
-
readonly outputs: readonly [{
|
|
732
|
-
readonly name: "";
|
|
733
|
-
readonly type: "address";
|
|
734
|
-
}];
|
|
735
|
-
}, {
|
|
736
|
-
readonly stateMutability: "view";
|
|
737
|
-
readonly type: "function";
|
|
738
|
-
readonly name: "getUnderlyingAmount";
|
|
739
|
-
readonly inputs: readonly [{
|
|
740
|
-
readonly name: "_vaultToken";
|
|
741
|
-
readonly type: "address";
|
|
742
|
-
}, {
|
|
743
|
-
readonly name: "_vaultTokenAmount";
|
|
744
|
-
readonly type: "uint256";
|
|
745
|
-
}];
|
|
746
|
-
readonly outputs: readonly [{
|
|
747
|
-
readonly name: "";
|
|
748
|
-
readonly type: "uint256";
|
|
749
|
-
}];
|
|
750
|
-
}, {
|
|
751
|
-
readonly stateMutability: "view";
|
|
752
|
-
readonly type: "function";
|
|
753
|
-
readonly name: "getVaultTokenAmount";
|
|
754
|
-
readonly inputs: readonly [{
|
|
755
|
-
readonly name: "_asset";
|
|
756
|
-
readonly type: "address";
|
|
757
|
-
}, {
|
|
758
|
-
readonly name: "_assetAmount";
|
|
759
|
-
readonly type: "uint256";
|
|
760
|
-
}, {
|
|
761
|
-
readonly name: "_vaultToken";
|
|
762
|
-
readonly type: "address";
|
|
763
|
-
}];
|
|
764
|
-
readonly outputs: readonly [{
|
|
765
|
-
readonly name: "";
|
|
766
|
-
readonly type: "uint256";
|
|
767
|
-
}];
|
|
768
|
-
}, {
|
|
769
|
-
readonly stateMutability: "view";
|
|
770
|
-
readonly type: "function";
|
|
771
|
-
readonly name: "getUsdValueOfVaultToken";
|
|
772
|
-
readonly inputs: readonly [{
|
|
773
|
-
readonly name: "_vaultToken";
|
|
774
|
-
readonly type: "address";
|
|
775
|
-
}, {
|
|
776
|
-
readonly name: "_vaultTokenAmount";
|
|
777
|
-
readonly type: "uint256";
|
|
778
|
-
}];
|
|
779
|
-
readonly outputs: readonly [{
|
|
780
|
-
readonly name: "";
|
|
781
|
-
readonly type: "uint256";
|
|
782
|
-
}];
|
|
783
|
-
}, {
|
|
784
|
-
readonly stateMutability: "view";
|
|
785
|
-
readonly type: "function";
|
|
786
|
-
readonly name: "getUsdValueOfVaultToken";
|
|
787
|
-
readonly inputs: readonly [{
|
|
788
|
-
readonly name: "_vaultToken";
|
|
789
|
-
readonly type: "address";
|
|
790
|
-
}, {
|
|
791
|
-
readonly name: "_vaultTokenAmount";
|
|
792
|
-
readonly type: "uint256";
|
|
793
|
-
}, {
|
|
794
|
-
readonly name: "_appraiser";
|
|
795
|
-
readonly type: "address";
|
|
796
|
-
}];
|
|
797
|
-
readonly outputs: readonly [{
|
|
798
|
-
readonly name: "";
|
|
799
|
-
readonly type: "uint256";
|
|
800
|
-
}];
|
|
801
|
-
}, {
|
|
802
|
-
readonly stateMutability: "view";
|
|
803
|
-
readonly type: "function";
|
|
804
|
-
readonly name: "getUnderlyingData";
|
|
805
|
-
readonly inputs: readonly [{
|
|
806
|
-
readonly name: "_vaultToken";
|
|
807
|
-
readonly type: "address";
|
|
808
|
-
}, {
|
|
809
|
-
readonly name: "_vaultTokenAmount";
|
|
810
|
-
readonly type: "uint256";
|
|
811
|
-
}];
|
|
812
|
-
readonly outputs: readonly [{
|
|
813
|
-
readonly name: "";
|
|
814
|
-
readonly type: "address";
|
|
815
|
-
}, {
|
|
816
|
-
readonly name: "";
|
|
817
|
-
readonly type: "uint256";
|
|
818
|
-
}, {
|
|
819
|
-
readonly name: "";
|
|
820
|
-
readonly type: "uint256";
|
|
821
|
-
}];
|
|
822
|
-
}, {
|
|
823
|
-
readonly stateMutability: "view";
|
|
824
|
-
readonly type: "function";
|
|
825
|
-
readonly name: "getUnderlyingData";
|
|
1175
|
+
readonly name: "getAccessForLego";
|
|
826
1176
|
readonly inputs: readonly [{
|
|
827
|
-
readonly name: "
|
|
1177
|
+
readonly name: "_user";
|
|
828
1178
|
readonly type: "address";
|
|
829
1179
|
}, {
|
|
830
|
-
readonly name: "
|
|
1180
|
+
readonly name: "_action";
|
|
831
1181
|
readonly type: "uint256";
|
|
832
|
-
}, {
|
|
833
|
-
readonly name: "_appraiser";
|
|
834
|
-
readonly type: "address";
|
|
835
1182
|
}];
|
|
836
1183
|
readonly outputs: readonly [{
|
|
837
1184
|
readonly name: "";
|
|
838
1185
|
readonly type: "address";
|
|
839
1186
|
}, {
|
|
840
1187
|
readonly name: "";
|
|
841
|
-
readonly type: "
|
|
842
|
-
}, {
|
|
843
|
-
readonly name: "";
|
|
844
|
-
readonly type: "uint256";
|
|
845
|
-
}];
|
|
846
|
-
}, {
|
|
847
|
-
readonly stateMutability: "view";
|
|
848
|
-
readonly type: "function";
|
|
849
|
-
readonly name: "totalAssets";
|
|
850
|
-
readonly inputs: readonly [{
|
|
851
|
-
readonly name: "_vaultToken";
|
|
852
|
-
readonly type: "address";
|
|
853
|
-
}];
|
|
854
|
-
readonly outputs: readonly [{
|
|
855
|
-
readonly name: "";
|
|
856
|
-
readonly type: "uint256";
|
|
857
|
-
}];
|
|
858
|
-
}, {
|
|
859
|
-
readonly stateMutability: "view";
|
|
860
|
-
readonly type: "function";
|
|
861
|
-
readonly name: "totalBorrows";
|
|
862
|
-
readonly inputs: readonly [{
|
|
863
|
-
readonly name: "_vaultToken";
|
|
864
|
-
readonly type: "address";
|
|
865
|
-
}];
|
|
866
|
-
readonly outputs: readonly [{
|
|
867
|
-
readonly name: "";
|
|
868
|
-
readonly type: "uint256";
|
|
869
|
-
}];
|
|
870
|
-
}, {
|
|
871
|
-
readonly stateMutability: "view";
|
|
872
|
-
readonly type: "function";
|
|
873
|
-
readonly name: "getPricePerShare";
|
|
874
|
-
readonly inputs: readonly [{
|
|
875
|
-
readonly name: "_asset";
|
|
876
|
-
readonly type: "address";
|
|
1188
|
+
readonly type: "string";
|
|
877
1189
|
}, {
|
|
878
|
-
readonly name: "_decimals";
|
|
879
|
-
readonly type: "uint256";
|
|
880
|
-
}];
|
|
881
|
-
readonly outputs: readonly [{
|
|
882
1190
|
readonly name: "";
|
|
883
1191
|
readonly type: "uint256";
|
|
884
1192
|
}];
|
|
885
|
-
}, {
|
|
886
|
-
readonly stateMutability: "nonpayable";
|
|
887
|
-
readonly type: "function";
|
|
888
|
-
readonly name: "addAssetOpportunity";
|
|
889
|
-
readonly inputs: readonly [{
|
|
890
|
-
readonly name: "_asset";
|
|
891
|
-
readonly type: "address";
|
|
892
|
-
}, {
|
|
893
|
-
readonly name: "_vaultAddr";
|
|
894
|
-
readonly type: "address";
|
|
895
|
-
}];
|
|
896
|
-
readonly outputs: readonly [];
|
|
897
|
-
}, {
|
|
898
|
-
readonly stateMutability: "nonpayable";
|
|
899
|
-
readonly type: "function";
|
|
900
|
-
readonly name: "removeAssetOpportunity";
|
|
901
|
-
readonly inputs: readonly [{
|
|
902
|
-
readonly name: "_asset";
|
|
903
|
-
readonly type: "address";
|
|
904
|
-
}, {
|
|
905
|
-
readonly name: "_vaultAddr";
|
|
906
|
-
readonly type: "address";
|
|
907
|
-
}];
|
|
908
|
-
readonly outputs: readonly [];
|
|
909
1193
|
}, {
|
|
910
1194
|
readonly stateMutability: "nonpayable";
|
|
911
1195
|
readonly type: "function";
|
|
@@ -1856,21 +2140,6 @@ export declare const abi: readonly [{
|
|
|
1856
2140
|
readonly name: "";
|
|
1857
2141
|
readonly type: "uint256";
|
|
1858
2142
|
}];
|
|
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
2143
|
}, {
|
|
1875
2144
|
readonly stateMutability: "view";
|
|
1876
2145
|
readonly type: "function";
|
|
@@ -1931,6 +2200,7 @@ export type Contract = {
|
|
|
1931
2200
|
appraiser: `0x${string}`;
|
|
1932
2201
|
walletBackpack: `0x${string}`;
|
|
1933
2202
|
billing: `0x${string}`;
|
|
2203
|
+
vaultRegistry: `0x${string}`;
|
|
1934
2204
|
}>;
|
|
1935
2205
|
getUndyHq: () => Promise<`0x${string}`>;
|
|
1936
2206
|
isLegoAsset: (asset: `0x${string}`) => Promise<boolean>;
|
|
@@ -1938,33 +2208,69 @@ export type Contract = {
|
|
|
1938
2208
|
getAssets: () => Promise<`0x${string}`[]>;
|
|
1939
2209
|
isAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<boolean>;
|
|
1940
2210
|
getNumLegoAssets: () => Promise<bigint>;
|
|
1941
|
-
|
|
2211
|
+
getWeightedPricePerShare: (vaultToken: `0x${string}`) => Promise<bigint>;
|
|
2212
|
+
getLatestSnapshot: (vaultToken: `0x${string}`, pricePerShare: bigint) => Promise<{
|
|
2213
|
+
totalSupply: bigint;
|
|
2214
|
+
pricePerShare: bigint;
|
|
2215
|
+
lastUpdate: bigint;
|
|
2216
|
+
}>;
|
|
2217
|
+
isValidPriceConfig: (config: {
|
|
2218
|
+
minSnapshotDelay: bigint;
|
|
2219
|
+
maxNumSnapshots: bigint;
|
|
2220
|
+
maxUpsideDeviation: bigint;
|
|
2221
|
+
staleTime: bigint;
|
|
2222
|
+
}) => Promise<boolean>;
|
|
2223
|
+
vaultToAsset: (arg0: `0x${string}`) => Promise<{
|
|
2224
|
+
underlyingAsset: `0x${string}`;
|
|
2225
|
+
decimals: bigint;
|
|
2226
|
+
lastAveragePricePerShare: bigint;
|
|
2227
|
+
}>;
|
|
1942
2228
|
assetOpportunities: (arg0: `0x${string}`, arg1: bigint) => Promise<`0x${string}`>;
|
|
1943
2229
|
indexOfAssetOpportunity: (arg0: `0x${string}`, arg1: `0x${string}`) => Promise<bigint>;
|
|
1944
2230
|
numAssetOpportunities: (arg0: `0x${string}`) => Promise<bigint>;
|
|
1945
|
-
vaultToAsset: (arg0: `0x${string}`) => Promise<`0x${string}`>;
|
|
1946
2231
|
assets: (arg0: bigint) => Promise<`0x${string}`>;
|
|
1947
2232
|
indexOfAsset: (arg0: `0x${string}`) => Promise<bigint>;
|
|
1948
2233
|
numAssets: () => Promise<bigint>;
|
|
2234
|
+
snapShotData: (arg0: `0x${string}`) => Promise<{
|
|
2235
|
+
lastSnapShot: {
|
|
2236
|
+
totalSupply: bigint;
|
|
2237
|
+
pricePerShare: bigint;
|
|
2238
|
+
lastUpdate: bigint;
|
|
2239
|
+
};
|
|
2240
|
+
nextIndex: bigint;
|
|
2241
|
+
}>;
|
|
2242
|
+
snapShots: (arg0: `0x${string}`, arg1: bigint) => Promise<{
|
|
2243
|
+
totalSupply: bigint;
|
|
2244
|
+
pricePerShare: bigint;
|
|
2245
|
+
lastUpdate: bigint;
|
|
2246
|
+
}>;
|
|
2247
|
+
snapShotPriceConfig: () => Promise<{
|
|
2248
|
+
minSnapshotDelay: bigint;
|
|
2249
|
+
maxNumSnapshots: bigint;
|
|
2250
|
+
maxUpsideDeviation: bigint;
|
|
2251
|
+
staleTime: bigint;
|
|
2252
|
+
}>;
|
|
2253
|
+
isPaused: () => Promise<boolean>;
|
|
1949
2254
|
hasCapability: (action: bigint) => Promise<boolean>;
|
|
1950
2255
|
getRegistries: () => Promise<`0x${string}`[]>;
|
|
1951
|
-
getAccessForLego: (user: `0x${string}`, action: bigint) => Promise<[`0x${string}`, string, bigint]>;
|
|
1952
2256
|
isYieldLego: () => Promise<boolean>;
|
|
1953
2257
|
isDexLego: () => Promise<boolean>;
|
|
1954
|
-
isRebasing: () => Promise<boolean>;
|
|
1955
|
-
isEligibleVaultForTrialFunds: (vaultToken: `0x${string}`, underlyingAsset: `0x${string}`) => Promise<boolean>;
|
|
1956
|
-
isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
|
|
1957
|
-
hasClaimableRewards: (user: `0x${string}`) => Promise<boolean>;
|
|
1958
|
-
isVaultToken: (vaultToken: `0x${string}`) => Promise<boolean>;
|
|
1959
2258
|
getUnderlyingAsset: (vaultToken: `0x${string}`) => Promise<`0x${string}`>;
|
|
2259
|
+
getUnderlyingBalances: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<[bigint, bigint]>;
|
|
1960
2260
|
getUnderlyingAmount: (vaultToken: `0x${string}`, vaultTokenAmount: bigint) => Promise<bigint>;
|
|
1961
|
-
|
|
1962
|
-
getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
|
|
2261
|
+
getUnderlyingAmountSafe: (vaultToken: `0x${string}`, vaultTokenBalance: bigint) => Promise<bigint>;
|
|
1963
2262
|
getUnderlyingData: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<[`0x${string}`, bigint, bigint]>;
|
|
2263
|
+
getUsdValueOfVaultToken: (vaultToken: `0x${string}`, vaultTokenAmount: bigint, appraiser?: `0x${string}`) => Promise<bigint>;
|
|
2264
|
+
isRebasing: () => Promise<boolean>;
|
|
2265
|
+
getPricePerShare: (vaultToken: `0x${string}`, decimals?: bigint) => Promise<bigint>;
|
|
2266
|
+
getVaultTokenAmount: (asset: `0x${string}`, assetAmount: bigint, vaultToken: `0x${string}`) => Promise<bigint>;
|
|
2267
|
+
isEligibleVaultForTrialFunds: (vaultToken: `0x${string}`, underlyingAsset: `0x${string}`) => Promise<boolean>;
|
|
2268
|
+
isEligibleForYieldBonus: (asset: `0x${string}`) => Promise<boolean>;
|
|
1964
2269
|
totalAssets: (vaultToken: `0x${string}`) => Promise<bigint>;
|
|
1965
2270
|
totalBorrows: (vaultToken: `0x${string}`) => Promise<bigint>;
|
|
1966
|
-
|
|
1967
|
-
|
|
2271
|
+
canRegisterVaultToken: (asset: `0x${string}`, vaultToken: `0x${string}`) => Promise<boolean>;
|
|
2272
|
+
hasClaimableRewards: (user: `0x${string}`) => Promise<boolean>;
|
|
2273
|
+
getAccessForLego: (user: `0x${string}`, action: bigint) => Promise<[`0x${string}`, string, bigint]>;
|
|
1968
2274
|
eulerRewards: () => Promise<`0x${string}`>;
|
|
1969
2275
|
EULER_EVAULT_FACTORY: () => Promise<`0x${string}`>;
|
|
1970
2276
|
EULER_EARN_FACTORY: () => Promise<`0x${string}`>;
|
|
@@ -1973,6 +2279,19 @@ export type Contract = {
|
|
|
1973
2279
|
pause: (shouldPause: boolean) => Promise<void>;
|
|
1974
2280
|
recoverFunds: (recipient: `0x${string}`, asset: `0x${string}`) => Promise<void>;
|
|
1975
2281
|
recoverFundsMany: (recipient: `0x${string}`, assets: `0x${string}`[]) => Promise<void>;
|
|
2282
|
+
setSnapShotPriceConfig: (config: {
|
|
2283
|
+
minSnapshotDelay: bigint;
|
|
2284
|
+
maxNumSnapshots: bigint;
|
|
2285
|
+
maxUpsideDeviation: bigint;
|
|
2286
|
+
staleTime: bigint;
|
|
2287
|
+
}) => Promise<void>;
|
|
2288
|
+
registerVaultTokenLocally: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<{
|
|
2289
|
+
underlyingAsset: `0x${string}`;
|
|
2290
|
+
decimals: bigint;
|
|
2291
|
+
lastAveragePricePerShare: bigint;
|
|
2292
|
+
}>;
|
|
2293
|
+
deregisterVaultTokenLocally: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
|
|
2294
|
+
addPriceSnapshot: (vaultToken: `0x${string}`) => Promise<boolean>;
|
|
1976
2295
|
depositForYield: (asset: `0x${string}`, amount: bigint, vaultAddr: `0x${string}`, extraData: `0x${string}`, recipient: `0x${string}`, miniAddys?: {
|
|
1977
2296
|
ledger: `0x${string}`;
|
|
1978
2297
|
missionControl: `0x${string}`;
|
|
@@ -1992,8 +2311,6 @@ export type Contract = {
|
|
|
1992
2311
|
appraiser: `0x${string}`;
|
|
1993
2312
|
}) => Promise<[bigint, bigint]>;
|
|
1994
2313
|
setEulerRewardsAddr: (addr: `0x${string}`) => Promise<boolean>;
|
|
1995
|
-
addAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
|
|
1996
|
-
removeAssetOpportunity: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
|
|
1997
2314
|
swapTokens: (amountIn: bigint, minAmountOut: bigint, tokenPath: `0x${string}`[], poolPath: `0x${string}`[], recipient: `0x${string}`, miniAddys?: {
|
|
1998
2315
|
ledger: `0x${string}`;
|
|
1999
2316
|
missionControl: `0x${string}`;
|
|
@@ -2067,8 +2384,10 @@ export type Contract = {
|
|
|
2067
2384
|
EulerRewardsAddrSet: (addr: `0x${string}`) => Promise<void>;
|
|
2068
2385
|
LegoPauseModified: (isPaused: boolean) => Promise<void>;
|
|
2069
2386
|
LegoFundsRecovered: (asset: `0x${string}`, recipient: `0x${string}`, balance: bigint) => Promise<void>;
|
|
2387
|
+
SnapShotPriceConfigSet: (minSnapshotDelay: bigint, maxNumSnapshots: bigint, maxUpsideDeviation: bigint, staleTime: bigint) => Promise<void>;
|
|
2070
2388
|
AssetOpportunityAdded: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
|
|
2071
2389
|
AssetOpportunityRemoved: (asset: `0x${string}`, vaultAddr: `0x${string}`) => Promise<void>;
|
|
2390
|
+
PricePerShareSnapShotAdded: (vaultToken: `0x${string}`, totalSupply: bigint, pricePerShare: bigint) => Promise<void>;
|
|
2072
2391
|
};
|
|
2073
2392
|
};
|
|
2074
2393
|
export type Calls = keyof Contract['calls'];
|
|
@@ -2116,45 +2435,54 @@ export type SDK = {
|
|
|
2116
2435
|
getAssets: (...args: ExtractArgs<Contract['calls']['getAssets']>) => Promise<CallReturn<'getAssets'>>;
|
|
2117
2436
|
isAssetOpportunity: (...args: ExtractArgs<Contract['calls']['isAssetOpportunity']>) => Promise<CallReturn<'isAssetOpportunity'>>;
|
|
2118
2437
|
getNumLegoAssets: (...args: ExtractArgs<Contract['calls']['getNumLegoAssets']>) => Promise<CallReturn<'getNumLegoAssets'>>;
|
|
2119
|
-
|
|
2438
|
+
getWeightedPricePerShare: (...args: ExtractArgs<Contract['calls']['getWeightedPricePerShare']>) => Promise<CallReturn<'getWeightedPricePerShare'>>;
|
|
2439
|
+
getLatestSnapshot: (...args: ExtractArgs<Contract['calls']['getLatestSnapshot']>) => Promise<CallReturn<'getLatestSnapshot'>>;
|
|
2440
|
+
isValidPriceConfig: (...args: ExtractArgs<Contract['calls']['isValidPriceConfig']>) => Promise<CallReturn<'isValidPriceConfig'>>;
|
|
2441
|
+
vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
|
|
2120
2442
|
assetOpportunities: (...args: ExtractArgs<Contract['calls']['assetOpportunities']>) => Promise<CallReturn<'assetOpportunities'>>;
|
|
2121
2443
|
indexOfAssetOpportunity: (...args: ExtractArgs<Contract['calls']['indexOfAssetOpportunity']>) => Promise<CallReturn<'indexOfAssetOpportunity'>>;
|
|
2122
2444
|
numAssetOpportunities: (...args: ExtractArgs<Contract['calls']['numAssetOpportunities']>) => Promise<CallReturn<'numAssetOpportunities'>>;
|
|
2123
|
-
vaultToAsset: (...args: ExtractArgs<Contract['calls']['vaultToAsset']>) => Promise<CallReturn<'vaultToAsset'>>;
|
|
2124
2445
|
assets: (...args: ExtractArgs<Contract['calls']['assets']>) => Promise<CallReturn<'assets'>>;
|
|
2125
2446
|
indexOfAsset: (...args: ExtractArgs<Contract['calls']['indexOfAsset']>) => Promise<CallReturn<'indexOfAsset'>>;
|
|
2126
2447
|
numAssets: (...args: ExtractArgs<Contract['calls']['numAssets']>) => Promise<CallReturn<'numAssets'>>;
|
|
2448
|
+
snapShotData: (...args: ExtractArgs<Contract['calls']['snapShotData']>) => Promise<CallReturn<'snapShotData'>>;
|
|
2449
|
+
snapShots: (...args: ExtractArgs<Contract['calls']['snapShots']>) => Promise<CallReturn<'snapShots'>>;
|
|
2450
|
+
snapShotPriceConfig: (...args: ExtractArgs<Contract['calls']['snapShotPriceConfig']>) => Promise<CallReturn<'snapShotPriceConfig'>>;
|
|
2451
|
+
isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
|
|
2127
2452
|
hasCapability: (...args: ExtractArgs<Contract['calls']['hasCapability']>) => Promise<CallReturn<'hasCapability'>>;
|
|
2128
2453
|
getRegistries: (...args: ExtractArgs<Contract['calls']['getRegistries']>) => Promise<CallReturn<'getRegistries'>>;
|
|
2129
|
-
getAccessForLego: (...args: ExtractArgs<Contract['calls']['getAccessForLego']>) => Promise<CallReturn<'getAccessForLego'>>;
|
|
2130
2454
|
isYieldLego: (...args: ExtractArgs<Contract['calls']['isYieldLego']>) => Promise<CallReturn<'isYieldLego'>>;
|
|
2131
2455
|
isDexLego: (...args: ExtractArgs<Contract['calls']['isDexLego']>) => Promise<CallReturn<'isDexLego'>>;
|
|
2132
|
-
isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
|
|
2133
|
-
isEligibleVaultForTrialFunds: (...args: ExtractArgs<Contract['calls']['isEligibleVaultForTrialFunds']>) => Promise<CallReturn<'isEligibleVaultForTrialFunds'>>;
|
|
2134
|
-
isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
|
|
2135
|
-
hasClaimableRewards: (...args: ExtractArgs<Contract['calls']['hasClaimableRewards']>) => Promise<CallReturn<'hasClaimableRewards'>>;
|
|
2136
|
-
isVaultToken: (...args: ExtractArgs<Contract['calls']['isVaultToken']>) => Promise<CallReturn<'isVaultToken'>>;
|
|
2137
2456
|
getUnderlyingAsset: (...args: ExtractArgs<Contract['calls']['getUnderlyingAsset']>) => Promise<CallReturn<'getUnderlyingAsset'>>;
|
|
2457
|
+
getUnderlyingBalances: (...args: ExtractArgs<Contract['calls']['getUnderlyingBalances']>) => Promise<CallReturn<'getUnderlyingBalances'>>;
|
|
2138
2458
|
getUnderlyingAmount: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmount']>) => Promise<CallReturn<'getUnderlyingAmount'>>;
|
|
2139
|
-
|
|
2140
|
-
getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
|
|
2459
|
+
getUnderlyingAmountSafe: (...args: ExtractArgs<Contract['calls']['getUnderlyingAmountSafe']>) => Promise<CallReturn<'getUnderlyingAmountSafe'>>;
|
|
2141
2460
|
getUnderlyingData: (...args: ExtractArgs<Contract['calls']['getUnderlyingData']>) => Promise<CallReturn<'getUnderlyingData'>>;
|
|
2461
|
+
getUsdValueOfVaultToken: (...args: ExtractArgs<Contract['calls']['getUsdValueOfVaultToken']>) => Promise<CallReturn<'getUsdValueOfVaultToken'>>;
|
|
2462
|
+
isRebasing: (...args: ExtractArgs<Contract['calls']['isRebasing']>) => Promise<CallReturn<'isRebasing'>>;
|
|
2463
|
+
getPricePerShare: (...args: ExtractArgs<Contract['calls']['getPricePerShare']>) => Promise<CallReturn<'getPricePerShare'>>;
|
|
2464
|
+
getVaultTokenAmount: (...args: ExtractArgs<Contract['calls']['getVaultTokenAmount']>) => Promise<CallReturn<'getVaultTokenAmount'>>;
|
|
2465
|
+
isEligibleVaultForTrialFunds: (...args: ExtractArgs<Contract['calls']['isEligibleVaultForTrialFunds']>) => Promise<CallReturn<'isEligibleVaultForTrialFunds'>>;
|
|
2466
|
+
isEligibleForYieldBonus: (...args: ExtractArgs<Contract['calls']['isEligibleForYieldBonus']>) => Promise<CallReturn<'isEligibleForYieldBonus'>>;
|
|
2142
2467
|
totalAssets: (...args: ExtractArgs<Contract['calls']['totalAssets']>) => Promise<CallReturn<'totalAssets'>>;
|
|
2143
2468
|
totalBorrows: (...args: ExtractArgs<Contract['calls']['totalBorrows']>) => Promise<CallReturn<'totalBorrows'>>;
|
|
2144
|
-
|
|
2145
|
-
|
|
2469
|
+
canRegisterVaultToken: (...args: ExtractArgs<Contract['calls']['canRegisterVaultToken']>) => Promise<CallReturn<'canRegisterVaultToken'>>;
|
|
2470
|
+
hasClaimableRewards: (...args: ExtractArgs<Contract['calls']['hasClaimableRewards']>) => Promise<CallReturn<'hasClaimableRewards'>>;
|
|
2471
|
+
getAccessForLego: (...args: ExtractArgs<Contract['calls']['getAccessForLego']>) => Promise<CallReturn<'getAccessForLego'>>;
|
|
2146
2472
|
eulerRewards: (...args: ExtractArgs<Contract['calls']['eulerRewards']>) => Promise<CallReturn<'eulerRewards'>>;
|
|
2147
2473
|
EULER_EVAULT_FACTORY: (...args: ExtractArgs<Contract['calls']['EULER_EVAULT_FACTORY']>) => Promise<CallReturn<'EULER_EVAULT_FACTORY'>>;
|
|
2148
2474
|
EULER_EARN_FACTORY: (...args: ExtractArgs<Contract['calls']['EULER_EARN_FACTORY']>) => Promise<CallReturn<'EULER_EARN_FACTORY'>>;
|
|
2149
2475
|
pause: (...args: ExtractArgs<Contract['mutations']['pause']>) => Promise<Address>;
|
|
2150
2476
|
recoverFunds: (...args: ExtractArgs<Contract['mutations']['recoverFunds']>) => Promise<Address>;
|
|
2151
2477
|
recoverFundsMany: (...args: ExtractArgs<Contract['mutations']['recoverFundsMany']>) => Promise<Address>;
|
|
2478
|
+
setSnapShotPriceConfig: (...args: ExtractArgs<Contract['mutations']['setSnapShotPriceConfig']>) => Promise<Address>;
|
|
2479
|
+
registerVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['registerVaultTokenLocally']>) => Promise<Address>;
|
|
2480
|
+
deregisterVaultTokenLocally: (...args: ExtractArgs<Contract['mutations']['deregisterVaultTokenLocally']>) => Promise<Address>;
|
|
2481
|
+
addPriceSnapshot: (...args: ExtractArgs<Contract['mutations']['addPriceSnapshot']>) => Promise<Address>;
|
|
2152
2482
|
depositForYield: (...args: ExtractArgs<Contract['mutations']['depositForYield']>) => Promise<Address>;
|
|
2153
2483
|
withdrawFromYield: (...args: ExtractArgs<Contract['mutations']['withdrawFromYield']>) => Promise<Address>;
|
|
2154
2484
|
claimRewards: (...args: ExtractArgs<Contract['mutations']['claimRewards']>) => Promise<Address>;
|
|
2155
2485
|
setEulerRewardsAddr: (...args: ExtractArgs<Contract['mutations']['setEulerRewardsAddr']>) => Promise<Address>;
|
|
2156
|
-
addAssetOpportunity: (...args: ExtractArgs<Contract['mutations']['addAssetOpportunity']>) => Promise<Address>;
|
|
2157
|
-
removeAssetOpportunity: (...args: ExtractArgs<Contract['mutations']['removeAssetOpportunity']>) => Promise<Address>;
|
|
2158
2486
|
swapTokens: (...args: ExtractArgs<Contract['mutations']['swapTokens']>) => Promise<Address>;
|
|
2159
2487
|
mintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['mintOrRedeemAsset']>) => Promise<Address>;
|
|
2160
2488
|
confirmMintOrRedeemAsset: (...args: ExtractArgs<Contract['mutations']['confirmMintOrRedeemAsset']>) => Promise<Address>;
|