@orca-so/whirlpools-core 0.2.3 → 0.3.1
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/README.md +1 -1
- package/dist/browser/README.md +1 -1
- package/dist/browser/orca_whirlpools_core_js_bindings_bg.js +14 -14
- package/dist/browser/orca_whirlpools_core_js_bindings_bg.wasm +0 -0
- package/dist/nodejs/README.md +1 -1
- package/dist/nodejs/orca_whirlpools_core_js_bindings.js +14 -14
- package/dist/nodejs/orca_whirlpools_core_js_bindings_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ Expected output:
|
|
|
33
33
|
Position in range? true
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
### Quote Example
|
|
36
|
+
### Adjust Liquidity Quote Example
|
|
37
37
|
The following example demonstrates how to use the `increaseLiquidityQuoteA` function to calculate a quote for increasing liquidity given a token A amount.
|
|
38
38
|
|
|
39
39
|
```tsx
|
package/dist/browser/README.md
CHANGED
|
@@ -33,7 +33,7 @@ Expected output:
|
|
|
33
33
|
Position in range? true
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
### Quote Example
|
|
36
|
+
### Adjust Liquidity Quote Example
|
|
37
37
|
The following example demonstrates how to use the `increaseLiquidityQuoteA` function to calculate a quote for increasing liquidity given a token A amount.
|
|
38
38
|
|
|
39
39
|
```tsx
|
|
@@ -1335,9 +1335,12 @@ export function __wbindgen_boolean_get(arg0) {
|
|
|
1335
1335
|
return ret;
|
|
1336
1336
|
};
|
|
1337
1337
|
|
|
1338
|
-
export function
|
|
1339
|
-
const ret =
|
|
1340
|
-
|
|
1338
|
+
export function __wbg_String_88810dfeb4021902(arg0, arg1) {
|
|
1339
|
+
const ret = String(arg1);
|
|
1340
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1341
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1342
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1343
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1341
1344
|
};
|
|
1342
1345
|
|
|
1343
1346
|
export function __wbindgen_error_new(arg0, arg1) {
|
|
@@ -1350,26 +1353,23 @@ export function __wbindgen_bigint_from_u128(arg0, arg1) {
|
|
|
1350
1353
|
return ret;
|
|
1351
1354
|
};
|
|
1352
1355
|
|
|
1353
|
-
export function
|
|
1356
|
+
export function __wbg_getwithrefkey_5e6d9547403deab8(arg0, arg1) {
|
|
1354
1357
|
const ret = arg0[arg1];
|
|
1355
1358
|
return ret;
|
|
1356
1359
|
};
|
|
1357
1360
|
|
|
1358
|
-
export function
|
|
1359
|
-
|
|
1360
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1361
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1362
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1363
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1361
|
+
export function __wbg_set_841ac57cff3d672b(arg0, arg1, arg2) {
|
|
1362
|
+
arg0[arg1] = arg2;
|
|
1364
1363
|
};
|
|
1365
1364
|
|
|
1366
|
-
export function
|
|
1367
|
-
const ret = arg0
|
|
1365
|
+
export function __wbindgen_as_number(arg0) {
|
|
1366
|
+
const ret = +arg0;
|
|
1368
1367
|
return ret;
|
|
1369
1368
|
};
|
|
1370
1369
|
|
|
1371
|
-
export function
|
|
1372
|
-
arg0[arg1]
|
|
1370
|
+
export function __wbg_getwithrefkey_edc2c8960f0f1191(arg0, arg1) {
|
|
1371
|
+
const ret = arg0[arg1];
|
|
1372
|
+
return ret;
|
|
1373
1373
|
};
|
|
1374
1374
|
|
|
1375
1375
|
export function __wbindgen_is_array(arg0) {
|
|
Binary file
|
package/dist/nodejs/README.md
CHANGED
|
@@ -33,7 +33,7 @@ Expected output:
|
|
|
33
33
|
Position in range? true
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
### Quote Example
|
|
36
|
+
### Adjust Liquidity Quote Example
|
|
37
37
|
The following example demonstrates how to use the `increaseLiquidityQuoteA` function to calculate a quote for increasing liquidity given a token A amount.
|
|
38
38
|
|
|
39
39
|
```tsx
|
|
@@ -1331,9 +1331,12 @@ module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
|
1331
1331
|
return ret;
|
|
1332
1332
|
};
|
|
1333
1333
|
|
|
1334
|
-
module.exports.
|
|
1335
|
-
const ret =
|
|
1336
|
-
|
|
1334
|
+
module.exports.__wbg_String_88810dfeb4021902 = function(arg0, arg1) {
|
|
1335
|
+
const ret = String(arg1);
|
|
1336
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1337
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1338
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1339
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1337
1340
|
};
|
|
1338
1341
|
|
|
1339
1342
|
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
@@ -1346,26 +1349,23 @@ module.exports.__wbindgen_bigint_from_u128 = function(arg0, arg1) {
|
|
|
1346
1349
|
return ret;
|
|
1347
1350
|
};
|
|
1348
1351
|
|
|
1349
|
-
module.exports.
|
|
1352
|
+
module.exports.__wbg_getwithrefkey_5e6d9547403deab8 = function(arg0, arg1) {
|
|
1350
1353
|
const ret = arg0[arg1];
|
|
1351
1354
|
return ret;
|
|
1352
1355
|
};
|
|
1353
1356
|
|
|
1354
|
-
module.exports.
|
|
1355
|
-
|
|
1356
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1357
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1358
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1359
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1357
|
+
module.exports.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
|
|
1358
|
+
arg0[arg1] = arg2;
|
|
1360
1359
|
};
|
|
1361
1360
|
|
|
1362
|
-
module.exports.
|
|
1363
|
-
const ret = arg0
|
|
1361
|
+
module.exports.__wbindgen_as_number = function(arg0) {
|
|
1362
|
+
const ret = +arg0;
|
|
1364
1363
|
return ret;
|
|
1365
1364
|
};
|
|
1366
1365
|
|
|
1367
|
-
module.exports.
|
|
1368
|
-
arg0[arg1]
|
|
1366
|
+
module.exports.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
|
|
1367
|
+
const ret = arg0[arg1];
|
|
1368
|
+
return ret;
|
|
1369
1369
|
};
|
|
1370
1370
|
|
|
1371
1371
|
module.exports.__wbindgen_is_array = function(arg0) {
|
|
Binary file
|
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": "0.
|
|
4
|
+
"version": "0.3.1",
|
|
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",
|