@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.
@@ -1,8 +1,8 @@
1
- import { ChainId } from '@kayenfi/sdk-core';
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 = "0xdb96ddabce23ac2496f88ada639decf2ad1c34e5921db179ad41359ed24285e1";
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
  /**
@@ -1,4 +1,4 @@
1
- import { BigintIsh, CurrencyAmount, Price, Token } from '@kayenfi/sdk-core';
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 '@kayenfi/sdk-core';
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 {
@@ -1,4 +1,4 @@
1
- import { Currency, Price, Token } from '@kayenfi/sdk-core';
1
+ import { Currency, Price, Token } from '@kayenfinance/sdk-core';
2
2
  import { Pool } from './pool';
3
3
  /**
4
4
  * Represents a list of pools through which a swap can occur
@@ -1,5 +1,5 @@
1
1
  import JSBI from 'jsbi';
2
- import { BigintIsh } from '@kayenfi/sdk-core';
2
+ import { BigintIsh } from '@kayenfinance/sdk-core';
3
3
  export interface TickConstructorArgs {
4
4
  index: number;
5
5
  liquidityGross: BigintIsh;
@@ -1,4 +1,4 @@
1
- import { BigintIsh } from '@kayenfi/sdk-core';
1
+ import { BigintIsh } from '@kayenfinance/sdk-core';
2
2
  /**
3
3
  * Provides information about ticks
4
4
  */
@@ -1,4 +1,4 @@
1
- import { BigintIsh } from '@kayenfi/sdk-core';
1
+ import { BigintIsh } from '@kayenfinance/sdk-core';
2
2
  import { Tick, TickConstructorArgs } from './tick';
3
3
  import { TickDataProvider } from './tickDataProvider';
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { Currency, Percent, Price, CurrencyAmount, TradeType } from '@kayenfi/sdk-core';
1
+ import { Currency, Percent, Price, CurrencyAmount, TradeType } from '@kayenfinance/sdk-core';
2
2
  import { Pool } from './pool';
3
3
  import { Route } from './route';
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { BigintIsh, Percent, CurrencyAmount, Currency, NativeCurrency } from '@kayenfi/sdk-core';
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';
@@ -1,6 +1,6 @@
1
1
  import JSBI from 'jsbi';
2
2
  import { Interface } from '@ethersproject/abi';
3
- import { Percent, Token } from '@kayenfi/sdk-core';
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 '@kayenfi/sdk-core';
2
+ import { BigintIsh, Currency, CurrencyAmount, TradeType } from '@kayenfinance/sdk-core';
3
3
  import { MethodParameters } from './utils';
4
4
  import { Route } from './entities';
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { BigintIsh, Token } from '@kayenfi/sdk-core';
1
+ import { BigintIsh, Token } from '@kayenfinance/sdk-core';
2
2
  import { Interface } from '@ethersproject/abi';
3
3
  export interface StandardPermitArguments {
4
4
  v: 0 | 1 | 27 | 28;
package/dist/staker.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { BigintIsh, Token } from '@kayenfi/sdk-core';
1
+ import { BigintIsh, Token } from '@kayenfinance/sdk-core';
2
2
  import { MethodParameters } from './utils/calldata';
3
3
  import { Interface } from '@ethersproject/abi';
4
4
  import { Pool } from './entities';
@@ -1,5 +1,5 @@
1
1
  import { Interface } from '@ethersproject/abi';
2
- import { BigintIsh, Currency, Percent, TradeType } from '@kayenfi/sdk-core';
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';
@@ -1,4 +1,4 @@
1
- import { BigintIsh } from '@kayenfi/sdk-core';
1
+ import { BigintIsh } from '@kayenfinance/sdk-core';
2
2
  /**
3
3
  * Generated method parameters for executing a call.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { ChainId, Token } from '@kayenfi/sdk-core';
1
+ import { ChainId, Token } from '@kayenfinance/sdk-core';
2
2
  import { FeeAmount } from '../constants';
3
3
  /**
4
4
  * Computes a pool address
@@ -1,4 +1,4 @@
1
- import { Currency } from '@kayenfi/sdk-core';
1
+ import { Currency } from '@kayenfinance/sdk-core';
2
2
  import { Route } from '../entities/route';
3
3
  /**
4
4
  * Converts a route to a hex encoded path
@@ -1,5 +1,5 @@
1
1
  import JSBI from 'jsbi';
2
- import { BigintIsh } from '@kayenfi/sdk-core';
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 { BigintIsh } from '@kayenfi/sdk-core';
1
+ import { BigintIsh } from '@kayenfinance/sdk-core';
2
2
  import JSBI from 'jsbi';
3
3
  /**
4
4
  * Computes the maximum amount of liquidity received for a given amount of token0, token1,
@@ -1,4 +1,4 @@
1
- import { Price, Token } from '@kayenfi/sdk-core';
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('@kayenfi/sdk-core');
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] = '0x6047E9e3f651E356075f85014BB21c6a71aAEaDe', _FACTORY_ADDRESS_BY_C);
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 = '0xdb96ddabce23ac2496f88ada639decf2ad1c34e5921db179ad41359ed24285e1';
234
- var POOL_INIT_CODE_HASH_BY_CHAIN_ID = (_POOL_INIT_CODE_HASH_ = {}, _POOL_INIT_CODE_HASH_[sdkCore.ChainId.CHILIZ] = '0xdb96ddabce23ac2496f88ada639decf2ad1c34e5921db179ad41359ed24285e1', _POOL_INIT_CODE_HASH_[sdkCore.ChainId.SPICY] = '0xdb96ddabce23ac2496f88ada639decf2ad1c34e5921db179ad41359ed24285e1', _POOL_INIT_CODE_HASH_);
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) {