@kayenfinance/v3-sdk 1.0.0-next.2 → 1.0.0
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/constants.d.ts +2 -2
- package/dist/entities/pool.d.ts +1 -1
- package/dist/entities/position.d.ts +1 -1
- package/dist/entities/route.d.ts +1 -1
- package/dist/entities/tick.d.ts +1 -1
- package/dist/entities/tickDataProvider.d.ts +1 -1
- package/dist/entities/tickListDataProvider.d.ts +1 -1
- package/dist/entities/trade.d.ts +1 -1
- package/dist/nonfungiblePositionManager.d.ts +1 -1
- package/dist/payments.d.ts +1 -1
- package/dist/quoter.d.ts +1 -1
- package/dist/selfPermit.d.ts +1 -1
- package/dist/staker.d.ts +1 -1
- package/dist/swapRouter.d.ts +1 -1
- package/dist/utils/calldata.d.ts +1 -1
- package/dist/utils/computePoolAddress.d.ts +1 -1
- package/dist/utils/encodeRouteToPath.d.ts +1 -1
- package/dist/utils/encodeSqrtRatioX96.d.ts +1 -1
- package/dist/utils/maxLiquidityForAmounts.d.ts +1 -1
- package/dist/utils/priceTickConversions.d.ts +1 -1
- package/dist/v3-sdk.cjs.development.js +4 -4
- package/dist/v3-sdk.cjs.development.js.map +1 -1
- package/dist/v3-sdk.cjs.production.min.js +1 -1
- package/dist/v3-sdk.cjs.production.min.js.map +1 -1
- package/dist/v3-sdk.esm.js +4 -4
- package/dist/v3-sdk.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/constants.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ChainId } from '@
|
|
1
|
+
import { ChainId } from '@kayenfinance/sdk-core';
|
|
2
2
|
export declare const FACTORY_ADDRESS = "0x8E994Dbd9d91dF55A711D24B14739ab410CAC1E7";
|
|
3
3
|
export declare const FACTORY_ADDRESS_BY_CHAIN_ID: Partial<Record<ChainId, string>>;
|
|
4
4
|
export declare const ADDRESS_ZERO = "0x0000000000000000000000000000000000000000";
|
|
5
|
-
export declare const POOL_INIT_CODE_HASH = "
|
|
5
|
+
export declare const POOL_INIT_CODE_HASH = "0x5b83bdbcc56b2e630f2807bbadd2b0c21619108066b92a58de081261089e9ce5";
|
|
6
6
|
export declare const POOL_INIT_CODE_HASH_BY_CHAIN_ID: Partial<Record<ChainId, string>>;
|
|
7
7
|
export declare function poolInitCodeHash(chainId?: ChainId): string;
|
|
8
8
|
/**
|
package/dist/entities/pool.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BigintIsh, CurrencyAmount, Price, Token } from '@
|
|
1
|
+
import { BigintIsh, CurrencyAmount, Price, Token } from '@kayenfinance/sdk-core';
|
|
2
2
|
import JSBI from 'jsbi';
|
|
3
3
|
import { FeeAmount } from '../constants';
|
|
4
4
|
import { Tick, TickConstructorArgs } from './tick';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BigintIsh, Percent, Price, CurrencyAmount, Token } from '@
|
|
1
|
+
import { BigintIsh, Percent, Price, CurrencyAmount, Token } from '@kayenfinance/sdk-core';
|
|
2
2
|
import JSBI from 'jsbi';
|
|
3
3
|
import { Pool } from './pool';
|
|
4
4
|
interface PositionConstructorArgs {
|
package/dist/entities/route.d.ts
CHANGED
package/dist/entities/tick.d.ts
CHANGED
package/dist/entities/trade.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BigintIsh, Percent, CurrencyAmount, Currency, NativeCurrency } from '@
|
|
1
|
+
import { BigintIsh, Percent, CurrencyAmount, Currency, NativeCurrency } from '@kayenfinance/sdk-core';
|
|
2
2
|
import { Position } from './entities/position';
|
|
3
3
|
import { MethodParameters } from './utils/calldata';
|
|
4
4
|
import { Interface } from '@ethersproject/abi';
|
package/dist/payments.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import JSBI from 'jsbi';
|
|
2
2
|
import { Interface } from '@ethersproject/abi';
|
|
3
|
-
import { Percent, Token } from '@
|
|
3
|
+
import { Percent, Token } from '@kayenfinance/sdk-core';
|
|
4
4
|
export interface FeeOptions {
|
|
5
5
|
/**
|
|
6
6
|
* The percent of the output that will be taken as a fee.
|
package/dist/quoter.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Interface } from '@ethersproject/abi';
|
|
2
|
-
import { BigintIsh, Currency, CurrencyAmount, TradeType } from '@
|
|
2
|
+
import { BigintIsh, Currency, CurrencyAmount, TradeType } from '@kayenfinance/sdk-core';
|
|
3
3
|
import { MethodParameters } from './utils';
|
|
4
4
|
import { Route } from './entities';
|
|
5
5
|
/**
|
package/dist/selfPermit.d.ts
CHANGED
package/dist/staker.d.ts
CHANGED
package/dist/swapRouter.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Interface } from '@ethersproject/abi';
|
|
2
|
-
import { BigintIsh, Currency, Percent, TradeType } from '@
|
|
2
|
+
import { BigintIsh, Currency, Percent, TradeType } from '@kayenfinance/sdk-core';
|
|
3
3
|
import { Trade } from './entities/trade';
|
|
4
4
|
import { PermitOptions } from './selfPermit';
|
|
5
5
|
import { MethodParameters } from './utils/calldata';
|
package/dist/utils/calldata.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import JSBI from 'jsbi';
|
|
2
|
-
import { BigintIsh } from '@
|
|
2
|
+
import { BigintIsh } from '@kayenfinance/sdk-core';
|
|
3
3
|
/**
|
|
4
4
|
* Returns the sqrt ratio as a Q64.96 corresponding to a given ratio of amount1 and amount0
|
|
5
5
|
* @param amount1 The numerator amount i.e., the amount of token1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Price, Token } from '@
|
|
1
|
+
import { Price, Token } from '@kayenfinance/sdk-core';
|
|
2
2
|
/**
|
|
3
3
|
* Returns a price object corresponding to the input tick and the base/quote token
|
|
4
4
|
* Inputs must be tokens because the address order is used to interpret the price represented by the tick
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
6
|
|
|
7
|
-
var sdkCore = require('@
|
|
7
|
+
var sdkCore = require('@kayenfinance/sdk-core');
|
|
8
8
|
var JSBI = _interopDefault(require('jsbi'));
|
|
9
9
|
var invariant = _interopDefault(require('tiny-invariant'));
|
|
10
10
|
var abi = require('@ethersproject/abi');
|
|
@@ -227,11 +227,11 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
227
227
|
|
|
228
228
|
var _FACTORY_ADDRESS_BY_C, _POOL_INIT_CODE_HASH_, _TICK_SPACINGS;
|
|
229
229
|
var FACTORY_ADDRESS = '0x8E994Dbd9d91dF55A711D24B14739ab410CAC1E7';
|
|
230
|
-
var FACTORY_ADDRESS_BY_CHAIN_ID = (_FACTORY_ADDRESS_BY_C = {}, _FACTORY_ADDRESS_BY_C[sdkCore.ChainId.CHILIZ] = '0x8E994Dbd9d91dF55A711D24B14739ab410CAC1E7', _FACTORY_ADDRESS_BY_C[sdkCore.ChainId.SPICY] = '
|
|
230
|
+
var FACTORY_ADDRESS_BY_CHAIN_ID = (_FACTORY_ADDRESS_BY_C = {}, _FACTORY_ADDRESS_BY_C[sdkCore.ChainId.CHILIZ] = '0x8E994Dbd9d91dF55A711D24B14739ab410CAC1E7', _FACTORY_ADDRESS_BY_C[sdkCore.ChainId.SPICY] = '0xe854832362b6f99a02b3b2c66c56ecfa1daac0df', _FACTORY_ADDRESS_BY_C);
|
|
231
231
|
var ADDRESS_ZERO = '0x0000000000000000000000000000000000000000';
|
|
232
232
|
// @deprecated please use poolInitCodeHash(chainId: ChainId)
|
|
233
|
-
var POOL_INIT_CODE_HASH = '
|
|
234
|
-
var POOL_INIT_CODE_HASH_BY_CHAIN_ID = (_POOL_INIT_CODE_HASH_ = {}, _POOL_INIT_CODE_HASH_[sdkCore.ChainId.CHILIZ] = '
|
|
233
|
+
var POOL_INIT_CODE_HASH = '0x5b83bdbcc56b2e630f2807bbadd2b0c21619108066b92a58de081261089e9ce5';
|
|
234
|
+
var POOL_INIT_CODE_HASH_BY_CHAIN_ID = (_POOL_INIT_CODE_HASH_ = {}, _POOL_INIT_CODE_HASH_[sdkCore.ChainId.CHILIZ] = '0x5b83bdbcc56b2e630f2807bbadd2b0c21619108066b92a58de081261089e9ce5', _POOL_INIT_CODE_HASH_[sdkCore.ChainId.SPICY] = '0x5b83bdbcc56b2e630f2807bbadd2b0c21619108066b92a58de081261089e9ce5', _POOL_INIT_CODE_HASH_);
|
|
235
235
|
function poolInitCodeHash(chainId) {
|
|
236
236
|
var _POOL_INIT_CODE_HASH_2;
|
|
237
237
|
switch (chainId) {
|