@lat-murmeldjur/weeb_3 0.0.313001 → 0.0.316001

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 CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@lat-murmeldjur/weeb_3",
3
3
  "type": "module",
4
4
  "description": "A Swarm client for browsers",
5
- "version": "0.0.313001",
5
+ "version": "0.0.316001",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
package/weeb_3.d.ts CHANGED
@@ -22,16 +22,21 @@ export class Weeb3 {
22
22
  free(): void;
23
23
  [Symbol.dispose](): void;
24
24
  acquire(address: string): Promise<Uint8Array>;
25
+ acquire_feed(owner: string, topic: string): Promise<Uint8Array>;
25
26
  change_bootnode_address(address: string, _id: string, usable_in_protocols: boolean): Promise<Uint8Array>;
26
27
  get_connections(): Promise<bigint>;
27
28
  get_current_logs(): Promise<string[]>;
29
+ get_network_id(): Promise<bigint>;
28
30
  get_ongoing_connections(): Promise<bigint>;
29
31
  interface_log(log0: string): void;
30
32
  static new(_st: string): Weeb3;
31
33
  post_push_chunk(d: Uint8Array, soc: boolean, chunk_address: Uint8Array, stamp: Uint8Array): Promise<Uint8Array>;
32
34
  post_upload(file: File, encryption: boolean, index_string: string, add_to_feed: boolean, feed_topic: string): Promise<Uint8Array>;
33
35
  reset_stamp(): Promise<Uint8Array>;
36
+ retrieve_bytes(address: string): Promise<Uint8Array>;
37
+ retrieve_chunk_bytes(address: string): Promise<Uint8Array>;
34
38
  run(_st: string): Promise<void>;
39
+ set_network_id(id: string): Promise<boolean>;
35
40
  toggle_transfer_pause(): Promise<boolean>;
36
41
  transfer_paused(): boolean;
37
42
  }
