@raac/rpc 1.2.0-beta.14 → 1.2.0-beta.15
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/RPCLibrary.js +8 -2
- package/dist/artifacts/core/lockers/RAACLiquidLocker.sol/RAACLiquidLocker.json +113 -19
- package/dist/contracts/lockers/liquidLocker/checkAccountHealth.js +15 -0
- package/dist/contracts/lockers/liquidLocker/getUserLocks.js +14 -6
- package/dist/contracts/lockers/liquidLocker/previewWithdraw.js +22 -0
- package/dist/contracts/lockers/liquidLocker/requestUnlock.js +12 -4
- package/dist/contracts/tokens/veRAAC/getMinLockAmount.js +34 -0
- package/dist/contracts/tokens/veRAAC/index.js +3 -1
- package/dist/types/RPCLibrary.d.ts +6 -0
- package/dist/types/contracts/lockers/liquidLocker/checkAccountHealth.d.ts +9 -0
- package/dist/types/contracts/lockers/liquidLocker/getUserLocks.d.ts +15 -2
- package/dist/types/contracts/lockers/liquidLocker/previewWithdraw.d.ts +20 -0
- package/dist/types/contracts/lockers/liquidLocker/requestUnlock.d.ts +11 -3
- package/dist/types/contracts/tokens/veRAAC/getMinLockAmount.d.ts +14 -0
- package/dist/types/contracts/tokens/veRAAC/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/core/lockers/RAACLiquidLocker.d.ts +89 -37
- package/dist/types/typechain-types/factories/contracts/core/lockers/RAACLiquidLocker__factory.d.ts +101 -30
- package/package.json +1 -1
package/dist/RPCLibrary.js
CHANGED
|
@@ -252,6 +252,7 @@ const getRawBalanceOf_1 = require("./contracts/tokens/veRAAC/getRawBalanceOf");
|
|
|
252
252
|
const getRawTotalSupply_1 = require("./contracts/tokens/veRAAC/getRawTotalSupply");
|
|
253
253
|
const getEffectiveLockEnd_1 = require("./contracts/tokens/veRAAC/getEffectiveLockEnd");
|
|
254
254
|
const getMinLockEnd_1 = require("./contracts/tokens/veRAAC/getMinLockEnd");
|
|
255
|
+
const getMinLockAmount_1 = require("./contracts/tokens/veRAAC/getMinLockAmount");
|
|
255
256
|
const getMaxUnclaimedDistributions_1 = require("./contracts/tokens/veRAAC/getMaxUnclaimedDistributions");
|
|
256
257
|
// RAAC
|
|
257
258
|
const getBalance_6 = require("./contracts/tokens/RAAC/getBalance");
|
|
@@ -276,6 +277,8 @@ const getUserLocks_1 = require("./contracts/lockers/liquidLocker/getUserLocks");
|
|
|
276
277
|
const getGlobalInfo_1 = require("./contracts/lockers/liquidLocker/getGlobalInfo");
|
|
277
278
|
const getConfig_1 = require("./contracts/lockers/liquidLocker/getConfig");
|
|
278
279
|
const isKeeper_1 = require("./contracts/lockers/liquidLocker/isKeeper");
|
|
280
|
+
const previewWithdraw_2 = require("./contracts/lockers/liquidLocker/previewWithdraw");
|
|
281
|
+
const checkAccountHealth_1 = require("./contracts/lockers/liquidLocker/checkAccountHealth");
|
|
279
282
|
// Maturity Vault
|
|
280
283
|
const deposit_2 = require("./contracts/lockers/maturityVault/deposit");
|
|
281
284
|
const depositFor_1 = require("./contracts/lockers/maturityVault/depositFor");
|
|
@@ -343,7 +346,7 @@ const getMarketConfig_1 = __importDefault(require("./contracts/pmMarket/getMarke
|
|
|
343
346
|
const getReserveBalance_1 = __importDefault(require("./contracts/pmBlender/getReserveBalance"));
|
|
344
347
|
const getSupportedTokens_1 = __importDefault(require("./contracts/pmBlender/getSupportedTokens"));
|
|
345
348
|
const previewDeposit_2 = __importDefault(require("./contracts/pmBlender/previewDeposit"));
|
|
346
|
-
const
|
|
349
|
+
const previewWithdraw_3 = __importDefault(require("./contracts/pmBlender/previewWithdraw"));
|
|
347
350
|
const previewSwap_1 = __importDefault(require("./contracts/pmBlender/previewSwap"));
|
|
348
351
|
class RPCLibrary {
|
|
349
352
|
signer;
|
|
@@ -467,7 +470,7 @@ class RPCLibrary {
|
|
|
467
470
|
getReserveBalance: getReserveBalance_1.default,
|
|
468
471
|
getSupportedTokens: getSupportedTokens_1.default,
|
|
469
472
|
previewDeposit: previewDeposit_2.default,
|
|
470
|
-
previewWithdraw:
|
|
473
|
+
previewWithdraw: previewWithdraw_3.default,
|
|
471
474
|
previewSwap: previewSwap_1.default,
|
|
472
475
|
},
|
|
473
476
|
};
|
|
@@ -510,6 +513,7 @@ class RPCLibrary {
|
|
|
510
513
|
getRawTotalSupply: getRawTotalSupply_1.getRawTotalSupply,
|
|
511
514
|
getEffectiveLockEnd: getEffectiveLockEnd_1.getEffectiveLockEnd,
|
|
512
515
|
getMinLockEnd: getMinLockEnd_1.getMinLockEnd,
|
|
516
|
+
getMinLockAmount: getMinLockAmount_1.getMinLockAmount,
|
|
513
517
|
getMaxUnclaimedDistributions: getMaxUnclaimedDistributions_1.getMaxUnclaimedDistributions,
|
|
514
518
|
},
|
|
515
519
|
crvUSD: {
|
|
@@ -557,6 +561,8 @@ class RPCLibrary {
|
|
|
557
561
|
getGlobalInfo: getGlobalInfo_1.getGlobalInfo,
|
|
558
562
|
getConfig: getConfig_1.getConfig,
|
|
559
563
|
isKeeper: isKeeper_1.isKeeper,
|
|
564
|
+
previewWithdraw: previewWithdraw_2.previewWithdraw,
|
|
565
|
+
checkAccountHealth: checkAccountHealth_1.checkAccountHealth,
|
|
560
566
|
},
|
|
561
567
|
maturityVault: {
|
|
562
568
|
deposit: deposit_2.deposit,
|