@mento-protocol/mento-sdk 3.0.0-beta.2 → 3.0.0-beta.21
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/README.md +34 -0
- package/dist/cache/routes.d.ts +13 -0
- package/dist/cache/routes.d.ts.map +1 -0
- package/dist/cache/routes.js +130 -0
- package/dist/cache/routes.js.map +1 -0
- package/dist/cache/tokens.d.ts +67 -0
- package/dist/cache/tokens.d.ts.map +1 -0
- package/dist/cache/tokens.js +379 -0
- package/dist/cache/tokens.js.map +1 -0
- package/dist/core/abis/activePool.d.ts +2 -0
- package/dist/core/abis/activePool.d.ts.map +1 -0
- package/dist/core/abis/activePool.js +14 -0
- package/dist/core/abis/activePool.js.map +1 -0
- package/dist/core/abis/addressesRegistry.d.ts +2 -0
- package/dist/core/abis/addressesRegistry.d.ts.map +1 -0
- package/dist/core/abis/addressesRegistry.js +26 -0
- package/dist/core/abis/addressesRegistry.js.map +1 -0
- package/dist/core/abis/borrowerOperations.d.ts +9 -0
- package/dist/core/abis/borrowerOperations.d.ts.map +1 -0
- package/dist/core/abis/borrowerOperations.js +89 -0
- package/dist/core/abis/borrowerOperations.js.map +1 -0
- package/dist/core/abis/breakerbox.d.ts +13 -0
- package/dist/core/abis/breakerbox.d.ts.map +1 -0
- package/dist/core/abis/breakerbox.js +8 -0
- package/dist/core/abis/breakerbox.js.map +1 -0
- package/dist/core/abis/erc20.d.ts +7 -0
- package/dist/core/abis/erc20.d.ts.map +1 -1
- package/dist/core/abis/erc20.js +7 -0
- package/dist/core/abis/erc20.js.map +1 -1
- package/dist/core/abis/fpmm.d.ts +128 -0
- package/dist/core/abis/fpmm.d.ts.map +1 -1
- package/dist/core/abis/fpmm.js +10 -0
- package/dist/core/abis/fpmm.js.map +1 -1
- package/dist/core/abis/hintHelpers.d.ts +2 -0
- package/dist/core/abis/hintHelpers.d.ts.map +1 -0
- package/dist/core/abis/hintHelpers.js +14 -0
- package/dist/core/abis/hintHelpers.js.map +1 -0
- package/dist/core/abis/index.d.ts +12 -0
- package/dist/core/abis/index.d.ts.map +1 -1
- package/dist/core/abis/index.js +12 -0
- package/dist/core/abis/index.js.map +1 -1
- package/dist/core/abis/multiTroveGetter.d.ts +8 -0
- package/dist/core/abis/multiTroveGetter.d.ts.map +1 -0
- package/dist/core/abis/multiTroveGetter.js +15 -0
- package/dist/core/abis/multiTroveGetter.js.map +1 -0
- package/dist/core/abis/priceFeed.d.ts +7 -0
- package/dist/core/abis/priceFeed.d.ts.map +1 -0
- package/dist/core/abis/priceFeed.js +16 -0
- package/dist/core/abis/priceFeed.js.map +1 -0
- package/dist/core/abis/router.d.ts +436 -1
- package/dist/core/abis/router.d.ts.map +1 -1
- package/dist/core/abis/router.js +13 -0
- package/dist/core/abis/router.js.map +1 -1
- package/dist/core/abis/sortedTroves.d.ts +2 -0
- package/dist/core/abis/sortedTroves.d.ts.map +1 -0
- package/dist/core/abis/sortedTroves.js +15 -0
- package/dist/core/abis/sortedTroves.js.map +1 -0
- package/dist/core/abis/systemParams.d.ts +2 -0
- package/dist/core/abis/systemParams.d.ts.map +1 -0
- package/dist/core/abis/systemParams.js +14 -0
- package/dist/core/abis/systemParams.js.map +1 -0
- package/dist/core/abis/troveManager.d.ts +2 -0
- package/dist/core/abis/troveManager.d.ts.map +1 -0
- package/dist/core/abis/troveManager.js +27 -0
- package/dist/core/abis/troveManager.js.map +1 -0
- package/dist/core/abis/troveNFT.d.ts +2 -0
- package/dist/core/abis/troveNFT.d.ts.map +1 -0
- package/dist/core/abis/troveNFT.js +9 -0
- package/dist/core/abis/troveNFT.js.map +1 -0
- package/dist/core/abis/virtualPool.d.ts +40 -0
- package/dist/core/abis/virtualPool.d.ts.map +1 -1
- package/dist/core/abis/virtualPool.js +6 -1
- package/dist/core/abis/virtualPool.js.map +1 -1
- package/dist/core/abis/virtualPoolFactory.d.ts +8 -0
- package/dist/core/abis/virtualPoolFactory.d.ts.map +1 -1
- package/dist/core/abis/virtualPoolFactory.js +1 -0
- package/dist/core/abis/virtualPoolFactory.js.map +1 -1
- package/dist/core/constants/aaveConfig.js +2 -2
- package/dist/core/constants/addresses.d.ts.map +1 -1
- package/dist/core/constants/addresses.js +9 -4
- package/dist/core/constants/addresses.js.map +1 -1
- package/dist/core/constants/borrowConstants.d.ts +10 -0
- package/dist/core/constants/borrowConstants.d.ts.map +1 -0
- package/dist/core/constants/borrowConstants.js +16 -0
- package/dist/core/constants/borrowConstants.js.map +1 -0
- package/dist/core/constants/borrowRegistries.d.ts +7 -0
- package/dist/core/constants/borrowRegistries.d.ts.map +1 -0
- package/dist/core/constants/borrowRegistries.js +31 -0
- package/dist/core/constants/borrowRegistries.js.map +1 -0
- package/dist/core/constants/index.d.ts +2 -0
- package/dist/core/constants/index.d.ts.map +1 -1
- package/dist/core/constants/index.js +2 -0
- package/dist/core/constants/index.js.map +1 -1
- package/dist/core/errors/index.d.ts +1 -0
- package/dist/core/errors/index.d.ts.map +1 -1
- package/dist/core/errors/index.js +1 -0
- package/dist/core/errors/index.js.map +1 -1
- package/dist/core/errors/oracle.d.ts +9 -0
- package/dist/core/errors/oracle.d.ts.map +1 -0
- package/dist/core/errors/oracle.js +15 -0
- package/dist/core/errors/oracle.js.map +1 -0
- package/dist/core/errors/router.d.ts +6 -0
- package/dist/core/errors/router.d.ts.map +1 -1
- package/dist/core/errors/router.js +11 -1
- package/dist/core/errors/router.js.map +1 -1
- package/dist/core/types/borrow.d.ts +87 -0
- package/dist/core/types/borrow.d.ts.map +1 -0
- package/dist/core/types/borrow.js +3 -0
- package/dist/core/types/borrow.js.map +1 -0
- package/dist/core/types/contractAddresses.d.ts +2 -0
- package/dist/core/types/contractAddresses.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +5 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/core/types/index.js +5 -1
- package/dist/core/types/index.js.map +1 -1
- package/dist/core/types/liquidity.d.ts +117 -0
- package/dist/core/types/liquidity.d.ts.map +1 -0
- package/dist/core/types/liquidity.js +3 -0
- package/dist/core/types/liquidity.js.map +1 -0
- package/dist/core/types/pool.d.ts +110 -0
- package/dist/core/types/pool.d.ts.map +1 -1
- package/dist/core/types/provider.d.ts.map +1 -1
- package/dist/core/types/provider.js +0 -1
- package/dist/core/types/provider.js.map +1 -1
- package/dist/core/types/route.d.ts +3 -3
- package/dist/core/types/route.d.ts.map +1 -1
- package/dist/core/types/token.d.ts +13 -3
- package/dist/core/types/token.d.ts.map +1 -1
- package/dist/core/types/tradingLimits.d.ts +91 -0
- package/dist/core/types/tradingLimits.d.ts.map +1 -0
- package/dist/core/types/tradingLimits.js +3 -0
- package/dist/core/types/tradingLimits.js.map +1 -0
- package/dist/core/types/tradingMode.d.ts +24 -0
- package/dist/core/types/tradingMode.d.ts.map +1 -0
- package/dist/core/types/tradingMode.js +31 -0
- package/dist/core/types/tradingMode.js.map +1 -0
- package/dist/core/types/transaction.d.ts +45 -0
- package/dist/core/types/transaction.d.ts.map +1 -0
- package/dist/core/types/transaction.js +3 -0
- package/dist/core/types/transaction.js.map +1 -0
- package/dist/index.d.ts +34 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +47 -10
- package/dist/index.js.map +1 -1
- package/dist/services/borrow/BorrowService.d.ts +54 -0
- package/dist/services/borrow/BorrowService.d.ts.map +1 -0
- package/dist/services/borrow/BorrowService.js +129 -0
- package/dist/services/borrow/BorrowService.js.map +1 -0
- package/dist/services/borrow/borrowHelpers.d.ts +4 -0
- package/dist/services/borrow/borrowHelpers.d.ts.map +1 -0
- package/dist/services/borrow/borrowHelpers.js +13 -0
- package/dist/services/borrow/borrowHelpers.js.map +1 -0
- package/dist/services/borrow/borrowMath.d.ts +13 -0
- package/dist/services/borrow/borrowMath.d.ts.map +1 -0
- package/dist/services/borrow/borrowMath.js +129 -0
- package/dist/services/borrow/borrowMath.js.map +1 -0
- package/dist/services/borrow/index.d.ts +2 -0
- package/dist/services/borrow/index.d.ts.map +1 -0
- package/dist/services/borrow/index.js +18 -0
- package/dist/services/borrow/index.js.map +1 -0
- package/dist/services/borrow/internal/borrowApprovalService.d.ts +14 -0
- package/dist/services/borrow/internal/borrowApprovalService.d.ts.map +1 -0
- package/dist/services/borrow/internal/borrowApprovalService.js +53 -0
- package/dist/services/borrow/internal/borrowApprovalService.js.map +1 -0
- package/dist/services/borrow/internal/borrowContextStore.d.ts +11 -0
- package/dist/services/borrow/internal/borrowContextStore.d.ts.map +1 -0
- package/dist/services/borrow/internal/borrowContextStore.js +40 -0
- package/dist/services/borrow/internal/borrowContextStore.js.map +1 -0
- package/dist/services/borrow/internal/borrowErc20.d.ts +5 -0
- package/dist/services/borrow/internal/borrowErc20.d.ts.map +1 -0
- package/dist/services/borrow/internal/borrowErc20.js +43 -0
- package/dist/services/borrow/internal/borrowErc20.js.map +1 -0
- package/dist/services/borrow/internal/borrowHints.d.ts +7 -0
- package/dist/services/borrow/internal/borrowHints.d.ts.map +1 -0
- package/dist/services/borrow/internal/borrowHints.js +31 -0
- package/dist/services/borrow/internal/borrowHints.js.map +1 -0
- package/dist/services/borrow/internal/borrowPositionParser.d.ts +4 -0
- package/dist/services/borrow/internal/borrowPositionParser.d.ts.map +1 -0
- package/dist/services/borrow/internal/borrowPositionParser.js +87 -0
- package/dist/services/borrow/internal/borrowPositionParser.js.map +1 -0
- package/dist/services/borrow/internal/borrowReadService.d.ts +28 -0
- package/dist/services/borrow/internal/borrowReadService.d.ts.map +1 -0
- package/dist/services/borrow/internal/borrowReadService.js +218 -0
- package/dist/services/borrow/internal/borrowReadService.js.map +1 -0
- package/dist/services/borrow/internal/borrowRegistryReader.d.ts +5 -0
- package/dist/services/borrow/internal/borrowRegistryReader.d.ts.map +1 -0
- package/dist/services/borrow/internal/borrowRegistryReader.js +96 -0
- package/dist/services/borrow/internal/borrowRegistryReader.js.map +1 -0
- package/dist/services/borrow/internal/borrowTransactionService.d.ts +23 -0
- package/dist/services/borrow/internal/borrowTransactionService.d.ts.map +1 -0
- package/dist/services/borrow/internal/borrowTransactionService.js +276 -0
- package/dist/services/borrow/internal/borrowTransactionService.js.map +1 -0
- package/dist/services/borrow/internal/borrowTypes.d.ts +15 -0
- package/dist/services/borrow/internal/borrowTypes.d.ts.map +1 -0
- package/dist/services/borrow/internal/borrowTypes.js +3 -0
- package/dist/services/borrow/internal/borrowTypes.js.map +1 -0
- package/dist/services/borrow/internal/borrowValidation.d.ts +13 -0
- package/dist/services/borrow/internal/borrowValidation.d.ts.map +1 -0
- package/dist/services/borrow/internal/borrowValidation.js +96 -0
- package/dist/services/borrow/internal/borrowValidation.js.map +1 -0
- package/dist/services/index.d.ts +2 -0
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +2 -0
- package/dist/services/index.js.map +1 -1
- package/dist/services/liquidity/LiquidityService.d.ts +154 -0
- package/dist/services/liquidity/LiquidityService.d.ts.map +1 -0
- package/dist/services/liquidity/LiquidityService.js +184 -0
- package/dist/services/liquidity/LiquidityService.js.map +1 -0
- package/dist/services/liquidity/basicLiquidity.d.ts +11 -0
- package/dist/services/liquidity/basicLiquidity.d.ts.map +1 -0
- package/dist/services/liquidity/basicLiquidity.js +172 -0
- package/dist/services/liquidity/basicLiquidity.js.map +1 -0
- package/dist/services/liquidity/index.d.ts +2 -0
- package/dist/services/liquidity/index.d.ts.map +1 -0
- package/dist/services/liquidity/index.js +18 -0
- package/dist/services/liquidity/index.js.map +1 -0
- package/dist/services/liquidity/liquidityHelpers.d.ts +13 -0
- package/dist/services/liquidity/liquidityHelpers.d.ts.map +1 -0
- package/dist/services/liquidity/liquidityHelpers.js +74 -0
- package/dist/services/liquidity/liquidityHelpers.js.map +1 -0
- package/dist/services/liquidity/zapHelpers.d.ts +66 -0
- package/dist/services/liquidity/zapHelpers.d.ts.map +1 -0
- package/dist/services/liquidity/zapHelpers.js +133 -0
- package/dist/services/liquidity/zapHelpers.js.map +1 -0
- package/dist/services/liquidity/zapIn.d.ts +17 -0
- package/dist/services/liquidity/zapIn.d.ts.map +1 -0
- package/dist/services/liquidity/zapIn.js +125 -0
- package/dist/services/liquidity/zapIn.js.map +1 -0
- package/dist/services/liquidity/zapOut.d.ts +17 -0
- package/dist/services/liquidity/zapOut.d.ts.map +1 -0
- package/dist/services/liquidity/zapOut.js +242 -0
- package/dist/services/liquidity/zapOut.js.map +1 -0
- package/dist/services/pools/PoolService.d.ts +35 -10
- package/dist/services/pools/PoolService.d.ts.map +1 -1
- package/dist/services/pools/PoolService.js +61 -109
- package/dist/services/pools/PoolService.js.map +1 -1
- package/dist/services/pools/poolDetails.d.ts +11 -0
- package/dist/services/pools/poolDetails.d.ts.map +1 -0
- package/dist/services/pools/poolDetails.js +145 -0
- package/dist/services/pools/poolDetails.js.map +1 -0
- package/dist/services/pools/poolDiscovery.d.ts +12 -0
- package/dist/services/pools/poolDiscovery.d.ts.map +1 -0
- package/dist/services/pools/poolDiscovery.js +114 -0
- package/dist/services/pools/poolDiscovery.js.map +1 -0
- package/dist/services/quotes/QuoteService.d.ts +21 -12
- package/dist/services/quotes/QuoteService.d.ts.map +1 -1
- package/dist/services/quotes/QuoteService.js +41 -17
- package/dist/services/quotes/QuoteService.js.map +1 -1
- package/dist/services/routes/RouteService.d.ts +3 -3
- package/dist/services/routes/RouteService.d.ts.map +1 -1
- package/dist/services/routes/RouteService.js +3 -5
- package/dist/services/routes/RouteService.js.map +1 -1
- package/dist/services/swap/SwapService.d.ts +23 -19
- package/dist/services/swap/SwapService.d.ts.map +1 -1
- package/dist/services/swap/SwapService.js +36 -15
- package/dist/services/swap/SwapService.js.map +1 -1
- package/dist/services/tokens/supplyAdjustmentService.d.ts +0 -4
- package/dist/services/tokens/supplyAdjustmentService.d.ts.map +1 -1
- package/dist/services/tokens/supplyAdjustmentService.js +3 -8
- package/dist/services/tokens/supplyAdjustmentService.js.map +1 -1
- package/dist/services/tokens/tokenService.d.ts.map +1 -1
- package/dist/services/tokens/tokenService.js +2 -2
- package/dist/services/tokens/tokenService.js.map +1 -1
- package/dist/services/trading/TradingLimitsService.d.ts +38 -0
- package/dist/services/trading/TradingLimitsService.d.ts.map +1 -0
- package/dist/services/trading/TradingLimitsService.js +157 -0
- package/dist/services/trading/TradingLimitsService.js.map +1 -0
- package/dist/services/trading/TradingService.d.ts +110 -0
- package/dist/services/trading/TradingService.d.ts.map +1 -0
- package/dist/services/trading/TradingService.js +162 -0
- package/dist/services/trading/TradingService.js.map +1 -0
- package/dist/services/trading/index.d.ts +3 -0
- package/dist/services/trading/index.d.ts.map +1 -0
- package/dist/services/trading/index.js +19 -0
- package/dist/services/trading/index.js.map +1 -0
- package/dist/utils/costUtils.js +4 -4
- package/dist/utils/costUtils.js.map +1 -1
- package/dist/utils/deadline.d.ts +21 -0
- package/dist/utils/deadline.d.ts.map +1 -0
- package/dist/utils/deadline.js +26 -0
- package/dist/utils/deadline.js.map +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +3 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/pathEncoder.d.ts +8 -2
- package/dist/utils/pathEncoder.d.ts.map +1 -1
- package/dist/utils/pathEncoder.js +19 -3
- package/dist/utils/pathEncoder.js.map +1 -1
- package/dist/utils/rateFeed.d.ts +18 -0
- package/dist/utils/rateFeed.d.ts.map +1 -0
- package/dist/utils/rateFeed.js +27 -0
- package/dist/utils/rateFeed.js.map +1 -0
- package/dist/utils/routeUtils.d.ts +53 -53
- package/dist/utils/routeUtils.d.ts.map +1 -1
- package/dist/utils/routeUtils.js +41 -41
- package/dist/utils/routeUtils.js.map +1 -1
- package/dist/utils/routes.d.ts +2 -8
- package/dist/utils/routes.d.ts.map +1 -1
- package/dist/utils/routes.js +5 -46
- package/dist/utils/routes.js.map +1 -1
- package/dist/utils/tokens.d.ts +1 -77
- package/dist/utils/tokens.d.ts.map +1 -1
- package/dist/utils/tokens.js +10 -178
- package/dist/utils/tokens.js.map +1 -1
- package/dist/utils/tradingLimits.d.ts +41 -0
- package/dist/utils/tradingLimits.d.ts.map +1 -0
- package/dist/utils/tradingLimits.js +171 -0
- package/dist/utils/tradingLimits.js.map +1 -0
- package/dist/utils/validation.d.ts +19 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +34 -0
- package/dist/utils/validation.js.map +1 -0
- package/package.json +3 -1
- package/dist/cache/routes.11142220.js +0 -1
- package/dist/cache/routes.42220.d.ts +0 -3
- package/dist/cache/routes.42220.d.ts.map +0 -1
- package/dist/cache/routes.42220.js +0 -112
- package/dist/cache/routes.42220.js.map +0 -1
- package/dist/cache/tokens.11142220.d.ts +0 -3
- package/dist/cache/tokens.11142220.d.ts.map +0 -1
- package/dist/cache/tokens.11142220.js +0 -129
- package/dist/cache/tokens.11142220.js.map +0 -1
- package/dist/cache/tokens.42220.d.ts +0 -3
- package/dist/cache/tokens.42220.d.ts.map +0 -1
- package/dist/cache/tokens.42220.js +0 -129
- package/dist/cache/tokens.42220.js.map +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ACTIVE_POOL_ABI = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
exports.ACTIVE_POOL_ABI = (0, viem_1.parseAbi)([
|
|
6
|
+
'function getCollBalance() view returns (uint256)',
|
|
7
|
+
'function getBoldDebt() view returns (uint256)',
|
|
8
|
+
'function aggWeightedDebtSum() view returns (uint256)',
|
|
9
|
+
'function aggRecordedDebt() view returns (uint256)',
|
|
10
|
+
'function calcPendingAggInterest() view returns (uint256)',
|
|
11
|
+
'function hasBeenShutDown() view returns (bool)',
|
|
12
|
+
'function shutdownTime() view returns (uint256)',
|
|
13
|
+
]);
|
|
14
|
+
//# sourceMappingURL=activePool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activePool.js","sourceRoot":"","sources":["../../../src/core/abis/activePool.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAElB,QAAA,eAAe,GAAG,IAAA,eAAQ,EAAC;IACtC,kDAAkD;IAClD,+CAA+C;IAC/C,sDAAsD;IACtD,mDAAmD;IACnD,0DAA0D;IAC1D,gDAAgD;IAChD,gDAAgD;CACjD,CAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addressesRegistry.d.ts","sourceRoot":"","sources":["../../../src/core/abis/addressesRegistry.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,EAoB7B,GAAG,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ADDRESSES_REGISTRY_ABI = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
exports.ADDRESSES_REGISTRY_ABI = (0, viem_1.parseAbi)([
|
|
6
|
+
'function collToken() view returns (address)',
|
|
7
|
+
'function borrowerOperations() view returns (address)',
|
|
8
|
+
'function troveManager() view returns (address)',
|
|
9
|
+
'function troveNFT() view returns (address)',
|
|
10
|
+
'function metadataNFT() view returns (address)',
|
|
11
|
+
'function stabilityPool() view returns (address)',
|
|
12
|
+
'function priceFeed() view returns (address)',
|
|
13
|
+
'function activePool() view returns (address)',
|
|
14
|
+
'function defaultPool() view returns (address)',
|
|
15
|
+
'function gasPoolAddress() view returns (address)',
|
|
16
|
+
'function collSurplusPool() view returns (address)',
|
|
17
|
+
'function sortedTroves() view returns (address)',
|
|
18
|
+
'function interestRouter() view returns (address)',
|
|
19
|
+
'function hintHelpers() view returns (address)',
|
|
20
|
+
'function multiTroveGetter() view returns (address)',
|
|
21
|
+
'function collateralRegistry() view returns (address)',
|
|
22
|
+
'function boldToken() view returns (address)',
|
|
23
|
+
'function gasToken() view returns (address)',
|
|
24
|
+
'function liquidityStrategy() view returns (address)',
|
|
25
|
+
]);
|
|
26
|
+
//# sourceMappingURL=addressesRegistry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addressesRegistry.js","sourceRoot":"","sources":["../../../src/core/abis/addressesRegistry.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAElB,QAAA,sBAAsB,GAAG,IAAA,eAAQ,EAAC;IAC7C,6CAA6C;IAC7C,sDAAsD;IACtD,gDAAgD;IAChD,4CAA4C;IAC5C,+CAA+C;IAC/C,iDAAiD;IACjD,6CAA6C;IAC7C,8CAA8C;IAC9C,+CAA+C;IAC/C,kDAAkD;IAClD,mDAAmD;IACnD,gDAAgD;IAChD,kDAAkD;IAClD,+CAA+C;IAC/C,oDAAoD;IACpD,sDAAsD;IACtD,6CAA6C;IAC7C,4CAA4C;IAC5C,qDAAqD;CACtD,CAAQ,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BorrowerOperations ABI for Bold protocol trove operations
|
|
3
|
+
*
|
|
4
|
+
* Note: `as any` is used because viem's parseAbi returns a complex readonly tuple type
|
|
5
|
+
* that can cause type verbosity. This doesn't compromise type safety - viem's
|
|
6
|
+
* readContract/writeContract still infer types correctly from the ABI at usage sites.
|
|
7
|
+
*/
|
|
8
|
+
export declare const BORROWER_OPERATIONS_ABI: any;
|
|
9
|
+
//# sourceMappingURL=borrowerOperations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"borrowerOperations.d.ts","sourceRoot":"","sources":["../../../src/core/abis/borrowerOperations.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAmF9B,GAAG,CAAA"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BORROWER_OPERATIONS_ABI = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
/**
|
|
6
|
+
* BorrowerOperations ABI for Bold protocol trove operations
|
|
7
|
+
*
|
|
8
|
+
* Note: `as any` is used because viem's parseAbi returns a complex readonly tuple type
|
|
9
|
+
* that can cause type verbosity. This doesn't compromise type safety - viem's
|
|
10
|
+
* readContract/writeContract still infer types correctly from the ABI at usage sites.
|
|
11
|
+
*/
|
|
12
|
+
exports.BORROWER_OPERATIONS_ABI = (0, viem_1.parseAbi)([
|
|
13
|
+
// Core trove operations
|
|
14
|
+
'function openTrove(address _owner, uint256 _ownerIndex, uint256 _ETHAmount, uint256 _boldAmount, uint256 _upperHint, uint256 _lowerHint, uint256 _annualInterestRate, uint256 _maxUpfrontFee, address _addManager, address _removeManager, address _receiver) returns (uint256)',
|
|
15
|
+
'function openTroveAndJoinInterestBatchManager((address owner, uint256 ownerIndex, uint256 collAmount, uint256 boldAmount, uint256 upperHint, uint256 lowerHint, address interestBatchManager, uint256 maxUpfrontFee, address addManager, address removeManager, address receiver) _params) returns (uint256)',
|
|
16
|
+
'function addColl(uint256 _troveId, uint256 _ETHAmount)',
|
|
17
|
+
'function withdrawColl(uint256 _troveId, uint256 _amount)',
|
|
18
|
+
'function withdrawBold(uint256 _troveId, uint256 _amount, uint256 _maxUpfrontFee)',
|
|
19
|
+
'function repayBold(uint256 _troveId, uint256 _amount)',
|
|
20
|
+
'function closeTrove(uint256 _troveId)',
|
|
21
|
+
'function adjustTrove(uint256 _troveId, uint256 _collChange, bool _isCollIncrease, uint256 _debtChange, bool isDebtIncrease, uint256 _maxUpfrontFee)',
|
|
22
|
+
'function adjustZombieTrove(uint256 _troveId, uint256 _collChange, bool _isCollIncrease, uint256 _boldChange, bool _isDebtIncrease, uint256 _upperHint, uint256 _lowerHint, uint256 _maxUpfrontFee)',
|
|
23
|
+
'function adjustTroveInterestRate(uint256 _troveId, uint256 _newAnnualInterestRate, uint256 _upperHint, uint256 _lowerHint, uint256 _maxUpfrontFee)',
|
|
24
|
+
'function applyPendingDebt(uint256 _troveId, uint256 _lowerHint, uint256 _upperHint)',
|
|
25
|
+
'function claimCollateral()',
|
|
26
|
+
// Batch manager operations
|
|
27
|
+
'function setInterestBatchManager(uint256 _troveId, address _newBatchManager, uint256 _upperHint, uint256 _lowerHint, uint256 _maxUpfrontFee)',
|
|
28
|
+
'function removeFromBatch(uint256 _troveId, uint256 _newAnnualInterestRate, uint256 _upperHint, uint256 _lowerHint, uint256 _maxUpfrontFee)',
|
|
29
|
+
'function switchBatchManager(uint256 _troveId, uint256 _removeUpperHint, uint256 _removeLowerHint, address _newBatchManager, uint256 _addUpperHint, uint256 _addLowerHint, uint256 _maxUpfrontFee)',
|
|
30
|
+
// Individual delegate
|
|
31
|
+
'function setInterestIndividualDelegate(uint256 _troveId, address _delegate, uint128 _minInterestRate, uint128 _maxInterestRate, uint256 _newAnnualInterestRate, uint256 _upperHint, uint256 _lowerHint, uint256 _maxUpfrontFee, uint256 _minInterestRateChangePeriod)',
|
|
32
|
+
'function removeInterestIndividualDelegate(uint256 _troveId)',
|
|
33
|
+
// View functions
|
|
34
|
+
'function hasBeenShutDown() view returns (bool)',
|
|
35
|
+
'function interestBatchManagerOf(uint256 _troveId) view returns (address)',
|
|
36
|
+
'function getInterestBatchManager(address _account) view returns ((uint128 minInterestRate, uint128 maxInterestRate, uint256 minInterestRateChangePeriod))',
|
|
37
|
+
'function checkBatchManagerExists(address _batchManager) view returns (bool)',
|
|
38
|
+
'function getInterestIndividualDelegateOf(uint256 _troveId) view returns ((address account, uint128 minInterestRate, uint128 maxInterestRate, uint256 minInterestRateChangePeriod))',
|
|
39
|
+
// Inherited view functions from LiquityBase
|
|
40
|
+
'function getEntireBranchDebt() view returns (uint256)',
|
|
41
|
+
'function getEntireBranchColl() view returns (uint256)',
|
|
42
|
+
'function systemParams() view returns (address)',
|
|
43
|
+
'function CCR() view returns (uint256)',
|
|
44
|
+
'function MCR() view returns (uint256)',
|
|
45
|
+
// Custom errors (BorrowerOperations.sol)
|
|
46
|
+
'error IsShutDown()',
|
|
47
|
+
'error TCRNotBelowSCR()',
|
|
48
|
+
'error ZeroAdjustment()',
|
|
49
|
+
'error NotOwnerNorInterestManager()',
|
|
50
|
+
'error TroveInBatch()',
|
|
51
|
+
'error TroveNotInBatch()',
|
|
52
|
+
'error InterestNotInRange()',
|
|
53
|
+
'error BatchInterestRateChangePeriodNotPassed()',
|
|
54
|
+
'error DelegateInterestRateChangePeriodNotPassed()',
|
|
55
|
+
'error TroveExists()',
|
|
56
|
+
'error TroveNotOpen()',
|
|
57
|
+
'error TroveNotActive()',
|
|
58
|
+
'error TroveNotZombie()',
|
|
59
|
+
'error TroveWithZeroDebt()',
|
|
60
|
+
'error UpfrontFeeTooHigh()',
|
|
61
|
+
'error ICRBelowMCR()',
|
|
62
|
+
'error ICRBelowMCRPlusBCR()',
|
|
63
|
+
'error RepaymentNotMatchingCollWithdrawal()',
|
|
64
|
+
'error TCRBelowCCR()',
|
|
65
|
+
'error DebtBelowMin()',
|
|
66
|
+
'error CollWithdrawalTooHigh()',
|
|
67
|
+
'error NotEnoughBoldBalance()',
|
|
68
|
+
'error InterestRateTooLow()',
|
|
69
|
+
'error InterestRateTooHigh()',
|
|
70
|
+
'error InterestRateNotNew()',
|
|
71
|
+
'error InvalidInterestBatchManager()',
|
|
72
|
+
'error BatchManagerExists()',
|
|
73
|
+
'error BatchManagerNotNew()',
|
|
74
|
+
'error NewFeeNotLower()',
|
|
75
|
+
'error CallerNotTroveManager()',
|
|
76
|
+
'error CallerNotPriceFeed()',
|
|
77
|
+
'error CallerNotSelf()',
|
|
78
|
+
'error MinGeMax()',
|
|
79
|
+
'error AnnualManagementFeeTooHigh()',
|
|
80
|
+
'error MinInterestRateChangePeriodTooLow()',
|
|
81
|
+
'error NewOracleFailureDetected()',
|
|
82
|
+
'error BatchSharesRatioTooLow()',
|
|
83
|
+
// Custom errors (inherited from AddRemoveManagers)
|
|
84
|
+
'error EmptyManager()',
|
|
85
|
+
'error NotBorrower()',
|
|
86
|
+
'error NotOwnerNorAddManager()',
|
|
87
|
+
'error NotOwnerNorRemoveManager()',
|
|
88
|
+
]);
|
|
89
|
+
//# sourceMappingURL=borrowerOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"borrowerOperations.js","sourceRoot":"","sources":["../../../src/core/abis/borrowerOperations.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B;;;;;;GAMG;AACU,QAAA,uBAAuB,GAAG,IAAA,eAAQ,EAAC;IAC9C,wBAAwB;IACxB,iRAAiR;IACjR,8SAA8S;IAC9S,wDAAwD;IACxD,0DAA0D;IAC1D,kFAAkF;IAClF,uDAAuD;IACvD,uCAAuC;IACvC,qJAAqJ;IACrJ,oMAAoM;IACpM,oJAAoJ;IACpJ,qFAAqF;IACrF,4BAA4B;IAE5B,2BAA2B;IAC3B,8IAA8I;IAC9I,4IAA4I;IAC5I,mMAAmM;IAEnM,sBAAsB;IACtB,uQAAuQ;IACvQ,6DAA6D;IAE7D,iBAAiB;IACjB,gDAAgD;IAChD,0EAA0E;IAC1E,2JAA2J;IAC3J,6EAA6E;IAC7E,oLAAoL;IAEpL,4CAA4C;IAC5C,uDAAuD;IACvD,uDAAuD;IAEvD,gDAAgD;IAChD,uCAAuC;IACvC,uCAAuC;IAEvC,yCAAyC;IACzC,oBAAoB;IACpB,wBAAwB;IACxB,wBAAwB;IACxB,oCAAoC;IACpC,sBAAsB;IACtB,yBAAyB;IACzB,4BAA4B;IAC5B,gDAAgD;IAChD,mDAAmD;IACnD,qBAAqB;IACrB,sBAAsB;IACtB,wBAAwB;IACxB,wBAAwB;IACxB,2BAA2B;IAC3B,2BAA2B;IAC3B,qBAAqB;IACrB,4BAA4B;IAC5B,4CAA4C;IAC5C,qBAAqB;IACrB,sBAAsB;IACtB,+BAA+B;IAC/B,8BAA8B;IAC9B,4BAA4B;IAC5B,6BAA6B;IAC7B,4BAA4B;IAC5B,qCAAqC;IACrC,4BAA4B;IAC5B,4BAA4B;IAC5B,wBAAwB;IACxB,+BAA+B;IAC/B,4BAA4B;IAC5B,uBAAuB;IACvB,kBAAkB;IAClB,oCAAoC;IACpC,2CAA2C;IAC3C,kCAAkC;IAClC,gCAAgC;IAEhC,mDAAmD;IACnD,sBAAsB;IACtB,qBAAqB;IACrB,+BAA+B;IAC/B,kCAAkC;CACnC,CAAQ,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const BREAKERBOX_ABI: readonly [{
|
|
2
|
+
readonly name: "getRateFeedTradingMode";
|
|
3
|
+
readonly type: "function";
|
|
4
|
+
readonly stateMutability: "view";
|
|
5
|
+
readonly inputs: readonly [{
|
|
6
|
+
readonly type: "address";
|
|
7
|
+
readonly name: "rateFeedID";
|
|
8
|
+
}];
|
|
9
|
+
readonly outputs: readonly [{
|
|
10
|
+
readonly type: "uint8";
|
|
11
|
+
}];
|
|
12
|
+
}];
|
|
13
|
+
//# sourceMappingURL=breakerbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breakerbox.d.ts","sourceRoot":"","sources":["../../../src/core/abis/breakerbox.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;;;;;;;;;EAEzB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BREAKERBOX_ABI = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
exports.BREAKERBOX_ABI = (0, viem_1.parseAbi)([
|
|
6
|
+
'function getRateFeedTradingMode(address rateFeedID) view returns (uint8)',
|
|
7
|
+
]);
|
|
8
|
+
//# sourceMappingURL=breakerbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breakerbox.js","sourceRoot":"","sources":["../../../src/core/abis/breakerbox.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAElB,QAAA,cAAc,GAAG,IAAA,eAAQ,EAAC;IACrC,0EAA0E;CAC3E,CAAC,CAAA"}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ERC20 ABI for standard token operations
|
|
3
|
+
*
|
|
4
|
+
* Note: `as any` is used because viem's parseAbi returns a complex readonly tuple type
|
|
5
|
+
* that can cause type verbosity. This doesn't compromise type safety - viem's
|
|
6
|
+
* readContract/writeContract still infer types correctly from the ABI at usage sites.
|
|
7
|
+
*/
|
|
1
8
|
export declare const ERC20_ABI: any;
|
|
2
9
|
//# sourceMappingURL=erc20.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erc20.d.ts","sourceRoot":"","sources":["../../../src/core/abis/erc20.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,EAQhB,GAAG,CAAA"}
|
|
1
|
+
{"version":3,"file":"erc20.d.ts","sourceRoot":"","sources":["../../../src/core/abis/erc20.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,EAQhB,GAAG,CAAA"}
|
package/dist/core/abis/erc20.js
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ERC20_ABI = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
|
+
/**
|
|
6
|
+
* ERC20 ABI for standard token operations
|
|
7
|
+
*
|
|
8
|
+
* Note: `as any` is used because viem's parseAbi returns a complex readonly tuple type
|
|
9
|
+
* that can cause type verbosity. This doesn't compromise type safety - viem's
|
|
10
|
+
* readContract/writeContract still infer types correctly from the ABI at usage sites.
|
|
11
|
+
*/
|
|
5
12
|
exports.ERC20_ABI = (0, viem_1.parseAbi)([
|
|
6
13
|
'function name() view returns (string)',
|
|
7
14
|
'function symbol() view returns (string)',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erc20.js","sourceRoot":"","sources":["../../../src/core/abis/erc20.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;
|
|
1
|
+
{"version":3,"file":"erc20.js","sourceRoot":"","sources":["../../../src/core/abis/erc20.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B;;;;;;GAMG;AACU,QAAA,SAAS,GAAG,IAAA,eAAQ,EAAC;IAChC,uCAAuC;IACvC,yCAAyC;IACzC,0CAA0C;IAC1C,+CAA+C;IAC/C,oDAAoD;IACpD,kEAAkE;IAClE,2EAA2E;CAC5E,CAAQ,CAAA"}
|
package/dist/core/abis/fpmm.d.ts
CHANGED
|
@@ -30,5 +30,133 @@ export declare const FPMM_ABI: readonly [{
|
|
|
30
30
|
readonly outputs: readonly [{
|
|
31
31
|
readonly type: "uint256";
|
|
32
32
|
}];
|
|
33
|
+
}, {
|
|
34
|
+
readonly name: "referenceRateFeedID";
|
|
35
|
+
readonly type: "function";
|
|
36
|
+
readonly stateMutability: "view";
|
|
37
|
+
readonly inputs: readonly [];
|
|
38
|
+
readonly outputs: readonly [{
|
|
39
|
+
readonly type: "address";
|
|
40
|
+
}];
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "getTradingLimits";
|
|
43
|
+
readonly type: "function";
|
|
44
|
+
readonly stateMutability: "view";
|
|
45
|
+
readonly inputs: readonly [{
|
|
46
|
+
readonly type: "address";
|
|
47
|
+
readonly name: "token";
|
|
48
|
+
}];
|
|
49
|
+
readonly outputs: readonly [{
|
|
50
|
+
readonly type: "tuple";
|
|
51
|
+
readonly components: readonly [{
|
|
52
|
+
readonly type: "int120";
|
|
53
|
+
readonly name: "limit0";
|
|
54
|
+
}, {
|
|
55
|
+
readonly type: "int120";
|
|
56
|
+
readonly name: "limit1";
|
|
57
|
+
}, {
|
|
58
|
+
readonly type: "uint8";
|
|
59
|
+
readonly name: "decimals";
|
|
60
|
+
}];
|
|
61
|
+
readonly name: "config";
|
|
62
|
+
}, {
|
|
63
|
+
readonly type: "tuple";
|
|
64
|
+
readonly components: readonly [{
|
|
65
|
+
readonly type: "uint32";
|
|
66
|
+
readonly name: "lastUpdated0";
|
|
67
|
+
}, {
|
|
68
|
+
readonly type: "uint32";
|
|
69
|
+
readonly name: "lastUpdated1";
|
|
70
|
+
}, {
|
|
71
|
+
readonly type: "int96";
|
|
72
|
+
readonly name: "netflow0";
|
|
73
|
+
}, {
|
|
74
|
+
readonly type: "int96";
|
|
75
|
+
readonly name: "netflow1";
|
|
76
|
+
}];
|
|
77
|
+
readonly name: "state";
|
|
78
|
+
}];
|
|
79
|
+
}, {
|
|
80
|
+
readonly name: "getReserves";
|
|
81
|
+
readonly type: "function";
|
|
82
|
+
readonly stateMutability: "view";
|
|
83
|
+
readonly inputs: readonly [];
|
|
84
|
+
readonly outputs: readonly [{
|
|
85
|
+
readonly type: "uint256";
|
|
86
|
+
}, {
|
|
87
|
+
readonly type: "uint256";
|
|
88
|
+
}, {
|
|
89
|
+
readonly type: "uint256";
|
|
90
|
+
}];
|
|
91
|
+
}, {
|
|
92
|
+
readonly name: "decimals0";
|
|
93
|
+
readonly type: "function";
|
|
94
|
+
readonly stateMutability: "view";
|
|
95
|
+
readonly inputs: readonly [];
|
|
96
|
+
readonly outputs: readonly [{
|
|
97
|
+
readonly type: "uint256";
|
|
98
|
+
}];
|
|
99
|
+
}, {
|
|
100
|
+
readonly name: "decimals1";
|
|
101
|
+
readonly type: "function";
|
|
102
|
+
readonly stateMutability: "view";
|
|
103
|
+
readonly inputs: readonly [];
|
|
104
|
+
readonly outputs: readonly [{
|
|
105
|
+
readonly type: "uint256";
|
|
106
|
+
}];
|
|
107
|
+
}, {
|
|
108
|
+
readonly name: "rebalanceIncentive";
|
|
109
|
+
readonly type: "function";
|
|
110
|
+
readonly stateMutability: "view";
|
|
111
|
+
readonly inputs: readonly [];
|
|
112
|
+
readonly outputs: readonly [{
|
|
113
|
+
readonly type: "uint256";
|
|
114
|
+
}];
|
|
115
|
+
}, {
|
|
116
|
+
readonly name: "rebalanceThresholdAbove";
|
|
117
|
+
readonly type: "function";
|
|
118
|
+
readonly stateMutability: "view";
|
|
119
|
+
readonly inputs: readonly [];
|
|
120
|
+
readonly outputs: readonly [{
|
|
121
|
+
readonly type: "uint256";
|
|
122
|
+
}];
|
|
123
|
+
}, {
|
|
124
|
+
readonly name: "rebalanceThresholdBelow";
|
|
125
|
+
readonly type: "function";
|
|
126
|
+
readonly stateMutability: "view";
|
|
127
|
+
readonly inputs: readonly [];
|
|
128
|
+
readonly outputs: readonly [{
|
|
129
|
+
readonly type: "uint256";
|
|
130
|
+
}];
|
|
131
|
+
}, {
|
|
132
|
+
readonly name: "liquidityStrategy";
|
|
133
|
+
readonly type: "function";
|
|
134
|
+
readonly stateMutability: "view";
|
|
135
|
+
readonly inputs: readonly [{
|
|
136
|
+
readonly type: "address";
|
|
137
|
+
}];
|
|
138
|
+
readonly outputs: readonly [{
|
|
139
|
+
readonly type: "bool";
|
|
140
|
+
}];
|
|
141
|
+
}, {
|
|
142
|
+
readonly name: "getRebalancingState";
|
|
143
|
+
readonly type: "function";
|
|
144
|
+
readonly stateMutability: "view";
|
|
145
|
+
readonly inputs: readonly [];
|
|
146
|
+
readonly outputs: readonly [{
|
|
147
|
+
readonly type: "uint256";
|
|
148
|
+
}, {
|
|
149
|
+
readonly type: "uint256";
|
|
150
|
+
}, {
|
|
151
|
+
readonly type: "uint256";
|
|
152
|
+
}, {
|
|
153
|
+
readonly type: "uint256";
|
|
154
|
+
}, {
|
|
155
|
+
readonly type: "bool";
|
|
156
|
+
}, {
|
|
157
|
+
readonly type: "uint16";
|
|
158
|
+
}, {
|
|
159
|
+
readonly type: "uint256";
|
|
160
|
+
}];
|
|
33
161
|
}];
|
|
34
162
|
//# sourceMappingURL=fpmm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fpmm.d.ts","sourceRoot":"","sources":["../../../src/core/abis/fpmm.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"fpmm.d.ts","sourceRoot":"","sources":["../../../src/core/abis/fpmm.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAenB,CAAA"}
|
package/dist/core/abis/fpmm.js
CHANGED
|
@@ -7,5 +7,15 @@ exports.FPMM_ABI = (0, viem_1.parseAbi)([
|
|
|
7
7
|
'function token1() view returns (address)',
|
|
8
8
|
'function lpFee() view returns (uint256)',
|
|
9
9
|
'function protocolFee() view returns (uint256)',
|
|
10
|
+
'function referenceRateFeedID() view returns (address)',
|
|
11
|
+
'function getTradingLimits(address token) view returns ((int120 limit0, int120 limit1, uint8 decimals) config, (uint32 lastUpdated0, uint32 lastUpdated1, int96 netflow0, int96 netflow1) state)',
|
|
12
|
+
'function getReserves() view returns (uint256, uint256, uint256)',
|
|
13
|
+
'function decimals0() view returns (uint256)',
|
|
14
|
+
'function decimals1() view returns (uint256)',
|
|
15
|
+
'function rebalanceIncentive() view returns (uint256)',
|
|
16
|
+
'function rebalanceThresholdAbove() view returns (uint256)',
|
|
17
|
+
'function rebalanceThresholdBelow() view returns (uint256)',
|
|
18
|
+
'function liquidityStrategy(address) view returns (bool)',
|
|
19
|
+
'function getRebalancingState() view returns (uint256, uint256, uint256, uint256, bool, uint16, uint256)',
|
|
10
20
|
]);
|
|
11
21
|
//# sourceMappingURL=fpmm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fpmm.js","sourceRoot":"","sources":["../../../src/core/abis/fpmm.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAElB,QAAA,QAAQ,GAAG,IAAA,eAAQ,EAAC;IAC/B,0CAA0C;IAC1C,0CAA0C;IAC1C,yCAAyC;IACzC,+CAA+C;
|
|
1
|
+
{"version":3,"file":"fpmm.js","sourceRoot":"","sources":["../../../src/core/abis/fpmm.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAElB,QAAA,QAAQ,GAAG,IAAA,eAAQ,EAAC;IAC/B,0CAA0C;IAC1C,0CAA0C;IAC1C,yCAAyC;IACzC,+CAA+C;IAC/C,uDAAuD;IACvD,iMAAiM;IACjM,iEAAiE;IACjE,6CAA6C;IAC7C,6CAA6C;IAC7C,sDAAsD;IACtD,2DAA2D;IAC3D,2DAA2D;IAC3D,yDAAyD;IACzD,yGAAyG;CAC1G,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hintHelpers.d.ts","sourceRoot":"","sources":["../../../src/core/abis/hintHelpers.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,EAQvB,GAAG,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HINT_HELPERS_ABI = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
exports.HINT_HELPERS_ABI = (0, viem_1.parseAbi)([
|
|
6
|
+
'function getApproxHint(uint256 _collIndex, uint256 _interestRate, uint256 _numTrials, uint256 _inputRandomSeed) view returns (uint256 hintId, uint256 diff, uint256 latestRandomSeed)',
|
|
7
|
+
'function predictOpenTroveUpfrontFee(uint256 _collIndex, uint256 _borrowedAmount, uint256 _interestRate) view returns (uint256)',
|
|
8
|
+
'function predictAdjustTroveUpfrontFee(uint256 _collIndex, uint256 _troveId, uint256 _debtIncrease) view returns (uint256)',
|
|
9
|
+
'function predictAdjustInterestRateUpfrontFee(uint256 _collIndex, uint256 _troveId, uint256 _newInterestRate) view returns (uint256)',
|
|
10
|
+
'function forcePredictAdjustInterestRateUpfrontFee(uint256 _collIndex, uint256 _troveId, uint256 _newInterestRate) view returns (uint256)',
|
|
11
|
+
'function predictAdjustBatchInterestRateUpfrontFee(uint256 _collIndex, address _batchAddress, uint256 _newInterestRate) view returns (uint256)',
|
|
12
|
+
'function predictJoinBatchInterestRateUpfrontFee(uint256 _collIndex, uint256 _troveId, address _batchAddress) view returns (uint256)',
|
|
13
|
+
]);
|
|
14
|
+
//# sourceMappingURL=hintHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hintHelpers.js","sourceRoot":"","sources":["../../../src/core/abis/hintHelpers.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAElB,QAAA,gBAAgB,GAAG,IAAA,eAAQ,EAAC;IACvC,uLAAuL;IACvL,gIAAgI;IAChI,2HAA2H;IAC3H,qIAAqI;IACrI,0IAA0I;IAC1I,+IAA+I;IAC/I,qIAAqI;CACtI,CAAQ,CAAA"}
|
|
@@ -6,5 +6,17 @@ export * from './broker';
|
|
|
6
6
|
export * from './fpmmFactory';
|
|
7
7
|
export * from './fpmm';
|
|
8
8
|
export * from './virtualPoolFactory';
|
|
9
|
+
export * from './virtualPool';
|
|
9
10
|
export * from './router';
|
|
11
|
+
export * from './breakerbox';
|
|
12
|
+
export * from './borrowerOperations';
|
|
13
|
+
export * from './troveManager';
|
|
14
|
+
export * from './hintHelpers';
|
|
15
|
+
export * from './sortedTroves';
|
|
16
|
+
export * from './activePool';
|
|
17
|
+
export * from './multiTroveGetter';
|
|
18
|
+
export * from './troveNFT';
|
|
19
|
+
export * from './priceFeed';
|
|
20
|
+
export * from './addressesRegistry';
|
|
21
|
+
export * from './systemParams';
|
|
10
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/abis/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,QAAQ,CAAA;AACtB,cAAc,sBAAsB,CAAA;AACpC,cAAc,UAAU,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/abis/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,QAAQ,CAAA;AACtB,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAA;AAC5B,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA"}
|
package/dist/core/abis/index.js
CHANGED
|
@@ -22,5 +22,17 @@ __exportStar(require("./broker"), exports);
|
|
|
22
22
|
__exportStar(require("./fpmmFactory"), exports);
|
|
23
23
|
__exportStar(require("./fpmm"), exports);
|
|
24
24
|
__exportStar(require("./virtualPoolFactory"), exports);
|
|
25
|
+
__exportStar(require("./virtualPool"), exports);
|
|
25
26
|
__exportStar(require("./router"), exports);
|
|
27
|
+
__exportStar(require("./breakerbox"), exports);
|
|
28
|
+
__exportStar(require("./borrowerOperations"), exports);
|
|
29
|
+
__exportStar(require("./troveManager"), exports);
|
|
30
|
+
__exportStar(require("./hintHelpers"), exports);
|
|
31
|
+
__exportStar(require("./sortedTroves"), exports);
|
|
32
|
+
__exportStar(require("./activePool"), exports);
|
|
33
|
+
__exportStar(require("./multiTroveGetter"), exports);
|
|
34
|
+
__exportStar(require("./troveNFT"), exports);
|
|
35
|
+
__exportStar(require("./priceFeed"), exports);
|
|
36
|
+
__exportStar(require("./addressesRegistry"), exports);
|
|
37
|
+
__exportStar(require("./systemParams"), exports);
|
|
26
38
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/abis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,4CAAyB;AACzB,kDAA+B;AAC/B,8CAA2B;AAC3B,2CAAwB;AACxB,gDAA6B;AAC7B,yCAAsB;AACtB,uDAAoC;AACpC,2CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/abis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,4CAAyB;AACzB,kDAA+B;AAC/B,8CAA2B;AAC3B,2CAAwB;AACxB,gDAA6B;AAC7B,yCAAsB;AACtB,uDAAoC;AACpC,gDAA6B;AAC7B,2CAAwB;AACxB,+CAA4B;AAC5B,uDAAoC;AACpC,iDAA8B;AAC9B,gDAA6B;AAC7B,iDAA8B;AAC9B,+CAA4B;AAC5B,qDAAkC;AAClC,6CAA0B;AAC1B,8CAA2B;AAC3B,sDAAmC;AACnC,iDAA8B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MultiTroveGetter ABI for batch trove queries
|
|
3
|
+
*
|
|
4
|
+
* Source: MultiTroveGetter.sol
|
|
5
|
+
* Note: Both functions require `_collIndex` as first param — SDK passes `0n`.
|
|
6
|
+
*/
|
|
7
|
+
export declare const MULTI_TROVE_GETTER_ABI: any;
|
|
8
|
+
//# sourceMappingURL=multiTroveGetter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multiTroveGetter.d.ts","sourceRoot":"","sources":["../../../src/core/abis/multiTroveGetter.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,EAG7B,GAAG,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MULTI_TROVE_GETTER_ABI = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
/**
|
|
6
|
+
* MultiTroveGetter ABI for batch trove queries
|
|
7
|
+
*
|
|
8
|
+
* Source: MultiTroveGetter.sol
|
|
9
|
+
* Note: Both functions require `_collIndex` as first param — SDK passes `0n`.
|
|
10
|
+
*/
|
|
11
|
+
exports.MULTI_TROVE_GETTER_ABI = (0, viem_1.parseAbi)([
|
|
12
|
+
'function getMultipleSortedTroves(uint256 _collIndex, int256 _startIdx, uint256 _count) view returns ((uint256 id, uint256 entireDebt, uint256 entireColl, uint256 redistBoldDebtGain, uint256 redistCollGain, uint256 accruedInterest, uint256 recordedDebt, uint256 annualInterestRate, uint256 accruedBatchManagementFee, uint256 lastInterestRateAdjTime, uint256 stake, uint256 lastDebtUpdateTime, address interestBatchManager, uint256 batchDebtShares, uint256 snapshotETH, uint256 snapshotBoldDebt)[])',
|
|
13
|
+
'function getDebtPerInterestRateAscending(uint256 _collIndex, uint256 _startId, uint256 _maxIterations) view returns ((address interestBatchManager, uint256 interestRate, uint256 debt)[] data, uint256 currId)',
|
|
14
|
+
]);
|
|
15
|
+
//# sourceMappingURL=multiTroveGetter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multiTroveGetter.js","sourceRoot":"","sources":["../../../src/core/abis/multiTroveGetter.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B;;;;;GAKG;AACU,QAAA,sBAAsB,GAAG,IAAA,eAAQ,EAAC;IAC7C,kfAAkf;IAClf,iNAAiN;CAClN,CAAQ,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deliberate frontend-read shim:
|
|
3
|
+
* `fetchPrice` is non-view in source contracts, but marked `view` here so it can
|
|
4
|
+
* be called via `readContract`/`eth_call` without write simulation.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PRICE_FEED_ABI: any;
|
|
7
|
+
//# sourceMappingURL=priceFeed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"priceFeed.d.ts","sourceRoot":"","sources":["../../../src/core/abis/priceFeed.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAKrB,GAAG,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRICE_FEED_ABI = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
/**
|
|
6
|
+
* Deliberate frontend-read shim:
|
|
7
|
+
* `fetchPrice` is non-view in source contracts, but marked `view` here so it can
|
|
8
|
+
* be called via `readContract`/`eth_call` without write simulation.
|
|
9
|
+
*/
|
|
10
|
+
exports.PRICE_FEED_ABI = (0, viem_1.parseAbi)([
|
|
11
|
+
'function fetchPrice() view returns (uint256)',
|
|
12
|
+
'function lastValidPrice() view returns (uint256)',
|
|
13
|
+
'function isL2SequencerUp() view returns (bool)',
|
|
14
|
+
'function isShutdown() view returns (bool)',
|
|
15
|
+
]);
|
|
16
|
+
//# sourceMappingURL=priceFeed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"priceFeed.js","sourceRoot":"","sources":["../../../src/core/abis/priceFeed.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B;;;;GAIG;AACU,QAAA,cAAc,GAAG,IAAA,eAAQ,EAAC;IACrC,8CAA8C;IAC9C,kDAAkD;IAClD,gDAAgD;IAChD,2CAA2C;CAC5C,CAAQ,CAAA"}
|