@@ -39,12 +44,58 @@ export class Weeb3 {
39
44
  export class Weeb3No103 {
40
45
  free(): void;
41
46
  [Symbol.dispose](): void;
47
+ acquireFeed(owner: string, topic: string): Promise<object>;
48
+ acquireFeedBytes(owner: string, topic: string): Promise<object>;
49
+ acquire_feed(owner: string, topic: string): Promise<object>;
50
+ acquire_feed_bytes(owner: string, topic: string): Promise<object>;
51
+ batchState(depth: number, validity_days: number): Promise<object>;
52
+ batch_state(depth: number, validity_days: number): Promise<object>;
53
+ buyBatch(depth: number, validity_days: number): Promise<object>;
54
+ buy_batch(depth: number, validity_days: number): Promise<object>;
55
+ connect(): Promise<object>;
56
+ connectProfile(mode: string): Promise<object>;
57
+ connect_profile(mode: string): Promise<object>;
58
+ deployChequebook(): Promise<object>;
59
+ deploy_chequebook(): Promise<object>;
60
+ depositChequebook(amount: string): Promise<object>;
61
+ deposit_chequebook(amount: string): Promise<object>;
62
+ feedIdentity(topic: string): Promise<object>;
63
+ feedOwner(): Promise<object>;
64
+ feedTopic(topic: string): object;
65
+ feed_identity(topic: string): Promise<object>;
66
+ feed_owner(): Promise<object>;
67
+ feed_topic(topic: string): object;
68
+ logs(): Promise<Array<any>>;
69
+ networkState(): Promise<object>;
70
+ network_state(): Promise<object>;
42
71
  constructor();
72
+ postFeedBytes(topic: string, bytes: Uint8Array, mime: string, filename: string, encryption: boolean): Promise<object>;
43
73
  postPushChunk(data: Uint8Array, soc: boolean, chunk_address: Uint8Array, stamp: Uint8Array): Promise<string>;
74
+ postUploadBytes(bytes: Uint8Array, mime: string, filename: string, encryption: boolean, add_to_feed: boolean, feed_topic: string): Promise<object>;
75
+ post_feed_bytes(topic: string, bytes: Uint8Array, mime: string, filename: string, encryption: boolean): Promise<object>;
76
+ post_push_chunk(data: Uint8Array, soc: boolean, chunk_address: Uint8Array, stamp: Uint8Array): Promise<string>;
77
+ post_upload(file: File, encryption: boolean, index_string: string, add_to_feed: boolean, feed_topic: string): Promise<object>;
78
+ post_upload_bytes(bytes: Uint8Array, mime: string, filename: string, encryption: boolean, add_to_feed: boolean, feed_topic: string): Promise<object>;
79
+ progressSnapshot(seen_revision: number): Promise<object>;
80
+ progress_snapshot(seen_revision: number): Promise<object>;
81
+ ready(min_connections: number, timeout_ms: number): Promise<boolean>;
82
+ readyState(min_connections: number, timeout_ms: number): Promise<object>;
83
+ ready_state(min_connections: number, timeout_ms: number): Promise<object>;
84
+ renderInterface(container: Element): object;
85
+ render_interface(container: Element): object;
44
86
  resetStamp(): Promise<object>;
87
+ reset_stamp(): Promise<object>;
45
88
  retrieve(address: string): Promise<Array<any>>;
89
+ retrieveBytes(address: string): Promise<Uint8Array>;
90
+ retrieveChunk(address: string): Promise<Uint8Array>;
91
+ retrieve_bytes(address: string): Promise<Uint8Array>;
92
+ retrieve_chunk(address: string): Promise<Uint8Array>;
46
93
  start(bootstrap_nodes: BootstrapNode[], network_id: string): void;
94
+ switchNetwork(mode: string): Promise<object>;
95
+ switch_network(mode: string): Promise<object>;
47
96
  upload(file: File, encryption: boolean, index_string: string, add_to_feed: boolean, feed_topic: string): Promise<object>;
97
+ uploadPrerequisites(depth: number, validity_days: number): Promise<object>;
98
+ upload_prerequisites(depth: number, validity_days: number): Promise<object>;
48
99
  }
49
100
 
50
101
  export class Wings {
@@ -67,39 +118,90 @@ export interface InitOutput {
67
118
  readonly bootstrapnode_new: (a: number, b: number, c: number) => number;
68
119
  readonly bootstrapnode_usable: (a: number) => number;
69
120
  readonly weeb3_acquire: (a: number, b: number, c: number) => any;
121
+ readonly weeb3_acquire_feed: (a: number, b: number, c: number, d: number, e: number) => any;
70
122
  readonly weeb3_change_bootnode_address: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
71
123
  readonly weeb3_get_connections: (a: number) => any;
72
124
  readonly weeb3_get_current_logs: (a: number) => any;
125
+ readonly weeb3_get_network_id: (a: number) => any;
73
126
  readonly weeb3_get_ongoing_connections: (a: number) => any;
74
127
  readonly weeb3_interface_log: (a: number, b: number, c: number) => void;
75
128
  readonly weeb3_new: (a: number, b: number) => number;
76
129
  readonly weeb3_post_push_chunk: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
77
130
  readonly weeb3_post_upload: (a: number, b: any, c: number, d: number, e: number, f: number, g: number, h: number) => any;
78
131
  readonly weeb3_reset_stamp: (a: number) => any;
132
+ readonly weeb3_retrieve_bytes: (a: number, b: number, c: number) => any;
133
+ readonly weeb3_retrieve_chunk_bytes: (a: number, b: number, c: number) => any;
79
134
  readonly weeb3_run: (a: number, b: number, c: number) => any;
135
+ readonly weeb3_set_network_id: (a: number, b: number, c: number) => any;
80
136
  readonly weeb3_toggle_transfer_pause: (a: number) => any;
81
137
  readonly weeb3_transfer_paused: (a: number) => number;
138
+ readonly weeb3no103_acquireFeed: (a: number, b: number, c: number, d: number, e: number) => any;
139
+ readonly weeb3no103_acquireFeedBytes: (a: number, b: number, c: number, d: number, e: number) => any;
140
+ readonly weeb3no103_acquire_feed: (a: number, b: number, c: number, d: number, e: number) => any;
141
+ readonly weeb3no103_acquire_feed_bytes: (a: number, b: number, c: number, d: number, e: number) => any;
142
+ readonly weeb3no103_batchState: (a: number, b: number, c: number) => any;
143
+ readonly weeb3no103_batch_state: (a: number, b: number, c: number) => any;
144
+ readonly weeb3no103_buyBatch: (a: number, b: number, c: number) => any;
145
+ readonly weeb3no103_buy_batch: (a: number, b: number, c: number) => any;
146
+ readonly weeb3no103_connect: (a: number) => any;
147
+ readonly weeb3no103_connectProfile: (a: number, b: number, c: number) => any;
148
+ readonly weeb3no103_connect_profile: (a: number, b: number, c: number) => any;
149
+ readonly weeb3no103_deployChequebook: (a: number) => any;
150
+ readonly weeb3no103_deploy_chequebook: (a: number) => any;
151
+ readonly weeb3no103_depositChequebook: (a: number, b: number, c: number) => any;
152
+ readonly weeb3no103_deposit_chequebook: (a: number, b: number, c: number) => any;
153
+ readonly weeb3no103_feedIdentity: (a: number, b: number, c: number) => any;
154
+ readonly weeb3no103_feedOwner: (a: number) => any;
155
+ readonly weeb3no103_feedTopic: (a: number, b: number, c: number) => any;
156
+ readonly weeb3no103_feed_identity: (a: number, b: number, c: number) => any;
157
+ readonly weeb3no103_feed_owner: (a: number) => any;
158
+ readonly weeb3no103_logs: (a: number) => any;
159
+ readonly weeb3no103_networkState: (a: number) => any;
160
+ readonly weeb3no103_network_state: (a: number) => any;
82
161
  readonly weeb3no103_new: () => number;
162
+ readonly weeb3no103_postFeedBytes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => any;
83
163
  readonly weeb3no103_postPushChunk: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
164
+ readonly weeb3no103_postUploadBytes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => any;
165
+ readonly weeb3no103_post_feed_bytes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => any;
166
+ readonly weeb3no103_post_push_chunk: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
167
+ readonly weeb3no103_post_upload: (a: number, b: any, c: number, d: number, e: number, f: number, g: number, h: number) => any;
168
+ readonly weeb3no103_post_upload_bytes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => any;
169
+ readonly weeb3no103_progressSnapshot: (a: number, b: number) => any;
170
+ readonly weeb3no103_progress_snapshot: (a: number, b: number) => any;
171
+ readonly weeb3no103_ready: (a: number, b: number, c: number) => any;
172
+ readonly weeb3no103_readyState: (a: number, b: number, c: number) => any;
173
+ readonly weeb3no103_ready_state: (a: number, b: number, c: number) => any;
174
+ readonly weeb3no103_renderInterface: (a: number, b: any) => any;
84
175
  readonly weeb3no103_resetStamp: (a: number) => any;
176
+ readonly weeb3no103_reset_stamp: (a: number) => any;
85
177
  readonly weeb3no103_retrieve: (a: number, b: number, c: number) => any;
178
+ readonly weeb3no103_retrieveBytes: (a: number, b: number, c: number) => any;
179
+ readonly weeb3no103_retrieveChunk: (a: number, b: number, c: number) => any;
180
+ readonly weeb3no103_retrieve_bytes: (a: number, b: number, c: number) => any;
181
+ readonly weeb3no103_retrieve_chunk: (a: number, b: number, c: number) => any;
86
182
  readonly weeb3no103_start: (a: number, b: number, c: number, d: number, e: number) => void;
183
+ readonly weeb3no103_switchNetwork: (a: number, b: number, c: number) => any;
184
+ readonly weeb3no103_switch_network: (a: number, b: number, c: number) => any;
87
185
  readonly weeb3no103_upload: (a: number, b: any, c: number, d: number, e: number, f: number, g: number, h: number) => any;
186
+ readonly weeb3no103_uploadPrerequisites: (a: number, b: number, c: number) => any;
187
+ readonly weeb3no103_upload_prerequisites: (a: number, b: number, c: number) => any;
188
+ readonly weeb3no103_feed_topic: (a: number, b: number, c: number) => any;
189
+ readonly weeb3no103_render_interface: (a: number, b: any) => any;
88
190
  readonly interweeb: (a: number, b: number) => any;
89
191
  readonly __wbg_requestarguments_free: (a: number, b: number) => void;
90
192
  readonly requestarguments_method: (a: number) => [number, number];
91
193
  readonly requestarguments_params: (a: number) => any;
92
- readonly wasm_bindgen__convert__closures_____invoke__hd82595f4c48afdc7: (a: number, b: number, c: any) => [number, number];
93
- readonly wasm_bindgen__convert__closures_____invoke__hf403b08213ba7389: (a: number, b: number, c: any) => [number, number];
94
- readonly wasm_bindgen__convert__closures_____invoke__h4f88e1c07117e8f4: (a: number, b: number, c: any, d: any) => void;
95
- readonly wasm_bindgen__convert__closures_____invoke__h84e2162617b1b93e: (a: number, b: number, c: any) => void;
96
- readonly wasm_bindgen__convert__closures_____invoke__h0081445fefd19e6c: (a: number, b: number, c: any) => void;
97
- readonly wasm_bindgen__convert__closures_____invoke__h99a0680556c8e399: (a: number, b: number, c: any) => void;
98
- readonly wasm_bindgen__convert__closures_____invoke__h0081445fefd19e6c_4: (a: number, b: number, c: any) => void;
99
- readonly wasm_bindgen__convert__closures_____invoke__h0081445fefd19e6c_6: (a: number, b: number, c: any) => void;
100
- readonly wasm_bindgen__convert__closures_____invoke__hb24b589f77a60686: (a: number, b: number) => void;
101
- readonly wasm_bindgen__convert__closures_____invoke__h041cbe7ee63fea15: (a: number, b: number) => void;
102
- readonly wasm_bindgen__convert__closures_____invoke__h398c19fd12b98915: (a: number, b: number) => void;
194
+ readonly wasm_bindgen__convert__closures_____invoke__h39453673aeb618ab: (a: number, b: number, c: any) => [number, number];
195
+ readonly wasm_bindgen__convert__closures_____invoke__h380c4e5ad668e007: (a: number, b: number, c: any) => [number, number];
196
+ readonly wasm_bindgen__convert__closures_____invoke__h38bb2d7626f4cfa1: (a: number, b: number, c: any, d: any) => void;
197
+ readonly wasm_bindgen__convert__closures_____invoke__hff68d30d9ca887d6: (a: number, b: number, c: any) => void;
198
+ readonly wasm_bindgen__convert__closures_____invoke__h24b02f9c177e71f4: (a: number, b: number, c: any) => void;
199
+ readonly wasm_bindgen__convert__closures_____invoke__h7595764d8075eff9: (a: number, b: number, c: any) => void;
200
+ readonly wasm_bindgen__convert__closures_____invoke__h24b02f9c177e71f4_4: (a: number, b: number, c: any) => void;
201
+ readonly wasm_bindgen__convert__closures_____invoke__h24b02f9c177e71f4_6: (a: number, b: number, c: any) => void;
202
+ readonly wasm_bindgen__convert__closures_____invoke__h096c301d37cdbb45: (a: number, b: number) => void;
203
+ readonly wasm_bindgen__convert__closures_____invoke__h6f4ab657709ae694: (a: number, b: number) => void;
204
+ readonly wasm_bindgen__convert__closures_____invoke__hbc64d0ffa7547e63: (a: number, b: number) => void;
103
205
  readonly __wbindgen_malloc: (a: number, b: number) => number;
104
206
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
105
207
  readonly __wbindgen_exn_store: (a: number) => void;
package/weeb_3.js CHANGED
@@ -125,6 +125,19 @@ export class Weeb3 {
125
125
  const ret = wasm.weeb3_acquire(this.__wbg_ptr, ptr0, len0);
126
126
  return ret;
127
127
  }
128
+ /**
129
+ * @param {string} owner
130
+ * @param {string} topic
131
+ * @returns {Promise<Uint8Array>}
132
+ */
133
+ acquire_feed(owner, topic) {
134
+ const ptr0 = passStringToWasm0(owner, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
135
+ const len0 = WASM_VECTOR_LEN;
136
+ const ptr1 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
137
+ const len1 = WASM_VECTOR_LEN;
138
+ const ret = wasm.weeb3_acquire_feed(this.__wbg_ptr, ptr0, len0, ptr1, len1);
139
+ return ret;
140
+ }
128
141
  /**
129
142
  * @param {string} address
130
143
  * @param {string} _id
@@ -153,6 +166,13 @@ export class Weeb3 {
153
166
  const ret = wasm.weeb3_get_current_logs(this.__wbg_ptr);
154
167
  return ret;
155
168
  }
169
+ /**
170
+ * @returns {Promise<bigint>}
171
+ */
172
+ get_network_id() {
173
+ const ret = wasm.weeb3_get_network_id(this.__wbg_ptr);
174
+ return ret;
175
+ }
156
176
  /**
157
177
  * @returns {Promise<bigint>}
158
178
  */
@@ -218,6 +238,26 @@ export class Weeb3 {
218
238
  const ret = wasm.weeb3_reset_stamp(this.__wbg_ptr);
219
239
  return ret;
220
240
  }
241
+ /**
242
+ * @param {string} address
243
+ * @returns {Promise<Uint8Array>}
244
+ */
245
+ retrieve_bytes(address) {
246
+ const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
247
+ const len0 = WASM_VECTOR_LEN;
248
+ const ret = wasm.weeb3_retrieve_bytes(this.__wbg_ptr, ptr0, len0);
249
+ return ret;
250
+ }
251
+ /**
252
+ * @param {string} address
253
+ * @returns {Promise<Uint8Array>}
254
+ */
255
+ retrieve_chunk_bytes(address) {
256
+ const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
257
+ const len0 = WASM_VECTOR_LEN;
258
+ const ret = wasm.weeb3_retrieve_chunk_bytes(this.__wbg_ptr, ptr0, len0);
259
+ return ret;
260
+ }
221
261
  /**
222
262
  * @param {string} _st
223
263
  * @returns {Promise<void>}
@@ -228,6 +268,16 @@ export class Weeb3 {
228
268
  const ret = wasm.weeb3_run(this.__wbg_ptr, ptr0, len0);
229
269
  return ret;
230
270
  }
271
+ /**
272
+ * @param {string} id
273
+ * @returns {Promise<boolean>}
274
+ */
275
+ set_network_id(id) {
276
+ const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
277
+ const len0 = WASM_VECTOR_LEN;
278
+ const ret = wasm.weeb3_set_network_id(this.__wbg_ptr, ptr0, len0);
279
+ return ret;
280
+ }
231
281
  /**
232
282
  * @returns {Promise<boolean>}
233
283
  */
@@ -256,12 +306,256 @@ export class Weeb3No103 {
256
306
  const ptr = this.__destroy_into_raw();
257
307
  wasm.__wbg_weeb3no103_free(ptr, 0);
258
308
  }
309
+ /**
310
+ * @param {string} owner
311
+ * @param {string} topic
312
+ * @returns {Promise<object>}
313
+ */
314
+ acquireFeed(owner, topic) {
315
+ const ptr0 = passStringToWasm0(owner, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
316
+ const len0 = WASM_VECTOR_LEN;
317
+ const ptr1 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
318
+ const len1 = WASM_VECTOR_LEN;
319
+ const ret = wasm.weeb3no103_acquireFeed(this.__wbg_ptr, ptr0, len0, ptr1, len1);
320
+ return ret;
321
+ }
322
+ /**
323
+ * @param {string} owner
324
+ * @param {string} topic
325
+ * @returns {Promise<object>}
326
+ */
327
+ acquireFeedBytes(owner, topic) {
328
+ const ptr0 = passStringToWasm0(owner, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
329
+ const len0 = WASM_VECTOR_LEN;
330
+ const ptr1 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
331
+ const len1 = WASM_VECTOR_LEN;
332
+ const ret = wasm.weeb3no103_acquireFeedBytes(this.__wbg_ptr, ptr0, len0, ptr1, len1);
333
+ return ret;
334
+ }
335
+ /**
336
+ * @param {string} owner
337
+ * @param {string} topic
338
+ * @returns {Promise<object>}
339
+ */
340
+ acquire_feed(owner, topic) {
341
+ const ptr0 = passStringToWasm0(owner, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
342
+ const len0 = WASM_VECTOR_LEN;
343
+ const ptr1 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
344
+ const len1 = WASM_VECTOR_LEN;
345
+ const ret = wasm.weeb3no103_acquire_feed(this.__wbg_ptr, ptr0, len0, ptr1, len1);
346
+ return ret;
347
+ }
348
+ /**
349
+ * @param {string} owner
350
+ * @param {string} topic
351
+ * @returns {Promise<object>}
352
+ */
353
+ acquire_feed_bytes(owner, topic) {
354
+ const ptr0 = passStringToWasm0(owner, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
355
+ const len0 = WASM_VECTOR_LEN;
356
+ const ptr1 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
357
+ const len1 = WASM_VECTOR_LEN;
358
+ const ret = wasm.weeb3no103_acquire_feed_bytes(this.__wbg_ptr, ptr0, len0, ptr1, len1);
359
+ return ret;
360
+ }
361
+ /**
362
+ * @param {number} depth
363
+ * @param {number} validity_days
364
+ * @returns {Promise<object>}
365
+ */
366
+ batchState(depth, validity_days) {
367
+ const ret = wasm.weeb3no103_batchState(this.__wbg_ptr, depth, validity_days);
368
+ return ret;
369
+ }
370
+ /**
371
+ * @param {number} depth
372
+ * @param {number} validity_days
373
+ * @returns {Promise<object>}
374
+ */
375
+ batch_state(depth, validity_days) {
376
+ const ret = wasm.weeb3no103_batch_state(this.__wbg_ptr, depth, validity_days);
377
+ return ret;
378
+ }
379
+ /**
380
+ * @param {number} depth
381
+ * @param {number} validity_days
382
+ * @returns {Promise<object>}
383
+ */
384
+ buyBatch(depth, validity_days) {
385
+ const ret = wasm.weeb3no103_buyBatch(this.__wbg_ptr, depth, validity_days);
386
+ return ret;
387
+ }
388
+ /**
389
+ * @param {number} depth
390
+ * @param {number} validity_days
391
+ * @returns {Promise<object>}
392
+ */
393
+ buy_batch(depth, validity_days) {
394
+ const ret = wasm.weeb3no103_buy_batch(this.__wbg_ptr, depth, validity_days);
395
+ return ret;
396
+ }
397
+ /**
398
+ * @returns {Promise<object>}
399
+ */
400
+ connect() {
401
+ const ret = wasm.weeb3no103_connect(this.__wbg_ptr);
402
+ return ret;
403
+ }
404
+ /**
405
+ * @param {string} mode
406
+ * @returns {Promise<object>}
407
+ */
408
+ connectProfile(mode) {
409
+ const ptr0 = passStringToWasm0(mode, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
410
+ const len0 = WASM_VECTOR_LEN;
411
+ const ret = wasm.weeb3no103_connectProfile(this.__wbg_ptr, ptr0, len0);
412
+ return ret;
413
+ }
414
+ /**
415
+ * @param {string} mode
416
+ * @returns {Promise<object>}
417
+ */
418
+ connect_profile(mode) {
419
+ const ptr0 = passStringToWasm0(mode, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
420
+ const len0 = WASM_VECTOR_LEN;
421
+ const ret = wasm.weeb3no103_connect_profile(this.__wbg_ptr, ptr0, len0);
422
+ return ret;
423
+ }
424
+ /**
425
+ * @returns {Promise<object>}
426
+ */
427
+ deployChequebook() {
428
+ const ret = wasm.weeb3no103_deployChequebook(this.__wbg_ptr);
429
+ return ret;
430
+ }
431
+ /**
432
+ * @returns {Promise<object>}
433
+ */
434
+ deploy_chequebook() {
435
+ const ret = wasm.weeb3no103_deploy_chequebook(this.__wbg_ptr);
436
+ return ret;
437
+ }
438
+ /**
439
+ * @param {string} amount
440
+ * @returns {Promise<object>}
441
+ */
442
+ depositChequebook(amount) {
443
+ const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
444
+ const len0 = WASM_VECTOR_LEN;
445
+ const ret = wasm.weeb3no103_depositChequebook(this.__wbg_ptr, ptr0, len0);
446
+ return ret;
447
+ }
448
+ /**
449
+ * @param {string} amount
450
+ * @returns {Promise<object>}
451
+ */
452
+ deposit_chequebook(amount) {
453
+ const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
454
+ const len0 = WASM_VECTOR_LEN;
455
+ const ret = wasm.weeb3no103_deposit_chequebook(this.__wbg_ptr, ptr0, len0);
456
+ return ret;
457
+ }
458
+ /**
459
+ * @param {string} topic
460
+ * @returns {Promise<object>}
461
+ */
462
+ feedIdentity(topic) {
463
+ const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
464
+ const len0 = WASM_VECTOR_LEN;
465
+ const ret = wasm.weeb3no103_feedIdentity(this.__wbg_ptr, ptr0, len0);
466
+ return ret;
467
+ }
468
+ /**
469
+ * @returns {Promise<object>}
470
+ */
471
+ feedOwner() {
472
+ const ret = wasm.weeb3no103_feedOwner(this.__wbg_ptr);
473
+ return ret;
474
+ }
475
+ /**
476
+ * @param {string} topic
477
+ * @returns {object}
478
+ */
479
+ feedTopic(topic) {
480
+ const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
481
+ const len0 = WASM_VECTOR_LEN;
482
+ const ret = wasm.weeb3no103_feedTopic(this.__wbg_ptr, ptr0, len0);
483
+ return ret;
484
+ }
485
+ /**
486
+ * @param {string} topic
487
+ * @returns {Promise<object>}
488
+ */
489
+ feed_identity(topic) {
490
+ const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
491
+ const len0 = WASM_VECTOR_LEN;
492
+ const ret = wasm.weeb3no103_feed_identity(this.__wbg_ptr, ptr0, len0);
493
+ return ret;
494
+ }
495
+ /**
496
+ * @returns {Promise<object>}
497
+ */
498
+ feed_owner() {
499
+ const ret = wasm.weeb3no103_feed_owner(this.__wbg_ptr);
500
+ return ret;
501
+ }
502
+ /**
503
+ * @param {string} topic
504
+ * @returns {object}
505
+ */
506
+ feed_topic(topic) {
507
+ const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
508
+ const len0 = WASM_VECTOR_LEN;
509
+ const ret = wasm.weeb3no103_feed_topic(this.__wbg_ptr, ptr0, len0);
510
+ return ret;
511
+ }
512
+ /**
513
+ * @returns {Promise<Array<any>>}
514
+ */
515
+ logs() {
516
+ const ret = wasm.weeb3no103_logs(this.__wbg_ptr);
517
+ return ret;
518
+ }
519
+ /**
520
+ * @returns {Promise<object>}
521
+ */
522
+ networkState() {
523
+ const ret = wasm.weeb3no103_networkState(this.__wbg_ptr);
524
+ return ret;
525
+ }
526
+ /**
527
+ * @returns {Promise<object>}
528
+ */
529
+ network_state() {
530
+ const ret = wasm.weeb3no103_network_state(this.__wbg_ptr);
531
+ return ret;
532
+ }
259
533
  constructor() {
260
534
  const ret = wasm.weeb3no103_new();
261
535
  this.__wbg_ptr = ret;
262
536
  Weeb3No103Finalization.register(this, this.__wbg_ptr, this);
263
537
  return this;
264
538
  }
539
+ /**
540
+ * @param {string} topic
541
+ * @param {Uint8Array} bytes
542
+ * @param {string} mime
543
+ * @param {string} filename
544
+ * @param {boolean} encryption
545
+ * @returns {Promise<object>}
546
+ */
547
+ postFeedBytes(topic, bytes, mime, filename, encryption) {
548
+ const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
549
+ const len0 = WASM_VECTOR_LEN;
550
+ const ptr1 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
551
+ const len1 = WASM_VECTOR_LEN;
552
+ const ptr2 = passStringToWasm0(mime, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
553
+ const len2 = WASM_VECTOR_LEN;
554
+ const ptr3 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
555
+ const len3 = WASM_VECTOR_LEN;
556
+ const ret = wasm.weeb3no103_postFeedBytes(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, encryption);
557
+ return ret;
558
+ }
265
559
  /**
266
560
  * @param {Uint8Array} data
267
561
  * @param {boolean} soc
@@ -279,6 +573,160 @@ export class Weeb3No103 {
279
573
  const ret = wasm.weeb3no103_postPushChunk(this.__wbg_ptr, ptr0, len0, soc, ptr1, len1, ptr2, len2);
280
574
  return ret;
281
575
  }
576
+ /**
577
+ * @param {Uint8Array} bytes
578
+ * @param {string} mime
579
+ * @param {string} filename
580
+ * @param {boolean} encryption
581
+ * @param {boolean} add_to_feed
582
+ * @param {string} feed_topic
583
+ * @returns {Promise<object>}
584
+ */
585
+ postUploadBytes(bytes, mime, filename, encryption, add_to_feed, feed_topic) {
586
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
587
+ const len0 = WASM_VECTOR_LEN;
588
+ const ptr1 = passStringToWasm0(mime, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
589
+ const len1 = WASM_VECTOR_LEN;
590
+ const ptr2 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
591
+ const len2 = WASM_VECTOR_LEN;
592
+ const ptr3 = passStringToWasm0(feed_topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
593
+ const len3 = WASM_VECTOR_LEN;
594
+ const ret = wasm.weeb3no103_postUploadBytes(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, encryption, add_to_feed, ptr3, len3);
595
+ return ret;
596
+ }
597
+ /**
598
+ * @param {string} topic
599
+ * @param {Uint8Array} bytes
600
+ * @param {string} mime
601
+ * @param {string} filename
602
+ * @param {boolean} encryption
603
+ * @returns {Promise<object>}
604
+ */
605
+ post_feed_bytes(topic, bytes, mime, filename, encryption) {
606
+ const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
607
+ const len0 = WASM_VECTOR_LEN;
608
+ const ptr1 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
609
+ const len1 = WASM_VECTOR_LEN;
610
+ const ptr2 = passStringToWasm0(mime, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
611
+ const len2 = WASM_VECTOR_LEN;
612
+ const ptr3 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
613
+ const len3 = WASM_VECTOR_LEN;
614
+ const ret = wasm.weeb3no103_post_feed_bytes(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, encryption);
615
+ return ret;
616
+ }
617
+ /**
618
+ * @param {Uint8Array} data
619
+ * @param {boolean} soc
620
+ * @param {Uint8Array} chunk_address
621
+ * @param {Uint8Array} stamp
622
+ * @returns {Promise<string>}
623
+ */
624
+ post_push_chunk(data, soc, chunk_address, stamp) {
625
+ const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
626
+ const len0 = WASM_VECTOR_LEN;
627
+ const ptr1 = passArray8ToWasm0(chunk_address, wasm.__wbindgen_malloc);
628
+ const len1 = WASM_VECTOR_LEN;
629
+ const ptr2 = passArray8ToWasm0(stamp, wasm.__wbindgen_malloc);
630
+ const len2 = WASM_VECTOR_LEN;
631
+ const ret = wasm.weeb3no103_post_push_chunk(this.__wbg_ptr, ptr0, len0, soc, ptr1, len1, ptr2, len2);
632
+ return ret;
633
+ }
634
+ /**
635
+ * @param {File} file
636
+ * @param {boolean} encryption
637
+ * @param {string} index_string
638
+ * @param {boolean} add_to_feed
639
+ * @param {string} feed_topic
640
+ * @returns {Promise<object>}
641
+ */
642
+ post_upload(file, encryption, index_string, add_to_feed, feed_topic) {
643
+ const ptr0 = passStringToWasm0(index_string, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
644
+ const len0 = WASM_VECTOR_LEN;
645
+ const ptr1 = passStringToWasm0(feed_topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
646
+ const len1 = WASM_VECTOR_LEN;
647
+ const ret = wasm.weeb3no103_post_upload(this.__wbg_ptr, file, encryption, ptr0, len0, add_to_feed, ptr1, len1);
648
+ return ret;
649
+ }
650
+ /**
651
+ * @param {Uint8Array} bytes
652
+ * @param {string} mime
653
+ * @param {string} filename
654
+ * @param {boolean} encryption
655
+ * @param {boolean} add_to_feed
656
+ * @param {string} feed_topic
657
+ * @returns {Promise<object>}
658
+ */
659
+ post_upload_bytes(bytes, mime, filename, encryption, add_to_feed, feed_topic) {
660
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
661
+ const len0 = WASM_VECTOR_LEN;
662
+ const ptr1 = passStringToWasm0(mime, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
663
+ const len1 = WASM_VECTOR_LEN;
664
+ const ptr2 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
665
+ const len2 = WASM_VECTOR_LEN;
666
+ const ptr3 = passStringToWasm0(feed_topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
667
+ const len3 = WASM_VECTOR_LEN;
668
+ const ret = wasm.weeb3no103_post_upload_bytes(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, encryption, add_to_feed, ptr3, len3);
669
+ return ret;
670
+ }
671
+ /**
672
+ * @param {number} seen_revision
673
+ * @returns {Promise<object>}
674
+ */
675
+ progressSnapshot(seen_revision) {
676
+ const ret = wasm.weeb3no103_progressSnapshot(this.__wbg_ptr, seen_revision);
677
+ return ret;
678
+ }
679
+ /**
680
+ * @param {number} seen_revision
681
+ * @returns {Promise<object>}
682
+ */
683
+ progress_snapshot(seen_revision) {
684
+ const ret = wasm.weeb3no103_progress_snapshot(this.__wbg_ptr, seen_revision);
685
+ return ret;
686
+ }
687
+ /**
688
+ * @param {number} min_connections
689
+ * @param {number} timeout_ms
690
+ * @returns {Promise<boolean>}
691
+ */
692
+ ready(min_connections, timeout_ms) {
693
+ const ret = wasm.weeb3no103_ready(this.__wbg_ptr, min_connections, timeout_ms);
694
+ return ret;
695
+ }
696
+ /**
697
+ * @param {number} min_connections
698
+ * @param {number} timeout_ms
699
+ * @returns {Promise<object>}
700
+ */
701
+ readyState(min_connections, timeout_ms) {
702
+ const ret = wasm.weeb3no103_readyState(this.__wbg_ptr, min_connections, timeout_ms);
703
+ return ret;
704
+ }
705
+ /**
706
+ * @param {number} min_connections
707
+ * @param {number} timeout_ms
708
+ * @returns {Promise<object>}
709
+ */
710
+ ready_state(min_connections, timeout_ms) {
711
+ const ret = wasm.weeb3no103_ready_state(this.__wbg_ptr, min_connections, timeout_ms);
712
+ return ret;
713
+ }
714
+ /**
715
+ * @param {Element} container
716
+ * @returns {object}
717
+ */
718
+ renderInterface(container) {
719
+ const ret = wasm.weeb3no103_renderInterface(this.__wbg_ptr, container);
720
+ return ret;
721
+ }
722
+ /**
723
+ * @param {Element} container
724
+ * @returns {object}
725
+ */
726
+ render_interface(container) {
727
+ const ret = wasm.weeb3no103_render_interface(this.__wbg_ptr, container);
728
+ return ret;
729
+ }
282
730
  /**
283
731
  * @returns {Promise<object>}
284
732
  */
@@ -286,6 +734,13 @@ export class Weeb3No103 {
286
734
  const ret = wasm.weeb3no103_resetStamp(this.__wbg_ptr);
287
735
  return ret;
288
736
  }
737
+ /**
738
+ * @returns {Promise<object>}
739
+ */
740
+ reset_stamp() {
741
+ const ret = wasm.weeb3no103_reset_stamp(this.__wbg_ptr);
742
+ return ret;
743
+ }
289
744
  /**
290
745
  * @param {string} address
291
746
  * @returns {Promise<Array<any>>}
@@ -296,6 +751,46 @@ export class Weeb3No103 {
296
751
  const ret = wasm.weeb3no103_retrieve(this.__wbg_ptr, ptr0, len0);
297
752
  return ret;
298
753
  }
754
+ /**
755
+ * @param {string} address
756
+ * @returns {Promise<Uint8Array>}
757
+ */
758
+ retrieveBytes(address) {
759
+ const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
760
+ const len0 = WASM_VECTOR_LEN;
761
+ const ret = wasm.weeb3no103_retrieveBytes(this.__wbg_ptr, ptr0, len0);
762
+ return ret;
763
+ }
764
+ /**
765
+ * @param {string} address
766
+ * @returns {Promise<Uint8Array>}
767
+ */
768
+ retrieveChunk(address) {
769
+ const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
770
+ const len0 = WASM_VECTOR_LEN;
771
+ const ret = wasm.weeb3no103_retrieveChunk(this.__wbg_ptr, ptr0, len0);
772
+ return ret;
773
+ }
774
+ /**
775
+ * @param {string} address
776
+ * @returns {Promise<Uint8Array>}
777
+ */
778
+ retrieve_bytes(address) {
779
+ const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
780
+ const len0 = WASM_VECTOR_LEN;
781
+ const ret = wasm.weeb3no103_retrieve_bytes(this.__wbg_ptr, ptr0, len0);
782
+ return ret;
783
+ }
784
+ /**
785
+ * @param {string} address
786
+ * @returns {Promise<Uint8Array>}
787
+ */
788
+ retrieve_chunk(address) {
789
+ const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
790
+ const len0 = WASM_VECTOR_LEN;
791
+ const ret = wasm.weeb3no103_retrieve_chunk(this.__wbg_ptr, ptr0, len0);
792
+ return ret;
793
+ }
299
794
  /**
300
795
  * @param {BootstrapNode[]} bootstrap_nodes
301
796
  * @param {string} network_id
@@ -307,6 +802,26 @@ export class Weeb3No103 {
307
802
  const len1 = WASM_VECTOR_LEN;
308
803
  wasm.weeb3no103_start(this.__wbg_ptr, ptr0, len0, ptr1, len1);
309
804
  }
805
+ /**
806
+ * @param {string} mode
807
+ * @returns {Promise<object>}
808
+ */
809
+ switchNetwork(mode) {
810
+ const ptr0 = passStringToWasm0(mode, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
811
+ const len0 = WASM_VECTOR_LEN;
812
+ const ret = wasm.weeb3no103_switchNetwork(this.__wbg_ptr, ptr0, len0);
813
+ return ret;
814
+ }
815
+ /**
816
+ * @param {string} mode
817
+ * @returns {Promise<object>}
818
+ */
819
+ switch_network(mode) {
820
+ const ptr0 = passStringToWasm0(mode, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
821
+ const len0 = WASM_VECTOR_LEN;
822
+ const ret = wasm.weeb3no103_switch_network(this.__wbg_ptr, ptr0, len0);
823
+ return ret;
824
+ }
310
825
  /**
311
826
  * @param {File} file
312
827
  * @param {boolean} encryption
@@ -323,6 +838,24 @@ export class Weeb3No103 {
323
838
  const ret = wasm.weeb3no103_upload(this.__wbg_ptr, file, encryption, ptr0, len0, add_to_feed, ptr1, len1);
324
839
  return ret;
325
840
  }
841
+ /**
842
+ * @param {number} depth
843
+ * @param {number} validity_days
844
+ * @returns {Promise<object>}
845
+ */
846
+ uploadPrerequisites(depth, validity_days) {
847
+ const ret = wasm.weeb3no103_uploadPrerequisites(this.__wbg_ptr, depth, validity_days);
848
+ return ret;
849
+ }
850
+ /**
851
+ * @param {number} depth
852
+ * @param {number} validity_days
853
+ * @returns {Promise<object>}
854
+ */
855
+ upload_prerequisites(depth, validity_days) {
856
+ const ret = wasm.weeb3no103_upload_prerequisites(this.__wbg_ptr, depth, validity_days);
857
+ return ret;
858
+ }
326
859
  }
327
860
  if (Symbol.dispose) Weeb3No103.prototype[Symbol.dispose] = Weeb3No103.prototype.free;
328
861
 
@@ -478,6 +1011,10 @@ function __wbg_get_imports() {
478
1011
  __wbg_append_e1746995edcb0170: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
479
1012
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
480
1013
  }, arguments); },
1014
+ __wbg_apply_292b6d94e4f92b15: function() { return handleError(function (arg0, arg1, arg2) {
1015
+ const ret = arg0.apply(arg1, arg2);
1016
+ return ret;
1017
+ }, arguments); },
481
1018
  __wbg_arrayBuffer_05927079aabe6d46: function() { return handleError(function (arg0) {
482
1019
  const ret = arg0.arrayBuffer();
483
1020
  return ret;
@@ -486,6 +1023,9 @@ function __wbg_get_imports() {
486
1023
  const ret = arg0.arrayBuffer();
487
1024
  return ret;
488
1025
  },
1026
+ __wbg_assign_551ec2d000f70c24: function() { return handleError(function (arg0, arg1, arg2) {
1027
+ arg0.assign(getStringFromWasm0(arg1, arg2));
1028
+ }, arguments); },
489
1029
  __wbg_body_7d5b1a2ac7f2c821: function(arg0) {
490
1030
  const ret = arg0.body;
491
1031
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
@@ -528,6 +1068,9 @@ function __wbg_get_imports() {
528
1068
  const ret = clearTimeout(arg0);
529
1069
  return ret;
530
1070
  },
1071
+ __wbg_click_f4ad50d5e13b83d8: function(arg0) {
1072
+ arg0.click();
1073
+ },
531
1074
  __wbg_close_76e5bacb62c204a0: function() { return handleError(function (arg0, arg1, arg2, arg3) {
532
1075
  arg0.close(arg1, getStringFromWasm0(arg2, arg3));
533
1076
  }, arguments); },
@@ -561,6 +1104,10 @@ function __wbg_get_imports() {
561
1104
  const ret = arg0.data;
562
1105
  return ret;
563
1106
  },
1107
+ __wbg_decodeURIComponent_b3ca91f9662a251a: function() { return handleError(function (arg0, arg1) {
1108
+ const ret = decodeURIComponent(getStringFromWasm0(arg0, arg1));
1109
+ return ret;
1110
+ }, arguments); },
564
1111
  __wbg_document_aceb08cd6489baf5: function(arg0) {
565
1112
  const ret = arg0.document;
566
1113
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
@@ -581,9 +1128,6 @@ function __wbg_get_imports() {
581
1128
  const ret = arg0.entries();
582
1129
  return ret;
583
1130
  },
584
- __wbg_error_78ff5b3a29b770e0: function(arg0) {
585
- console.error(arg0);
586
- },
587
1131
  __wbg_error_c6b70769322af78e: function() { return handleError(function (arg0) {
588
1132
  const ret = arg0.error;
589
1133
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
@@ -607,6 +1151,13 @@ function __wbg_get_imports() {
607
1151
  const ret = Array.from(arg0);
608
1152
  return ret;
609
1153
  },
1154
+ __wbg_getAttribute_27f7a0d74339fd41: function(arg0, arg1, arg2, arg3) {
1155
+ const ret = arg1.getAttribute(getStringFromWasm0(arg2, arg3));
1156
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1157
+ var len1 = WASM_VECTOR_LEN;
1158
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1159
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1160
+ },
610
1161
  __wbg_getElementById_c35b4b7d270d161d: function(arg0, arg1, arg2) {
611
1162
  const ret = arg0.getElementById(getStringFromWasm0(arg1, arg2));
612
1163
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
@@ -657,6 +1208,10 @@ function __wbg_get_imports() {
657
1208
  const ret = arg0.global;
658
1209
  return ret;
659
1210
  },
1211
+ __wbg_hasAttribute_8a0e80dea64a024f: function(arg0, arg1, arg2) {
1212
+ const ret = arg0.hasAttribute(getStringFromWasm0(arg1, arg2));
1213
+ return ret;
1214
+ },
660
1215
  __wbg_has_73740b27f436fed3: function() { return handleError(function (arg0, arg1) {
661
1216
  const ret = Reflect.has(arg0, arg1);
662
1217
  return ret;
@@ -718,6 +1273,16 @@ function __wbg_get_imports() {
718
1273
  const ret = result;
719
1274
  return ret;
720
1275
  },
1276
+ __wbg_instanceof_EventTarget_86847d800cdb77d2: function(arg0) {
1277
+ let result;
1278
+ try {
1279
+ result = arg0 instanceof EventTarget;
1280
+ } catch (_) {
1281
+ result = false;
1282
+ }
1283
+ const ret = result;
1284
+ return ret;
1285
+ },
721
1286
  __wbg_instanceof_File_4389d03fd2e0b69e: function(arg0) {
722
1287
  let result;
723
1288
  try {
@@ -848,6 +1413,16 @@ function __wbg_get_imports() {
848
1413
  const ret = result;
849
1414
  return ret;
850
1415
  },
1416
+ __wbg_instanceof_ServiceWorkerContainer_359999b02d00251f: function(arg0) {
1417
+ let result;
1418
+ try {
1419
+ result = arg0 instanceof ServiceWorkerContainer;
1420
+ } catch (_) {
1421
+ result = false;
1422
+ }
1423
+ const ret = result;
1424
+ return ret;
1425
+ },
851
1426
  __wbg_instanceof_ServiceWorkerRegistration_6cce0130f3af08c5: function(arg0) {
852
1427
  let result;
853
1428
  try {
@@ -917,6 +1492,14 @@ function __wbg_get_imports() {
917
1492
  const ret = IDBKeyRange.lowerBound(arg0, arg1 !== 0);
918
1493
  return ret;
919
1494
  }, arguments); },
1495
+ __wbg_matchMedia_072e51dea8ac78bd: function() { return handleError(function (arg0, arg1, arg2) {
1496
+ const ret = arg0.matchMedia(getStringFromWasm0(arg1, arg2));
1497
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1498
+ }, arguments); },
1499
+ __wbg_matches_2f598e82be2a8afc: function(arg0) {
1500
+ const ret = arg0.matches;
1501
+ return ret;
1502
+ },
920
1503
  __wbg_message_40300ed2d1f8bdc6: function(arg0) {
921
1504
  const ret = arg0.message;
922
1505
  return ret;
@@ -971,10 +1554,6 @@ function __wbg_get_imports() {
971
1554
  const ret = new Map();
972
1555
  return ret;
973
1556
  },
974
- __wbg_new_7a6040edbd106a8d: function() { return handleError(function () {
975
- const ret = new MessageChannel();
976
- return ret;
977
- }, arguments); },
978
1557
  __wbg_new_b682b81e8eaaf027: function(arg0, arg1) {
979
1558
  try {
980
1559
  var state0 = {a: arg0, b: arg1};
@@ -982,7 +1561,7 @@ function __wbg_get_imports() {
982
1561
  const a = state0.a;
983
1562
  state0.a = 0;
984
1563
  try {
985
- return wasm_bindgen__convert__closures_____invoke__h4f88e1c07117e8f4(a, state0.b, arg0, arg1);
1564
+ return wasm_bindgen__convert__closures_____invoke__h38bb2d7626f4cfa1(a, state0.b, arg0, arg1);
986
1565
  } finally {
987
1566
  state0.a = a;
988
1567
  }
@@ -993,6 +1572,10 @@ function __wbg_get_imports() {
993
1572
  state0.a = 0;
994
1573
  }
995
1574
  },
1575
+ __wbg_new_b733f187b7a8b317: function() { return handleError(function (arg0, arg1) {
1576
+ const ret = new URL(getStringFromWasm0(arg0, arg1));
1577
+ return ret;
1578
+ }, arguments); },
996
1579
  __wbg_new_ce1ab61c1c2b300d: function() {
997
1580
  const ret = new Object();
998
1581
  return ret;
@@ -1013,6 +1596,10 @@ function __wbg_get_imports() {
1013
1596
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1014
1597
  return ret;
1015
1598
  },
1599
+ __wbg_new_no_args_67747f9e48367a42: function(arg0, arg1) {
1600
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
1601
+ return ret;
1602
+ },
1016
1603
  __wbg_new_typed_bf31d18f92484486: function(arg0, arg1) {
1017
1604
  try {
1018
1605
  var state0 = {a: arg0, b: arg1};
@@ -1020,7 +1607,7 @@ function __wbg_get_imports() {
1020
1607
  const a = state0.a;
1021
1608
  state0.a = 0;
1022
1609
  try {
1023
- return wasm_bindgen__convert__closures_____invoke__h4f88e1c07117e8f4(a, state0.b, arg0, arg1);
1610
+ return wasm_bindgen__convert__closures_____invoke__h38bb2d7626f4cfa1(a, state0.b, arg0, arg1);
1024
1611
  } finally {
1025
1612
  state0.a = a;
1026
1613
  }
@@ -1075,10 +1662,6 @@ function __wbg_get_imports() {
1075
1662
  const ret = arg0.objectStore(getStringFromWasm0(arg1, arg2));
1076
1663
  return ret;
1077
1664
  }, arguments); },
1078
- __wbg_of_57145fdec12d159f: function(arg0) {
1079
- const ret = Array.of(arg0);
1080
- return ret;
1081
- },
1082
1665
  __wbg_oldVersion_a1391e4372e57270: function(arg0) {
1083
1666
  const ret = arg0.oldVersion;
1084
1667
  return ret;
@@ -1112,25 +1695,21 @@ function __wbg_get_imports() {
1112
1695
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1113
1696
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1114
1697
  }, arguments); },
1698
+ __wbg_pathname_970b828999d759fb: function(arg0, arg1) {
1699
+ const ret = arg1.pathname;
1700
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1701
+ const len1 = WASM_VECTOR_LEN;
1702
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1703
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1704
+ },
1115
1705
  __wbg_performance_3fcf6e32a7e1ed0a: function(arg0) {
1116
1706
  const ret = arg0.performance;
1117
1707
  return ret;
1118
1708
  },
1119
- __wbg_port1_df46ee0756d43d62: function(arg0) {
1120
- const ret = arg0.port1;
1121
- return ret;
1122
- },
1123
- __wbg_port2_667554ea60dd39ff: function(arg0) {
1124
- const ret = arg0.port2;
1125
- return ret;
1126
- },
1127
1709
  __wbg_ports_91ab97df99186bdf: function(arg0) {
1128
1710
  const ret = arg0.ports;
1129
1711
  return ret;
1130
1712
  },
1131
- __wbg_postMessage_80a11c0e5400fa62: function() { return handleError(function (arg0, arg1, arg2) {
1132
- arg0.postMessage(arg1, arg2);
1133
- }, arguments); },
1134
1713
  __wbg_postMessage_c96dbad6d3f70aaf: function() { return handleError(function (arg0, arg1) {
1135
1714
  arg0.postMessage(arg1);
1136
1715
  }, arguments); },
@@ -1188,6 +1767,9 @@ function __wbg_get_imports() {
1188
1767
  __wbg_removeListener_250a33965641c61b: function(arg0, arg1, arg2, arg3) {
1189
1768
  arg0.removeListener(getStringFromWasm0(arg1, arg2), arg3);
1190
1769
  },
1770
+ __wbg_remove_f3fdf26d49490e53: function(arg0) {
1771
+ arg0.remove();
1772
+ },
1191
1773
  __wbg_replaceState_827056d3e0653693: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
1192
1774
  arg0.replaceState(arg1, getStringFromWasm0(arg2, arg3), arg4 === 0 ? undefined : getStringFromWasm0(arg4, arg5));
1193
1775
  }, arguments); },
@@ -1278,9 +1860,6 @@ function __wbg_get_imports() {
1278
1860
  __wbg_set_innerHTML_6bcbbce0a3626998: function(arg0, arg1, arg2) {
1279
1861
  arg0.innerHTML = getStringFromWasm0(arg1, arg2);
1280
1862
  },
1281
- __wbg_set_innerText_2126c17ae88dc653: function(arg0, arg1, arg2) {
1282
- arg0.innerText = getStringFromWasm0(arg1, arg2);
1283
- },
1284
1863
  __wbg_set_last_modified_21c4e6e7d9187296: function(arg0, arg1) {
1285
1864
  arg0.lastModified = arg1;
1286
1865
  },
@@ -1317,9 +1896,6 @@ function __wbg_get_imports() {
1317
1896
  __wbg_set_onmessage_9c6b4cb14e244b7f: function(arg0, arg1) {
1318
1897
  arg0.onmessage = arg1;
1319
1898
  },
1320
- __wbg_set_onmessage_ecb04a178e505b27: function(arg0, arg1) {
1321
- arg0.onmessage = arg1;
1322
- },
1323
1899
  __wbg_set_onopen_db452f4233e99d7d: function(arg0, arg1) {
1324
1900
  arg0.onopen = arg1;
1325
1901
  },
@@ -1341,6 +1917,9 @@ function __wbg_get_imports() {
1341
1917
  __wbg_set_type_f2ba381718ed1039: function(arg0, arg1, arg2) {
1342
1918
  arg0.type = getStringFromWasm0(arg1, arg2);
1343
1919
  },
1920
+ __wbg_set_value_fc1a37d10af775a0: function(arg0, arg1, arg2) {
1921
+ arg0.value = getStringFromWasm0(arg1, arg2);
1922
+ },
1344
1923
  __wbg_signal_e03304a84df9ed09: function(arg0) {
1345
1924
  const ret = arg0.signal;
1346
1925
  return ret;
@@ -1453,53 +2032,53 @@ function __wbg_get_imports() {
1453
2032
  console.warn(arg0);
1454
2033
  },
1455
2034
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
1456
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1192, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1457
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h84e2162617b1b93e);
2035
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1485, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2036
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hff68d30d9ca887d6);
1458
2037
  return ret;
1459
2038
  },
1460
2039
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
1461
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2351, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1462
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hd82595f4c48afdc7);
2040
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2636, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2041
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h39453673aeb618ab);
1463
2042
  return ret;
1464
2043
  },
1465
2044
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
1466
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1385, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1467
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0081445fefd19e6c);
2045
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 1665, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2046
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h24b02f9c177e71f4);
1468
2047
  return ret;
1469
2048
  },
1470
2049
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
1471
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1005, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1472
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h99a0680556c8e399);
2050
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1283, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2051
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h7595764d8075eff9);
1473
2052
  return ret;
1474
2053
  },
1475
2054
  __wbindgen_cast_0000000000000005: function(arg0, arg1) {
1476
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1385, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1477
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0081445fefd19e6c_4);
2055
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1665, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2056
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h24b02f9c177e71f4_4);
1478
2057
  return ret;
1479
2058
  },
1480
2059
  __wbindgen_cast_0000000000000006: function(arg0, arg1) {
1481
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 663, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1482
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hf403b08213ba7389);
2060
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 948, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2061
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h380c4e5ad668e007);
1483
2062
  return ret;
1484
2063
  },
1485
2064
  __wbindgen_cast_0000000000000007: function(arg0, arg1) {
1486
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1385, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1487
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0081445fefd19e6c_6);
2065
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1665, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2066
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h24b02f9c177e71f4_6);
1488
2067
  return ret;
1489
2068
  },
1490
2069
  __wbindgen_cast_0000000000000008: function(arg0, arg1) {
1491
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1003, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1492
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hb24b589f77a60686);
2070
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1285, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2071
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h096c301d37cdbb45);
1493
2072
  return ret;
1494
2073
  },
1495
2074
  __wbindgen_cast_0000000000000009: function(arg0, arg1) {
1496
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1922, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1497
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h041cbe7ee63fea15);
2075
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2203, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2076
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h6f4ab657709ae694);
1498
2077
  return ret;
1499
2078
  },
1500
2079
  __wbindgen_cast_000000000000000a: function(arg0, arg1) {
1501
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2328, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1502
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h398c19fd12b98915);
2080
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2613, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2081
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hbc64d0ffa7547e63);
1503
2082
  return ret;
1504
2083
  },
1505
2084
  __wbindgen_cast_000000000000000b: function(arg0) {
@@ -1557,54 +2136,54 @@ function __wbg_get_imports() {
1557
2136
  };
1558
2137
  }
1559
2138
 
1560
- function wasm_bindgen__convert__closures_____invoke__hb24b589f77a60686(arg0, arg1) {
1561
- wasm.wasm_bindgen__convert__closures_____invoke__hb24b589f77a60686(arg0, arg1);
2139
+ function wasm_bindgen__convert__closures_____invoke__h096c301d37cdbb45(arg0, arg1) {
2140
+ wasm.wasm_bindgen__convert__closures_____invoke__h096c301d37cdbb45(arg0, arg1);
1562
2141
  }
1563
2142
 
1564
- function wasm_bindgen__convert__closures_____invoke__h041cbe7ee63fea15(arg0, arg1) {
1565
- wasm.wasm_bindgen__convert__closures_____invoke__h041cbe7ee63fea15(arg0, arg1);
2143
+ function wasm_bindgen__convert__closures_____invoke__h6f4ab657709ae694(arg0, arg1) {
2144
+ wasm.wasm_bindgen__convert__closures_____invoke__h6f4ab657709ae694(arg0, arg1);
1566
2145
  }
1567
2146
 
1568
- function wasm_bindgen__convert__closures_____invoke__h398c19fd12b98915(arg0, arg1) {
1569
- wasm.wasm_bindgen__convert__closures_____invoke__h398c19fd12b98915(arg0, arg1);
2147
+ function wasm_bindgen__convert__closures_____invoke__hbc64d0ffa7547e63(arg0, arg1) {
2148
+ wasm.wasm_bindgen__convert__closures_____invoke__hbc64d0ffa7547e63(arg0, arg1);
1570
2149
  }
1571
2150
 
1572
- function wasm_bindgen__convert__closures_____invoke__h84e2162617b1b93e(arg0, arg1, arg2) {
1573
- wasm.wasm_bindgen__convert__closures_____invoke__h84e2162617b1b93e(arg0, arg1, arg2);
2151
+ function wasm_bindgen__convert__closures_____invoke__hff68d30d9ca887d6(arg0, arg1, arg2) {
2152
+ wasm.wasm_bindgen__convert__closures_____invoke__hff68d30d9ca887d6(arg0, arg1, arg2);
1574
2153
  }
1575
2154
 
1576
- function wasm_bindgen__convert__closures_____invoke__h0081445fefd19e6c(arg0, arg1, arg2) {
1577
- wasm.wasm_bindgen__convert__closures_____invoke__h0081445fefd19e6c(arg0, arg1, arg2);
2155
+ function wasm_bindgen__convert__closures_____invoke__h24b02f9c177e71f4(arg0, arg1, arg2) {
2156
+ wasm.wasm_bindgen__convert__closures_____invoke__h24b02f9c177e71f4(arg0, arg1, arg2);
1578
2157
  }
1579
2158
 
1580
- function wasm_bindgen__convert__closures_____invoke__h99a0680556c8e399(arg0, arg1, arg2) {
1581
- wasm.wasm_bindgen__convert__closures_____invoke__h99a0680556c8e399(arg0, arg1, arg2);
2159
+ function wasm_bindgen__convert__closures_____invoke__h7595764d8075eff9(arg0, arg1, arg2) {
2160
+ wasm.wasm_bindgen__convert__closures_____invoke__h7595764d8075eff9(arg0, arg1, arg2);
1582
2161
  }
1583
2162
 
1584
- function wasm_bindgen__convert__closures_____invoke__h0081445fefd19e6c_4(arg0, arg1, arg2) {
1585
- wasm.wasm_bindgen__convert__closures_____invoke__h0081445fefd19e6c_4(arg0, arg1, arg2);
2163
+ function wasm_bindgen__convert__closures_____invoke__h24b02f9c177e71f4_4(arg0, arg1, arg2) {
2164
+ wasm.wasm_bindgen__convert__closures_____invoke__h24b02f9c177e71f4_4(arg0, arg1, arg2);
1586
2165
  }
1587
2166
 
1588
- function wasm_bindgen__convert__closures_____invoke__h0081445fefd19e6c_6(arg0, arg1, arg2) {
1589
- wasm.wasm_bindgen__convert__closures_____invoke__h0081445fefd19e6c_6(arg0, arg1, arg2);
2167
+ function wasm_bindgen__convert__closures_____invoke__h24b02f9c177e71f4_6(arg0, arg1, arg2) {
2168
+ wasm.wasm_bindgen__convert__closures_____invoke__h24b02f9c177e71f4_6(arg0, arg1, arg2);
1590
2169
  }
1591
2170
 
1592
- function wasm_bindgen__convert__closures_____invoke__hd82595f4c48afdc7(arg0, arg1, arg2) {
1593
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__hd82595f4c48afdc7(arg0, arg1, arg2);
2171
+ function wasm_bindgen__convert__closures_____invoke__h39453673aeb618ab(arg0, arg1, arg2) {
2172
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h39453673aeb618ab(arg0, arg1, arg2);
1594
2173
  if (ret[1]) {
1595
2174
  throw takeFromExternrefTable0(ret[0]);
1596
2175
  }
1597
2176
  }
1598
2177
 
1599
- function wasm_bindgen__convert__closures_____invoke__hf403b08213ba7389(arg0, arg1, arg2) {
1600
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__hf403b08213ba7389(arg0, arg1, arg2);
2178
+ function wasm_bindgen__convert__closures_____invoke__h380c4e5ad668e007(arg0, arg1, arg2) {
2179
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h380c4e5ad668e007(arg0, arg1, arg2);
1601
2180
  if (ret[1]) {
1602
2181
  throw takeFromExternrefTable0(ret[0]);
1603
2182
  }
1604
2183
  }
1605
2184
 
1606
- function wasm_bindgen__convert__closures_____invoke__h4f88e1c07117e8f4(arg0, arg1, arg2, arg3) {
1607
- wasm.wasm_bindgen__convert__closures_____invoke__h4f88e1c07117e8f4(arg0, arg1, arg2, arg3);
2185
+ function wasm_bindgen__convert__closures_____invoke__h38bb2d7626f4cfa1(arg0, arg1, arg2, arg3) {
2186
+ wasm.wasm_bindgen__convert__closures_____invoke__h38bb2d7626f4cfa1(arg0, arg1, arg2, arg3);
1608
2187
  }
1609
2188
 
1610
2189
 
package/weeb_3_bg.wasm CHANGED
Binary file
@@ -9,39 +9,90 @@ export const bootstrapnode_multiaddr: (a: number) => [number, number];
9
9
  export const bootstrapnode_new: (a: number, b: number, c: number) => number;
10
10
  export const bootstrapnode_usable: (a: number) => number;
11
11
  export const weeb3_acquire: (a: number, b: number, c: number) => any;
12
+ export const weeb3_acquire_feed: (a: number, b: number, c: number, d: number, e: number) => any;
12
13
  export const weeb3_change_bootnode_address: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
13
14
  export const weeb3_get_connections: (a: number) => any;
14
15
  export const weeb3_get_current_logs: (a: number) => any;
16
+ export const weeb3_get_network_id: (a: number) => any;
15
17
  export const weeb3_get_ongoing_connections: (a: number) => any;
16
18
  export const weeb3_interface_log: (a: number, b: number, c: number) => void;
17
19
  export const weeb3_new: (a: number, b: number) => number;
18
20
  export const weeb3_post_push_chunk: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
19
21
  export const weeb3_post_upload: (a: number, b: any, c: number, d: number, e: number, f: number, g: number, h: number) => any;
20
22
  export const weeb3_reset_stamp: (a: number) => any;
23
+ export const weeb3_retrieve_bytes: (a: number, b: number, c: number) => any;
24
+ export const weeb3_retrieve_chunk_bytes: (a: number, b: number, c: number) => any;
21
25
  export const weeb3_run: (a: number, b: number, c: number) => any;
26
+ export const weeb3_set_network_id: (a: number, b: number, c: number) => any;
22
27
  export const weeb3_toggle_transfer_pause: (a: number) => any;
23
28
  export const weeb3_transfer_paused: (a: number) => number;
29
+ export const weeb3no103_acquireFeed: (a: number, b: number, c: number, d: number, e: number) => any;
30
+ export const weeb3no103_acquireFeedBytes: (a: number, b: number, c: number, d: number, e: number) => any;
31
+ export const weeb3no103_acquire_feed: (a: number, b: number, c: number, d: number, e: number) => any;
32
+ export const weeb3no103_acquire_feed_bytes: (a: number, b: number, c: number, d: number, e: number) => any;
33
+ export const weeb3no103_batchState: (a: number, b: number, c: number) => any;
34
+ export const weeb3no103_batch_state: (a: number, b: number, c: number) => any;
35
+ export const weeb3no103_buyBatch: (a: number, b: number, c: number) => any;
36
+ export const weeb3no103_buy_batch: (a: number, b: number, c: number) => any;
37
+ export const weeb3no103_connect: (a: number) => any;
38
+ export const weeb3no103_connectProfile: (a: number, b: number, c: number) => any;
39
+ export const weeb3no103_connect_profile: (a: number, b: number, c: number) => any;
40
+ export const weeb3no103_deployChequebook: (a: number) => any;
41
+ export const weeb3no103_deploy_chequebook: (a: number) => any;
42
+ export const weeb3no103_depositChequebook: (a: number, b: number, c: number) => any;
43
+ export const weeb3no103_deposit_chequebook: (a: number, b: number, c: number) => any;
44
+ export const weeb3no103_feedIdentity: (a: number, b: number, c: number) => any;
45
+ export const weeb3no103_feedOwner: (a: number) => any;
46
+ export const weeb3no103_feedTopic: (a: number, b: number, c: number) => any;
47
+ export const weeb3no103_feed_identity: (a: number, b: number, c: number) => any;
48
+ export const weeb3no103_feed_owner: (a: number) => any;
49
+ export const weeb3no103_logs: (a: number) => any;
50
+ export const weeb3no103_networkState: (a: number) => any;
51
+ export const weeb3no103_network_state: (a: number) => any;
24
52
  export const weeb3no103_new: () => number;
53
+ export const weeb3no103_postFeedBytes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => any;
25
54
  export const weeb3no103_postPushChunk: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
55
+ export const weeb3no103_postUploadBytes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => any;
56
+ export const weeb3no103_post_feed_bytes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => any;
57
+ export const weeb3no103_post_push_chunk: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
58
+ export const weeb3no103_post_upload: (a: number, b: any, c: number, d: number, e: number, f: number, g: number, h: number) => any;
59
+ export const weeb3no103_post_upload_bytes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => any;
60
+ export const weeb3no103_progressSnapshot: (a: number, b: number) => any;
61
+ export const weeb3no103_progress_snapshot: (a: number, b: number) => any;
62
+ export const weeb3no103_ready: (a: number, b: number, c: number) => any;
63
+ export const weeb3no103_readyState: (a: number, b: number, c: number) => any;
64
+ export const weeb3no103_ready_state: (a: number, b: number, c: number) => any;
65
+ export const weeb3no103_renderInterface: (a: number, b: any) => any;
26
66
  export const weeb3no103_resetStamp: (a: number) => any;
67
+ export const weeb3no103_reset_stamp: (a: number) => any;
27
68
  export const weeb3no103_retrieve: (a: number, b: number, c: number) => any;
69
+ export const weeb3no103_retrieveBytes: (a: number, b: number, c: number) => any;
70
+ export const weeb3no103_retrieveChunk: (a: number, b: number, c: number) => any;
71
+ export const weeb3no103_retrieve_bytes: (a: number, b: number, c: number) => any;
72
+ export const weeb3no103_retrieve_chunk: (a: number, b: number, c: number) => any;
28
73
  export const weeb3no103_start: (a: number, b: number, c: number, d: number, e: number) => void;
74
+ export const weeb3no103_switchNetwork: (a: number, b: number, c: number) => any;
75
+ export const weeb3no103_switch_network: (a: number, b: number, c: number) => any;
29
76
  export const weeb3no103_upload: (a: number, b: any, c: number, d: number, e: number, f: number, g: number, h: number) => any;
77
+ export const weeb3no103_uploadPrerequisites: (a: number, b: number, c: number) => any;
78
+ export const weeb3no103_upload_prerequisites: (a: number, b: number, c: number) => any;
79
+ export const weeb3no103_feed_topic: (a: number, b: number, c: number) => any;
80
+ export const weeb3no103_render_interface: (a: number, b: any) => any;
30
81
  export const interweeb: (a: number, b: number) => any;
31
82
  export const __wbg_requestarguments_free: (a: number, b: number) => void;
32
83
  export const requestarguments_method: (a: number) => [number, number];
33
84
  export const requestarguments_params: (a: number) => any;
34
- export const wasm_bindgen__convert__closures_____invoke__hd82595f4c48afdc7: (a: number, b: number, c: any) => [number, number];
35
- export const wasm_bindgen__convert__closures_____invoke__hf403b08213ba7389: (a: number, b: number, c: any) => [number, number];
36
- export const wasm_bindgen__convert__closures_____invoke__h4f88e1c07117e8f4: (a: number, b: number, c: any, d: any) => void;
37
- export const wasm_bindgen__convert__closures_____invoke__h84e2162617b1b93e: (a: number, b: number, c: any) => void;
38
- export const wasm_bindgen__convert__closures_____invoke__h0081445fefd19e6c: (a: number, b: number, c: any) => void;
39
- export const wasm_bindgen__convert__closures_____invoke__h99a0680556c8e399: (a: number, b: number, c: any) => void;
40
- export const wasm_bindgen__convert__closures_____invoke__h0081445fefd19e6c_4: (a: number, b: number, c: any) => void;
41
- export const wasm_bindgen__convert__closures_____invoke__h0081445fefd19e6c_6: (a: number, b: number, c: any) => void;
42
- export const wasm_bindgen__convert__closures_____invoke__hb24b589f77a60686: (a: number, b: number) => void;
43
- export const wasm_bindgen__convert__closures_____invoke__h041cbe7ee63fea15: (a: number, b: number) => void;
44
- export const wasm_bindgen__convert__closures_____invoke__h398c19fd12b98915: (a: number, b: number) => void;
85
+ export const wasm_bindgen__convert__closures_____invoke__h39453673aeb618ab: (a: number, b: number, c: any) => [number, number];
86
+ export const wasm_bindgen__convert__closures_____invoke__h380c4e5ad668e007: (a: number, b: number, c: any) => [number, number];
87
+ export const wasm_bindgen__convert__closures_____invoke__h38bb2d7626f4cfa1: (a: number, b: number, c: any, d: any) => void;
88
+ export const wasm_bindgen__convert__closures_____invoke__hff68d30d9ca887d6: (a: number, b: number, c: any) => void;
89
+ export const wasm_bindgen__convert__closures_____invoke__h24b02f9c177e71f4: (a: number, b: number, c: any) => void;
90
+ export const wasm_bindgen__convert__closures_____invoke__h7595764d8075eff9: (a: number, b: number, c: any) => void;
91
+ export const wasm_bindgen__convert__closures_____invoke__h24b02f9c177e71f4_4: (a: number, b: number, c: any) => void;
92
+ export const wasm_bindgen__convert__closures_____invoke__h24b02f9c177e71f4_6: (a: number, b: number, c: any) => void;
93
+ export const wasm_bindgen__convert__closures_____invoke__h096c301d37cdbb45: (a: number, b: number) => void;
94
+ export const wasm_bindgen__convert__closures_____invoke__h6f4ab657709ae694: (a: number, b: number) => void;
95
+ export const wasm_bindgen__convert__closures_____invoke__hbc64d0ffa7547e63: (a: number, b: number) => void;
45
96
  export const __wbindgen_malloc: (a: number, b: number) => number;
46
97
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
47
98
  export const __wbindgen_exn_store: (a: number) => void;