@hashiverse/hashiverse-client-wasm 1.0.5 → 1.0.6-rc2
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.
|
@@ -434,17 +434,23 @@ export function init_pow_workers(workers_js) {
|
|
|
434
434
|
* @returns {string}
|
|
435
435
|
*/
|
|
436
436
|
export function pow_compute_batch(iteration_limit, pow_min, data_hash_hex) {
|
|
437
|
-
let
|
|
438
|
-
let
|
|
437
|
+
let deferred3_0;
|
|
438
|
+
let deferred3_1;
|
|
439
439
|
try {
|
|
440
440
|
const ptr0 = passStringToWasm0(data_hash_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
441
441
|
const len0 = WASM_VECTOR_LEN;
|
|
442
442
|
const ret = wasm.pow_compute_batch(iteration_limit, pow_min, ptr0, len0);
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
443
|
+
var ptr2 = ret[0];
|
|
444
|
+
var len2 = ret[1];
|
|
445
|
+
if (ret[3]) {
|
|
446
|
+
ptr2 = 0; len2 = 0;
|
|
447
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
448
|
+
}
|
|
449
|
+
deferred3_0 = ptr2;
|
|
450
|
+
deferred3_1 = len2;
|
|
451
|
+
return getStringFromWasm0(ptr2, len2);
|
|
446
452
|
} finally {
|
|
447
|
-
wasm.__wbindgen_free(
|
|
453
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
448
454
|
}
|
|
449
455
|
}
|
|
450
456
|
|
|
@@ -562,14 +568,13 @@ export function __wbg_call_dfde26266607c996() { return handleError(function (arg
|
|
|
562
568
|
const ret = arg0.call(arg1, arg2);
|
|
563
569
|
return ret;
|
|
564
570
|
}, arguments); }
|
|
565
|
-
export function __wbg_clearTimeout_3629d6209dfcc46e(arg0) {
|
|
566
|
-
const ret = clearTimeout(arg0);
|
|
567
|
-
return ret;
|
|
568
|
-
}
|
|
569
571
|
export function __wbg_clear_bb1b3ff877b62598() { return handleError(function (arg0) {
|
|
570
572
|
const ret = arg0.clear();
|
|
571
573
|
return ret;
|
|
572
574
|
}, arguments); }
|
|
575
|
+
export function __wbg_close_0572c6beab702338(arg0) {
|
|
576
|
+
arg0.close();
|
|
577
|
+
}
|
|
573
578
|
export function __wbg_commit_e9c1332714c53826() { return handleError(function (arg0) {
|
|
574
579
|
arg0.commit();
|
|
575
580
|
}, arguments); }
|
|
@@ -933,7 +938,7 @@ export function __wbg_new_d8dfd33fa007511d(arg0, arg1) {
|
|
|
933
938
|
const a = state0.a;
|
|
934
939
|
state0.a = 0;
|
|
935
940
|
try {
|
|
936
|
-
return
|
|
941
|
+
return wasm_bindgen_6a653738119d6ac___convert__closures_____invoke___js_sys_fea703446ec8fe26___Function_fn_wasm_bindgen_6a653738119d6ac___JsValue_____wasm_bindgen_6a653738119d6ac___sys__Undefined___js_sys_fea703446ec8fe26___Function_fn_wasm_bindgen_6a653738119d6ac___JsValue_____wasm_bindgen_6a653738119d6ac___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
937
942
|
} finally {
|
|
938
943
|
state0.a = a;
|
|
939
944
|
}
|
|
@@ -963,7 +968,7 @@ export function __wbg_new_typed_c072c4ce9a2a0cdf(arg0, arg1) {
|
|
|
963
968
|
const a = state0.a;
|
|
964
969
|
state0.a = 0;
|
|
965
970
|
try {
|
|
966
|
-
return
|
|
971
|
+
return wasm_bindgen_6a653738119d6ac___convert__closures_____invoke___js_sys_fea703446ec8fe26___Function_fn_wasm_bindgen_6a653738119d6ac___JsValue_____wasm_bindgen_6a653738119d6ac___sys__Undefined___js_sys_fea703446ec8fe26___Function_fn_wasm_bindgen_6a653738119d6ac___JsValue_____wasm_bindgen_6a653738119d6ac___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
967
972
|
} finally {
|
|
968
973
|
state0.a = a;
|
|
969
974
|
}
|
|
@@ -1085,10 +1090,6 @@ export function __wbg_search_a51654966912eff6(arg0, arg1) {
|
|
|
1085
1090
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1086
1091
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1087
1092
|
}
|
|
1088
|
-
export function __wbg_setTimeout_56bcdccbad22fd44() { return handleError(function (arg0, arg1) {
|
|
1089
|
-
const ret = setTimeout(arg0, arg1);
|
|
1090
|
-
return ret;
|
|
1091
|
-
}, arguments); }
|
|
1092
1093
|
export function __wbg_set_6be42768c690e380(arg0, arg1, arg2) {
|
|
1093
1094
|
arg0[arg1] = arg2;
|
|
1094
1095
|
}
|
|
@@ -1133,12 +1134,18 @@ export function __wbg_set_oncomplete_3f428ec13b20d7cc(arg0, arg1) {
|
|
|
1133
1134
|
export function __wbg_set_onerror_38740b892815eedc(arg0, arg1) {
|
|
1134
1135
|
arg0.onerror = arg1;
|
|
1135
1136
|
}
|
|
1137
|
+
export function __wbg_set_onerror_38fb42319cb67c39(arg0, arg1) {
|
|
1138
|
+
arg0.onerror = arg1;
|
|
1139
|
+
}
|
|
1136
1140
|
export function __wbg_set_onerror_457b093a5063c7ec(arg0, arg1) {
|
|
1137
1141
|
arg0.onerror = arg1;
|
|
1138
1142
|
}
|
|
1139
1143
|
export function __wbg_set_onmessage_fe533da1b9c90919(arg0, arg1) {
|
|
1140
1144
|
arg0.onmessage = arg1;
|
|
1141
1145
|
}
|
|
1146
|
+
export function __wbg_set_onmessageerror_76bc243b226da30a(arg0, arg1) {
|
|
1147
|
+
arg0.onmessageerror = arg1;
|
|
1148
|
+
}
|
|
1142
1149
|
export function __wbg_set_onsuccess_b556141053d02ea7(arg0, arg1) {
|
|
1143
1150
|
arg0.onsuccess = arg1;
|
|
1144
1151
|
}
|
|
@@ -1245,33 +1252,33 @@ export function __wbg_warn_099dd8c85568de56(arg0, arg1, arg2, arg3) {
|
|
|
1245
1252
|
console.warn(arg0, arg1, arg2, arg3);
|
|
1246
1253
|
}
|
|
1247
1254
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
1248
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1249
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1255
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1234, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1256
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_6a653738119d6ac___convert__closures_____invoke___wasm_bindgen_6a653738119d6ac___JsValue__core_9c09b708e10e29da___result__Result_____wasm_bindgen_6a653738119d6ac___JsError___true_);
|
|
1250
1257
|
return ret;
|
|
1251
1258
|
}
|
|
1252
1259
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
1253
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [
|
|
1254
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1260
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 502, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1261
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_6a653738119d6ac___convert__closures_____invoke___wasm_bindgen_6a653738119d6ac___JsValue______true_);
|
|
1255
1262
|
return ret;
|
|
1256
1263
|
}
|
|
1257
1264
|
export function __wbindgen_cast_0000000000000003(arg0, arg1) {
|
|
1258
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
1259
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1265
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 566, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1266
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_6a653738119d6ac___convert__closures_____invoke___web_sys_21cb8311947a7236___features__gen_Event__Event______true_);
|
|
1260
1267
|
return ret;
|
|
1261
1268
|
}
|
|
1262
1269
|
export function __wbindgen_cast_0000000000000004(arg0, arg1) {
|
|
1263
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("
|
|
1264
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1270
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 504, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1271
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_6a653738119d6ac___convert__closures_____invoke___web_sys_21cb8311947a7236___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent__core_9c09b708e10e29da___result__Result_____wasm_bindgen_6a653738119d6ac___JsValue___true_);
|
|
1265
1272
|
return ret;
|
|
1266
1273
|
}
|
|
1267
1274
|
export function __wbindgen_cast_0000000000000005(arg0, arg1) {
|
|
1268
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1269
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1275
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1195, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1276
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_6a653738119d6ac___convert__closures_____invoke___web_sys_21cb8311947a7236___features__gen_CloseEvent__CloseEvent______true_);
|
|
1270
1277
|
return ret;
|
|
1271
1278
|
}
|
|
1272
1279
|
export function __wbindgen_cast_0000000000000006(arg0, arg1) {
|
|
1273
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1274
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1280
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 568, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1281
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_6a653738119d6ac___convert__closures_____invoke_______true_);
|
|
1275
1282
|
return ret;
|
|
1276
1283
|
}
|
|
1277
1284
|
export function __wbindgen_cast_0000000000000007(arg0) {
|
|
@@ -1343,38 +1350,38 @@ export function __wbindgen_init_externref_table() {
|
|
|
1343
1350
|
table.set(offset + 2, true);
|
|
1344
1351
|
table.set(offset + 3, false);
|
|
1345
1352
|
}
|
|
1346
|
-
function
|
|
1347
|
-
wasm.
|
|
1353
|
+
function wasm_bindgen_6a653738119d6ac___convert__closures_____invoke_______true_(arg0, arg1) {
|
|
1354
|
+
wasm.wasm_bindgen_6a653738119d6ac___convert__closures_____invoke_______true_(arg0, arg1);
|
|
1348
1355
|
}
|
|
1349
1356
|
|
|
1350
|
-
function
|
|
1351
|
-
wasm.
|
|
1357
|
+
function wasm_bindgen_6a653738119d6ac___convert__closures_____invoke___wasm_bindgen_6a653738119d6ac___JsValue______true_(arg0, arg1, arg2) {
|
|
1358
|
+
wasm.wasm_bindgen_6a653738119d6ac___convert__closures_____invoke___wasm_bindgen_6a653738119d6ac___JsValue______true_(arg0, arg1, arg2);
|
|
1352
1359
|
}
|
|
1353
1360
|
|
|
1354
|
-
function
|
|
1355
|
-
wasm.
|
|
1361
|
+
function wasm_bindgen_6a653738119d6ac___convert__closures_____invoke___web_sys_21cb8311947a7236___features__gen_Event__Event______true_(arg0, arg1, arg2) {
|
|
1362
|
+
wasm.wasm_bindgen_6a653738119d6ac___convert__closures_____invoke___web_sys_21cb8311947a7236___features__gen_Event__Event______true_(arg0, arg1, arg2);
|
|
1356
1363
|
}
|
|
1357
1364
|
|
|
1358
|
-
function
|
|
1359
|
-
wasm.
|
|
1365
|
+
function wasm_bindgen_6a653738119d6ac___convert__closures_____invoke___web_sys_21cb8311947a7236___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2) {
|
|
1366
|
+
wasm.wasm_bindgen_6a653738119d6ac___convert__closures_____invoke___web_sys_21cb8311947a7236___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2);
|
|
1360
1367
|
}
|
|
1361
1368
|
|
|
1362
|
-
function
|
|
1363
|
-
const ret = wasm.
|
|
1369
|
+
function wasm_bindgen_6a653738119d6ac___convert__closures_____invoke___wasm_bindgen_6a653738119d6ac___JsValue__core_9c09b708e10e29da___result__Result_____wasm_bindgen_6a653738119d6ac___JsError___true_(arg0, arg1, arg2) {
|
|
1370
|
+
const ret = wasm.wasm_bindgen_6a653738119d6ac___convert__closures_____invoke___wasm_bindgen_6a653738119d6ac___JsValue__core_9c09b708e10e29da___result__Result_____wasm_bindgen_6a653738119d6ac___JsError___true_(arg0, arg1, arg2);
|
|
1364
1371
|
if (ret[1]) {
|
|
1365
1372
|
throw takeFromExternrefTable0(ret[0]);
|
|
1366
1373
|
}
|
|
1367
1374
|
}
|
|
1368
1375
|
|
|
1369
|
-
function
|
|
1370
|
-
const ret = wasm.
|
|
1376
|
+
function wasm_bindgen_6a653738119d6ac___convert__closures_____invoke___web_sys_21cb8311947a7236___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent__core_9c09b708e10e29da___result__Result_____wasm_bindgen_6a653738119d6ac___JsValue___true_(arg0, arg1, arg2) {
|
|
1377
|
+
const ret = wasm.wasm_bindgen_6a653738119d6ac___convert__closures_____invoke___web_sys_21cb8311947a7236___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent__core_9c09b708e10e29da___result__Result_____wasm_bindgen_6a653738119d6ac___JsValue___true_(arg0, arg1, arg2);
|
|
1371
1378
|
if (ret[1]) {
|
|
1372
1379
|
throw takeFromExternrefTable0(ret[0]);
|
|
1373
1380
|
}
|
|
1374
1381
|
}
|
|
1375
1382
|
|
|
1376
|
-
function
|
|
1377
|
-
wasm.
|
|
1383
|
+
function wasm_bindgen_6a653738119d6ac___convert__closures_____invoke___js_sys_fea703446ec8fe26___Function_fn_wasm_bindgen_6a653738119d6ac___JsValue_____wasm_bindgen_6a653738119d6ac___sys__Undefined___js_sys_fea703446ec8fe26___Function_fn_wasm_bindgen_6a653738119d6ac___JsValue_____wasm_bindgen_6a653738119d6ac___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
1384
|
+
wasm.wasm_bindgen_6a653738119d6ac___convert__closures_____invoke___js_sys_fea703446ec8fe26___Function_fn_wasm_bindgen_6a653738119d6ac___JsValue_____wasm_bindgen_6a653738119d6ac___sys__Undefined___js_sys_fea703446ec8fe26___Function_fn_wasm_bindgen_6a653738119d6ac___JsValue_____wasm_bindgen_6a653738119d6ac___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
1378
1385
|
}
|
|
1379
1386
|
|
|
1380
1387
|
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"James Jardine <mail@jimme.net>"
|
|
6
6
|
],
|
|
7
7
|
"description": "This library provides the rust/wasm backend for the associated hashiverse-client-web repo.",
|
|
8
|
-
"version": "1.0.
|
|
8
|
+
"version": "1.0.6-rc2",
|
|
9
9
|
"license": "MIT OR Apache-2.0",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|