@crypticdot/defituna-core 3.4.1 → 3.4.3
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 +243 -203
- package/dist/browser/defituna_core_js_bindings_bg.js +764 -692
- package/dist/browser/defituna_core_js_bindings_bg.wasm +0 -0
- package/dist/browser/defituna_core_js_bindings_bg.wasm.d.ts +42 -37
- package/dist/nodejs/defituna_core_js_bindings.d.ts +243 -203
- package/dist/nodejs/defituna_core_js_bindings.js +764 -692
- package/dist/nodejs/defituna_core_js_bindings_bg.wasm +0 -0
- package/dist/nodejs/defituna_core_js_bindings_bg.wasm.d.ts +42 -37
- package/package.json +2 -2
|
Binary file
|
|
@@ -1,15 +1,19 @@
|
|
|
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: bigint, e: bigint, f: bigint, g: bigint, h: bigint, i: bigint, j: number) => void;
|
|
5
|
+
export const getIncreaseLpPositionQuote: (a: number, b: number) => void;
|
|
4
6
|
export const _INVALID_ARGUMENTS: (a: number) => void;
|
|
5
7
|
export const _JUPITER_QUOTE_REQUEST_ERROR: (a: number) => void;
|
|
6
8
|
export const _JUPITER_SWAP_INSTRUCTIONS_REQUEST_ERROR: (a: number) => void;
|
|
9
|
+
export const _HUNDRED_PERCENT: () => number;
|
|
10
|
+
export const _COMPUTED_AMOUNT: () => bigint;
|
|
7
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;
|
|
8
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;
|
|
9
13
|
export const getSpotPositionLiquidationPrice: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
10
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;
|
|
11
15
|
export const calculateTunaSpotPositionProtocolFee: (a: number, b: number, c: bigint, d: bigint, e: number, f: number) => number;
|
|
12
|
-
export const
|
|
16
|
+
export const calculateTunaProtocolFee: (a: bigint, b: bigint, c: number, d: number) => bigint;
|
|
13
17
|
export const __wbg_transaction_free: (a: number, b: number) => void;
|
|
14
18
|
export const transaction_constructor: (a: number, b: number) => number;
|
|
15
19
|
export const transaction_message: (a: number) => number;
|
|
@@ -58,21 +62,22 @@ export const hash_constructor: (a: number, b: number) => void;
|
|
|
58
62
|
export const hash_toString: (a: number, b: number) => void;
|
|
59
63
|
export const hash_equals: (a: number, b: number) => number;
|
|
60
64
|
export const hash_toBytes: (a: number, b: number) => void;
|
|
61
|
-
export const decreaseLiquidityQuote: (a: number, b:
|
|
62
|
-
export const decreaseLiquidityQuoteA: (a: number, b: bigint, c: number, d:
|
|
63
|
-
export const decreaseLiquidityQuoteB: (a: number, b: bigint, c: number, d:
|
|
64
|
-
export const increaseLiquidityQuote: (a: number, b:
|
|
65
|
-
export const increaseLiquidityQuoteA: (a: number, b: bigint, c: number, d:
|
|
66
|
-
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;
|
|
67
71
|
export const tryGetLiquidityFromA: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint) => void;
|
|
68
72
|
export const tryGetTokenAFromLiquidity: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: number) => void;
|
|
69
73
|
export const tryGetLiquidityFromB: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint) => void;
|
|
70
74
|
export const tryGetTokenBFromLiquidity: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: number) => void;
|
|
71
|
-
export const
|
|
72
|
-
export const
|
|
73
|
-
export const
|
|
74
|
-
export const
|
|
75
|
-
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;
|
|
76
81
|
export const tryApplyTransferFee: (a: number, b: bigint, c: number) => void;
|
|
77
82
|
export const tryReverseApplyTransferFee: (a: number, b: bigint, c: number) => void;
|
|
78
83
|
export const tryGetMaxAmountWithSlippageTolerance: (a: number, b: bigint, c: number) => void;
|
|
@@ -81,11 +86,6 @@ export const tryApplySwapFee: (a: number, b: bigint, c: number) => void;
|
|
|
81
86
|
export const tryReverseApplySwapFee: (a: number, b: bigint, c: number) => void;
|
|
82
87
|
export const swapQuoteByInputToken: (a: number, b: bigint, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
83
88
|
export const swapQuoteByOutputToken: (a: number, b: bigint, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
84
|
-
export const limitOrderQuoteByInputToken: (a: number, b: bigint, c: number, d: number, e: number) => void;
|
|
85
|
-
export const limitOrderQuoteByOutputToken: (a: number, b: bigint, c: number, d: number, e: number) => void;
|
|
86
|
-
export const limitOrderRewardByOutputToken: (a: number, b: bigint, c: number, d: number) => void;
|
|
87
|
-
export const decreaseLimitOrderQuote: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: number) => void;
|
|
88
|
-
export const _POSITION_BUNDLE_SIZE: () => number;
|
|
89
89
|
export const _TICK_ARRAY_NOT_EVENLY_SPACED: (a: number) => void;
|
|
90
90
|
export const _TICK_INDEX_OUT_OF_BOUNDS: (a: number) => void;
|
|
91
91
|
export const _INVALID_TICK_INDEX: (a: number) => void;
|
|
@@ -103,19 +103,7 @@ export const _INVALID_SLIPPAGE_TOLERANCE: (a: number) => void;
|
|
|
103
103
|
export const _TICK_INDEX_NOT_IN_ARRAY: (a: number) => void;
|
|
104
104
|
export const _INVALID_TICK_ARRAY_SEQUENCE: (a: number) => void;
|
|
105
105
|
export const _LIMIT_ORDER_AND_POOL_ARE_OUT_OF_SYNC: (a: number) => void;
|
|
106
|
-
export const
|
|
107
|
-
export const isPositionBundleFull: (a: number, b: number) => number;
|
|
108
|
-
export const isPositionBundleEmpty: (a: number, b: number) => number;
|
|
109
|
-
export const isPositionInRange: (a: number, b: number, c: number) => number;
|
|
110
|
-
export const positionStatus: (a: number, b: number, c: number) => number;
|
|
111
|
-
export const positionRatioX64: (a: number, b: number, c: number) => number;
|
|
112
|
-
export const priceToSqrtPrice: (a: number, b: number, c: number) => number;
|
|
113
|
-
export const sqrtPriceToPrice: (a: number, b: number, c: number) => number;
|
|
114
|
-
export const invertPrice: (a: number, b: number, c: number) => number;
|
|
115
|
-
export const tickIndexToPrice: (a: number, b: number, c: number) => number;
|
|
116
|
-
export const priceToTickIndex: (a: number, b: number, c: number) => number;
|
|
117
|
-
export const collectFeesQuote: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
118
|
-
export const limitOrderFee: (a: number) => number;
|
|
106
|
+
export const _POSITION_BUNDLE_SIZE: () => number;
|
|
119
107
|
export const _FEE_RATE_MUL_VALUE: () => number;
|
|
120
108
|
export const _MAX_PROTOCOL_FEE_RATE: () => number;
|
|
121
109
|
export const _PROTOCOL_FEE_RATE_MUL_VALUE: () => number;
|
|
@@ -124,23 +112,40 @@ export const _FULL_RANGE_ONLY_TICK_SPACING_THRESHOLD: () => number;
|
|
|
124
112
|
export const _MIN_TICK_INDEX: () => number;
|
|
125
113
|
export const _MAX_TICK_INDEX: () => number;
|
|
126
114
|
export const getTickArrayStartTickIndex: (a: number, b: number) => number;
|
|
127
|
-
export const tickIndexToSqrtPrice: (a: number) =>
|
|
128
|
-
export const sqrtPriceToTickIndex: (a:
|
|
115
|
+
export const tickIndexToSqrtPrice: (a: number, b: number) => void;
|
|
116
|
+
export const sqrtPriceToTickIndex: (a: bigint, b: bigint) => number;
|
|
129
117
|
export const getInitializableTickIndex: (a: number, b: number, c: number) => number;
|
|
130
118
|
export const getPrevInitializableTickIndex: (a: number, b: number) => number;
|
|
131
119
|
export const getNextInitializableTickIndex: (a: number, b: number) => number;
|
|
132
120
|
export const isTickIndexInBounds: (a: number) => number;
|
|
133
121
|
export const isTickInitializable: (a: number, b: number) => number;
|
|
134
122
|
export const invertTickIndex: (a: number) => number;
|
|
135
|
-
export const invertSqrtPrice: (a: number) =>
|
|
123
|
+
export const invertSqrtPrice: (a: number, b: bigint, c: bigint) => void;
|
|
136
124
|
export const getFullRangeTickIndexes: (a: number) => number;
|
|
137
125
|
export const orderTickIndexes: (a: number, b: number) => number;
|
|
138
126
|
export const isFullRangeOnly: (a: number) => number;
|
|
139
127
|
export const getTickIndexInArray: (a: number, b: number, c: number, d: number) => void;
|
|
140
|
-
export const
|
|
141
|
-
export const
|
|
142
|
-
export const
|
|
143
|
-
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;
|
|
144
149
|
export const __wasm_bindgen_func_elem_495: (a: number, b: number, c: number, d: number) => void;
|
|
145
150
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
146
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.3",
|
|
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.3"
|
|
27
27
|
},
|
|
28
28
|
"license": "SEE LICENSE IN LICENSE",
|
|
29
29
|
"keywords": [
|