@crypticdot/defituna-core 3.4.2 → 3.4.4
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/defituna_core_js_bindings.d.ts +184 -180
- package/dist/browser/defituna_core_js_bindings_bg.js +797 -756
- package/dist/browser/defituna_core_js_bindings_bg.wasm +0 -0
- package/dist/browser/defituna_core_js_bindings_bg.wasm.d.ts +39 -38
- package/dist/nodejs/defituna_core_js_bindings.d.ts +184 -180
- package/dist/nodejs/defituna_core_js_bindings.js +797 -756
- package/dist/nodejs/defituna_core_js_bindings_bg.wasm +0 -0
- package/dist/nodejs/defituna_core_js_bindings_bg.wasm.d.ts +39 -38
- package/package.json +2 -2
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const getLpPositionLiquidationPrices: (a: number, b: number, c: number, d:
|
|
4
|
+
export const getLpPositionLiquidationPrices: (a: number, b: number, c: number, d: bigint, e: bigint, f: bigint, g: bigint, h: bigint, i: bigint, j: number) => void;
|
|
5
5
|
export const getIncreaseLpPositionQuote: (a: number, b: number) => void;
|
|
6
6
|
export const _INVALID_ARGUMENTS: (a: number) => void;
|
|
7
7
|
export const _JUPITER_QUOTE_REQUEST_ERROR: (a: number) => void;
|
|
@@ -10,7 +10,7 @@ export const _HUNDRED_PERCENT: () => number;
|
|
|
10
10
|
export const _COMPUTED_AMOUNT: () => bigint;
|
|
11
11
|
export const getIncreaseSpotPositionQuote: (a: bigint, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
|
|
12
12
|
export const getDecreaseSpotPositionQuote: (a: bigint, b: number, c: number, d: number, e: number, f: bigint, g: bigint, h: number, i: number, j: number, k: number) => number;
|
|
13
|
-
export const getSpotPositionLiquidationPrice: (a: number, b: number, c:
|
|
13
|
+
export const getSpotPositionLiquidationPrice: (a: number, b: number, c: bigint, d: bigint, e: number) => void;
|
|
14
14
|
export const getTradableAmount: (a: number, b: number, c: bigint, d: number, e: number, f: bigint, g: number, h: number, i: number, j: number) => void;
|
|
15
15
|
export const calculateTunaSpotPositionProtocolFee: (a: number, b: number, c: bigint, d: bigint, e: number, f: number) => number;
|
|
16
16
|
export const calculateTunaProtocolFee: (a: bigint, b: bigint, c: number, d: number) => bigint;
|
|
@@ -62,21 +62,22 @@ export const hash_constructor: (a: number, b: number) => void;
|
|
|
62
62
|
export const hash_toString: (a: number, b: number) => void;
|
|
63
63
|
export const hash_equals: (a: number, b: number) => number;
|
|
64
64
|
export const hash_toBytes: (a: number, b: number) => void;
|
|
65
|
-
export const decreaseLiquidityQuote: (a: number, b:
|
|
66
|
-
export const decreaseLiquidityQuoteA: (a: number, b: bigint, c: number, d:
|
|
67
|
-
export const decreaseLiquidityQuoteB: (a: number, b: bigint, c: number, d:
|
|
68
|
-
export const increaseLiquidityQuote: (a: number, b:
|
|
69
|
-
export const increaseLiquidityQuoteA: (a: number, b: bigint, c: number, d:
|
|
70
|
-
export const increaseLiquidityQuoteB: (a: number, b: bigint, c: number, d:
|
|
65
|
+
export const decreaseLiquidityQuote: (a: number, b: bigint, c: bigint, d: number, e: bigint, f: bigint, g: number, h: number, i: number, j: number) => void;
|
|
66
|
+
export const decreaseLiquidityQuoteA: (a: number, b: bigint, c: number, d: bigint, e: bigint, f: number, g: number, h: number, i: number) => void;
|
|
67
|
+
export const decreaseLiquidityQuoteB: (a: number, b: bigint, c: number, d: bigint, e: bigint, f: number, g: number, h: number, i: number) => void;
|
|
68
|
+
export const increaseLiquidityQuote: (a: number, b: bigint, c: bigint, d: number, e: bigint, f: bigint, g: number, h: number, i: number, j: number) => void;
|
|
69
|
+
export const increaseLiquidityQuoteA: (a: number, b: bigint, c: number, d: bigint, e: bigint, f: number, g: number, h: number, i: number) => void;
|
|
70
|
+
export const increaseLiquidityQuoteB: (a: number, b: bigint, c: number, d: bigint, e: bigint, f: number, g: number, h: number, i: number) => void;
|
|
71
71
|
export const tryGetLiquidityFromA: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint) => void;
|
|
72
72
|
export const tryGetTokenAFromLiquidity: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: number) => void;
|
|
73
73
|
export const tryGetLiquidityFromB: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint) => void;
|
|
74
74
|
export const tryGetTokenBFromLiquidity: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: number) => void;
|
|
75
|
-
export const
|
|
76
|
-
export const
|
|
77
|
-
export const
|
|
78
|
-
export const
|
|
79
|
-
export const
|
|
75
|
+
export const tryGetAmountsFromLiquidity: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: number, g: number, h: number) => void;
|
|
76
|
+
export const tryGetLiquidityFromAmounts: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: bigint, i: bigint) => void;
|
|
77
|
+
export const tryGetAmountDeltaA: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: number) => void;
|
|
78
|
+
export const tryGetAmountDeltaB: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: number) => void;
|
|
79
|
+
export const tryGetNextSqrtPriceFromA: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: number) => void;
|
|
80
|
+
export const tryGetNextSqrtPriceFromB: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: number) => void;
|
|
80
81
|
export const tryApplyTransferFee: (a: number, b: bigint, c: number) => void;
|
|
81
82
|
export const tryReverseApplyTransferFee: (a: number, b: bigint, c: number) => void;
|
|
82
83
|
export const tryGetMaxAmountWithSlippageTolerance: (a: number, b: bigint, c: number) => void;
|
|
@@ -85,11 +86,6 @@ export const tryApplySwapFee: (a: number, b: bigint, c: number) => void;
|
|
|
85
86
|
export const tryReverseApplySwapFee: (a: number, b: bigint, c: number) => void;
|
|
86
87
|
export const swapQuoteByInputToken: (a: number, b: bigint, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
87
88
|
export const swapQuoteByOutputToken: (a: number, b: bigint, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
88
|
-
export const limitOrderQuoteByInputToken: (a: number, b: bigint, c: number, d: number, e: number) => void;
|
|
89
|
-
export const limitOrderQuoteByOutputToken: (a: number, b: bigint, c: number, d: number, e: number) => void;
|
|
90
|
-
export const limitOrderRewardByOutputToken: (a: number, b: bigint, c: number, d: number) => void;
|
|
91
|
-
export const decreaseLimitOrderQuote: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: number) => void;
|
|
92
|
-
export const _POSITION_BUNDLE_SIZE: () => number;
|
|
93
89
|
export const _TICK_ARRAY_NOT_EVENLY_SPACED: (a: number) => void;
|
|
94
90
|
export const _TICK_INDEX_OUT_OF_BOUNDS: (a: number) => void;
|
|
95
91
|
export const _INVALID_TICK_INDEX: (a: number) => void;
|
|
@@ -107,19 +103,7 @@ export const _INVALID_SLIPPAGE_TOLERANCE: (a: number) => void;
|
|
|
107
103
|
export const _TICK_INDEX_NOT_IN_ARRAY: (a: number) => void;
|
|
108
104
|
export const _INVALID_TICK_ARRAY_SEQUENCE: (a: number) => void;
|
|
109
105
|
export const _LIMIT_ORDER_AND_POOL_ARE_OUT_OF_SYNC: (a: number) => void;
|
|
110
|
-
export const
|
|
111
|
-
export const isPositionBundleFull: (a: number, b: number) => number;
|
|
112
|
-
export const isPositionBundleEmpty: (a: number, b: number) => number;
|
|
113
|
-
export const isPositionInRange: (a: number, b: number, c: number) => number;
|
|
114
|
-
export const positionStatus: (a: number, b: number, c: number) => number;
|
|
115
|
-
export const positionRatioX64: (a: number, b: number, c: number) => number;
|
|
116
|
-
export const priceToSqrtPrice: (a: number, b: number, c: number) => number;
|
|
117
|
-
export const sqrtPriceToPrice: (a: number, b: number, c: number) => number;
|
|
118
|
-
export const invertPrice: (a: number, b: number, c: number) => number;
|
|
119
|
-
export const tickIndexToPrice: (a: number, b: number, c: number) => number;
|
|
120
|
-
export const priceToTickIndex: (a: number, b: number, c: number) => number;
|
|
121
|
-
export const collectFeesQuote: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
122
|
-
export const limitOrderFee: (a: number) => number;
|
|
106
|
+
export const _POSITION_BUNDLE_SIZE: () => number;
|
|
123
107
|
export const _FEE_RATE_MUL_VALUE: () => number;
|
|
124
108
|
export const _MAX_PROTOCOL_FEE_RATE: () => number;
|
|
125
109
|
export const _PROTOCOL_FEE_RATE_MUL_VALUE: () => number;
|
|
@@ -128,23 +112,40 @@ export const _FULL_RANGE_ONLY_TICK_SPACING_THRESHOLD: () => number;
|
|
|
128
112
|
export const _MIN_TICK_INDEX: () => number;
|
|
129
113
|
export const _MAX_TICK_INDEX: () => number;
|
|
130
114
|
export const getTickArrayStartTickIndex: (a: number, b: number) => number;
|
|
131
|
-
export const tickIndexToSqrtPrice: (a: number) =>
|
|
132
|
-
export const sqrtPriceToTickIndex: (a:
|
|
115
|
+
export const tickIndexToSqrtPrice: (a: number, b: number) => void;
|
|
116
|
+
export const sqrtPriceToTickIndex: (a: bigint, b: bigint) => number;
|
|
133
117
|
export const getInitializableTickIndex: (a: number, b: number, c: number) => number;
|
|
134
118
|
export const getPrevInitializableTickIndex: (a: number, b: number) => number;
|
|
135
119
|
export const getNextInitializableTickIndex: (a: number, b: number) => number;
|
|
136
120
|
export const isTickIndexInBounds: (a: number) => number;
|
|
137
121
|
export const isTickInitializable: (a: number, b: number) => number;
|
|
138
122
|
export const invertTickIndex: (a: number) => number;
|
|
139
|
-
export const invertSqrtPrice: (a: number) =>
|
|
123
|
+
export const invertSqrtPrice: (a: number, b: bigint, c: bigint) => void;
|
|
140
124
|
export const getFullRangeTickIndexes: (a: number) => number;
|
|
141
125
|
export const orderTickIndexes: (a: number, b: number) => number;
|
|
142
126
|
export const isFullRangeOnly: (a: number) => number;
|
|
143
127
|
export const getTickIndexInArray: (a: number, b: number, c: number, d: number) => void;
|
|
144
|
-
export const
|
|
145
|
-
export const
|
|
146
|
-
export const
|
|
147
|
-
export const
|
|
128
|
+
export const collectFeesQuote: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
129
|
+
export const limitOrderFee: (a: number) => number;
|
|
130
|
+
export const firstUnoccupiedPositionInBundle: (a: number, b: number) => number;
|
|
131
|
+
export const isPositionBundleFull: (a: number, b: number) => number;
|
|
132
|
+
export const isPositionBundleEmpty: (a: number, b: number) => number;
|
|
133
|
+
export const isPositionInRange: (a: bigint, b: bigint, c: number, d: number) => number;
|
|
134
|
+
export const positionStatus: (a: bigint, b: bigint, c: number, d: number) => number;
|
|
135
|
+
export const positionRatioX64: (a: bigint, b: bigint, c: number, d: number) => number;
|
|
136
|
+
export const priceToSqrtPrice: (a: number, b: number, c: number, d: number) => void;
|
|
137
|
+
export const sqrtPriceToPrice: (a: bigint, b: bigint, c: number, d: number) => number;
|
|
138
|
+
export const invertPrice: (a: number, b: number, c: number) => number;
|
|
139
|
+
export const tickIndexToPrice: (a: number, b: number, c: number) => number;
|
|
140
|
+
export const priceToTickIndex: (a: number, b: number, c: number) => number;
|
|
141
|
+
export const limitOrderQuoteByInputToken: (a: number, b: bigint, c: number, d: number, e: number) => void;
|
|
142
|
+
export const limitOrderQuoteByOutputToken: (a: number, b: bigint, c: number, d: number, e: number) => void;
|
|
143
|
+
export const limitOrderRewardByOutputToken: (a: number, b: bigint, c: number, d: number) => void;
|
|
144
|
+
export const decreaseLimitOrderQuote: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: number) => void;
|
|
145
|
+
export const __wasm_bindgen_func_elem_2634: (a: number, b: number, c: number) => void;
|
|
146
|
+
export const __wasm_bindgen_func_elem_2653: (a: number, b: number) => void;
|
|
147
|
+
export const __wasm_bindgen_func_elem_3207: (a: number, b: number) => void;
|
|
148
|
+
export const __wasm_bindgen_func_elem_3203: (a: number, b: number) => void;
|
|
148
149
|
export const __wasm_bindgen_func_elem_495: (a: number, b: number, c: number, d: number) => void;
|
|
149
150
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
150
151
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crypticdot/defituna-core",
|
|
3
3
|
"description": "DefiTuna core typescript package.",
|
|
4
|
-
"version": "3.4.
|
|
4
|
+
"version": "3.4.4",
|
|
5
5
|
"main": "./dist/nodejs/defituna_core_js_bindings.js",
|
|
6
6
|
"types": "./dist/nodejs/defituna_core_js_bindings.d.ts",
|
|
7
7
|
"browser": "./dist/browser/defituna_core_js_bindings.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@crypticdot/typescript-config": "^1.0.0",
|
|
24
24
|
"typescript": "^5.8.3",
|
|
25
25
|
"wasm-pack": "^0.13.1",
|
|
26
|
-
"@crypticdot/defituna-rust-core": "3.4.
|
|
26
|
+
"@crypticdot/defituna-rust-core": "3.4.4"
|
|
27
27
|
},
|
|
28
28
|
"license": "SEE LICENSE IN LICENSE",
|
|
29
29
|
"keywords": [
|