@crypticdot/defituna-core 3.4.5 → 3.4.7
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 +203 -202
- package/dist/browser/defituna_core_js_bindings_bg.js +268 -256
- package/dist/browser/defituna_core_js_bindings_bg.wasm +0 -0
- package/dist/browser/defituna_core_js_bindings_bg.wasm.d.ts +30 -29
- package/dist/nodejs/defituna_core_js_bindings.d.ts +203 -202
- package/dist/nodejs/defituna_core_js_bindings.js +268 -256
- package/dist/nodejs/defituna_core_js_bindings_bg.wasm +0 -0
- package/dist/nodejs/defituna_core_js_bindings_bg.wasm.d.ts +30 -29
- package/package.json +2 -2
|
@@ -66,18 +66,6 @@ export const hash_constructor: (a: number, b: number) => void;
|
|
|
66
66
|
export const hash_toString: (a: number, b: number) => void;
|
|
67
67
|
export const hash_equals: (a: number, b: number) => number;
|
|
68
68
|
export const hash_toBytes: (a: number, b: number) => void;
|
|
69
|
-
export const decreaseLiquidityQuote: (a: number, b: bigint, c: bigint, d: number, e: bigint, f: bigint, g: number, h: number, i: number, j: number) => void;
|
|
70
|
-
export const decreaseLiquidityQuoteA: (a: number, b: bigint, c: number, d: bigint, e: bigint, f: number, g: number, h: number, i: number) => void;
|
|
71
|
-
export const decreaseLiquidityQuoteB: (a: number, b: bigint, c: number, d: bigint, e: bigint, f: number, g: number, h: number, i: number) => void;
|
|
72
|
-
export const increaseLiquidityQuote: (a: number, b: bigint, c: bigint, d: number, e: bigint, f: bigint, g: number, h: number, i: number, j: number) => void;
|
|
73
|
-
export const increaseLiquidityQuoteA: (a: number, b: bigint, c: number, d: bigint, e: bigint, f: number, g: number, h: number, i: number) => void;
|
|
74
|
-
export const increaseLiquidityQuoteB: (a: number, b: bigint, c: number, d: bigint, e: bigint, f: number, g: number, h: number, i: number) => void;
|
|
75
|
-
export const tryGetLiquidityFromA: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint) => void;
|
|
76
|
-
export const tryGetTokenAFromLiquidity: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: number) => void;
|
|
77
|
-
export const tryGetLiquidityFromB: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint) => void;
|
|
78
|
-
export const tryGetTokenBFromLiquidity: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: number) => void;
|
|
79
|
-
export const tryGetAmountsFromLiquidity: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: number, g: number, h: number) => void;
|
|
80
|
-
export const tryGetLiquidityFromAmounts: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: bigint, i: bigint) => void;
|
|
81
69
|
export const tryGetAmountDeltaA: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: number) => void;
|
|
82
70
|
export const tryGetAmountDeltaB: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: number) => void;
|
|
83
71
|
export const tryGetNextSqrtPriceFromA: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: number) => void;
|
|
@@ -90,6 +78,23 @@ export const tryApplySwapFee: (a: number, b: bigint, c: number) => void;
|
|
|
90
78
|
export const tryReverseApplySwapFee: (a: number, b: bigint, c: number) => void;
|
|
91
79
|
export const swapQuoteByInputToken: (a: number, b: bigint, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
92
80
|
export const swapQuoteByOutputToken: (a: number, b: bigint, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
81
|
+
export const getLiquidityFromAmountA: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint) => void;
|
|
82
|
+
export const getLiquidityFromAmountB: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint) => void;
|
|
83
|
+
export const getAmountAFromLiquidity: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: number) => void;
|
|
84
|
+
export const getAmountBFromLiquidity: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: number) => void;
|
|
85
|
+
export const getAmountsFromLiquidity: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: bigint, i: bigint, j: number) => void;
|
|
86
|
+
export const getLiquidityFromAmounts: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: bigint, i: bigint) => void;
|
|
87
|
+
export const firstUnoccupiedPositionInBundle: (a: number, b: number) => number;
|
|
88
|
+
export const isPositionBundleFull: (a: number, b: number) => number;
|
|
89
|
+
export const isPositionBundleEmpty: (a: number, b: number) => number;
|
|
90
|
+
export const isPositionInRange: (a: bigint, b: bigint, c: number, d: number) => number;
|
|
91
|
+
export const positionStatus: (a: bigint, b: bigint, c: number, d: number) => number;
|
|
92
|
+
export const positionRatioX64: (a: bigint, b: bigint, c: number, d: number) => number;
|
|
93
|
+
export const priceToSqrtPrice: (a: number, b: number, c: number, d: number) => void;
|
|
94
|
+
export const sqrtPriceToPrice: (a: bigint, b: bigint, c: number, d: number) => number;
|
|
95
|
+
export const invertPrice: (a: number, b: number, c: number) => number;
|
|
96
|
+
export const tickIndexToPrice: (a: number, b: number, c: number) => number;
|
|
97
|
+
export const priceToTickIndex: (a: number, b: number, c: number) => number;
|
|
93
98
|
export const _TICK_ARRAY_NOT_EVENLY_SPACED: (a: number) => void;
|
|
94
99
|
export const _TICK_INDEX_OUT_OF_BOUNDS: (a: number) => void;
|
|
95
100
|
export const _INVALID_TICK_INDEX: (a: number) => void;
|
|
@@ -100,6 +105,7 @@ export const _SQRT_PRICE_OUT_OF_BOUNDS: (a: number) => void;
|
|
|
100
105
|
export const _TICK_SEQUENCE_EMPTY: (a: number) => void;
|
|
101
106
|
export const _SQRT_PRICE_LIMIT_OUT_OF_BOUNDS: (a: number) => void;
|
|
102
107
|
export const _INVALID_SQRT_PRICE_LIMIT_DIRECTION: (a: number) => void;
|
|
108
|
+
export const _INVALID_RANGE_BOUNDS: (a: number) => void;
|
|
103
109
|
export const _ZERO_TRADABLE_AMOUNT: (a: number) => void;
|
|
104
110
|
export const _INVALID_TIMESTAMP: (a: number) => void;
|
|
105
111
|
export const _INVALID_TRANSFER_FEE: (a: number) => void;
|
|
@@ -107,6 +113,12 @@ export const _INVALID_SLIPPAGE_TOLERANCE: (a: number) => void;
|
|
|
107
113
|
export const _TICK_INDEX_NOT_IN_ARRAY: (a: number) => void;
|
|
108
114
|
export const _INVALID_TICK_ARRAY_SEQUENCE: (a: number) => void;
|
|
109
115
|
export const _LIMIT_ORDER_AND_POOL_ARE_OUT_OF_SYNC: (a: number) => void;
|
|
116
|
+
export const decreaseLiquidityQuote: (a: number, b: bigint, c: bigint, d: number, e: bigint, f: bigint, g: number, h: number, i: number, j: number) => void;
|
|
117
|
+
export const decreaseLiquidityQuoteA: (a: number, b: bigint, c: number, d: bigint, e: bigint, f: number, g: number, h: number, i: number) => void;
|
|
118
|
+
export const decreaseLiquidityQuoteB: (a: number, b: bigint, c: number, d: bigint, e: bigint, f: number, g: number, h: number, i: number) => void;
|
|
119
|
+
export const increaseLiquidityQuote: (a: number, b: bigint, c: bigint, d: number, e: bigint, f: bigint, g: number, h: number, i: number, j: number) => void;
|
|
120
|
+
export const increaseLiquidityQuoteA: (a: number, b: bigint, c: number, d: bigint, e: bigint, f: number, g: number, h: number, i: number) => void;
|
|
121
|
+
export const increaseLiquidityQuoteB: (a: number, b: bigint, c: number, d: bigint, e: bigint, f: number, g: number, h: number, i: number) => void;
|
|
110
122
|
export const _POSITION_BUNDLE_SIZE: () => number;
|
|
111
123
|
export const _FEE_RATE_MUL_VALUE: () => number;
|
|
112
124
|
export const _MAX_PROTOCOL_FEE_RATE: () => number;
|
|
@@ -129,27 +141,16 @@ export const getFullRangeTickIndexes: (a: number) => number;
|
|
|
129
141
|
export const orderTickIndexes: (a: number, b: number) => number;
|
|
130
142
|
export const isFullRangeOnly: (a: number) => number;
|
|
131
143
|
export const getTickIndexInArray: (a: number, b: number, c: number, d: number) => void;
|
|
132
|
-
export const collectFeesQuote: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
133
|
-
export const limitOrderFee: (a: number) => number;
|
|
134
|
-
export const firstUnoccupiedPositionInBundle: (a: number, b: number) => number;
|
|
135
|
-
export const isPositionBundleFull: (a: number, b: number) => number;
|
|
136
|
-
export const isPositionBundleEmpty: (a: number, b: number) => number;
|
|
137
|
-
export const isPositionInRange: (a: bigint, b: bigint, c: number, d: number) => number;
|
|
138
|
-
export const positionStatus: (a: bigint, b: bigint, c: number, d: number) => number;
|
|
139
|
-
export const positionRatioX64: (a: bigint, b: bigint, c: number, d: number) => number;
|
|
140
|
-
export const priceToSqrtPrice: (a: number, b: number, c: number, d: number) => void;
|
|
141
|
-
export const sqrtPriceToPrice: (a: bigint, b: bigint, c: number, d: number) => number;
|
|
142
|
-
export const invertPrice: (a: number, b: number, c: number) => number;
|
|
143
|
-
export const tickIndexToPrice: (a: number, b: number, c: number) => number;
|
|
144
|
-
export const priceToTickIndex: (a: number, b: number, c: number) => number;
|
|
145
144
|
export const limitOrderQuoteByInputToken: (a: number, b: bigint, c: number, d: number, e: number) => void;
|
|
146
145
|
export const limitOrderQuoteByOutputToken: (a: number, b: bigint, c: number, d: number, e: number) => void;
|
|
147
146
|
export const limitOrderRewardByOutputToken: (a: number, b: bigint, c: number, d: number) => void;
|
|
148
147
|
export const decreaseLimitOrderQuote: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: number) => void;
|
|
149
|
-
export const
|
|
150
|
-
export const
|
|
151
|
-
export const
|
|
152
|
-
export const
|
|
148
|
+
export const collectFeesQuote: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
149
|
+
export const limitOrderFee: (a: number) => number;
|
|
150
|
+
export const __wasm_bindgen_func_elem_3153: (a: number, b: number) => void;
|
|
151
|
+
export const __wasm_bindgen_func_elem_3149: (a: number, b: number) => void;
|
|
152
|
+
export const __wasm_bindgen_func_elem_3259: (a: number, b: number, c: number) => void;
|
|
153
|
+
export const __wasm_bindgen_func_elem_3232: (a: number, b: number) => void;
|
|
153
154
|
export const __wasm_bindgen_func_elem_494: (a: number, b: number, c: number, d: number) => void;
|
|
154
155
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
155
156
|
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.7",
|
|
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.7"
|
|
27
27
|
},
|
|
28
28
|
"license": "SEE LICENSE IN LICENSE",
|
|
29
29
|
"keywords": [
|