@lat-murmeldjur/weeb_3 0.0.345001 → 0.0.346001
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 -23
- 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_572: (a: number, b: number) => void;
|
|
106
|
+
readonly __wasm_bindgen_func_elem_1357: (a: number, b: number, c: number, d: number) => void;
|
|
107
|
+
readonly __wasm_bindgen_func_elem_1359: (a: number, b: number, c: number, d: number) => void;
|
|
108
|
+
readonly __wasm_bindgen_func_elem_3118: (a: number, b: number, c: number) => void;
|
|
109
|
+
readonly __wasm_bindgen_func_elem_3111: (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
|
},
|
|
@@ -773,6 +792,10 @@ function __wbg_get_imports() {
|
|
|
773
792
|
const ret = getObject(arg0).hidden;
|
|
774
793
|
return ret;
|
|
775
794
|
},
|
|
795
|
+
__wbg_hidden_b36aafe2d1776c90: function(arg0) {
|
|
796
|
+
const ret = getObject(arg0).hidden;
|
|
797
|
+
return ret;
|
|
798
|
+
},
|
|
776
799
|
__wbg_history_d6c2f9abc6e74880: function() { return handleError(function (arg0) {
|
|
777
800
|
const ret = getObject(arg0).history;
|
|
778
801
|
return addHeapObject(ret);
|
|
@@ -803,6 +826,10 @@ function __wbg_get_imports() {
|
|
|
803
826
|
const ret = getObject(arg0).indexedDB;
|
|
804
827
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
805
828
|
}, arguments); },
|
|
829
|
+
__wbg_insertBefore_1468142836e61a51: function() { return handleError(function (arg0, arg1, arg2) {
|
|
830
|
+
const ret = getObject(arg0).insertBefore(getObject(arg1), getObject(arg2));
|
|
831
|
+
return addHeapObject(ret);
|
|
832
|
+
}, arguments); },
|
|
806
833
|
__wbg_installing_860506570e3bb33d: function(arg0) {
|
|
807
834
|
const ret = getObject(arg0).installing;
|
|
808
835
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
@@ -1151,7 +1178,7 @@ function __wbg_get_imports() {
|
|
|
1151
1178
|
const a = state0.a;
|
|
1152
1179
|
state0.a = 0;
|
|
1153
1180
|
try {
|
|
1154
|
-
return
|
|
1181
|
+
return __wasm_bindgen_func_elem_1357(a, state0.b, arg0, arg1);
|
|
1155
1182
|
} finally {
|
|
1156
1183
|
state0.a = a;
|
|
1157
1184
|
}
|
|
@@ -1206,6 +1233,10 @@ function __wbg_get_imports() {
|
|
|
1206
1233
|
const ret = new SharedWorker(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
1207
1234
|
return addHeapObject(ret);
|
|
1208
1235
|
}, arguments); },
|
|
1236
|
+
__wbg_nextSibling_2e988d9bbe3e06f0: function(arg0) {
|
|
1237
|
+
const ret = getObject(arg0).nextSibling;
|
|
1238
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1239
|
+
},
|
|
1209
1240
|
__wbg_next_3482f54c49e8af19: function() { return handleError(function (arg0) {
|
|
1210
1241
|
const ret = getObject(arg0).next();
|
|
1211
1242
|
return addHeapObject(ret);
|
|
@@ -1266,6 +1297,10 @@ function __wbg_get_imports() {
|
|
|
1266
1297
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1267
1298
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1268
1299
|
}, arguments); },
|
|
1300
|
+
__wbg_ownerDocument_9347874c5cad87d7: function(arg0) {
|
|
1301
|
+
const ret = getObject(arg0).ownerDocument;
|
|
1302
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1303
|
+
},
|
|
1269
1304
|
__wbg_parentElement_75863410a8617953: function(arg0) {
|
|
1270
1305
|
const ret = getObject(arg0).parentElement;
|
|
1271
1306
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
@@ -1405,6 +1440,9 @@ function __wbg_get_imports() {
|
|
|
1405
1440
|
__wbg_remove_31c39325eee968fc: function(arg0) {
|
|
1406
1441
|
getObject(arg0).remove();
|
|
1407
1442
|
},
|
|
1443
|
+
__wbg_remove_709cc703ee0ed9c0: function(arg0) {
|
|
1444
|
+
getObject(arg0).remove();
|
|
1445
|
+
},
|
|
1408
1446
|
__wbg_replaceState_aefa111958f68023: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1409
1447
|
getObject(arg0).replaceState(getObject(arg1), getStringFromWasm0(arg2, arg3), arg4 === 0 ? undefined : getStringFromWasm0(arg4, arg5));
|
|
1410
1448
|
}, arguments); },
|
|
@@ -1530,6 +1568,9 @@ function __wbg_get_imports() {
|
|
|
1530
1568
|
__wbg_set_defaultMuted_0914fbde28650af7: function(arg0, arg1) {
|
|
1531
1569
|
getObject(arg0).defaultMuted = arg1 !== 0;
|
|
1532
1570
|
},
|
|
1571
|
+
__wbg_set_disabled_c2ce9a8fc1036ff8: function(arg0, arg1) {
|
|
1572
|
+
getObject(arg0).disabled = arg1 !== 0;
|
|
1573
|
+
},
|
|
1533
1574
|
__wbg_set_f43e577aea94465b: function(arg0, arg1, arg2) {
|
|
1534
1575
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
1535
1576
|
},
|
|
@@ -1620,6 +1661,9 @@ function __wbg_get_imports() {
|
|
|
1620
1661
|
__wbg_set_value_62a965e38b22b38c: function(arg0, arg1, arg2) {
|
|
1621
1662
|
getObject(arg0).value = getStringFromWasm0(arg1, arg2);
|
|
1622
1663
|
},
|
|
1664
|
+
__wbg_set_value_c3556fce049236f0: function(arg0, arg1, arg2) {
|
|
1665
|
+
getObject(arg0).value = getStringFromWasm0(arg1, arg2);
|
|
1666
|
+
},
|
|
1623
1667
|
__wbg_set_volume_b333c7b50c44390f: function(arg0, arg1) {
|
|
1624
1668
|
getObject(arg0).volume = arg1;
|
|
1625
1669
|
},
|
|
@@ -1744,38 +1788,38 @@ function __wbg_get_imports() {
|
|
|
1744
1788
|
console.warn(getObject(arg0));
|
|
1745
1789
|
},
|
|
1746
1790
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1747
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 2, function: Function { arguments: [Externref, Externref], shim_idx:
|
|
1748
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1791
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2, function: Function { arguments: [Externref, Externref], shim_idx: 26, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1792
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_572, __wasm_bindgen_func_elem_1357);
|
|
1749
1793
|
return addHeapObject(ret);
|
|
1750
1794
|
},
|
|
1751
1795
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1752
1796
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 2, function: Function { arguments: [Externref], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1753
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1797
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_572, __wasm_bindgen_func_elem_3118);
|
|
1754
1798
|
return addHeapObject(ret);
|
|
1755
1799
|
},
|
|
1756
1800
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1757
1801
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 2, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1758
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1802
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_572, __wasm_bindgen_func_elem_3118);
|
|
1759
1803
|
return addHeapObject(ret);
|
|
1760
1804
|
},
|
|
1761
1805
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1762
1806
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 2, function: Function { arguments: [NamedExternref("Event")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1763
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1807
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_572, __wasm_bindgen_func_elem_3118);
|
|
1764
1808
|
return addHeapObject(ret);
|
|
1765
1809
|
},
|
|
1766
1810
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
1767
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 2, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx:
|
|
1768
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1811
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 28, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1812
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_572, __wasm_bindgen_func_elem_1359);
|
|
1769
1813
|
return addHeapObject(ret);
|
|
1770
1814
|
},
|
|
1771
1815
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
1772
1816
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 2, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1773
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1817
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_572, __wasm_bindgen_func_elem_3118);
|
|
1774
1818
|
return addHeapObject(ret);
|
|
1775
1819
|
},
|
|
1776
1820
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
1777
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 2, function: Function { arguments: [], shim_idx:
|
|
1778
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1821
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2, function: Function { arguments: [], shim_idx: 91, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1822
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_572, __wasm_bindgen_func_elem_3111);
|
|
1779
1823
|
return addHeapObject(ret);
|
|
1780
1824
|
},
|
|
1781
1825
|
__wbindgen_cast_0000000000000008: function(arg0) {
|
|
@@ -1821,22 +1865,22 @@ function __wbg_get_imports() {
|
|
|
1821
1865
|
};
|
|
1822
1866
|
}
|
|
1823
1867
|
|
|
1824
|
-
function
|
|
1825
|
-
wasm.
|
|
1868
|
+
function __wasm_bindgen_func_elem_3111(arg0, arg1) {
|
|
1869
|
+
wasm.__wasm_bindgen_func_elem_3111(arg0, arg1);
|
|
1826
1870
|
}
|
|
1827
1871
|
|
|
1828
|
-
function
|
|
1829
|
-
wasm.
|
|
1872
|
+
function __wasm_bindgen_func_elem_3118(arg0, arg1, arg2) {
|
|
1873
|
+
wasm.__wasm_bindgen_func_elem_3118(arg0, arg1, addHeapObject(arg2));
|
|
1830
1874
|
}
|
|
1831
1875
|
|
|
1832
|
-
function
|
|
1833
|
-
wasm.
|
|
1876
|
+
function __wasm_bindgen_func_elem_1357(arg0, arg1, arg2, arg3) {
|
|
1877
|
+
wasm.__wasm_bindgen_func_elem_1357(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1834
1878
|
}
|
|
1835
1879
|
|
|
1836
|
-
function
|
|
1880
|
+
function __wasm_bindgen_func_elem_1359(arg0, arg1, arg2) {
|
|
1837
1881
|
try {
|
|
1838
1882
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1839
|
-
wasm.
|
|
1883
|
+
wasm.__wasm_bindgen_func_elem_1359(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1840
1884
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1841
1885
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1842
1886
|
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_572: (a: number, b: number) => void;
|
|
39
|
+
export const __wasm_bindgen_func_elem_1357: (a: number, b: number, c: number, d: number) => void;
|
|
40
|
+
export const __wasm_bindgen_func_elem_1359: (a: number, b: number, c: number, d: number) => void;
|
|
41
|
+
export const __wasm_bindgen_func_elem_3118: (a: number, b: number, c: number) => void;
|
|
42
|
+
export const __wasm_bindgen_func_elem_3111: (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;
|