@orca-so/whirlpools-core 1.0.1 → 1.0.2
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/browser/orca_whirlpools_core_js_bindings.d.ts +3 -3
- package/dist/browser/orca_whirlpools_core_js_bindings_bg.js +6 -6
- package/dist/browser/orca_whirlpools_core_js_bindings_bg.wasm +0 -0
- package/dist/browser/orca_whirlpools_core_js_bindings_bg.wasm.d.ts +3 -3
- package/dist/nodejs/orca_whirlpools_core_js_bindings.d.ts +3 -3
- package/dist/nodejs/orca_whirlpools_core_js_bindings.js +6 -6
- package/dist/nodejs/orca_whirlpools_core_js_bindings_bg.wasm +0 -0
- package/dist/nodejs/orca_whirlpools_core_js_bindings_bg.wasm.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function
|
|
3
|
+
export function _FEE_RATE_DENOMINATOR(): number;
|
|
4
4
|
export function _TICK_ARRAY_SIZE(): number;
|
|
5
5
|
export function _FULL_RANGE_ONLY_TICK_SPACING_THRESHOLD(): number;
|
|
6
6
|
export function _MIN_TICK_INDEX(): number;
|
|
@@ -106,7 +106,7 @@ export function tickIndexToPrice(tick_index: number, decimals_a: number, decimal
|
|
|
106
106
|
* * `i32` - The tick index
|
|
107
107
|
*/
|
|
108
108
|
export function priceToTickIndex(price: number, decimals_a: number, decimals_b: number): number;
|
|
109
|
-
export function
|
|
109
|
+
export function _NUM_REWARDS(): number;
|
|
110
110
|
/**
|
|
111
111
|
* Get the first tick index in the tick array that contains the specified tick index.
|
|
112
112
|
*
|
|
@@ -266,7 +266,7 @@ export function isFullRangeOnly(tick_spacing: number): boolean;
|
|
|
266
266
|
* - A u32 integer representing the tick index in the tick array
|
|
267
267
|
*/
|
|
268
268
|
export function getTickIndexInArray(tick_index: number, tick_array_start_index: number, tick_spacing: number): number;
|
|
269
|
-
export function
|
|
269
|
+
export function _POSITION_BUNDLE_SIZE(): number;
|
|
270
270
|
export function _TICK_ARRAY_NOT_EVENLY_SPACED(): string;
|
|
271
271
|
export function _TICK_INDEX_OUT_OF_BOUNDS(): string;
|
|
272
272
|
export function _INVALID_TICK_INDEX(): string;
|
|
@@ -197,8 +197,8 @@ function getStringFromWasm0(ptr, len) {
|
|
|
197
197
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
export function
|
|
201
|
-
const ret = wasm.
|
|
200
|
+
export function _FEE_RATE_DENOMINATOR() {
|
|
201
|
+
const ret = wasm._FEE_RATE_DENOMINATOR();
|
|
202
202
|
return ret >>> 0;
|
|
203
203
|
}
|
|
204
204
|
|
|
@@ -367,8 +367,8 @@ export function priceToTickIndex(price, decimals_a, decimals_b) {
|
|
|
367
367
|
return ret;
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
-
export function
|
|
371
|
-
const ret = wasm.
|
|
370
|
+
export function _NUM_REWARDS() {
|
|
371
|
+
const ret = wasm._NUM_REWARDS();
|
|
372
372
|
return ret >>> 0;
|
|
373
373
|
}
|
|
374
374
|
|
|
@@ -598,8 +598,8 @@ export function getTickIndexInArray(tick_index, tick_array_start_index, tick_spa
|
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
|
|
601
|
-
export function
|
|
602
|
-
const ret = wasm.
|
|
601
|
+
export function _POSITION_BUNDLE_SIZE() {
|
|
602
|
+
const ret = wasm._POSITION_BUNDLE_SIZE();
|
|
603
603
|
return ret >>> 0;
|
|
604
604
|
}
|
|
605
605
|
|
|
Binary file
|
|
@@ -31,7 +31,7 @@ export const tryGetMaxAmountWithSlippageTolerance: (a: number, b: bigint, c: num
|
|
|
31
31
|
export const tryGetMinAmountWithSlippageTolerance: (a: number, b: bigint, c: number) => void;
|
|
32
32
|
export const tryApplySwapFee: (a: number, b: bigint, c: number) => void;
|
|
33
33
|
export const tryReverseApplySwapFee: (a: number, b: bigint, c: number) => void;
|
|
34
|
-
export const
|
|
34
|
+
export const _POSITION_BUNDLE_SIZE: () => number;
|
|
35
35
|
export const _TICK_ARRAY_NOT_EVENLY_SPACED: (a: number) => void;
|
|
36
36
|
export const _TICK_INDEX_OUT_OF_BOUNDS: (a: number) => void;
|
|
37
37
|
export const _INVALID_TICK_INDEX: (a: number) => void;
|
|
@@ -49,7 +49,7 @@ export const _TICK_INDEX_NOT_IN_ARRAY: (a: number) => void;
|
|
|
49
49
|
export const isPositionInRange: (a: number, b: number, c: number) => number;
|
|
50
50
|
export const positionStatus: (a: number, b: number, c: number) => number;
|
|
51
51
|
export const positionRatio: (a: number, b: number, c: number) => number;
|
|
52
|
-
export const
|
|
52
|
+
export const _FEE_RATE_DENOMINATOR: () => number;
|
|
53
53
|
export const _TICK_ARRAY_SIZE: () => number;
|
|
54
54
|
export const _FULL_RANGE_ONLY_TICK_SPACING_THRESHOLD: () => number;
|
|
55
55
|
export const _MIN_TICK_INDEX: () => number;
|
|
@@ -62,7 +62,7 @@ export const sqrtPriceToPrice: (a: number, b: number, c: number) => number;
|
|
|
62
62
|
export const invertPrice: (a: number, b: number, c: number) => number;
|
|
63
63
|
export const tickIndexToPrice: (a: number, b: number, c: number) => number;
|
|
64
64
|
export const priceToTickIndex: (a: number, b: number, c: number) => number;
|
|
65
|
-
export const
|
|
65
|
+
export const _NUM_REWARDS: () => number;
|
|
66
66
|
export const swapQuoteByInputToken: (a: number, b: bigint, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
67
67
|
export const swapQuoteByOutputToken: (a: number, b: bigint, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
68
68
|
export const collectFeesQuote: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function
|
|
3
|
+
export function _FEE_RATE_DENOMINATOR(): number;
|
|
4
4
|
export function _TICK_ARRAY_SIZE(): number;
|
|
5
5
|
export function _FULL_RANGE_ONLY_TICK_SPACING_THRESHOLD(): number;
|
|
6
6
|
export function _MIN_TICK_INDEX(): number;
|
|
@@ -106,7 +106,7 @@ export function tickIndexToPrice(tick_index: number, decimals_a: number, decimal
|
|
|
106
106
|
* * `i32` - The tick index
|
|
107
107
|
*/
|
|
108
108
|
export function priceToTickIndex(price: number, decimals_a: number, decimals_b: number): number;
|
|
109
|
-
export function
|
|
109
|
+
export function _NUM_REWARDS(): number;
|
|
110
110
|
/**
|
|
111
111
|
* Get the first tick index in the tick array that contains the specified tick index.
|
|
112
112
|
*
|
|
@@ -266,7 +266,7 @@ export function isFullRangeOnly(tick_spacing: number): boolean;
|
|
|
266
266
|
* - A u32 integer representing the tick index in the tick array
|
|
267
267
|
*/
|
|
268
268
|
export function getTickIndexInArray(tick_index: number, tick_array_start_index: number, tick_spacing: number): number;
|
|
269
|
-
export function
|
|
269
|
+
export function _POSITION_BUNDLE_SIZE(): number;
|
|
270
270
|
export function _TICK_ARRAY_NOT_EVENLY_SPACED(): string;
|
|
271
271
|
export function _TICK_INDEX_OUT_OF_BOUNDS(): string;
|
|
272
272
|
export function _INVALID_TICK_INDEX(): string;
|
|
@@ -193,8 +193,8 @@ function getStringFromWasm0(ptr, len) {
|
|
|
193
193
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
module.exports.
|
|
197
|
-
const ret = wasm.
|
|
196
|
+
module.exports._FEE_RATE_DENOMINATOR = function() {
|
|
197
|
+
const ret = wasm._FEE_RATE_DENOMINATOR();
|
|
198
198
|
return ret >>> 0;
|
|
199
199
|
};
|
|
200
200
|
|
|
@@ -363,8 +363,8 @@ module.exports.priceToTickIndex = function(price, decimals_a, decimals_b) {
|
|
|
363
363
|
return ret;
|
|
364
364
|
};
|
|
365
365
|
|
|
366
|
-
module.exports.
|
|
367
|
-
const ret = wasm.
|
|
366
|
+
module.exports._NUM_REWARDS = function() {
|
|
367
|
+
const ret = wasm._NUM_REWARDS();
|
|
368
368
|
return ret >>> 0;
|
|
369
369
|
};
|
|
370
370
|
|
|
@@ -594,8 +594,8 @@ module.exports.getTickIndexInArray = function(tick_index, tick_array_start_index
|
|
|
594
594
|
}
|
|
595
595
|
};
|
|
596
596
|
|
|
597
|
-
module.exports.
|
|
598
|
-
const ret = wasm.
|
|
597
|
+
module.exports._POSITION_BUNDLE_SIZE = function() {
|
|
598
|
+
const ret = wasm._POSITION_BUNDLE_SIZE();
|
|
599
599
|
return ret >>> 0;
|
|
600
600
|
};
|
|
601
601
|
|
|
Binary file
|
|
@@ -31,7 +31,7 @@ export const tryGetMaxAmountWithSlippageTolerance: (a: number, b: bigint, c: num
|
|
|
31
31
|
export const tryGetMinAmountWithSlippageTolerance: (a: number, b: bigint, c: number) => void;
|
|
32
32
|
export const tryApplySwapFee: (a: number, b: bigint, c: number) => void;
|
|
33
33
|
export const tryReverseApplySwapFee: (a: number, b: bigint, c: number) => void;
|
|
34
|
-
export const
|
|
34
|
+
export const _POSITION_BUNDLE_SIZE: () => number;
|
|
35
35
|
export const _TICK_ARRAY_NOT_EVENLY_SPACED: (a: number) => void;
|
|
36
36
|
export const _TICK_INDEX_OUT_OF_BOUNDS: (a: number) => void;
|
|
37
37
|
export const _INVALID_TICK_INDEX: (a: number) => void;
|
|
@@ -49,7 +49,7 @@ export const _TICK_INDEX_NOT_IN_ARRAY: (a: number) => void;
|
|
|
49
49
|
export const isPositionInRange: (a: number, b: number, c: number) => number;
|
|
50
50
|
export const positionStatus: (a: number, b: number, c: number) => number;
|
|
51
51
|
export const positionRatio: (a: number, b: number, c: number) => number;
|
|
52
|
-
export const
|
|
52
|
+
export const _FEE_RATE_DENOMINATOR: () => number;
|
|
53
53
|
export const _TICK_ARRAY_SIZE: () => number;
|
|
54
54
|
export const _FULL_RANGE_ONLY_TICK_SPACING_THRESHOLD: () => number;
|
|
55
55
|
export const _MIN_TICK_INDEX: () => number;
|
|
@@ -62,7 +62,7 @@ export const sqrtPriceToPrice: (a: number, b: number, c: number) => number;
|
|
|
62
62
|
export const invertPrice: (a: number, b: number, c: number) => number;
|
|
63
63
|
export const tickIndexToPrice: (a: number, b: number, c: number) => number;
|
|
64
64
|
export const priceToTickIndex: (a: number, b: number, c: number) => number;
|
|
65
|
-
export const
|
|
65
|
+
export const _NUM_REWARDS: () => number;
|
|
66
66
|
export const swapQuoteByInputToken: (a: number, b: bigint, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
67
67
|
export const swapQuoteByOutputToken: (a: number, b: bigint, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
68
68
|
export const collectFeesQuote: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orca-so/whirlpools-core",
|
|
3
3
|
"description": "Orca's core typescript package.",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"main": "./dist/nodejs/orca_whirlpools_core_js_bindings.js",
|
|
6
6
|
"types": "./dist/nodejs/orca_whirlpools_core_js_bindings.d.ts",
|
|
7
7
|
"browser": "./dist/browser/orca_whirlpools_core_js_bindings.js",
|