@lat-murmeldjur/weeb_3 0.0.345001 → 0.0.347001
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/package.json +1 -1
- package/weeb_3.d.ts +18 -9
- package/weeb_3.js +67 -31
- package/weeb_3_bg.wasm +0 -0
- package/weeb_3_bg.wasm.d.ts +7 -7
package/package.json
CHANGED
package/weeb_3.d.ts
CHANGED
|
@@ -18,6 +18,9 @@ export class RequestArguments {
|
|
|
18
18
|
export class Weeb3No103 {
|
|
19
19
|
free(): void;
|
|
20
20
|
[Symbol.dispose](): void;
|
|
21
|
+
/**
|
|
22
|
+
* The complete read, including startup, has a 30-second budget; expiry returns status="timeout".
|
|
23
|
+
*/
|
|
21
24
|
acquireFeedBytes(owner: string, topic: string): Promise<object>;
|
|
22
25
|
attachStream(media: HTMLMediaElement, owner: string, topic: string, start: HlsStart): Promise<void>;
|
|
23
26
|
batchState(depth: number, validity_days: number): Promise<object>;
|
|
@@ -28,7 +31,13 @@ export class Weeb3No103 {
|
|
|
28
31
|
networkState(): Promise<object>;
|
|
29
32
|
constructor(shared_worker_url?: string | null);
|
|
30
33
|
openSecureVault(): object;
|
|
31
|
-
|
|
34
|
+
/**
|
|
35
|
+
* Omit walletOwner to use the existing stored vault identity. An explicit EOA
|
|
36
|
+
* address uses that wallet as the portable owner and prompts for each update.
|
|
37
|
+
* Example: await node.postFeedBytes(topic, bytes, "text/plain", "captions", false, account).
|
|
38
|
+
* Contract-wallet signatures and rejected/mismatched signatures fail; no key is derived or imported.
|
|
39
|
+
*/
|
|
40
|
+
postFeedBytes(topic: string, bytes: Uint8Array, mime: string, filename: string, encryption: boolean, wallet_owner?: string | null): Promise<object>;
|
|
32
41
|
postPushChunk(data: Uint8Array, soc: boolean, chunk_address: Uint8Array, stamp: Uint8Array): Promise<string>;
|
|
33
42
|
postUploadBytes(bytes: Uint8Array, mime: string, filename: string, encryption: boolean, add_to_feed: boolean, feed_topic: string): Promise<object>;
|
|
34
43
|
postUploadBytesWithRedundancy(bytes: Uint8Array, mime: string, filename: string, encryption: boolean, redundancy_level: UploadRedundancyLevel, add_to_feed: boolean, feed_topic: string): Promise<object>;
|
|
@@ -42,7 +51,7 @@ export class Weeb3No103 {
|
|
|
42
51
|
start(options?: any | null): void;
|
|
43
52
|
switchNetwork(mode: string): Promise<object>;
|
|
44
53
|
upload(file: File, encryption: boolean, index_string: string, add_to_feed: boolean, feed_topic: string): Promise<object>;
|
|
45
|
-
uploadWithRedundancy(file: File, encryption: boolean, redundancy_level: UploadRedundancyLevel, index_string: string, add_to_feed: boolean, feed_topic: string): Promise<object>;
|
|
54
|
+
uploadWithRedundancy(file: File, encryption: boolean, redundancy_level: UploadRedundancyLevel, index_string: string, add_to_feed: boolean, feed_topic: string, wallet_owner?: string | null): Promise<object>;
|
|
46
55
|
}
|
|
47
56
|
|
|
48
57
|
export class Weeb3WorkerRuntime {
|
|
@@ -72,7 +81,7 @@ export interface InitOutput {
|
|
|
72
81
|
readonly weeb3no103_networkState: (a: number) => number;
|
|
73
82
|
readonly weeb3no103_new: (a: number, b: number) => number;
|
|
74
83
|
readonly weeb3no103_openSecureVault: (a: number) => number;
|
|
75
|
-
readonly weeb3no103_postFeedBytes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
84
|
+
readonly weeb3no103_postFeedBytes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
|
|
76
85
|
readonly weeb3no103_postPushChunk: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
77
86
|
readonly weeb3no103_postUploadBytes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
78
87
|
readonly weeb3no103_postUploadBytesWithRedundancy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
|
|
@@ -86,18 +95,18 @@ export interface InitOutput {
|
|
|
86
95
|
readonly weeb3no103_start: (a: number, b: number) => void;
|
|
87
96
|
readonly weeb3no103_switchNetwork: (a: number, b: number, c: number) => number;
|
|
88
97
|
readonly weeb3no103_upload: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
89
|
-
readonly weeb3no103_uploadWithRedundancy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
98
|
+
readonly weeb3no103_uploadWithRedundancy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
|
|
90
99
|
readonly weeb3workerruntime_handleMessage: (a: number, b: number) => number;
|
|
91
100
|
readonly weeb3workerruntime_new: () => number;
|
|
92
101
|
readonly weeb3workerruntime_start: (a: number, b: number) => number;
|
|
93
102
|
readonly __wbg_requestarguments_free: (a: number, b: number) => void;
|
|
94
103
|
readonly requestarguments_method: (a: number, b: number) => void;
|
|
95
104
|
readonly requestarguments_params: (a: number) => number;
|
|
96
|
-
readonly
|
|
97
|
-
readonly
|
|
98
|
-
readonly
|
|
99
|
-
readonly
|
|
100
|
-
readonly
|
|
105
|
+
readonly __wasm_bindgen_func_elem_576: (a: number, b: number) => void;
|
|
106
|
+
readonly __wasm_bindgen_func_elem_1361: (a: number, b: number, c: number, d: number) => void;
|
|
107
|
+
readonly __wasm_bindgen_func_elem_1363: (a: number, b: number, c: number, d: number) => void;
|
|
108
|
+
readonly __wasm_bindgen_func_elem_3122: (a: number, b: number, c: number) => void;
|
|
109
|
+
readonly __wasm_bindgen_func_elem_3115: (a: number, b: number) => void;
|
|
101
110
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
102
111
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
103
112
|
readonly __wbindgen_export3: (a: number) => void;
|
package/weeb_3.js
CHANGED
|
@@ -61,6 +61,7 @@ export class Weeb3No103 {
|
|
|
61
61
|
wasm.__wbg_weeb3no103_free(ptr, 0);
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
|
+
* The complete read, including startup, has a 30-second budget; expiry returns status="timeout".
|
|
64
65
|
* @param {string} owner
|
|
65
66
|
* @param {string} topic
|
|
66
67
|
* @returns {Promise<object>}
|
|
@@ -158,21 +159,28 @@ export class Weeb3No103 {
|
|
|
158
159
|
return takeObject(ret);
|
|
159
160
|
}
|
|
160
161
|
/**
|
|
162
|
+
* Omit walletOwner to use the existing stored vault identity. An explicit EOA
|
|
163
|
+
* address uses that wallet as the portable owner and prompts for each update.
|
|
164
|
+
* Example: await node.postFeedBytes(topic, bytes, "text/plain", "captions", false, account).
|
|
165
|
+
* Contract-wallet signatures and rejected/mismatched signatures fail; no key is derived or imported.
|
|
161
166
|
* @param {string} topic
|
|
162
167
|
* @param {Uint8Array} bytes
|
|
163
168
|
* @param {string} mime
|
|
164
169
|
* @param {string} filename
|
|
165
170
|
* @param {boolean} encryption
|
|
171
|
+
* @param {string | null} [wallet_owner]
|
|
166
172
|
* @returns {Promise<object>}
|
|
167
173
|
*/
|
|
168
|
-
postFeedBytes(topic, bytes, mime, filename, encryption) {
|
|
174
|
+
postFeedBytes(topic, bytes, mime, filename, encryption, wallet_owner) {
|
|
169
175
|
const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
170
176
|
const len0 = WASM_VECTOR_LEN;
|
|
171
177
|
const ptr1 = passStringToWasm0(mime, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
172
178
|
const len1 = WASM_VECTOR_LEN;
|
|
173
179
|
const ptr2 = passStringToWasm0(filename, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
174
180
|
const len2 = WASM_VECTOR_LEN;
|
|
175
|
-
|
|
181
|
+
var ptr3 = isLikeNone(wallet_owner) ? 0 : passStringToWasm0(wallet_owner, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
182
|
+
var len3 = WASM_VECTOR_LEN;
|
|
183
|
+
const ret = wasm.weeb3no103_postFeedBytes(this.__wbg_ptr, ptr0, len0, addHeapObject(bytes), ptr1, len1, ptr2, len2, encryption, ptr3, len3);
|
|
176
184
|
return takeObject(ret);
|
|
177
185
|
}
|
|
178
186
|
/**
|
|
@@ -326,14 +334,17 @@ export class Weeb3No103 {
|
|
|
326
334
|
* @param {string} index_string
|
|
327
335
|
* @param {boolean} add_to_feed
|
|
328
336
|
* @param {string} feed_topic
|
|
337
|
+
* @param {string | null} [wallet_owner]
|
|
329
338
|
* @returns {Promise<object>}
|
|
330
339
|
*/
|
|
331
|
-
uploadWithRedundancy(file, encryption, redundancy_level, index_string, add_to_feed, feed_topic) {
|
|
340
|
+
uploadWithRedundancy(file, encryption, redundancy_level, index_string, add_to_feed, feed_topic, wallet_owner) {
|
|
332
341
|
const ptr0 = passStringToWasm0(index_string, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
333
342
|
const len0 = WASM_VECTOR_LEN;
|
|
334
343
|
const ptr1 = passStringToWasm0(feed_topic, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
335
344
|
const len1 = WASM_VECTOR_LEN;
|
|
336
|
-
|
|
345
|
+
var ptr2 = isLikeNone(wallet_owner) ? 0 : passStringToWasm0(wallet_owner, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
346
|
+
var len2 = WASM_VECTOR_LEN;
|
|
347
|
+
const ret = wasm.weeb3no103_uploadWithRedundancy(this.__wbg_ptr, addHeapObject(file), encryption, redundancy_level, ptr0, len0, add_to_feed, ptr1, len1, ptr2, len2);
|
|
337
348
|
return takeObject(ret);
|
|
338
349
|
}
|
|
339
350
|
}
|
|
@@ -516,6 +527,10 @@ function __wbg_get_imports() {
|
|
|
516
527
|
__wbg_assign_4589c32a26ec6e6f: function() { return handleError(function (arg0, arg1, arg2) {
|
|
517
528
|
getObject(arg0).assign(getStringFromWasm0(arg1, arg2));
|
|
518
529
|
}, arguments); },
|
|
530
|
+
__wbg_assign_6170c0d04d5c26f4: function(arg0, arg1) {
|
|
531
|
+
const ret = Object.assign(getObject(arg0), getObject(arg1));
|
|
532
|
+
return addHeapObject(ret);
|
|
533
|
+
},
|
|
519
534
|
__wbg_attachMedia_82d779df2fa8e98f: function() { return handleError(function (arg0, arg1) {
|
|
520
535
|
getObject(arg0).attachMedia(getObject(arg1));
|
|
521
536
|
}, arguments); },
|
|
@@ -646,6 +661,10 @@ function __wbg_get_imports() {
|
|
|
646
661
|
const ret = decodeURIComponent(getStringFromWasm0(arg0, arg1));
|
|
647
662
|
return addHeapObject(ret);
|
|
648
663
|
}, arguments); },
|
|
664
|
+
__wbg_deleteProperty_8c8a05da881fea59: function() { return handleError(function (arg0, arg1) {
|
|
665
|
+
const ret = Reflect.deleteProperty(getObject(arg0), getObject(arg1));
|
|
666
|
+
return ret;
|
|
667
|
+
}, arguments); },
|
|
649
668
|
__wbg_delete_74046fcb2b817df6: function(arg0, arg1, arg2) {
|
|
650
669
|
getObject(arg0).delete(getStringFromWasm0(arg1, arg2));
|
|
651
670
|
},
|
|
@@ -803,6 +822,10 @@ function __wbg_get_imports() {
|
|
|
803
822
|
const ret = getObject(arg0).indexedDB;
|
|
804
823
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
805
824
|
}, arguments); },
|
|
825
|
+
__wbg_insertBefore_1468142836e61a51: function() { return handleError(function (arg0, arg1, arg2) {
|
|
826
|
+
const ret = getObject(arg0).insertBefore(getObject(arg1), getObject(arg2));
|
|
827
|
+
return addHeapObject(ret);
|
|
828
|
+
}, arguments); },
|
|
806
829
|
__wbg_installing_860506570e3bb33d: function(arg0) {
|
|
807
830
|
const ret = getObject(arg0).installing;
|
|
808
831
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
@@ -1151,7 +1174,7 @@ function __wbg_get_imports() {
|
|
|
1151
1174
|
const a = state0.a;
|
|
1152
1175
|
state0.a = 0;
|
|
1153
1176
|
try {
|
|
1154
|
-
return
|
|
1177
|
+
return __wasm_bindgen_func_elem_1361(a, state0.b, arg0, arg1);
|
|
1155
1178
|
} finally {
|
|
1156
1179
|
state0.a = a;
|
|
1157
1180
|
}
|
|
@@ -1206,6 +1229,10 @@ function __wbg_get_imports() {
|
|
|
1206
1229
|
const ret = new SharedWorker(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
1207
1230
|
return addHeapObject(ret);
|
|
1208
1231
|
}, arguments); },
|
|
1232
|
+
__wbg_nextSibling_2e988d9bbe3e06f0: function(arg0) {
|
|
1233
|
+
const ret = getObject(arg0).nextSibling;
|
|
1234
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1235
|
+
},
|
|
1209
1236
|
__wbg_next_3482f54c49e8af19: function() { return handleError(function (arg0) {
|
|
1210
1237
|
const ret = getObject(arg0).next();
|
|
1211
1238
|
return addHeapObject(ret);
|
|
@@ -1266,6 +1293,10 @@ function __wbg_get_imports() {
|
|
|
1266
1293
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1267
1294
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1268
1295
|
}, arguments); },
|
|
1296
|
+
__wbg_ownerDocument_9347874c5cad87d7: function(arg0) {
|
|
1297
|
+
const ret = getObject(arg0).ownerDocument;
|
|
1298
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1299
|
+
},
|
|
1269
1300
|
__wbg_parentElement_75863410a8617953: function(arg0) {
|
|
1270
1301
|
const ret = getObject(arg0).parentElement;
|
|
1271
1302
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
@@ -1405,6 +1436,9 @@ function __wbg_get_imports() {
|
|
|
1405
1436
|
__wbg_remove_31c39325eee968fc: function(arg0) {
|
|
1406
1437
|
getObject(arg0).remove();
|
|
1407
1438
|
},
|
|
1439
|
+
__wbg_remove_709cc703ee0ed9c0: function(arg0) {
|
|
1440
|
+
getObject(arg0).remove();
|
|
1441
|
+
},
|
|
1408
1442
|
__wbg_replaceState_aefa111958f68023: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1409
1443
|
getObject(arg0).replaceState(getObject(arg1), getStringFromWasm0(arg2, arg3), arg4 === 0 ? undefined : getStringFromWasm0(arg4, arg5));
|
|
1410
1444
|
}, arguments); },
|
|
@@ -1448,10 +1482,6 @@ function __wbg_get_imports() {
|
|
|
1448
1482
|
const ret = getObject(arg0).searchParams;
|
|
1449
1483
|
return addHeapObject(ret);
|
|
1450
1484
|
},
|
|
1451
|
-
__wbg_seekable_e347b03f455fec48: function(arg0) {
|
|
1452
|
-
const ret = getObject(arg0).seekable;
|
|
1453
|
-
return addHeapObject(ret);
|
|
1454
|
-
},
|
|
1455
1485
|
__wbg_seeking_e4a7824d32b2135e: function(arg0) {
|
|
1456
1486
|
const ret = getObject(arg0).seeking;
|
|
1457
1487
|
return ret;
|
|
@@ -1530,6 +1560,9 @@ function __wbg_get_imports() {
|
|
|
1530
1560
|
__wbg_set_defaultMuted_0914fbde28650af7: function(arg0, arg1) {
|
|
1531
1561
|
getObject(arg0).defaultMuted = arg1 !== 0;
|
|
1532
1562
|
},
|
|
1563
|
+
__wbg_set_disabled_c2ce9a8fc1036ff8: function(arg0, arg1) {
|
|
1564
|
+
getObject(arg0).disabled = arg1 !== 0;
|
|
1565
|
+
},
|
|
1533
1566
|
__wbg_set_f43e577aea94465b: function(arg0, arg1, arg2) {
|
|
1534
1567
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
1535
1568
|
},
|
|
@@ -1620,6 +1653,9 @@ function __wbg_get_imports() {
|
|
|
1620
1653
|
__wbg_set_value_62a965e38b22b38c: function(arg0, arg1, arg2) {
|
|
1621
1654
|
getObject(arg0).value = getStringFromWasm0(arg1, arg2);
|
|
1622
1655
|
},
|
|
1656
|
+
__wbg_set_value_c3556fce049236f0: function(arg0, arg1, arg2) {
|
|
1657
|
+
getObject(arg0).value = getStringFromWasm0(arg1, arg2);
|
|
1658
|
+
},
|
|
1623
1659
|
__wbg_set_volume_b333c7b50c44390f: function(arg0, arg1) {
|
|
1624
1660
|
getObject(arg0).volume = arg1;
|
|
1625
1661
|
},
|
|
@@ -1744,38 +1780,38 @@ function __wbg_get_imports() {
|
|
|
1744
1780
|
console.warn(getObject(arg0));
|
|
1745
1781
|
},
|
|
1746
1782
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1747
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1748
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1783
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 3, function: Function { arguments: [Externref, Externref], shim_idx: 26, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1784
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_576, __wasm_bindgen_func_elem_1361);
|
|
1749
1785
|
return addHeapObject(ret);
|
|
1750
1786
|
},
|
|
1751
1787
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1752
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1753
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1788
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 3, function: Function { arguments: [Externref], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1789
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_576, __wasm_bindgen_func_elem_3122);
|
|
1754
1790
|
return addHeapObject(ret);
|
|
1755
1791
|
},
|
|
1756
1792
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1757
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1758
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1793
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 3, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1794
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_576, __wasm_bindgen_func_elem_3122);
|
|
1759
1795
|
return addHeapObject(ret);
|
|
1760
1796
|
},
|
|
1761
1797
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1762
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1763
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1798
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 3, function: Function { arguments: [NamedExternref("Event")], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1799
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_576, __wasm_bindgen_func_elem_3122);
|
|
1764
1800
|
return addHeapObject(ret);
|
|
1765
1801
|
},
|
|
1766
1802
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
1767
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1768
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1803
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 3, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 28, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1804
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_576, __wasm_bindgen_func_elem_1363);
|
|
1769
1805
|
return addHeapObject(ret);
|
|
1770
1806
|
},
|
|
1771
1807
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
1772
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1773
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1808
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 3, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1809
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_576, __wasm_bindgen_func_elem_3122);
|
|
1774
1810
|
return addHeapObject(ret);
|
|
1775
1811
|
},
|
|
1776
1812
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
1777
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1778
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1813
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 3, function: Function { arguments: [], shim_idx: 91, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1814
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_576, __wasm_bindgen_func_elem_3115);
|
|
1779
1815
|
return addHeapObject(ret);
|
|
1780
1816
|
},
|
|
1781
1817
|
__wbindgen_cast_0000000000000008: function(arg0) {
|
|
@@ -1821,22 +1857,22 @@ function __wbg_get_imports() {
|
|
|
1821
1857
|
};
|
|
1822
1858
|
}
|
|
1823
1859
|
|
|
1824
|
-
function
|
|
1825
|
-
wasm.
|
|
1860
|
+
function __wasm_bindgen_func_elem_3115(arg0, arg1) {
|
|
1861
|
+
wasm.__wasm_bindgen_func_elem_3115(arg0, arg1);
|
|
1826
1862
|
}
|
|
1827
1863
|
|
|
1828
|
-
function
|
|
1829
|
-
wasm.
|
|
1864
|
+
function __wasm_bindgen_func_elem_3122(arg0, arg1, arg2) {
|
|
1865
|
+
wasm.__wasm_bindgen_func_elem_3122(arg0, arg1, addHeapObject(arg2));
|
|
1830
1866
|
}
|
|
1831
1867
|
|
|
1832
|
-
function
|
|
1833
|
-
wasm.
|
|
1868
|
+
function __wasm_bindgen_func_elem_1361(arg0, arg1, arg2, arg3) {
|
|
1869
|
+
wasm.__wasm_bindgen_func_elem_1361(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1834
1870
|
}
|
|
1835
1871
|
|
|
1836
|
-
function
|
|
1872
|
+
function __wasm_bindgen_func_elem_1363(arg0, arg1, arg2) {
|
|
1837
1873
|
try {
|
|
1838
1874
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1839
|
-
wasm.
|
|
1875
|
+
wasm.__wasm_bindgen_func_elem_1363(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1840
1876
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1841
1877
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1842
1878
|
if (r1) {
|
package/weeb_3_bg.wasm
CHANGED
|
Binary file
|
package/weeb_3_bg.wasm.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export const weeb3no103_logs: (a: number) => number;
|
|
|
14
14
|
export const weeb3no103_networkState: (a: number) => number;
|
|
15
15
|
export const weeb3no103_new: (a: number, b: number) => number;
|
|
16
16
|
export const weeb3no103_openSecureVault: (a: number) => number;
|
|
17
|
-
export const weeb3no103_postFeedBytes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
17
|
+
export const weeb3no103_postFeedBytes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
|
|
18
18
|
export const weeb3no103_postPushChunk: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
19
19
|
export const weeb3no103_postUploadBytes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
20
20
|
export const weeb3no103_postUploadBytesWithRedundancy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
|
|
@@ -28,18 +28,18 @@ export const weeb3no103_retrieveChunk: (a: number, b: number, c: number) => numb
|
|
|
28
28
|
export const weeb3no103_start: (a: number, b: number) => void;
|
|
29
29
|
export const weeb3no103_switchNetwork: (a: number, b: number, c: number) => number;
|
|
30
30
|
export const weeb3no103_upload: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
31
|
-
export const weeb3no103_uploadWithRedundancy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
31
|
+
export const weeb3no103_uploadWithRedundancy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
|
|
32
32
|
export const weeb3workerruntime_handleMessage: (a: number, b: number) => number;
|
|
33
33
|
export const weeb3workerruntime_new: () => number;
|
|
34
34
|
export const weeb3workerruntime_start: (a: number, b: number) => number;
|
|
35
35
|
export const __wbg_requestarguments_free: (a: number, b: number) => void;
|
|
36
36
|
export const requestarguments_method: (a: number, b: number) => void;
|
|
37
37
|
export const requestarguments_params: (a: number) => number;
|
|
38
|
-
export const
|
|
39
|
-
export const
|
|
40
|
-
export const
|
|
41
|
-
export const
|
|
42
|
-
export const
|
|
38
|
+
export const __wasm_bindgen_func_elem_576: (a: number, b: number) => void;
|
|
39
|
+
export const __wasm_bindgen_func_elem_1361: (a: number, b: number, c: number, d: number) => void;
|
|
40
|
+
export const __wasm_bindgen_func_elem_1363: (a: number, b: number, c: number, d: number) => void;
|
|
41
|
+
export const __wasm_bindgen_func_elem_3122: (a: number, b: number, c: number) => void;
|
|
42
|
+
export const __wasm_bindgen_func_elem_3115: (a: number, b: number) => void;
|
|
43
43
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
44
44
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
45
45
|
export const __wbindgen_export3: (a: number) => void;
|