@crypticdot/defituna-core 3.4.4 → 3.4.6

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.
@@ -3,9 +3,8 @@
3
3
  export const memory: WebAssembly.Memory;
4
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
- export const _INVALID_ARGUMENTS: (a: number) => void;
7
- export const _JUPITER_QUOTE_REQUEST_ERROR: (a: number) => void;
8
- export const _JUPITER_SWAP_INSTRUCTIONS_REQUEST_ERROR: (a: number) => void;
6
+ export const getRepayLpPositionDebtQuote: (a: number, b: number) => void;
7
+ export const computeLeverage: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint) => void;
9
8
  export const _HUNDRED_PERCENT: () => number;
10
9
  export const _COMPUTED_AMOUNT: () => bigint;
11
10
  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;
@@ -13,7 +12,12 @@ export const getDecreaseSpotPositionQuote: (a: bigint, b: number, c: number, d:
13
12
  export const getSpotPositionLiquidationPrice: (a: number, b: number, c: bigint, d: bigint, e: number) => void;
14
13
  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
14
  export const calculateTunaSpotPositionProtocolFee: (a: number, b: number, c: bigint, d: bigint, e: number, f: number) => number;
15
+ export const applyTunaProtocolFee: (a: number, b: bigint, c: number, d: number) => void;
16
+ export const reverseApplyTunaProtocolFee: (a: number, b: bigint, c: number, d: number) => void;
16
17
  export const calculateTunaProtocolFee: (a: bigint, b: bigint, c: number, d: number) => bigint;
18
+ export const _INVALID_ARGUMENTS: (a: number) => void;
19
+ export const _JUPITER_QUOTE_REQUEST_ERROR: (a: number) => void;
20
+ export const _JUPITER_SWAP_INSTRUCTIONS_REQUEST_ERROR: (a: number) => void;
17
21
  export const __wbg_transaction_free: (a: number, b: number) => void;
18
22
  export const transaction_constructor: (a: number, b: number) => number;
19
23
  export const transaction_message: (a: number) => number;
@@ -62,18 +66,6 @@ export const hash_constructor: (a: number, b: number) => void;
62
66
  export const hash_toString: (a: number, b: number) => void;
63
67
  export const hash_equals: (a: number, b: number) => number;
64
68
  export const hash_toBytes: (a: number, b: number) => void;
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
- export const tryGetLiquidityFromA: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint) => void;
72
- export const tryGetTokenAFromLiquidity: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: number) => void;
73
- export const tryGetLiquidityFromB: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint) => void;
74
- export const tryGetTokenBFromLiquidity: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: number) => void;
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
69
  export const tryGetAmountDeltaA: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: number) => void;
78
70
  export const tryGetAmountDeltaB: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: number) => void;
79
71
  export const tryGetNextSqrtPriceFromA: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: number) => void;
@@ -86,6 +78,23 @@ export const tryApplySwapFee: (a: number, b: bigint, c: number) => void;
86
78
  export const tryReverseApplySwapFee: (a: number, b: bigint, c: number) => void;
87
79
  export const swapQuoteByInputToken: (a: number, b: bigint, c: number, d: number, e: number, f: number, g: number, h: number) => void;
88
80
  export const swapQuoteByOutputToken: (a: number, b: bigint, c: number, d: number, e: number, f: number, g: number, h: number) => void;
