@orca-so/whirlpools-sdk
Advanced tools
Comparing version 0.13.0 to 0.13.1
@@ -99,4 +99,4 @@ import { Address } from "@coral-xyz/anchor"; | ||
* @category Quotes | ||
* @param inputTokenMint - The mint of the input token the user would like to deposit. | ||
* @param inputTokenAmount - The amount of input tokens to deposit. | ||
* @param inputTokenMint - The mint of the input token the user would like to deposit. | ||
* @param tickLower - The lower index of the position that we are withdrawing from. | ||
@@ -103,0 +103,0 @@ * @param tickUpper - The upper index of the position that we are withdrawing from. |
@@ -191,4 +191,4 @@ "use strict"; | ||
* @category Quotes | ||
* @param inputTokenMint - The mint of the input token the user would like to deposit. | ||
* @param inputTokenAmount - The amount of input tokens to deposit. | ||
* @param inputTokenMint - The mint of the input token the user would like to deposit. | ||
* @param tickLower - The lower index of the position that we are withdrawing from. | ||
@@ -195,0 +195,0 @@ * @param tickUpper - The upper index of the position that we are withdrawing from. |
@@ -97,1 +97,6 @@ /// <reference types="bn.js" /> | ||
export declare const WHIRLPOOL_NFT_UPDATE_AUTH: PublicKey; | ||
/** | ||
* The tick spacing (inclusive) at which a whirlpool only supports full-range positions. | ||
* @category Constants | ||
*/ | ||
export declare const FULL_RANGE_ONLY_TICK_SPACING_THRESHOLD = 32768; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.WHIRLPOOL_NFT_UPDATE_AUTH = exports.FEE_RATE_MUL_VALUE = exports.PROTOCOL_FEE_RATE_MUL_VALUE = exports.MAX_SWAP_TICK_ARRAYS = exports.MEMO_PROGRAM_ADDRESS = exports.METADATA_PROGRAM_ADDRESS = exports.POSITION_BUNDLE_SIZE = exports.TICK_ARRAY_SIZE = exports.MAX_SQRT_PRICE_BN = exports.MIN_SQRT_PRICE_BN = exports.MIN_SQRT_PRICE = exports.MAX_SQRT_PRICE = exports.MIN_TICK_INDEX = exports.MAX_TICK_INDEX = exports.NUM_REWARDS = exports.ORCA_SUPPORTED_TICK_SPACINGS = exports.ORCA_WHIRLPOOLS_CONFIG_EXTENSION = exports.ORCA_WHIRLPOOLS_CONFIG = exports.ORCA_WHIRLPOOL_PROGRAM_ID = void 0; | ||
exports.FULL_RANGE_ONLY_TICK_SPACING_THRESHOLD = exports.WHIRLPOOL_NFT_UPDATE_AUTH = exports.FEE_RATE_MUL_VALUE = exports.PROTOCOL_FEE_RATE_MUL_VALUE = exports.MAX_SWAP_TICK_ARRAYS = exports.MEMO_PROGRAM_ADDRESS = exports.METADATA_PROGRAM_ADDRESS = exports.POSITION_BUNDLE_SIZE = exports.TICK_ARRAY_SIZE = exports.MAX_SQRT_PRICE_BN = exports.MIN_SQRT_PRICE_BN = exports.MIN_SQRT_PRICE = exports.MAX_SQRT_PRICE = exports.MIN_TICK_INDEX = exports.MAX_TICK_INDEX = exports.NUM_REWARDS = exports.ORCA_SUPPORTED_TICK_SPACINGS = exports.ORCA_WHIRLPOOLS_CONFIG_EXTENSION = exports.ORCA_WHIRLPOOLS_CONFIG = exports.ORCA_WHIRLPOOL_PROGRAM_ID = void 0; | ||
const anchor_1 = require("@coral-xyz/anchor"); | ||
@@ -99,1 +99,6 @@ const web3_js_1 = require("@solana/web3.js"); | ||
exports.WHIRLPOOL_NFT_UPDATE_AUTH = new web3_js_1.PublicKey("3axbTs2z5GBy6usVbNVoqEgZMng3vZvMnAoX29BFfwhr"); | ||
/** | ||
* The tick spacing (inclusive) at which a whirlpool only supports full-range positions. | ||
* @category Constants | ||
*/ | ||
exports.FULL_RANGE_ONLY_TICK_SPACING_THRESHOLD = 32768; |
@@ -81,2 +81,8 @@ import { Address } from "@coral-xyz/anchor"; | ||
static isFullRange(tickSpacing: number, tickLowerIndex: number, tickUpperIndex: number): boolean; | ||
/** | ||
* Check if a whirlpool is a full-range only pool. | ||
* @param tickSpacing The tickSpacing for the Whirlpool | ||
* @returns true if the whirlpool is a full-range only pool, false otherwise. | ||
*/ | ||
static isFullRangeOnly(tickSpacing: number): boolean; | ||
} | ||
@@ -83,0 +89,0 @@ /** |
@@ -139,2 +139,10 @@ "use strict"; | ||
} | ||
/** | ||
* Check if a whirlpool is a full-range only pool. | ||
* @param tickSpacing The tickSpacing for the Whirlpool | ||
* @returns true if the whirlpool is a full-range only pool, false otherwise. | ||
*/ | ||
static isFullRangeOnly(tickSpacing) { | ||
return tickSpacing >= public_1.FULL_RANGE_ONLY_TICK_SPACING_THRESHOLD; | ||
} | ||
} | ||
@@ -141,0 +149,0 @@ exports.TickUtil = TickUtil; |
{ | ||
"name": "@orca-so/whirlpools-sdk", | ||
"version": "0.13.0", | ||
"version": "0.13.1", | ||
"description": "Typescript SDK to interact with Orca's Whirlpool program.", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1263832
26895