@kittycorn-labs/v4-sdk 1.1.6 → 1.1.7
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/index.d.ts +1 -0
- package/dist/v4-sdk.cjs.development.js +20 -0
- package/dist/v4-sdk.cjs.development.js.map +1 -1
- package/dist/v4-sdk.cjs.production.min.js +1 -1
- package/dist/v4-sdk.cjs.production.min.js.map +1 -1
- package/dist/v4-sdk.esm.js +11 -2
- package/dist/v4-sdk.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/v4-sdk.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import invariant from 'tiny-invariant';
|
|
2
2
|
import { keccak256 } from '@ethersproject/solidity';
|
|
3
|
-
import { Price, CurrencyAmount,
|
|
3
|
+
import { Price, CurrencyAmount, Token, ChainId, TradeType, Fraction, Percent, sortedInsert, MaxUint256, validateAndParseAddress } from '@kittycorn-labs/sdk-core';
|
|
4
4
|
import { TickMath, TickListDataProvider, v3Swap, NoTickDataProvider, encodeSqrtRatioX96, maxLiquidityForAmounts, SqrtPriceMath } from '@kittycorn-labs/v3-sdk';
|
|
5
5
|
import { isAddress, defaultAbiCoder } from 'ethers/lib/utils';
|
|
6
6
|
import JSBI from 'jsbi';
|
|
@@ -822,6 +822,15 @@ var BASE_TOKENIZE_UNDERLYING = (_BASE_TOKENIZE_UNDERL = {}, _BASE_TOKENIZE_UNDER
|
|
|
822
822
|
tokenize: TWBTC_SEPOLIA,
|
|
823
823
|
underlying: /*#__PURE__*/new Token(ChainId.SEPOLIA, '0x29f2D40B0605204364af54EC677bD022dA425d03', 8, 'WBTC', 'WBTC Token')
|
|
824
824
|
}], _BASE_TOKENIZE_UNDERL);
|
|
825
|
+
function getSupportUnderlyingByTokenize(chainId, tokenize) {
|
|
826
|
+
var _BASE_TOKENIZE_UNDERL2;
|
|
827
|
+
var token = (_BASE_TOKENIZE_UNDERL2 = BASE_TOKENIZE_UNDERLYING[chainId]) == null ? void 0 : _BASE_TOKENIZE_UNDERL2.find(function (token) {
|
|
828
|
+
return tokenize.address &&
|
|
829
|
+
// Check skip for Ether type is not have address
|
|
830
|
+
token.tokenize.address.toLocaleLowerCase() === tokenize.address.toLocaleLowerCase();
|
|
831
|
+
});
|
|
832
|
+
return token ? token.underlying : undefined;
|
|
833
|
+
}
|
|
825
834
|
function getSupportTokenizeByUnderlying(chainId, underlying) {
|
|
826
835
|
var _BASE_TOKENIZE_UNDERL3;
|
|
827
836
|
var token = (_BASE_TOKENIZE_UNDERL3 = BASE_TOKENIZE_UNDERLYING[chainId]) == null ? void 0 : _BASE_TOKENIZE_UNDERL3.find(function (token) {
|
|
@@ -3769,5 +3778,5 @@ var V4PositionManager = /*#__PURE__*/function () {
|
|
|
3769
3778
|
}();
|
|
3770
3779
|
V4PositionManager.INTERFACE = /*#__PURE__*/new Interface(positionManagerAbi);
|
|
3771
3780
|
|
|
3772
|
-
export { Actions, DYNAMIC_FEE_FLAG, Hook, HookOptions, Pool, Position, Route, Subparser, Trade, V4BaseActionsParser, V4Planner, V4PositionManager, V4PositionPlanner, V4_BASE_ACTIONS_ABI_DEFINITION, amountWithPathCurrency, encodeRouteToPath, getPathCurrency, hookFlagIndex, priceToClosestTick, sortsBefore, tickToPrice, toAddress, toHex, tradeComparator };
|
|
3781
|
+
export { Actions, BASE_TOKENIZE_UNDERLYING, DYNAMIC_FEE_FLAG, Hook, HookOptions, Pool, Position, Route, Subparser, TUSDC_MAINNET, TUSDC_SEPOLIA, TUSDT_MAINNET, TUSDT_SEPOLIA, TWBTC_MAINNET, TWBTC_SEPOLIA, TWETH_MAINNET, TWETH_SEPOLIA, Trade, V4BaseActionsParser, V4Planner, V4PositionManager, V4PositionPlanner, V4_BASE_ACTIONS_ABI_DEFINITION, amountWithPathCurrency, encodeRouteToPath, getPathCurrency, getSupportTokenizeByUnderlying, getSupportUnderlyingByTokenize, hookFlagIndex, priceToClosestTick, sortsBefore, tickToPrice, toAddress, toHex, tradeComparator };
|
|
3773
3782
|
//# sourceMappingURL=v4-sdk.esm.js.map
|