81
+ export const firstUnoccupiedPositionInBundle: (a: number, b: number) => number;
82
+ export const isPositionBundleFull: (a: number, b: number) => number;
83
+ export const isPositionBundleEmpty: (a: number, b: number) => number;
84
+ export const isPositionInRange: (a: bigint, b: bigint, c: number, d: number) => number;
85
+ export const positionStatus: (a: bigint, b: bigint, c: number, d: number) => number;
86
+ export const positionRatioX64: (a: bigint, b: bigint, c: number, d: number) => number;
87
+ export const priceToSqrtPrice: (a: number, b: number, c: number, d: number) => void;
88
+ export const sqrtPriceToPrice: (a: bigint, b: bigint, c: number, d: number) => number;
89
+ export const invertPrice: (a: number, b: number, c: number) => number;
90
+ export const tickIndexToPrice: (a: number, b: number, c: number) => number;
91
+ export const priceToTickIndex: (a: number, b: number, c: number) => number;
92
+ export const tryGetLiquidityFromAmountA: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint) => void;
93
+ export const tryGetAmountAFromLiquidity: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: number) => void;
94
+ export const tryGetLiquidityFromAmountB: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint) => void;
95
+ export const tryGetAmountBFromLiquidity: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: number) => void;
96
+ export const tryGetAmountsFromLiquidity: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: number, g: number, h: number) => void;
97
+ export const tryGetLiquidityFromAmounts: (a: number, b: bigint, c: bigint, d: bigint, e: bigint, f: bigint, g: bigint, h: bigint, i: bigint) => void;
89
98
  export const _TICK_ARRAY_NOT_EVENLY_SPACED: (a: number) => void;
90
99
  export const _TICK_INDEX_OUT_OF_BOUNDS: (a: number) => void;
91
100
  export const _INVALID_TICK_INDEX: (a: number) => void;
@@ -96,6 +105,7 @@ export const _SQRT_PRICE_OUT_OF_BOUNDS: (a: number) => void;
96
105
  export const _TICK_SEQUENCE_EMPTY: (a: number) => void;
97
106
  export const _SQRT_PRICE_LIMIT_OUT_OF_BOUNDS: (a: number) => void;
98
107
  export const _INVALID_SQRT_PRICE_LIMIT_DIRECTION: (a: number) => void;
108
+ export const _INVALID_RANGE_BOUNDS: (a: number) => void;
99
109
  export const _ZERO_TRADABLE_AMOUNT: (a: number) => void;
100
110
  export const _INVALID_TIMESTAMP: (a: number) => void;
101
111
  export const _INVALID_TRANSFER_FEE: (a: number) => void;
@@ -103,6 +113,12 @@ export const _INVALID_SLIPPAGE_TOLERANCE: (a: number) => void;
103
113
  export const _TICK_INDEX_NOT_IN_ARRAY: (a: number) => void;
104
114
  export const _INVALID_TICK_ARRAY_SEQUENCE: (a: number) => void;
105
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;
106
122
  export const _POSITION_BUNDLE_SIZE: () => number;
107
123
  export const _FEE_RATE_MUL_VALUE: () => number;
108
124
  export const _MAX_PROTOCOL_FEE_RATE: () => number;
@@ -125,28 +141,17 @@ export const getFullRangeTickIndexes: (a: number) => number;
125
141
  export const orderTickIndexes: (a: number, b: number) => number;
126
142
  export const isFullRangeOnly: (a: number) => number;
127
143
  export const getTickIndexInArray: (a: number, b: number, c: number, d: number) => void;
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
144
  export const limitOrderQuoteByInputToken: (a: number, b: bigint, c: number, d: number, e: number) => void;
142
145
  export const limitOrderQuoteByOutputToken: (a: number, b: bigint, c: number, d: number, e: number) => void;
143
146
  export const limitOrderRewardByOutputToken: (a: number, b: bigint, c: number, d: number) => void;
144
147
  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;
149
- export const __wasm_bindgen_func_elem_495: (a: number, b: number, c: number, d: number) => void;
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_3154: (a: number, b: number) => void;
151
+ export const __wasm_bindgen_func_elem_3150: (a: number, b: number) => void;
152
+ export const __wasm_bindgen_func_elem_3288: (a: number, b: number, c: number) => void;
153
+ export const __wasm_bindgen_func_elem_3261: (a: number, b: number) => void;
154
+ export const __wasm_bindgen_func_elem_494: (a: number, b: number, c: number, d: number) => void;
150
155
  export const __wbindgen_export: (a: number, b: number) => number;
151
156
  export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
152
157
  export const __wbindgen_export3: (a: number) => void;