impermax-sdk 2.1.251 → 2.1.252
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/lib/index.d.ts +22 -5
- package/lib/index.js +56 -4
- package/lib/offchain/account/lendingPool/nftlp/offchainAccountNftlp.d.ts +1 -1
- package/lib/onchain/account/lendingPool/nftlp/onchainAccountNftlp.d.ts +1 -1
- package/lib/onchain/interactions/lendingPool/nftlp/onchainInteractionsNftlp.d.ts +2 -2
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -25,19 +25,19 @@ import { OffchainBorrowable, OffchainCollateral } from './offchain/lendingPool';
|
|
|
25
25
|
import OffchainConfigManager, { OffchainPairConfig, OffchainProposal } from './offchain/configManager';
|
|
26
26
|
import OffchainAccountLendingPool, { OffchainAccountBorrowable, OffchainAccountCollateral, OffchainLeveragedPosition, OffchainAccountCollateralV2 } from './offchain/account/lendingPool';
|
|
27
27
|
import { OffchainAccountVault, OffchainAccountPoolToken, OffchainMultichainAccount } from './offchain/account';
|
|
28
|
-
import OnchainLendingPool, { OnchainBorrowable, OnchainCollateral } from './onchain/impermaxFactory/lendingPool';
|
|
28
|
+
import OnchainLendingPool, { OnchainBorrowable, OnchainBorrowableV2, OnchainBorrowableV3, OnchainCollateral, OnchainCollateralV2, OnchainCollateralV3, OnchainLendingPoolV2, OnchainLendingPoolV3 } from './onchain/impermaxFactory/lendingPool';
|
|
29
29
|
import OnchainConfigManager, { OnchainPairConfig, OnchainProposal } from './onchain/configManager';
|
|
30
30
|
import { OnchainAccountLendingPool, OnchainAccountLendingVault, OnchainAccountPoolToken } from './onchain/account';
|
|
31
|
-
import { OnchainAccountBorrowable, OnchainAccountCollateral } from './onchain/account/lendingPool';
|
|
31
|
+
import { OnchainAccountBorrowable, OnchainAccountBorrowableV2, OnchainAccountBorrowableV3, OnchainAccountCollateral, OnchainAccountCollateralV2, OnchainAccountCollateralV3 } from './onchain/account/lendingPool';
|
|
32
32
|
import { OnchainInteractionsLendingPool, OnchainInteractionsLendingVault, OnchainInteractionsPoolToken, OnchainInteractionsConfigManager } from './onchain/interactions';
|
|
33
|
-
import { OnchainInteractionsBorrowable, OnchainInteractionsCollateral, OnchainInteractionsLendingPoolV3 } from './onchain/interactions/lendingPool';
|
|
33
|
+
import { OnchainInteractionsBorrowable, OnchainInteractionsBorrowableV2, OnchainInteractionsBorrowableV3, OnchainInteractionsCollateral, OnchainInteractionsCollateralV2, OnchainInteractionsCollateralV3, OnchainInteractionsLendingPoolV2, OnchainInteractionsLendingPoolV3 } from './onchain/interactions/lendingPool';
|
|
34
34
|
import { LENDING_VAULT_WATCHER } from './config/contracts/lending-vault-watcher';
|
|
35
35
|
import OffchainVault, { OffchainLendingVault, OffchainLeveragedVault, OffchainHedgedVault } from './offchain/vault';
|
|
36
36
|
import { SortDirection, VaultListOrderBy, VaultListParams, LendingPoolListParams, LendingPoolListOrderBy } from "./offchain/offchainMultichain";
|
|
37
37
|
import { VaultRisk } from "./offchain/vault/offchainVault";
|
|
38
38
|
import { LendingPoolVersion } from "./offchain/lendingPool/offchainLendingPool";
|
|
39
39
|
import { PositionType, AccountPosition } from "./offchain/account/offchainMultichainAccount";
|
|
40
|
-
import { OnchainInteractionsNftlpUniswapV3 } from './onchain/interactions/lendingPool/nftlp';
|
|
40
|
+
import OnchainInteractionsNftlp, { OnchainInteractionsNftlpUniswapV3 } from './onchain/interactions/lendingPool/nftlp';
|
|
41
41
|
import OnchainAccountNftlpUniswapV3 from './onchain/account/lendingPool/nftlp/onchainAccountNftlpUniswapV3';
|
|
42
42
|
import OnchainAccountLendingPoolV3 from './onchain/account/lendingPool/onchainAccountLendingPoolV3';
|
|
43
43
|
import OnchainAccountLendingPoolV2 from './onchain/account/lendingPool/onchainAccountLendingPoolV2';
|
|
@@ -48,4 +48,21 @@ import { MAX_TICK, MIN_TICK, formatPriceSqrtX96, uniV3TickToPrice } from "./util
|
|
|
48
48
|
import UniswapV3Position from './utils/position/uniswapV3';
|
|
49
49
|
import UniswapV2Position from './utils/position/uniswapV2';
|
|
50
50
|
import Position from './utils/position/interface';
|
|
51
|
-
|
|
51
|
+
import OffchainLendingPoolV2 from './offchain/lendingPool/offchainLendingPoolV2';
|
|
52
|
+
import OffchainBorrowableV2 from './offchain/lendingPool/offchainBorrowableV2';
|
|
53
|
+
import OffchainCollateralV2 from './offchain/lendingPool/offchainCollateralV2';
|
|
54
|
+
import OffchainBorrowableV3 from './offchain/lendingPool/offchainBorrowableV3';
|
|
55
|
+
import OffchainLendingPoolV3 from './offchain/lendingPool/offchainLendingPoolV3';
|
|
56
|
+
import OffchainNftlp, { OffchainNftlpUniswapV3 } from './offchain/lendingPool/nftlp';
|
|
57
|
+
import OffchainCollateralV3 from './offchain/lendingPool/offchainCollateralV3';
|
|
58
|
+
import OffchainAccountLendingPoolV2 from './offchain/account/lendingPool/offchainAccountLendingPoolV2';
|
|
59
|
+
import OffchainAccountBorrowableV2 from './offchain/account/lendingPool/offchainAccountBorrowableV2';
|
|
60
|
+
import OffchainAccountCollateralV3 from './offchain/account/lendingPool/offchainAccountCollateralV3';
|
|
61
|
+
import OffchainAccountNftlp from './offchain/account/lendingPool/nftlp/offchainAccountNftlp';
|
|
62
|
+
import { OnchainImpermaxFactoryV3 } from './onchain/impermaxFactory';
|
|
63
|
+
import { OnchainImpermaxFactoryV2 } from './onchain/impermaxFactory';
|
|
64
|
+
import { OnchainNftlpUniswapV3 } from './onchain/impermaxFactory/lendingPool/nftlp';
|
|
65
|
+
import OnchainNftlp from './onchain/impermaxFactory/lendingPool/nftlp';
|
|
66
|
+
import OnchainAccountNftlp from './onchain/account/lendingPool/nftlp';
|
|
67
|
+
import OffchainAccountBorrowableV3 from './offchain/account/lendingPool/offchainAccountBorrowableV3';
|
|
68
|
+
export { offchain, OffchainMultichain, Offchain, OffchainPoolToken, OffchainLendingPool, OffchainCollateral, OffchainBorrowable, OffchainLendingPoolV2, OffchainCollateralV2, OffchainBorrowableV2, OffchainLendingPoolV3, OffchainCollateralV3, OffchainBorrowableV3, OffchainNftlp, OffchainNftlpUniswapV3, OffchainVault, OffchainLeveragedVault, OffchainLendingVault, OffchainHedgedVault, OffchainConfigManager, OffchainPairConfig, OffchainProposal, OffchainMultichainAccount, OffchainAccount, OffchainAccountPoolToken, OffchainAccountLendingPool, OffchainAccountCollateral, OffchainAccountBorrowable, OffchainAccountLendingPoolV2, OffchainAccountCollateralV2, OffchainAccountBorrowableV2, OffchainAccountLendingPoolV3, OffchainAccountCollateralV3, OffchainAccountBorrowableV3, OffchainAccountNftlp, OffchainAccountNftlpUniswapV3, OffchainLeveragedPosition, OffchainAccountVault, OffchainPriceHelper, OffchainSolidexHelper, PoolTokenData, BorrowableData, CollateralData, BorrowablePastData, TokenData, RewardData, PairData, FarmingPoolData, LendingPoolPastData, LendingPoolData, CollateralPosition, SupplyPosition, BorrowPosition, UserData, TvlData, XimxData, LendingVaultData, VaultPosition, PairConfigData, ProposalData, ProposalMetadata, VaultRisk, VaultType, onchain, Onchain, OnchainImpermaxFactory, OnchainImpermaxFactoryV2, OnchainImpermaxFactoryV3, OnchainPoolToken, OnchainLendingPool, OnchainBorrowable, OnchainCollateral, OnchainLendingPoolV2, OnchainBorrowableV2, OnchainCollateralV2, OnchainLendingPoolV3, OnchainBorrowableV3, OnchainCollateralV3, OnchainNftlp, OnchainNftlpUniswapV3, OnchainLendingVault, OnchainConfigManager, OnchainProposal, OnchainPairConfig, OnchainAccount, OnchainAccountPoolToken, OnchainAccountLendingPool, OnchainAccountBorrowable, OnchainAccountCollateral, OnchainAccountLendingPoolV2, OnchainAccountBorrowableV2, OnchainAccountCollateralV2, OnchainAccountLendingPoolV3, OnchainAccountBorrowableV3, OnchainAccountCollateralV3, OnchainAccountNftlp, OnchainAccountNftlpUniswapV3, OnchainAccountLendingVault, OnchainContractsHelper, OnchainInteractions, OnchainInteractionsPoolToken, OnchainInteractionsLendingPool, OnchainInteractionsCollateral, OnchainInteractionsBorrowable, OnchainInteractionsLendingPoolV2, OnchainInteractionsCollateralV2, OnchainInteractionsBorrowableV2, OnchainInteractionsLendingPoolV3, OnchainInteractionsCollateralV3, OnchainInteractionsBorrowableV3, OnchainInteractionsNftlp, OnchainInteractionsNftlpUniswapV3, OnchainInteractionsLendingVault, OnchainInteractionsConfigManager, Contract, ApprovalType, PermitData, OnchainConfig, Changes, NO_CHANGES, Values, AirdropData, PendingRewardUI, CollateralConfig, BorrowableV2Config, BorrowableV3Config, PairConfig, CLAIM_AGGREGATOR, IMPERMAX_CHEF, IMX, IMPERMAX_FACTORY, getNetworkFactories, getFactoryByAddress, LENDING_VAULT_WATCHER, MERKLE_DISTRIBUTOR_IBEX, MERKLE_DISTRIBUTOR_IBEX_2, MERKLE_DISTRIBUTOR_ETH, ROUTER, SIMPLE_UNISWAP_ORACLE, WETH, MERKLE_URL_ETH, MERKLE_URL_IBEX, MERKLE_URL_IBEX_2, hrAmms, AMM_FACTORY, getAmmByFactory, AMM_SUBGRAPH_URLS, ADD_LIQUIDITY_URLS, AMM_LP_FEE, DEBANK_IDS, ETH_SYMBOL, ETH_NAME, SOLIDEX_FACTORIES, BORROW_FEE_FACTORIES, OLD_KINK_MULTIPLIER_FACTORIES, LIQUIDATION_FEE_FACTORIES, V2_FACTORIES, Farms, hrFarms, FarmIndex, STAKED_LP_FACTORY, getFarmByStakedLPFactory, NOT_SYNCED, DEADLINE, ZERO, APPROVE_AMOUNT, IMPERMAX_SUBGRAPH_URL, IMPERMAX_CHEF_SUBGRAPH_URL, BLOCKS_SUBGRAPH_URL, XIMX_SUBGRAPH_URL, Networks, Factory, Extension, PoolTokenType, Amms, Address, NetworkIndex, FactoryIndex, AddressIndex, NetworkFactoryIndex, LendingPoolIndex, AmmIndex, DistributorDetails, ProposalState, WhitelistState, VaultListOrderBy, VaultListParams, LendingPoolListOrderBy, LendingPoolListParams, SortDirection, LendingPoolVersion, PositionType, AccountPosition, PermitType, Permits, Permit, Borrowable, decimalToBalance, MAX_TICK, MIN_TICK, formatPriceSqrtX96, uniV3TickToPrice, isV3Factory, UniswapV3Position, UniswapV2Position, Position, };
|
package/lib/index.js
CHANGED
|
@@ -26,9 +26,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
29
|
+
exports.OnchainBorrowable = exports.OnchainLendingPool = exports.OnchainPoolToken = exports.OnchainImpermaxFactoryV3 = exports.OnchainImpermaxFactoryV2 = exports.OnchainImpermaxFactory = exports.Onchain = exports.onchain = exports.VaultType = exports.VaultRisk = exports.OffchainSolidexHelper = exports.OffchainPriceHelper = exports.OffchainAccountVault = exports.OffchainLeveragedPosition = exports.OffchainAccountNftlpUniswapV3 = exports.OffchainAccountNftlp = exports.OffchainAccountBorrowableV3 = exports.OffchainAccountCollateralV3 = exports.OffchainAccountLendingPoolV3 = exports.OffchainAccountBorrowableV2 = exports.OffchainAccountCollateralV2 = exports.OffchainAccountLendingPoolV2 = exports.OffchainAccountBorrowable = exports.OffchainAccountCollateral = exports.OffchainAccountLendingPool = exports.OffchainAccountPoolToken = exports.OffchainAccount = exports.OffchainMultichainAccount = exports.OffchainProposal = exports.OffchainPairConfig = exports.OffchainConfigManager = exports.OffchainHedgedVault = exports.OffchainLendingVault = exports.OffchainLeveragedVault = exports.OffchainVault = exports.OffchainNftlpUniswapV3 = exports.OffchainNftlp = exports.OffchainBorrowableV3 = exports.OffchainCollateralV3 = exports.OffchainLendingPoolV3 = exports.OffchainBorrowableV2 = exports.OffchainCollateralV2 = exports.OffchainLendingPoolV2 = exports.OffchainBorrowable = exports.OffchainCollateral = exports.OffchainLendingPool = exports.OffchainPoolToken = exports.Offchain = exports.OffchainMultichain = exports.offchain = void 0;
|
|
30
|
+
exports.getNetworkFactories = exports.IMPERMAX_FACTORY = exports.IMX = exports.IMPERMAX_CHEF = exports.CLAIM_AGGREGATOR = exports.NO_CHANGES = exports.ApprovalType = exports.OnchainInteractionsConfigManager = exports.OnchainInteractionsLendingVault = exports.OnchainInteractionsNftlpUniswapV3 = exports.OnchainInteractionsNftlp = exports.OnchainInteractionsBorrowableV3 = exports.OnchainInteractionsCollateralV3 = exports.OnchainInteractionsLendingPoolV3 = exports.OnchainInteractionsBorrowableV2 = exports.OnchainInteractionsCollateralV2 = exports.OnchainInteractionsLendingPoolV2 = exports.OnchainInteractionsBorrowable = exports.OnchainInteractionsCollateral = exports.OnchainInteractionsLendingPool = exports.OnchainInteractionsPoolToken = exports.OnchainInteractions = exports.OnchainContractsHelper = exports.OnchainAccountLendingVault = exports.OnchainAccountNftlpUniswapV3 = exports.OnchainAccountNftlp = exports.OnchainAccountCollateralV3 = exports.OnchainAccountBorrowableV3 = exports.OnchainAccountLendingPoolV3 = exports.OnchainAccountCollateralV2 = exports.OnchainAccountBorrowableV2 = exports.OnchainAccountLendingPoolV2 = exports.OnchainAccountCollateral = exports.OnchainAccountBorrowable = exports.OnchainAccountLendingPool = exports.OnchainAccountPoolToken = exports.OnchainAccount = exports.OnchainPairConfig = exports.OnchainProposal = exports.OnchainConfigManager = exports.OnchainLendingVault = exports.OnchainNftlpUniswapV3 = exports.OnchainNftlp = exports.OnchainCollateralV3 = exports.OnchainBorrowableV3 = exports.OnchainLendingPoolV3 = exports.OnchainCollateralV2 = exports.OnchainBorrowableV2 = exports.OnchainLendingPoolV2 = exports.OnchainCollateral = void 0;
|
|
31
|
+
exports.PermitType = exports.PositionType = exports.LendingPoolVersion = exports.SortDirection = exports.LendingPoolListOrderBy = exports.VaultListOrderBy = exports.WhitelistState = exports.ProposalState = exports.Amms = exports.PoolTokenType = exports.Extension = exports.Factory = exports.Networks = exports.XIMX_SUBGRAPH_URL = exports.BLOCKS_SUBGRAPH_URL = exports.IMPERMAX_CHEF_SUBGRAPH_URL = exports.IMPERMAX_SUBGRAPH_URL = exports.APPROVE_AMOUNT = exports.ZERO = exports.DEADLINE = exports.NOT_SYNCED = exports.getFarmByStakedLPFactory = exports.STAKED_LP_FACTORY = exports.hrFarms = exports.Farms = exports.V2_FACTORIES = exports.LIQUIDATION_FEE_FACTORIES = exports.OLD_KINK_MULTIPLIER_FACTORIES = exports.BORROW_FEE_FACTORIES = exports.SOLIDEX_FACTORIES = exports.ETH_NAME = exports.ETH_SYMBOL = exports.DEBANK_IDS = exports.AMM_LP_FEE = exports.ADD_LIQUIDITY_URLS = exports.AMM_SUBGRAPH_URLS = exports.getAmmByFactory = exports.AMM_FACTORY = exports.hrAmms = exports.MERKLE_URL_IBEX_2 = exports.MERKLE_URL_IBEX = exports.MERKLE_URL_ETH = exports.WETH = exports.SIMPLE_UNISWAP_ORACLE = exports.ROUTER = exports.MERKLE_DISTRIBUTOR_ETH = exports.MERKLE_DISTRIBUTOR_IBEX_2 = exports.MERKLE_DISTRIBUTOR_IBEX = exports.LENDING_VAULT_WATCHER = exports.getFactoryByAddress = void 0;
|
|
32
|
+
exports.UniswapV2Position = exports.UniswapV3Position = exports.isV3Factory = exports.uniV3TickToPrice = exports.formatPriceSqrtX96 = exports.MIN_TICK = exports.MAX_TICK = exports.decimalToBalance = exports.Borrowable = void 0;
|
|
32
33
|
const offchain_1 = __importStar(require("./offchain"));
|
|
33
34
|
exports.Offchain = offchain_1.default;
|
|
34
35
|
Object.defineProperty(exports, "OffchainAccount", { enumerable: true, get: function () { return offchain_1.OffchainAccount; } });
|
|
@@ -142,7 +143,13 @@ Object.defineProperty(exports, "OffchainMultichainAccount", { enumerable: true,
|
|
|
142
143
|
const lendingPool_3 = __importStar(require("./onchain/impermaxFactory/lendingPool"));
|
|
143
144
|
exports.OnchainLendingPool = lendingPool_3.default;
|
|
144
145
|
Object.defineProperty(exports, "OnchainBorrowable", { enumerable: true, get: function () { return lendingPool_3.OnchainBorrowable; } });
|
|
146
|
+
Object.defineProperty(exports, "OnchainBorrowableV2", { enumerable: true, get: function () { return lendingPool_3.OnchainBorrowableV2; } });
|
|
147
|
+
Object.defineProperty(exports, "OnchainBorrowableV3", { enumerable: true, get: function () { return lendingPool_3.OnchainBorrowableV3; } });
|
|
145
148
|
Object.defineProperty(exports, "OnchainCollateral", { enumerable: true, get: function () { return lendingPool_3.OnchainCollateral; } });
|
|
149
|
+
Object.defineProperty(exports, "OnchainCollateralV2", { enumerable: true, get: function () { return lendingPool_3.OnchainCollateralV2; } });
|
|
150
|
+
Object.defineProperty(exports, "OnchainCollateralV3", { enumerable: true, get: function () { return lendingPool_3.OnchainCollateralV3; } });
|
|
151
|
+
Object.defineProperty(exports, "OnchainLendingPoolV2", { enumerable: true, get: function () { return lendingPool_3.OnchainLendingPoolV2; } });
|
|
152
|
+
Object.defineProperty(exports, "OnchainLendingPoolV3", { enumerable: true, get: function () { return lendingPool_3.OnchainLendingPoolV3; } });
|
|
146
153
|
const configManager_2 = __importStar(require("./onchain/configManager"));
|
|
147
154
|
exports.OnchainConfigManager = configManager_2.default;
|
|
148
155
|
Object.defineProperty(exports, "OnchainPairConfig", { enumerable: true, get: function () { return configManager_2.OnchainPairConfig; } });
|
|
@@ -153,7 +160,11 @@ Object.defineProperty(exports, "OnchainAccountLendingVault", { enumerable: true,
|
|
|
153
160
|
Object.defineProperty(exports, "OnchainAccountPoolToken", { enumerable: true, get: function () { return account_2.OnchainAccountPoolToken; } });
|
|
154
161
|
const lendingPool_4 = require("./onchain/account/lendingPool");
|
|
155
162
|
Object.defineProperty(exports, "OnchainAccountBorrowable", { enumerable: true, get: function () { return lendingPool_4.OnchainAccountBorrowable; } });
|
|
163
|
+
Object.defineProperty(exports, "OnchainAccountBorrowableV2", { enumerable: true, get: function () { return lendingPool_4.OnchainAccountBorrowableV2; } });
|
|
164
|
+
Object.defineProperty(exports, "OnchainAccountBorrowableV3", { enumerable: true, get: function () { return lendingPool_4.OnchainAccountBorrowableV3; } });
|
|
156
165
|
Object.defineProperty(exports, "OnchainAccountCollateral", { enumerable: true, get: function () { return lendingPool_4.OnchainAccountCollateral; } });
|
|
166
|
+
Object.defineProperty(exports, "OnchainAccountCollateralV2", { enumerable: true, get: function () { return lendingPool_4.OnchainAccountCollateralV2; } });
|
|
167
|
+
Object.defineProperty(exports, "OnchainAccountCollateralV3", { enumerable: true, get: function () { return lendingPool_4.OnchainAccountCollateralV3; } });
|
|
157
168
|
const interactions_1 = require("./onchain/interactions");
|
|
158
169
|
Object.defineProperty(exports, "OnchainInteractionsLendingPool", { enumerable: true, get: function () { return interactions_1.OnchainInteractionsLendingPool; } });
|
|
159
170
|
Object.defineProperty(exports, "OnchainInteractionsLendingVault", { enumerable: true, get: function () { return interactions_1.OnchainInteractionsLendingVault; } });
|
|
@@ -161,7 +172,12 @@ Object.defineProperty(exports, "OnchainInteractionsPoolToken", { enumerable: tru
|
|
|
161
172
|
Object.defineProperty(exports, "OnchainInteractionsConfigManager", { enumerable: true, get: function () { return interactions_1.OnchainInteractionsConfigManager; } });
|
|
162
173
|
const lendingPool_5 = require("./onchain/interactions/lendingPool");
|
|
163
174
|
Object.defineProperty(exports, "OnchainInteractionsBorrowable", { enumerable: true, get: function () { return lendingPool_5.OnchainInteractionsBorrowable; } });
|
|
175
|
+
Object.defineProperty(exports, "OnchainInteractionsBorrowableV2", { enumerable: true, get: function () { return lendingPool_5.OnchainInteractionsBorrowableV2; } });
|
|
176
|
+
Object.defineProperty(exports, "OnchainInteractionsBorrowableV3", { enumerable: true, get: function () { return lendingPool_5.OnchainInteractionsBorrowableV3; } });
|
|
164
177
|
Object.defineProperty(exports, "OnchainInteractionsCollateral", { enumerable: true, get: function () { return lendingPool_5.OnchainInteractionsCollateral; } });
|
|
178
|
+
Object.defineProperty(exports, "OnchainInteractionsCollateralV2", { enumerable: true, get: function () { return lendingPool_5.OnchainInteractionsCollateralV2; } });
|
|
179
|
+
Object.defineProperty(exports, "OnchainInteractionsCollateralV3", { enumerable: true, get: function () { return lendingPool_5.OnchainInteractionsCollateralV3; } });
|
|
180
|
+
Object.defineProperty(exports, "OnchainInteractionsLendingPoolV2", { enumerable: true, get: function () { return lendingPool_5.OnchainInteractionsLendingPoolV2; } });
|
|
165
181
|
Object.defineProperty(exports, "OnchainInteractionsLendingPoolV3", { enumerable: true, get: function () { return lendingPool_5.OnchainInteractionsLendingPoolV3; } });
|
|
166
182
|
const lending_vault_watcher_1 = require("./config/contracts/lending-vault-watcher");
|
|
167
183
|
Object.defineProperty(exports, "LENDING_VAULT_WATCHER", { enumerable: true, get: function () { return lending_vault_watcher_1.LENDING_VAULT_WATCHER; } });
|
|
@@ -182,7 +198,8 @@ Object.defineProperty(exports, "LendingPoolVersion", { enumerable: true, get: fu
|
|
|
182
198
|
const offchainMultichainAccount_1 = require("./offchain/account/offchainMultichainAccount");
|
|
183
199
|
Object.defineProperty(exports, "PositionType", { enumerable: true, get: function () { return offchainMultichainAccount_1.PositionType; } });
|
|
184
200
|
// Nftlp
|
|
185
|
-
const nftlp_1 = require("./onchain/interactions/lendingPool/nftlp");
|
|
201
|
+
const nftlp_1 = __importStar(require("./onchain/interactions/lendingPool/nftlp"));
|
|
202
|
+
exports.OnchainInteractionsNftlp = nftlp_1.default;
|
|
186
203
|
Object.defineProperty(exports, "OnchainInteractionsNftlpUniswapV3", { enumerable: true, get: function () { return nftlp_1.OnchainInteractionsNftlpUniswapV3; } });
|
|
187
204
|
const onchainAccountNftlpUniswapV3_1 = __importDefault(require("./onchain/account/lendingPool/nftlp/onchainAccountNftlpUniswapV3"));
|
|
188
205
|
exports.OnchainAccountNftlpUniswapV3 = onchainAccountNftlpUniswapV3_1.default;
|
|
@@ -206,3 +223,38 @@ const uniswapV3_1 = __importDefault(require("./utils/position/uniswapV3"));
|
|
|
206
223
|
exports.UniswapV3Position = uniswapV3_1.default;
|
|
207
224
|
const uniswapV2_1 = __importDefault(require("./utils/position/uniswapV2"));
|
|
208
225
|
exports.UniswapV2Position = uniswapV2_1.default;
|
|
226
|
+
const offchainLendingPoolV2_1 = __importDefault(require("./offchain/lendingPool/offchainLendingPoolV2"));
|
|
227
|
+
exports.OffchainLendingPoolV2 = offchainLendingPoolV2_1.default;
|
|
228
|
+
const offchainBorrowableV2_1 = __importDefault(require("./offchain/lendingPool/offchainBorrowableV2"));
|
|
229
|
+
exports.OffchainBorrowableV2 = offchainBorrowableV2_1.default;
|
|
230
|
+
const offchainCollateralV2_1 = __importDefault(require("./offchain/lendingPool/offchainCollateralV2"));
|
|
231
|
+
exports.OffchainCollateralV2 = offchainCollateralV2_1.default;
|
|
232
|
+
const offchainBorrowableV3_1 = __importDefault(require("./offchain/lendingPool/offchainBorrowableV3"));
|
|
233
|
+
exports.OffchainBorrowableV3 = offchainBorrowableV3_1.default;
|
|
234
|
+
const offchainLendingPoolV3_1 = __importDefault(require("./offchain/lendingPool/offchainLendingPoolV3"));
|
|
235
|
+
exports.OffchainLendingPoolV3 = offchainLendingPoolV3_1.default;
|
|
236
|
+
const nftlp_2 = __importStar(require("./offchain/lendingPool/nftlp"));
|
|
237
|
+
exports.OffchainNftlp = nftlp_2.default;
|
|
238
|
+
Object.defineProperty(exports, "OffchainNftlpUniswapV3", { enumerable: true, get: function () { return nftlp_2.OffchainNftlpUniswapV3; } });
|
|
239
|
+
const offchainCollateralV3_1 = __importDefault(require("./offchain/lendingPool/offchainCollateralV3"));
|
|
240
|
+
exports.OffchainCollateralV3 = offchainCollateralV3_1.default;
|
|
241
|
+
const offchainAccountLendingPoolV2_1 = __importDefault(require("./offchain/account/lendingPool/offchainAccountLendingPoolV2"));
|
|
242
|
+
exports.OffchainAccountLendingPoolV2 = offchainAccountLendingPoolV2_1.default;
|
|
243
|
+
const offchainAccountBorrowableV2_1 = __importDefault(require("./offchain/account/lendingPool/offchainAccountBorrowableV2"));
|
|
244
|
+
exports.OffchainAccountBorrowableV2 = offchainAccountBorrowableV2_1.default;
|
|
245
|
+
const offchainAccountCollateralV3_1 = __importDefault(require("./offchain/account/lendingPool/offchainAccountCollateralV3"));
|
|
246
|
+
exports.OffchainAccountCollateralV3 = offchainAccountCollateralV3_1.default;
|
|
247
|
+
const offchainAccountNftlp_1 = __importDefault(require("./offchain/account/lendingPool/nftlp/offchainAccountNftlp"));
|
|
248
|
+
exports.OffchainAccountNftlp = offchainAccountNftlp_1.default;
|
|
249
|
+
const impermaxFactory_1 = require("./onchain/impermaxFactory");
|
|
250
|
+
Object.defineProperty(exports, "OnchainImpermaxFactoryV3", { enumerable: true, get: function () { return impermaxFactory_1.OnchainImpermaxFactoryV3; } });
|
|
251
|
+
const impermaxFactory_2 = require("./onchain/impermaxFactory");
|
|
252
|
+
Object.defineProperty(exports, "OnchainImpermaxFactoryV2", { enumerable: true, get: function () { return impermaxFactory_2.OnchainImpermaxFactoryV2; } });
|
|
253
|
+
const nftlp_3 = require("./onchain/impermaxFactory/lendingPool/nftlp");
|
|
254
|
+
Object.defineProperty(exports, "OnchainNftlpUniswapV3", { enumerable: true, get: function () { return nftlp_3.OnchainNftlpUniswapV3; } });
|
|
255
|
+
const nftlp_4 = __importDefault(require("./onchain/impermaxFactory/lendingPool/nftlp"));
|
|
256
|
+
exports.OnchainNftlp = nftlp_4.default;
|
|
257
|
+
const nftlp_5 = __importDefault(require("./onchain/account/lendingPool/nftlp"));
|
|
258
|
+
exports.OnchainAccountNftlp = nftlp_5.default;
|
|
259
|
+
const offchainAccountBorrowableV3_1 = __importDefault(require("./offchain/account/lendingPool/offchainAccountBorrowableV3"));
|
|
260
|
+
exports.OffchainAccountBorrowableV3 = offchainAccountBorrowableV3_1.default;
|
|
@@ -5,7 +5,7 @@ export default abstract class OffchainAccountNftlp {
|
|
|
5
5
|
protected cache: {};
|
|
6
6
|
constructor(collateral: OffchainAccountCollateralV3);
|
|
7
7
|
getLendingPool: () => import("../offchainAccountLendingPoolV3").default;
|
|
8
|
-
getNftlp: () => import("
|
|
8
|
+
getNftlp: () => import("../../../..").OffchainNftlp;
|
|
9
9
|
cleanCache(): void;
|
|
10
10
|
abstract getTokenPositions(): Promise<Record<string, NftlpPosition>>;
|
|
11
11
|
}
|
|
@@ -5,6 +5,6 @@ export default abstract class OnchainAccountNftlp {
|
|
|
5
5
|
protected cache: {};
|
|
6
6
|
constructor(collateral: OnchainAccountCollateralV3);
|
|
7
7
|
getLendingPool: () => OnchainAccountLendingPoolV3;
|
|
8
|
-
getNftlp: () => import("
|
|
8
|
+
getNftlp: () => import("../../../..").OnchainNftlp;
|
|
9
9
|
cleanCache(): void;
|
|
10
10
|
}
|
|
@@ -8,11 +8,11 @@ export default abstract class OnchainInteractionsNftlp {
|
|
|
8
8
|
protected cache: {};
|
|
9
9
|
constructor(collateral: OnchainInteractionsCollateralV3);
|
|
10
10
|
getLendingPool: () => OnchainInteractionsLendingPoolV3;
|
|
11
|
-
getNftlp: () => import("
|
|
11
|
+
getNftlp: () => import("../../../..").OnchainNftlp;
|
|
12
12
|
protected getOnchain: () => import("../../..").default;
|
|
13
13
|
protected getPermitHelper: () => import("../../../onchainPermitHelper").default;
|
|
14
14
|
getActionsGetter: () => any;
|
|
15
|
-
getAccountNftlp: () => import("
|
|
15
|
+
getAccountNftlp: () => import("../../../..").OnchainAccountNftlp;
|
|
16
16
|
getAccountAddress: () => string;
|
|
17
17
|
protected getUiMargin: () => number;
|
|
18
18
|
protected getDust: () => number;
|