@agicash/breez-sdk-spark 0.12.2-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +126 -0
- package/bundler/breez_sdk_spark_wasm.d.ts +1537 -0
- package/bundler/breez_sdk_spark_wasm.js +5 -0
- package/bundler/breez_sdk_spark_wasm_bg.js +3028 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/bundler/breez_sdk_spark_wasm_bg.wasm.d.ts +134 -0
- package/bundler/index.d.ts +3 -0
- package/bundler/index.js +33 -0
- package/bundler/package.json +29 -0
- package/bundler/storage/index.js +2331 -0
- package/bundler/storage/package.json +12 -0
- package/deno/breez_sdk_spark_wasm.d.ts +1537 -0
- package/deno/breez_sdk_spark_wasm.js +2782 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/deno/breez_sdk_spark_wasm_bg.wasm.d.ts +134 -0
- package/nodejs/breez_sdk_spark_wasm.d.ts +1537 -0
- package/nodejs/breez_sdk_spark_wasm.js +3042 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/nodejs/breez_sdk_spark_wasm_bg.wasm.d.ts +134 -0
- package/nodejs/index.d.ts +1 -0
- package/nodejs/index.js +52 -0
- package/nodejs/index.mjs +24 -0
- package/nodejs/package.json +16 -0
- package/nodejs/postgres-storage/errors.cjs +19 -0
- package/nodejs/postgres-storage/index.cjs +1390 -0
- package/nodejs/postgres-storage/migrations.cjs +265 -0
- package/nodejs/postgres-storage/package.json +9 -0
- package/nodejs/postgres-token-store/errors.cjs +13 -0
- package/nodejs/postgres-token-store/index.cjs +857 -0
- package/nodejs/postgres-token-store/migrations.cjs +163 -0
- package/nodejs/postgres-token-store/package.json +9 -0
- package/nodejs/postgres-tree-store/errors.cjs +13 -0
- package/nodejs/postgres-tree-store/index.cjs +808 -0
- package/nodejs/postgres-tree-store/migrations.cjs +150 -0
- package/nodejs/postgres-tree-store/package.json +9 -0
- package/nodejs/storage/errors.cjs +19 -0
- package/nodejs/storage/index.cjs +1343 -0
- package/nodejs/storage/migrations.cjs +417 -0
- package/nodejs/storage/package.json +9 -0
- package/package.json +45 -0
- package/web/breez_sdk_spark_wasm.d.ts +1695 -0
- package/web/breez_sdk_spark_wasm.js +2873 -0
- package/web/breez_sdk_spark_wasm_bg.wasm +0 -0
- package/web/breez_sdk_spark_wasm_bg.wasm.d.ts +134 -0
- package/web/index.d.ts +3 -0
- package/web/index.js +33 -0
- package/web/package.json +28 -0
- package/web/storage/index.js +2331 -0
- package/web/storage/package.json +12 -0
|
@@ -0,0 +1,3028 @@
|
|
|
1
|
+
let wasm;
|
|
2
|
+
export function __wbg_set_wasm(val) {
|
|
3
|
+
wasm = val;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
let WASM_VECTOR_LEN = 0;
|
|
8
|
+
|
|
9
|
+
let cachedUint8ArrayMemory0 = null;
|
|
10
|
+
|
|
11
|
+
function getUint8ArrayMemory0() {
|
|
12
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
13
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
14
|
+
}
|
|
15
|
+
return cachedUint8ArrayMemory0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
19
|
+
|
|
20
|
+
let cachedTextEncoder = new lTextEncoder('utf-8');
|
|
21
|
+
|
|
22
|
+
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
23
|
+
? function (arg, view) {
|
|
24
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
|
25
|
+
}
|
|
26
|
+
: function (arg, view) {
|
|
27
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
28
|
+
view.set(buf);
|
|
29
|
+
return {
|
|
30
|
+
read: arg.length,
|
|
31
|
+
written: buf.length
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
36
|
+
|
|
37
|
+
if (realloc === undefined) {
|
|
38
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
39
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
40
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
41
|
+
WASM_VECTOR_LEN = buf.length;
|
|
42
|
+
return ptr;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
let len = arg.length;
|
|
46
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
47
|
+
|
|
48
|
+
const mem = getUint8ArrayMemory0();
|
|
49
|
+
|
|
50
|
+
let offset = 0;
|
|
51
|
+
|
|
52
|
+
for (; offset < len; offset++) {
|
|
53
|
+
const code = arg.charCodeAt(offset);
|
|
54
|
+
if (code > 0x7F) break;
|
|
55
|
+
mem[ptr + offset] = code;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (offset !== len) {
|
|
59
|
+
if (offset !== 0) {
|
|
60
|
+
arg = arg.slice(offset);
|
|
61
|
+
}
|
|
62
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
63
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
64
|
+
const ret = encodeString(arg, view);
|
|
65
|
+
|
|
66
|
+
offset += ret.written;
|
|
67
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
WASM_VECTOR_LEN = offset;
|
|
71
|
+
return ptr;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
let cachedDataViewMemory0 = null;
|
|
75
|
+
|
|
76
|
+
function getDataViewMemory0() {
|
|
77
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
78
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
79
|
+
}
|
|
80
|
+
return cachedDataViewMemory0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
84
|
+
|
|
85
|
+
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
86
|
+
|
|
87
|
+
cachedTextDecoder.decode();
|
|
88
|
+
|
|
89
|
+
function getStringFromWasm0(ptr, len) {
|
|
90
|
+
ptr = ptr >>> 0;
|
|
91
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function addToExternrefTable0(obj) {
|
|
95
|
+
const idx = wasm.__externref_table_alloc();
|
|
96
|
+
wasm.__wbindgen_export_5.set(idx, obj);
|
|
97
|
+
return idx;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function handleError(f, args) {
|
|
101
|
+
try {
|
|
102
|
+
return f.apply(this, args);
|
|
103
|
+
} catch (e) {
|
|
104
|
+
const idx = addToExternrefTable0(e);
|
|
105
|
+
wasm.__wbindgen_exn_store(idx);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
110
|
+
ptr = ptr >>> 0;
|
|
111
|
+
const mem = getDataViewMemory0();
|
|
112
|
+
const result = [];
|
|
113
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
114
|
+
result.push(wasm.__wbindgen_export_5.get(mem.getUint32(i, true)));
|
|
115
|
+
}
|
|
116
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
117
|
+
return result;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function isLikeNone(x) {
|
|
121
|
+
return x === undefined || x === null;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
125
|
+
ptr = ptr >>> 0;
|
|
126
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
130
|
+
? { register: () => {}, unregister: () => {} }
|
|
131
|
+
: new FinalizationRegistry(state => {
|
|
132
|
+
wasm.__wbindgen_export_7.get(state.dtor)(state.a, state.b)
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
136
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
137
|
+
const real = (...args) => {
|
|
138
|
+
// First up with a closure we increment the internal reference
|
|
139
|
+
// count. This ensures that the Rust closure environment won't
|
|
140
|
+
// be deallocated while we're invoking it.
|
|
141
|
+
state.cnt++;
|
|
142
|
+
const a = state.a;
|
|
143
|
+
state.a = 0;
|
|
144
|
+
try {
|
|
145
|
+
return f(a, state.b, ...args);
|
|
146
|
+
} finally {
|
|
147
|
+
if (--state.cnt === 0) {
|
|
148
|
+
wasm.__wbindgen_export_7.get(state.dtor)(a, state.b);
|
|
149
|
+
CLOSURE_DTORS.unregister(state);
|
|
150
|
+
} else {
|
|
151
|
+
state.a = a;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
real.original = state;
|
|
156
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
157
|
+
return real;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
function debugString(val) {
|
|
161
|
+
// primitive types
|
|
162
|
+
const type = typeof val;
|
|
163
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
164
|
+
return `${val}`;
|
|
165
|
+
}
|
|
166
|
+
if (type == 'string') {
|
|
167
|
+
return `"${val}"`;
|
|
168
|
+
}
|
|
169
|
+
if (type == 'symbol') {
|
|
170
|
+
const description = val.description;
|
|
171
|
+
if (description == null) {
|
|
172
|
+
return 'Symbol';
|
|
173
|
+
} else {
|
|
174
|
+
return `Symbol(${description})`;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
if (type == 'function') {
|
|
178
|
+
const name = val.name;
|
|
179
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
180
|
+
return `Function(${name})`;
|
|
181
|
+
} else {
|
|
182
|
+
return 'Function';
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
// objects
|
|
186
|
+
if (Array.isArray(val)) {
|
|
187
|
+
const length = val.length;
|
|
188
|
+
let debug = '[';
|
|
189
|
+
if (length > 0) {
|
|
190
|
+
debug += debugString(val[0]);
|
|
191
|
+
}
|
|
192
|
+
for(let i = 1; i < length; i++) {
|
|
193
|
+
debug += ', ' + debugString(val[i]);
|
|
194
|
+
}
|
|
195
|
+
debug += ']';
|
|
196
|
+
return debug;
|
|
197
|
+
}
|
|
198
|
+
// Test for built-in
|
|
199
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
200
|
+
let className;
|
|
201
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
202
|
+
className = builtInMatches[1];
|
|
203
|
+
} else {
|
|
204
|
+
// Failed to match the standard '[object ClassName]'
|
|
205
|
+
return toString.call(val);
|
|
206
|
+
}
|
|
207
|
+
if (className == 'Object') {
|
|
208
|
+
// we're a user defined class or Object
|
|
209
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
210
|
+
// easier than looping through ownProperties of `val`.
|
|
211
|
+
try {
|
|
212
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
213
|
+
} catch (_) {
|
|
214
|
+
return 'Object';
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
// errors
|
|
218
|
+
if (val instanceof Error) {
|
|
219
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
220
|
+
}
|
|
221
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
222
|
+
return className;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Creates a default PostgreSQL storage configuration with sensible defaults.
|
|
226
|
+
*
|
|
227
|
+
* Default values (from pg.Pool):
|
|
228
|
+
* - `maxPoolSize`: 10
|
|
229
|
+
* - `createTimeoutSecs`: 0 (no timeout)
|
|
230
|
+
* - `recycleTimeoutSecs`: 10 (10 seconds idle before disconnect)
|
|
231
|
+
* @param {string} connection_string
|
|
232
|
+
* @returns {PostgresStorageConfig}
|
|
233
|
+
*/
|
|
234
|
+
export function defaultPostgresStorageConfig(connection_string) {
|
|
235
|
+
const ptr0 = passStringToWasm0(connection_string, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
236
|
+
const len0 = WASM_VECTOR_LEN;
|
|
237
|
+
const ret = wasm.defaultPostgresStorageConfig(ptr0, len0);
|
|
238
|
+
return ret;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
function takeFromExternrefTable0(idx) {
|
|
242
|
+
const value = wasm.__wbindgen_export_5.get(idx);
|
|
243
|
+
wasm.__externref_table_dealloc(idx);
|
|
244
|
+
return value;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* @param {string} mnemonic
|
|
248
|
+
* @param {string | null | undefined} passphrase
|
|
249
|
+
* @param {Network} network
|
|
250
|
+
* @param {KeySetConfig | null} [key_set_config]
|
|
251
|
+
* @returns {DefaultSigner}
|
|
252
|
+
*/
|
|
253
|
+
export function defaultExternalSigner(mnemonic, passphrase, network, key_set_config) {
|
|
254
|
+
const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
255
|
+
const len0 = WASM_VECTOR_LEN;
|
|
256
|
+
var ptr1 = isLikeNone(passphrase) ? 0 : passStringToWasm0(passphrase, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
257
|
+
var len1 = WASM_VECTOR_LEN;
|
|
258
|
+
const ret = wasm.defaultExternalSigner(ptr0, len0, ptr1, len1, network, isLikeNone(key_set_config) ? 0 : addToExternrefTable0(key_set_config));
|
|
259
|
+
if (ret[2]) {
|
|
260
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
261
|
+
}
|
|
262
|
+
return DefaultSigner.__wrap(ret[0]);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* @param {Network} network
|
|
267
|
+
* @returns {Config}
|
|
268
|
+
*/
|
|
269
|
+
export function defaultConfig(network) {
|
|
270
|
+
const ret = wasm.defaultConfig(network);
|
|
271
|
+
return ret;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Creates a default external signer from a mnemonic phrase.
|
|
276
|
+
*
|
|
277
|
+
* This creates a signer that can be used with `connectWithSigner` or `SdkBuilder.newWithSigner`.
|
|
278
|
+
* @returns {Promise<SparkStatus>}
|
|
279
|
+
*/
|
|
280
|
+
export function getSparkStatus() {
|
|
281
|
+
const ret = wasm.getSparkStatus();
|
|
282
|
+
return ret;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* @param {Logger} logger
|
|
287
|
+
* @param {string | null} [filter]
|
|
288
|
+
* @returns {Promise<void>}
|
|
289
|
+
*/
|
|
290
|
+
export function initLogging(logger, filter) {
|
|
291
|
+
var ptr0 = isLikeNone(filter) ? 0 : passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
292
|
+
var len0 = WASM_VECTOR_LEN;
|
|
293
|
+
const ret = wasm.initLogging(logger, ptr0, len0);
|
|
294
|
+
return ret;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* @param {ConnectRequest} request
|
|
299
|
+
* @returns {Promise<BreezSdk>}
|
|
300
|
+
*/
|
|
301
|
+
export function connect(request) {
|
|
302
|
+
const ret = wasm.connect(request);
|
|
303
|
+
return ret;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* @param {Config} config
|
|
308
|
+
* @param {ExternalSigner} signer
|
|
309
|
+
* @param {string} storage_dir
|
|
310
|
+
* @returns {Promise<BreezSdk>}
|
|
311
|
+
*/
|
|
312
|
+
export function connectWithSigner(config, signer, storage_dir) {
|
|
313
|
+
const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
314
|
+
const len0 = WASM_VECTOR_LEN;
|
|
315
|
+
const ret = wasm.connectWithSigner(config, signer, ptr0, len0);
|
|
316
|
+
return ret;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
320
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
321
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
322
|
+
WASM_VECTOR_LEN = arg.length;
|
|
323
|
+
return ptr;
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Entry point invoked by JavaScript in a worker.
|
|
327
|
+
* @param {number} ptr
|
|
328
|
+
*/
|
|
329
|
+
export function task_worker_entry_point(ptr) {
|
|
330
|
+
const ret = wasm.task_worker_entry_point(ptr);
|
|
331
|
+
if (ret[1]) {
|
|
332
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
function __wbg_adapter_64(arg0, arg1, arg2) {
|
|
337
|
+
wasm.closure385_externref_shim(arg0, arg1, arg2);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
function __wbg_adapter_69(arg0, arg1) {
|
|
341
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4e01f3b5b423f0fd(arg0, arg1);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
function __wbg_adapter_391(arg0, arg1, arg2, arg3) {
|
|
345
|
+
wasm.closure656_externref_shim(arg0, arg1, arg2, arg3);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
349
|
+
|
|
350
|
+
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
351
|
+
|
|
352
|
+
const __wbindgen_enum_ReferrerPolicy = ["", "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "unsafe-url", "same-origin", "strict-origin", "strict-origin-when-cross-origin"];
|
|
353
|
+
|
|
354
|
+
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
355
|
+
|
|
356
|
+
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
357
|
+
|
|
358
|
+
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
359
|
+
|
|
360
|
+
const __wbindgen_enum_RequestRedirect = ["follow", "error", "manual"];
|
|
361
|
+
|
|
362
|
+
const BreezSdkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
363
|
+
? { register: () => {}, unregister: () => {} }
|
|
364
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_breezsdk_free(ptr >>> 0, 1));
|
|
365
|
+
|
|
366
|
+
export class BreezSdk {
|
|
367
|
+
|
|
368
|
+
static __wrap(ptr) {
|
|
369
|
+
ptr = ptr >>> 0;
|
|
370
|
+
const obj = Object.create(BreezSdk.prototype);
|
|
371
|
+
obj.__wbg_ptr = ptr;
|
|
372
|
+
BreezSdkFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
373
|
+
return obj;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
__destroy_into_raw() {
|
|
377
|
+
const ptr = this.__wbg_ptr;
|
|
378
|
+
this.__wbg_ptr = 0;
|
|
379
|
+
BreezSdkFinalization.unregister(this);
|
|
380
|
+
return ptr;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
free() {
|
|
384
|
+
const ptr = this.__destroy_into_raw();
|
|
385
|
+
wasm.__wbg_breezsdk_free(ptr, 0);
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* @returns {Promise<void>}
|
|
389
|
+
*/
|
|
390
|
+
disconnect() {
|
|
391
|
+
const ret = wasm.breezsdk_disconnect(this.__wbg_ptr);
|
|
392
|
+
return ret;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* @param {LnurlAuthRequestDetails} request_data
|
|
396
|
+
* @returns {Promise<LnurlCallbackStatus>}
|
|
397
|
+
*/
|
|
398
|
+
lnurlAuth(request_data) {
|
|
399
|
+
const ret = wasm.breezsdk_lnurlAuth(this.__wbg_ptr, request_data);
|
|
400
|
+
return ret;
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* @param {AddContactRequest} request
|
|
404
|
+
* @returns {Promise<Contact>}
|
|
405
|
+
*/
|
|
406
|
+
addContact(request) {
|
|
407
|
+
const ret = wasm.breezsdk_addContact(this.__wbg_ptr, request);
|
|
408
|
+
return ret;
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* @param {BuyBitcoinRequest} request
|
|
412
|
+
* @returns {Promise<BuyBitcoinResponse>}
|
|
413
|
+
*/
|
|
414
|
+
buyBitcoin(request) {
|
|
415
|
+
const ret = wasm.breezsdk_buyBitcoin(this.__wbg_ptr, request);
|
|
416
|
+
return ret;
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* @param {GetPaymentRequest} request
|
|
420
|
+
* @returns {Promise<GetPaymentResponse>}
|
|
421
|
+
*/
|
|
422
|
+
getPayment(request) {
|
|
423
|
+
const ret = wasm.breezsdk_getPayment(this.__wbg_ptr, request);
|
|
424
|
+
return ret;
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* @param {SyncWalletRequest} request
|
|
428
|
+
* @returns {Promise<SyncWalletResponse>}
|
|
429
|
+
*/
|
|
430
|
+
syncWallet(request) {
|
|
431
|
+
const ret = wasm.breezsdk_syncWallet(this.__wbg_ptr, request);
|
|
432
|
+
return ret;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* @param {SendPaymentRequest} request
|
|
436
|
+
* @returns {Promise<SendPaymentResponse>}
|
|
437
|
+
*/
|
|
438
|
+
sendPayment(request) {
|
|
439
|
+
const ret = wasm.breezsdk_sendPayment(this.__wbg_ptr, request);
|
|
440
|
+
return ret;
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* @param {SignMessageRequest} request
|
|
444
|
+
* @returns {Promise<SignMessageResponse>}
|
|
445
|
+
*/
|
|
446
|
+
signMessage(request) {
|
|
447
|
+
const ret = wasm.breezsdk_signMessage(this.__wbg_ptr, request);
|
|
448
|
+
return ret;
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* @param {CheckMessageRequest} request
|
|
452
|
+
* @returns {Promise<CheckMessageResponse>}
|
|
453
|
+
*/
|
|
454
|
+
checkMessage(request) {
|
|
455
|
+
const ret = wasm.breezsdk_checkMessage(this.__wbg_ptr, request);
|
|
456
|
+
return ret;
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* @param {ClaimDepositRequest} request
|
|
460
|
+
* @returns {Promise<ClaimDepositResponse>}
|
|
461
|
+
*/
|
|
462
|
+
claimDeposit(request) {
|
|
463
|
+
const ret = wasm.breezsdk_claimDeposit(this.__wbg_ptr, request);
|
|
464
|
+
return ret;
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* @param {ListContactsRequest} request
|
|
468
|
+
* @returns {Promise<Contact[]>}
|
|
469
|
+
*/
|
|
470
|
+
listContacts(request) {
|
|
471
|
+
const ret = wasm.breezsdk_listContacts(this.__wbg_ptr, request);
|
|
472
|
+
return ret;
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* @param {ListPaymentsRequest} request
|
|
476
|
+
* @returns {Promise<ListPaymentsResponse>}
|
|
477
|
+
*/
|
|
478
|
+
listPayments(request) {
|
|
479
|
+
const ret = wasm.breezsdk_listPayments(this.__wbg_ptr, request);
|
|
480
|
+
return ret;
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* @returns {Promise<Webhook[]>}
|
|
484
|
+
*/
|
|
485
|
+
listWebhooks() {
|
|
486
|
+
const ret = wasm.breezsdk_listWebhooks(this.__wbg_ptr);
|
|
487
|
+
return ret;
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* @param {string} id
|
|
491
|
+
* @returns {Promise<void>}
|
|
492
|
+
*/
|
|
493
|
+
deleteContact(id) {
|
|
494
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
495
|
+
const len0 = WASM_VECTOR_LEN;
|
|
496
|
+
const ret = wasm.breezsdk_deleteContact(this.__wbg_ptr, ptr0, len0);
|
|
497
|
+
return ret;
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* @param {LnurlWithdrawRequest} request
|
|
501
|
+
* @returns {Promise<LnurlWithdrawResponse>}
|
|
502
|
+
*/
|
|
503
|
+
lnurlWithdraw(request) {
|
|
504
|
+
const ret = wasm.breezsdk_lnurlWithdraw(this.__wbg_ptr, request);
|
|
505
|
+
return ret;
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* @param {RefundDepositRequest} request
|
|
509
|
+
* @returns {Promise<RefundDepositResponse>}
|
|
510
|
+
*/
|
|
511
|
+
refundDeposit(request) {
|
|
512
|
+
const ret = wasm.breezsdk_refundDeposit(this.__wbg_ptr, request);
|
|
513
|
+
return ret;
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* @param {UpdateContactRequest} request
|
|
517
|
+
* @returns {Promise<Contact>}
|
|
518
|
+
*/
|
|
519
|
+
updateContact(request) {
|
|
520
|
+
const ret = wasm.breezsdk_updateContact(this.__wbg_ptr, request);
|
|
521
|
+
return ret;
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* @returns {Promise<ListFiatRatesResponse>}
|
|
525
|
+
*/
|
|
526
|
+
listFiatRates() {
|
|
527
|
+
const ret = wasm.breezsdk_listFiatRates(this.__wbg_ptr);
|
|
528
|
+
return ret;
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* @param {ReceivePaymentRequest} request
|
|
532
|
+
* @returns {Promise<ReceivePaymentResponse>}
|
|
533
|
+
*/
|
|
534
|
+
receivePayment(request) {
|
|
535
|
+
const ret = wasm.breezsdk_receivePayment(this.__wbg_ptr, request);
|
|
536
|
+
return ret;
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* @returns {TokenIssuer}
|
|
540
|
+
*/
|
|
541
|
+
getTokenIssuer() {
|
|
542
|
+
const ret = wasm.breezsdk_getTokenIssuer(this.__wbg_ptr);
|
|
543
|
+
return TokenIssuer.__wrap(ret);
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* @returns {Promise<RecommendedFees>}
|
|
547
|
+
*/
|
|
548
|
+
recommendedFees() {
|
|
549
|
+
const ret = wasm.breezsdk_recommendedFees(this.__wbg_ptr);
|
|
550
|
+
return ret;
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* @param {RegisterWebhookRequest} request
|
|
554
|
+
* @returns {Promise<RegisterWebhookResponse>}
|
|
555
|
+
*/
|
|
556
|
+
registerWebhook(request) {
|
|
557
|
+
const ret = wasm.breezsdk_registerWebhook(this.__wbg_ptr, request);
|
|
558
|
+
return ret;
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* @returns {Promise<UserSettings>}
|
|
562
|
+
*/
|
|
563
|
+
getUserSettings() {
|
|
564
|
+
const ret = wasm.breezsdk_getUserSettings(this.__wbg_ptr);
|
|
565
|
+
return ret;
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* @param {PrepareLnurlPayRequest} request
|
|
569
|
+
* @returns {Promise<PrepareLnurlPayResponse>}
|
|
570
|
+
*/
|
|
571
|
+
prepareLnurlPay(request) {
|
|
572
|
+
const ret = wasm.breezsdk_prepareLnurlPay(this.__wbg_ptr, request);
|
|
573
|
+
return ret;
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* @param {EventListener} listener
|
|
577
|
+
* @returns {Promise<string>}
|
|
578
|
+
*/
|
|
579
|
+
addEventListener(listener) {
|
|
580
|
+
const ret = wasm.breezsdk_addEventListener(this.__wbg_ptr, listener);
|
|
581
|
+
return ret;
|
|
582
|
+
}
|
|
583
|
+
/**
|
|
584
|
+
* @param {ClaimHtlcPaymentRequest} request
|
|
585
|
+
* @returns {Promise<ClaimHtlcPaymentResponse>}
|
|
586
|
+
*/
|
|
587
|
+
claimHtlcPayment(request) {
|
|
588
|
+
const ret = wasm.breezsdk_claimHtlcPayment(this.__wbg_ptr, request);
|
|
589
|
+
return ret;
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* @param {UnregisterWebhookRequest} request
|
|
593
|
+
* @returns {Promise<void>}
|
|
594
|
+
*/
|
|
595
|
+
unregisterWebhook(request) {
|
|
596
|
+
const ret = wasm.breezsdk_unregisterWebhook(this.__wbg_ptr, request);
|
|
597
|
+
return ret;
|
|
598
|
+
}
|
|
599
|
+
/**
|
|
600
|
+
* @param {GetTokensMetadataRequest} request
|
|
601
|
+
* @returns {Promise<GetTokensMetadataResponse>}
|
|
602
|
+
*/
|
|
603
|
+
getTokensMetadata(request) {
|
|
604
|
+
const ret = wasm.breezsdk_getTokensMetadata(this.__wbg_ptr, request);
|
|
605
|
+
return ret;
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* @returns {Promise<ListFiatCurrenciesResponse>}
|
|
609
|
+
*/
|
|
610
|
+
listFiatCurrencies() {
|
|
611
|
+
const ret = wasm.breezsdk_listFiatCurrencies(this.__wbg_ptr);
|
|
612
|
+
return ret;
|
|
613
|
+
}
|
|
614
|
+
/**
|
|
615
|
+
* @param {PrepareSendPaymentRequest} request
|
|
616
|
+
* @returns {Promise<PrepareSendPaymentResponse>}
|
|
617
|
+
*/
|
|
618
|
+
prepareSendPayment(request) {
|
|
619
|
+
const ret = wasm.breezsdk_prepareSendPayment(this.__wbg_ptr, request);
|
|
620
|
+
return ret;
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* @param {UpdateUserSettingsRequest} request
|
|
624
|
+
* @returns {Promise<void>}
|
|
625
|
+
*/
|
|
626
|
+
updateUserSettings(request) {
|
|
627
|
+
const ret = wasm.breezsdk_updateUserSettings(this.__wbg_ptr, request);
|
|
628
|
+
return ret;
|
|
629
|
+
}
|
|
630
|
+
/**
|
|
631
|
+
* @returns {Promise<LightningAddressInfo | undefined>}
|
|
632
|
+
*/
|
|
633
|
+
getLightningAddress() {
|
|
634
|
+
const ret = wasm.breezsdk_getLightningAddress(this.__wbg_ptr);
|
|
635
|
+
return ret;
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* @param {string} id
|
|
639
|
+
* @returns {Promise<boolean>}
|
|
640
|
+
*/
|
|
641
|
+
removeEventListener(id) {
|
|
642
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
643
|
+
const len0 = WASM_VECTOR_LEN;
|
|
644
|
+
const ret = wasm.breezsdk_removeEventListener(this.__wbg_ptr, ptr0, len0);
|
|
645
|
+
return ret;
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* @param {FetchConversionLimitsRequest} request
|
|
649
|
+
* @returns {Promise<FetchConversionLimitsResponse>}
|
|
650
|
+
*/
|
|
651
|
+
fetchConversionLimits(request) {
|
|
652
|
+
const ret = wasm.breezsdk_fetchConversionLimits(this.__wbg_ptr, request);
|
|
653
|
+
return ret;
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* @param {ListUnclaimedDepositsRequest} request
|
|
657
|
+
* @returns {Promise<ListUnclaimedDepositsResponse>}
|
|
658
|
+
*/
|
|
659
|
+
listUnclaimedDeposits(request) {
|
|
660
|
+
const ret = wasm.breezsdk_listUnclaimedDeposits(this.__wbg_ptr, request);
|
|
661
|
+
return ret;
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* @returns {Promise<void>}
|
|
665
|
+
*/
|
|
666
|
+
startLeafOptimization() {
|
|
667
|
+
const ret = wasm.breezsdk_startLeafOptimization(this.__wbg_ptr);
|
|
668
|
+
return ret;
|
|
669
|
+
}
|
|
670
|
+
/**
|
|
671
|
+
* @returns {Promise<void>}
|
|
672
|
+
*/
|
|
673
|
+
cancelLeafOptimization() {
|
|
674
|
+
const ret = wasm.breezsdk_cancelLeafOptimization(this.__wbg_ptr);
|
|
675
|
+
return ret;
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* @returns {Promise<void>}
|
|
679
|
+
*/
|
|
680
|
+
deleteLightningAddress() {
|
|
681
|
+
const ret = wasm.breezsdk_deleteLightningAddress(this.__wbg_ptr);
|
|
682
|
+
return ret;
|
|
683
|
+
}
|
|
684
|
+
/**
|
|
685
|
+
* @param {RegisterLightningAddressRequest} request
|
|
686
|
+
* @returns {Promise<LightningAddressInfo>}
|
|
687
|
+
*/
|
|
688
|
+
registerLightningAddress(request) {
|
|
689
|
+
const ret = wasm.breezsdk_registerLightningAddress(this.__wbg_ptr, request);
|
|
690
|
+
return ret;
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* @returns {OptimizationProgress}
|
|
694
|
+
*/
|
|
695
|
+
getLeafOptimizationProgress() {
|
|
696
|
+
const ret = wasm.breezsdk_getLeafOptimizationProgress(this.__wbg_ptr);
|
|
697
|
+
return ret;
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
* @param {CheckLightningAddressRequest} request
|
|
701
|
+
* @returns {Promise<boolean>}
|
|
702
|
+
*/
|
|
703
|
+
checkLightningAddressAvailable(request) {
|
|
704
|
+
const ret = wasm.breezsdk_checkLightningAddressAvailable(this.__wbg_ptr, request);
|
|
705
|
+
return ret;
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* @param {string} input
|
|
709
|
+
* @returns {Promise<InputType>}
|
|
710
|
+
*/
|
|
711
|
+
parse(input) {
|
|
712
|
+
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
713
|
+
const len0 = WASM_VECTOR_LEN;
|
|
714
|
+
const ret = wasm.breezsdk_parse(this.__wbg_ptr, ptr0, len0);
|
|
715
|
+
return ret;
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
* @param {GetInfoRequest} request
|
|
719
|
+
* @returns {Promise<GetInfoResponse>}
|
|
720
|
+
*/
|
|
721
|
+
getInfo(request) {
|
|
722
|
+
const ret = wasm.breezsdk_getInfo(this.__wbg_ptr, request);
|
|
723
|
+
return ret;
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
* @param {LnurlPayRequest} request
|
|
727
|
+
* @returns {Promise<LnurlPayResponse>}
|
|
728
|
+
*/
|
|
729
|
+
lnurlPay(request) {
|
|
730
|
+
const ret = wasm.breezsdk_lnurlPay(this.__wbg_ptr, request);
|
|
731
|
+
return ret;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
const DefaultSignerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
736
|
+
? { register: () => {}, unregister: () => {} }
|
|
737
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_defaultsigner_free(ptr >>> 0, 1));
|
|
738
|
+
/**
|
|
739
|
+
* A default signer implementation that wraps the core SDK's ExternalSigner.
|
|
740
|
+
* This is returned by `defaultExternalSigner` and can be passed to `connectWithSigner`.
|
|
741
|
+
*/
|
|
742
|
+
export class DefaultSigner {
|
|
743
|
+
|
|
744
|
+
static __wrap(ptr) {
|
|
745
|
+
ptr = ptr >>> 0;
|
|
746
|
+
const obj = Object.create(DefaultSigner.prototype);
|
|
747
|
+
obj.__wbg_ptr = ptr;
|
|
748
|
+
DefaultSignerFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
749
|
+
return obj;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
__destroy_into_raw() {
|
|
753
|
+
const ptr = this.__wbg_ptr;
|
|
754
|
+
this.__wbg_ptr = 0;
|
|
755
|
+
DefaultSignerFinalization.unregister(this);
|
|
756
|
+
return ptr;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
free() {
|
|
760
|
+
const ptr = this.__destroy_into_raw();
|
|
761
|
+
wasm.__wbg_defaultsigner_free(ptr, 0);
|
|
762
|
+
}
|
|
763
|
+
/**
|
|
764
|
+
* @param {MessageBytes} message
|
|
765
|
+
* @param {string} path
|
|
766
|
+
* @returns {Promise<EcdsaSignatureBytes>}
|
|
767
|
+
*/
|
|
768
|
+
signEcdsa(message, path) {
|
|
769
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
770
|
+
const len0 = WASM_VECTOR_LEN;
|
|
771
|
+
const ret = wasm.defaultsigner_signEcdsa(this.__wbg_ptr, message, ptr0, len0);
|
|
772
|
+
return ret;
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
* @param {ExternalSignFrostRequest} request
|
|
776
|
+
* @returns {Promise<ExternalFrostSignatureShare>}
|
|
777
|
+
*/
|
|
778
|
+
signFrost(request) {
|
|
779
|
+
const ret = wasm.defaultsigner_signFrost(this.__wbg_ptr, request);
|
|
780
|
+
return ret;
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* @param {Uint8Array} message
|
|
784
|
+
* @param {string} path
|
|
785
|
+
* @returns {Promise<HashedMessageBytes>}
|
|
786
|
+
*/
|
|
787
|
+
hmacSha256(message, path) {
|
|
788
|
+
const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
|
|
789
|
+
const len0 = WASM_VECTOR_LEN;
|
|
790
|
+
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
791
|
+
const len1 = WASM_VECTOR_LEN;
|
|
792
|
+
const ret = wasm.defaultsigner_hmacSha256(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
793
|
+
return ret;
|
|
794
|
+
}
|
|
795
|
+
/**
|
|
796
|
+
* @param {Uint8Array} message
|
|
797
|
+
* @param {string} path
|
|
798
|
+
* @returns {Promise<Uint8Array>}
|
|
799
|
+
*/
|
|
800
|
+
decryptEcies(message, path) {
|
|
801
|
+
const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
|
|
802
|
+
const len0 = WASM_VECTOR_LEN;
|
|
803
|
+
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
804
|
+
const len1 = WASM_VECTOR_LEN;
|
|
805
|
+
const ret = wasm.defaultsigner_decryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
806
|
+
return ret;
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* @param {Uint8Array} message
|
|
810
|
+
* @param {string} path
|
|
811
|
+
* @returns {Promise<Uint8Array>}
|
|
812
|
+
*/
|
|
813
|
+
encryptEcies(message, path) {
|
|
814
|
+
const ptr0 = passArray8ToWasm0(message, wasm.__wbindgen_malloc);
|
|
815
|
+
const len0 = WASM_VECTOR_LEN;
|
|
816
|
+
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
817
|
+
const len1 = WASM_VECTOR_LEN;
|
|
818
|
+
const ret = wasm.defaultsigner_encryptEcies(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
819
|
+
return ret;
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
* @param {ExternalAggregateFrostRequest} request
|
|
823
|
+
* @returns {Promise<ExternalFrostSignature>}
|
|
824
|
+
*/
|
|
825
|
+
aggregateFrost(request) {
|
|
826
|
+
const ret = wasm.defaultsigner_aggregateFrost(this.__wbg_ptr, request);
|
|
827
|
+
return ret;
|
|
828
|
+
}
|
|
829
|
+
/**
|
|
830
|
+
* @param {ExternalSecretSource} signing_key
|
|
831
|
+
* @param {ExternalSecretSource} new_signing_key
|
|
832
|
+
* @returns {Promise<ExternalSecretSource>}
|
|
833
|
+
*/
|
|
834
|
+
subtractSecrets(signing_key, new_signing_key) {
|
|
835
|
+
const ret = wasm.defaultsigner_subtractSecrets(this.__wbg_ptr, signing_key, new_signing_key);
|
|
836
|
+
return ret;
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
* @param {string} path
|
|
840
|
+
* @returns {Promise<PublicKeyBytes>}
|
|
841
|
+
*/
|
|
842
|
+
derivePublicKey(path) {
|
|
843
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
844
|
+
const len0 = WASM_VECTOR_LEN;
|
|
845
|
+
const ret = wasm.defaultsigner_derivePublicKey(this.__wbg_ptr, ptr0, len0);
|
|
846
|
+
return ret;
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* @param {Uint8Array} hash
|
|
850
|
+
* @param {string} path
|
|
851
|
+
* @returns {Promise<SchnorrSignatureBytes>}
|
|
852
|
+
*/
|
|
853
|
+
signHashSchnorr(hash, path) {
|
|
854
|
+
const ptr0 = passArray8ToWasm0(hash, wasm.__wbindgen_malloc);
|
|
855
|
+
const len0 = WASM_VECTOR_LEN;
|
|
856
|
+
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
857
|
+
const len1 = WASM_VECTOR_LEN;
|
|
858
|
+
const ret = wasm.defaultsigner_signHashSchnorr(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
859
|
+
return ret;
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* @returns {PublicKeyBytes}
|
|
863
|
+
*/
|
|
864
|
+
identityPublicKey() {
|
|
865
|
+
const ret = wasm.defaultsigner_identityPublicKey(this.__wbg_ptr);
|
|
866
|
+
if (ret[2]) {
|
|
867
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
868
|
+
}
|
|
869
|
+
return takeFromExternrefTable0(ret[0]);
|
|
870
|
+
}
|
|
871
|
+
/**
|
|
872
|
+
* @param {number} index
|
|
873
|
+
* @returns {Promise<SecretBytes>}
|
|
874
|
+
*/
|
|
875
|
+
staticDepositSecret(index) {
|
|
876
|
+
const ret = wasm.defaultsigner_staticDepositSecret(this.__wbg_ptr, index);
|
|
877
|
+
return ret;
|
|
878
|
+
}
|
|
879
|
+
/**
|
|
880
|
+
* @returns {Promise<ExternalEncryptedSecret>}
|
|
881
|
+
*/
|
|
882
|
+
generateRandomSecret() {
|
|
883
|
+
const ret = wasm.defaultsigner_generateRandomSecret(this.__wbg_ptr);
|
|
884
|
+
return ret;
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
* @param {ExternalSecretSource} private_key
|
|
888
|
+
* @returns {Promise<PublicKeyBytes>}
|
|
889
|
+
*/
|
|
890
|
+
publicKeyFromSecret(private_key) {
|
|
891
|
+
const ret = wasm.defaultsigner_publicKeyFromSecret(this.__wbg_ptr, private_key);
|
|
892
|
+
return ret;
|
|
893
|
+
}
|
|
894
|
+
/**
|
|
895
|
+
* @param {MessageBytes} message
|
|
896
|
+
* @param {string} path
|
|
897
|
+
* @returns {Promise<RecoverableEcdsaSignatureBytes>}
|
|
898
|
+
*/
|
|
899
|
+
signEcdsaRecoverable(message, path) {
|
|
900
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
901
|
+
const len0 = WASM_VECTOR_LEN;
|
|
902
|
+
const ret = wasm.defaultsigner_signEcdsaRecoverable(this.__wbg_ptr, message, ptr0, len0);
|
|
903
|
+
return ret;
|
|
904
|
+
}
|
|
905
|
+
/**
|
|
906
|
+
* @param {ExternalTreeNodeId} id
|
|
907
|
+
* @returns {Promise<PublicKeyBytes>}
|
|
908
|
+
*/
|
|
909
|
+
getPublicKeyForNode(id) {
|
|
910
|
+
const ret = wasm.defaultsigner_getPublicKeyForNode(this.__wbg_ptr, id);
|
|
911
|
+
return ret;
|
|
912
|
+
}
|
|
913
|
+
/**
|
|
914
|
+
* @param {ExternalSecretToSplit} secret
|
|
915
|
+
* @param {number} threshold
|
|
916
|
+
* @param {number} num_shares
|
|
917
|
+
* @returns {Promise<ExternalVerifiableSecretShare[]>}
|
|
918
|
+
*/
|
|
919
|
+
splitSecretWithProofs(secret, threshold, num_shares) {
|
|
920
|
+
const ret = wasm.defaultsigner_splitSecretWithProofs(this.__wbg_ptr, secret, threshold, num_shares);
|
|
921
|
+
return ret;
|
|
922
|
+
}
|
|
923
|
+
/**
|
|
924
|
+
* @param {number} index
|
|
925
|
+
* @returns {Promise<PublicKeyBytes>}
|
|
926
|
+
*/
|
|
927
|
+
staticDepositSigningKey(index) {
|
|
928
|
+
const ret = wasm.defaultsigner_staticDepositSigningKey(this.__wbg_ptr, index);
|
|
929
|
+
return ret;
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* @param {ExternalEncryptedSecret} private_key
|
|
933
|
+
* @param {PublicKeyBytes} receiver_public_key
|
|
934
|
+
* @returns {Promise<Uint8Array>}
|
|
935
|
+
*/
|
|
936
|
+
encryptPrivateKeyForReceiver(private_key, receiver_public_key) {
|
|
937
|
+
const ret = wasm.defaultsigner_encryptPrivateKeyForReceiver(this.__wbg_ptr, private_key, receiver_public_key);
|
|
938
|
+
return ret;
|
|
939
|
+
}
|
|
940
|
+
/**
|
|
941
|
+
* @param {number} index
|
|
942
|
+
* @returns {Promise<ExternalSecretSource>}
|
|
943
|
+
*/
|
|
944
|
+
staticDepositSecretEncrypted(index) {
|
|
945
|
+
const ret = wasm.defaultsigner_staticDepositSecretEncrypted(this.__wbg_ptr, index);
|
|
946
|
+
return ret;
|
|
947
|
+
}
|
|
948
|
+
/**
|
|
949
|
+
* @returns {Promise<ExternalFrostCommitments>}
|
|
950
|
+
*/
|
|
951
|
+
generateRandomSigningCommitment() {
|
|
952
|
+
const ret = wasm.defaultsigner_generateRandomSigningCommitment(this.__wbg_ptr);
|
|
953
|
+
return ret;
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
958
|
+
? { register: () => {}, unregister: () => {} }
|
|
959
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr >>> 0, 1));
|
|
960
|
+
|
|
961
|
+
export class IntoUnderlyingByteSource {
|
|
962
|
+
|
|
963
|
+
__destroy_into_raw() {
|
|
964
|
+
const ptr = this.__wbg_ptr;
|
|
965
|
+
this.__wbg_ptr = 0;
|
|
966
|
+
IntoUnderlyingByteSourceFinalization.unregister(this);
|
|
967
|
+
return ptr;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
free() {
|
|
971
|
+
const ptr = this.__destroy_into_raw();
|
|
972
|
+
wasm.__wbg_intounderlyingbytesource_free(ptr, 0);
|
|
973
|
+
}
|
|
974
|
+
/**
|
|
975
|
+
* @returns {number}
|
|
976
|
+
*/
|
|
977
|
+
get autoAllocateChunkSize() {
|
|
978
|
+
const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr);
|
|
979
|
+
return ret >>> 0;
|
|
980
|
+
}
|
|
981
|
+
/**
|
|
982
|
+
* @param {ReadableByteStreamController} controller
|
|
983
|
+
* @returns {Promise<any>}
|
|
984
|
+
*/
|
|
985
|
+
pull(controller) {
|
|
986
|
+
const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller);
|
|
987
|
+
return ret;
|
|
988
|
+
}
|
|
989
|
+
/**
|
|
990
|
+
* @param {ReadableByteStreamController} controller
|
|
991
|
+
*/
|
|
992
|
+
start(controller) {
|
|
993
|
+
wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller);
|
|
994
|
+
}
|
|
995
|
+
/**
|
|
996
|
+
* @returns {ReadableStreamType}
|
|
997
|
+
*/
|
|
998
|
+
get type() {
|
|
999
|
+
const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
|
|
1000
|
+
return __wbindgen_enum_ReadableStreamType[ret];
|
|
1001
|
+
}
|
|
1002
|
+
cancel() {
|
|
1003
|
+
const ptr = this.__destroy_into_raw();
|
|
1004
|
+
wasm.intounderlyingbytesource_cancel(ptr);
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1009
|
+
? { register: () => {}, unregister: () => {} }
|
|
1010
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr >>> 0, 1));
|
|
1011
|
+
|
|
1012
|
+
export class IntoUnderlyingSink {
|
|
1013
|
+
|
|
1014
|
+
__destroy_into_raw() {
|
|
1015
|
+
const ptr = this.__wbg_ptr;
|
|
1016
|
+
this.__wbg_ptr = 0;
|
|
1017
|
+
IntoUnderlyingSinkFinalization.unregister(this);
|
|
1018
|
+
return ptr;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
free() {
|
|
1022
|
+
const ptr = this.__destroy_into_raw();
|
|
1023
|
+
wasm.__wbg_intounderlyingsink_free(ptr, 0);
|
|
1024
|
+
}
|
|
1025
|
+
/**
|
|
1026
|
+
* @param {any} reason
|
|
1027
|
+
* @returns {Promise<any>}
|
|
1028
|
+
*/
|
|
1029
|
+
abort(reason) {
|
|
1030
|
+
const ptr = this.__destroy_into_raw();
|
|
1031
|
+
const ret = wasm.intounderlyingsink_abort(ptr, reason);
|
|
1032
|
+
return ret;
|
|
1033
|
+
}
|
|
1034
|
+
/**
|
|
1035
|
+
* @returns {Promise<any>}
|
|
1036
|
+
*/
|
|
1037
|
+
close() {
|
|
1038
|
+
const ptr = this.__destroy_into_raw();
|
|
1039
|
+
const ret = wasm.intounderlyingsink_close(ptr);
|
|
1040
|
+
return ret;
|
|
1041
|
+
}
|
|
1042
|
+
/**
|
|
1043
|
+
* @param {any} chunk
|
|
1044
|
+
* @returns {Promise<any>}
|
|
1045
|
+
*/
|
|
1046
|
+
write(chunk) {
|
|
1047
|
+
const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk);
|
|
1048
|
+
return ret;
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1053
|
+
? { register: () => {}, unregister: () => {} }
|
|
1054
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr >>> 0, 1));
|
|
1055
|
+
|
|
1056
|
+
export class IntoUnderlyingSource {
|
|
1057
|
+
|
|
1058
|
+
__destroy_into_raw() {
|
|
1059
|
+
const ptr = this.__wbg_ptr;
|
|
1060
|
+
this.__wbg_ptr = 0;
|
|
1061
|
+
IntoUnderlyingSourceFinalization.unregister(this);
|
|
1062
|
+
return ptr;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
free() {
|
|
1066
|
+
const ptr = this.__destroy_into_raw();
|
|
1067
|
+
wasm.__wbg_intounderlyingsource_free(ptr, 0);
|
|
1068
|
+
}
|
|
1069
|
+
/**
|
|
1070
|
+
* @param {ReadableStreamDefaultController} controller
|
|
1071
|
+
* @returns {Promise<any>}
|
|
1072
|
+
*/
|
|
1073
|
+
pull(controller) {
|
|
1074
|
+
const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, controller);
|
|
1075
|
+
return ret;
|
|
1076
|
+
}
|
|
1077
|
+
cancel() {
|
|
1078
|
+
const ptr = this.__destroy_into_raw();
|
|
1079
|
+
wasm.intounderlyingsource_cancel(ptr);
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
const PasskeyFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1084
|
+
? { register: () => {}, unregister: () => {} }
|
|
1085
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_passkey_free(ptr >>> 0, 1));
|
|
1086
|
+
/**
|
|
1087
|
+
* Passkey-based wallet operations using WebAuthn PRF extension.
|
|
1088
|
+
*
|
|
1089
|
+
* Wraps a `PasskeyPrfProvider` and optional relay configuration to provide
|
|
1090
|
+
* wallet derivation and label management via Nostr relays.
|
|
1091
|
+
*/
|
|
1092
|
+
export class Passkey {
|
|
1093
|
+
|
|
1094
|
+
__destroy_into_raw() {
|
|
1095
|
+
const ptr = this.__wbg_ptr;
|
|
1096
|
+
this.__wbg_ptr = 0;
|
|
1097
|
+
PasskeyFinalization.unregister(this);
|
|
1098
|
+
return ptr;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
free() {
|
|
1102
|
+
const ptr = this.__destroy_into_raw();
|
|
1103
|
+
wasm.__wbg_passkey_free(ptr, 0);
|
|
1104
|
+
}
|
|
1105
|
+
/**
|
|
1106
|
+
* Derive a wallet for a given label.
|
|
1107
|
+
*
|
|
1108
|
+
* Uses the passkey PRF to derive a `Wallet` containing the seed and resolved label.
|
|
1109
|
+
*
|
|
1110
|
+
* @param label - Optional label string (defaults to "Default")
|
|
1111
|
+
* @param {string | null} [label]
|
|
1112
|
+
* @returns {Promise<Wallet>}
|
|
1113
|
+
*/
|
|
1114
|
+
getWallet(label) {
|
|
1115
|
+
var ptr0 = isLikeNone(label) ? 0 : passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1116
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1117
|
+
const ret = wasm.passkey_getWallet(this.__wbg_ptr, ptr0, len0);
|
|
1118
|
+
return ret;
|
|
1119
|
+
}
|
|
1120
|
+
/**
|
|
1121
|
+
* List all labels published to Nostr for this passkey's identity.
|
|
1122
|
+
*
|
|
1123
|
+
* Requires 1 PRF call (for Nostr identity derivation).
|
|
1124
|
+
* @returns {Promise<string[]>}
|
|
1125
|
+
*/
|
|
1126
|
+
listLabels() {
|
|
1127
|
+
const ret = wasm.passkey_listLabels(this.__wbg_ptr);
|
|
1128
|
+
return ret;
|
|
1129
|
+
}
|
|
1130
|
+
/**
|
|
1131
|
+
* Publish a label to Nostr relays for this passkey's identity.
|
|
1132
|
+
*
|
|
1133
|
+
* Idempotent: if the label already exists, it is not published again.
|
|
1134
|
+
* Requires 1 PRF call.
|
|
1135
|
+
* @param {string} label
|
|
1136
|
+
* @returns {Promise<void>}
|
|
1137
|
+
*/
|
|
1138
|
+
storeLabel(label) {
|
|
1139
|
+
const ptr0 = passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1140
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1141
|
+
const ret = wasm.passkey_storeLabel(this.__wbg_ptr, ptr0, len0);
|
|
1142
|
+
return ret;
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
* Check if passkey PRF is available on this device.
|
|
1146
|
+
* @returns {Promise<boolean>}
|
|
1147
|
+
*/
|
|
1148
|
+
isAvailable() {
|
|
1149
|
+
const ret = wasm.passkey_isAvailable(this.__wbg_ptr);
|
|
1150
|
+
return ret;
|
|
1151
|
+
}
|
|
1152
|
+
/**
|
|
1153
|
+
* Create a new `Passkey` instance.
|
|
1154
|
+
*
|
|
1155
|
+
* @param prfProvider - Platform implementation of passkey PRF operations
|
|
1156
|
+
* @param relayConfig - Optional configuration for Nostr relay connections
|
|
1157
|
+
* @param {PasskeyPrfProvider} prf_provider
|
|
1158
|
+
* @param {NostrRelayConfig | null} [relay_config]
|
|
1159
|
+
*/
|
|
1160
|
+
constructor(prf_provider, relay_config) {
|
|
1161
|
+
const ret = wasm.passkey_new(prf_provider, isLikeNone(relay_config) ? 0 : addToExternrefTable0(relay_config));
|
|
1162
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1163
|
+
PasskeyFinalization.register(this, this.__wbg_ptr, this);
|
|
1164
|
+
return this;
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
const SdkBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1169
|
+
? { register: () => {}, unregister: () => {} }
|
|
1170
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_sdkbuilder_free(ptr >>> 0, 1));
|
|
1171
|
+
|
|
1172
|
+
export class SdkBuilder {
|
|
1173
|
+
|
|
1174
|
+
static __wrap(ptr) {
|
|
1175
|
+
ptr = ptr >>> 0;
|
|
1176
|
+
const obj = Object.create(SdkBuilder.prototype);
|
|
1177
|
+
obj.__wbg_ptr = ptr;
|
|
1178
|
+
SdkBuilderFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1179
|
+
return obj;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
__destroy_into_raw() {
|
|
1183
|
+
const ptr = this.__wbg_ptr;
|
|
1184
|
+
this.__wbg_ptr = 0;
|
|
1185
|
+
SdkBuilderFinalization.unregister(this);
|
|
1186
|
+
return ptr;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
free() {
|
|
1190
|
+
const ptr = this.__destroy_into_raw();
|
|
1191
|
+
wasm.__wbg_sdkbuilder_free(ptr, 0);
|
|
1192
|
+
}
|
|
1193
|
+
/**
|
|
1194
|
+
* @param {KeySetConfig} config
|
|
1195
|
+
* @returns {SdkBuilder}
|
|
1196
|
+
*/
|
|
1197
|
+
withKeySet(config) {
|
|
1198
|
+
const ptr = this.__destroy_into_raw();
|
|
1199
|
+
const ret = wasm.sdkbuilder_withKeySet(ptr, config);
|
|
1200
|
+
return SdkBuilder.__wrap(ret);
|
|
1201
|
+
}
|
|
1202
|
+
/**
|
|
1203
|
+
* @param {Storage} storage
|
|
1204
|
+
* @returns {SdkBuilder}
|
|
1205
|
+
*/
|
|
1206
|
+
withStorage(storage) {
|
|
1207
|
+
const ptr = this.__destroy_into_raw();
|
|
1208
|
+
const ret = wasm.sdkbuilder_withStorage(ptr, storage);
|
|
1209
|
+
return SdkBuilder.__wrap(ret);
|
|
1210
|
+
}
|
|
1211
|
+
/**
|
|
1212
|
+
* @param {Config} config
|
|
1213
|
+
* @param {ExternalSigner} signer
|
|
1214
|
+
* @returns {SdkBuilder}
|
|
1215
|
+
*/
|
|
1216
|
+
static newWithSigner(config, signer) {
|
|
1217
|
+
const ret = wasm.sdkbuilder_newWithSigner(config, signer);
|
|
1218
|
+
return SdkBuilder.__wrap(ret);
|
|
1219
|
+
}
|
|
1220
|
+
/**
|
|
1221
|
+
* @param {FiatService} fiat_service
|
|
1222
|
+
* @returns {SdkBuilder}
|
|
1223
|
+
*/
|
|
1224
|
+
withFiatService(fiat_service) {
|
|
1225
|
+
const ptr = this.__destroy_into_raw();
|
|
1226
|
+
const ret = wasm.sdkbuilder_withFiatService(ptr, fiat_service);
|
|
1227
|
+
return SdkBuilder.__wrap(ret);
|
|
1228
|
+
}
|
|
1229
|
+
/**
|
|
1230
|
+
* @param {RestClient} lnurl_client
|
|
1231
|
+
* @returns {SdkBuilder}
|
|
1232
|
+
*/
|
|
1233
|
+
withLnurlClient(lnurl_client) {
|
|
1234
|
+
const ptr = this.__destroy_into_raw();
|
|
1235
|
+
const ret = wasm.sdkbuilder_withLnurlClient(ptr, lnurl_client);
|
|
1236
|
+
return SdkBuilder.__wrap(ret);
|
|
1237
|
+
}
|
|
1238
|
+
/**
|
|
1239
|
+
* @param {BitcoinChainService} chain_service
|
|
1240
|
+
* @returns {SdkBuilder}
|
|
1241
|
+
*/
|
|
1242
|
+
withChainService(chain_service) {
|
|
1243
|
+
const ptr = this.__destroy_into_raw();
|
|
1244
|
+
const ret = wasm.sdkbuilder_withChainService(ptr, chain_service);
|
|
1245
|
+
return SdkBuilder.__wrap(ret);
|
|
1246
|
+
}
|
|
1247
|
+
/**
|
|
1248
|
+
* @param {string} storage_dir
|
|
1249
|
+
* @returns {Promise<SdkBuilder>}
|
|
1250
|
+
*/
|
|
1251
|
+
withDefaultStorage(storage_dir) {
|
|
1252
|
+
const ptr = this.__destroy_into_raw();
|
|
1253
|
+
const ptr0 = passStringToWasm0(storage_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1254
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1255
|
+
const ret = wasm.sdkbuilder_withDefaultStorage(ptr, ptr0, len0);
|
|
1256
|
+
return ret;
|
|
1257
|
+
}
|
|
1258
|
+
/**
|
|
1259
|
+
* @param {PaymentObserver} payment_observer
|
|
1260
|
+
* @returns {SdkBuilder}
|
|
1261
|
+
*/
|
|
1262
|
+
withPaymentObserver(payment_observer) {
|
|
1263
|
+
const ptr = this.__destroy_into_raw();
|
|
1264
|
+
const ret = wasm.sdkbuilder_withPaymentObserver(ptr, payment_observer);
|
|
1265
|
+
return SdkBuilder.__wrap(ret);
|
|
1266
|
+
}
|
|
1267
|
+
/**
|
|
1268
|
+
* @param {PostgresStorageConfig} config
|
|
1269
|
+
* @returns {SdkBuilder}
|
|
1270
|
+
*/
|
|
1271
|
+
withPostgresBackend(config) {
|
|
1272
|
+
const ptr = this.__destroy_into_raw();
|
|
1273
|
+
const ret = wasm.sdkbuilder_withPostgresBackend(ptr, config);
|
|
1274
|
+
return SdkBuilder.__wrap(ret);
|
|
1275
|
+
}
|
|
1276
|
+
/**
|
|
1277
|
+
* @param {string} url
|
|
1278
|
+
* @param {ChainApiType} api_type
|
|
1279
|
+
* @param {Credentials | null} [credentials]
|
|
1280
|
+
* @returns {SdkBuilder}
|
|
1281
|
+
*/
|
|
1282
|
+
withRestChainService(url, api_type, credentials) {
|
|
1283
|
+
const ptr = this.__destroy_into_raw();
|
|
1284
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1285
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1286
|
+
const ret = wasm.sdkbuilder_withRestChainService(ptr, ptr0, len0, api_type, isLikeNone(credentials) ? 0 : addToExternrefTable0(credentials));
|
|
1287
|
+
return SdkBuilder.__wrap(ret);
|
|
1288
|
+
}
|
|
1289
|
+
/**
|
|
1290
|
+
* @param {Config} config
|
|
1291
|
+
* @param {Seed} seed
|
|
1292
|
+
* @returns {SdkBuilder}
|
|
1293
|
+
*/
|
|
1294
|
+
static new(config, seed) {
|
|
1295
|
+
const ret = wasm.sdkbuilder_new(config, seed);
|
|
1296
|
+
return SdkBuilder.__wrap(ret);
|
|
1297
|
+
}
|
|
1298
|
+
/**
|
|
1299
|
+
* @returns {Promise<BreezSdk>}
|
|
1300
|
+
*/
|
|
1301
|
+
build() {
|
|
1302
|
+
const ptr = this.__destroy_into_raw();
|
|
1303
|
+
const ret = wasm.sdkbuilder_build(ptr);
|
|
1304
|
+
return ret;
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
const TokenIssuerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1309
|
+
? { register: () => {}, unregister: () => {} }
|
|
1310
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_tokenissuer_free(ptr >>> 0, 1));
|
|
1311
|
+
|
|
1312
|
+
export class TokenIssuer {
|
|
1313
|
+
|
|
1314
|
+
static __wrap(ptr) {
|
|
1315
|
+
ptr = ptr >>> 0;
|
|
1316
|
+
const obj = Object.create(TokenIssuer.prototype);
|
|
1317
|
+
obj.__wbg_ptr = ptr;
|
|
1318
|
+
TokenIssuerFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1319
|
+
return obj;
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
__destroy_into_raw() {
|
|
1323
|
+
const ptr = this.__wbg_ptr;
|
|
1324
|
+
this.__wbg_ptr = 0;
|
|
1325
|
+
TokenIssuerFinalization.unregister(this);
|
|
1326
|
+
return ptr;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
free() {
|
|
1330
|
+
const ptr = this.__destroy_into_raw();
|
|
1331
|
+
wasm.__wbg_tokenissuer_free(ptr, 0);
|
|
1332
|
+
}
|
|
1333
|
+
/**
|
|
1334
|
+
* @param {BurnIssuerTokenRequest} request
|
|
1335
|
+
* @returns {Promise<Payment>}
|
|
1336
|
+
*/
|
|
1337
|
+
burnIssuerToken(request) {
|
|
1338
|
+
const ret = wasm.tokenissuer_burnIssuerToken(this.__wbg_ptr, request);
|
|
1339
|
+
return ret;
|
|
1340
|
+
}
|
|
1341
|
+
/**
|
|
1342
|
+
* @param {MintIssuerTokenRequest} request
|
|
1343
|
+
* @returns {Promise<Payment>}
|
|
1344
|
+
*/
|
|
1345
|
+
mintIssuerToken(request) {
|
|
1346
|
+
const ret = wasm.tokenissuer_mintIssuerToken(this.__wbg_ptr, request);
|
|
1347
|
+
return ret;
|
|
1348
|
+
}
|
|
1349
|
+
/**
|
|
1350
|
+
* @param {CreateIssuerTokenRequest} request
|
|
1351
|
+
* @returns {Promise<TokenMetadata>}
|
|
1352
|
+
*/
|
|
1353
|
+
createIssuerToken(request) {
|
|
1354
|
+
const ret = wasm.tokenissuer_createIssuerToken(this.__wbg_ptr, request);
|
|
1355
|
+
return ret;
|
|
1356
|
+
}
|
|
1357
|
+
/**
|
|
1358
|
+
* @param {FreezeIssuerTokenRequest} request
|
|
1359
|
+
* @returns {Promise<FreezeIssuerTokenResponse>}
|
|
1360
|
+
*/
|
|
1361
|
+
freezeIssuerToken(request) {
|
|
1362
|
+
const ret = wasm.tokenissuer_freezeIssuerToken(this.__wbg_ptr, request);
|
|
1363
|
+
return ret;
|
|
1364
|
+
}
|
|
1365
|
+
/**
|
|
1366
|
+
* @param {UnfreezeIssuerTokenRequest} request
|
|
1367
|
+
* @returns {Promise<UnfreezeIssuerTokenResponse>}
|
|
1368
|
+
*/
|
|
1369
|
+
unfreezeIssuerToken(request) {
|
|
1370
|
+
const ret = wasm.tokenissuer_unfreezeIssuerToken(this.__wbg_ptr, request);
|
|
1371
|
+
return ret;
|
|
1372
|
+
}
|
|
1373
|
+
/**
|
|
1374
|
+
* @returns {Promise<TokenBalance>}
|
|
1375
|
+
*/
|
|
1376
|
+
getIssuerTokenBalance() {
|
|
1377
|
+
const ret = wasm.tokenissuer_getIssuerTokenBalance(this.__wbg_ptr);
|
|
1378
|
+
return ret;
|
|
1379
|
+
}
|
|
1380
|
+
/**
|
|
1381
|
+
* @returns {Promise<TokenMetadata>}
|
|
1382
|
+
*/
|
|
1383
|
+
getIssuerTokenMetadata() {
|
|
1384
|
+
const ret = wasm.tokenissuer_getIssuerTokenMetadata(this.__wbg_ptr);
|
|
1385
|
+
return ret;
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
1390
|
+
const ret = String(arg1);
|
|
1391
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1392
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1393
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1394
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1395
|
+
};
|
|
1396
|
+
|
|
1397
|
+
export function __wbg_abort_410ec47a64ac6117(arg0, arg1) {
|
|
1398
|
+
arg0.abort(arg1);
|
|
1399
|
+
};
|
|
1400
|
+
|
|
1401
|
+
export function __wbg_abort_775ef1d17fc65868(arg0) {
|
|
1402
|
+
arg0.abort();
|
|
1403
|
+
};
|
|
1404
|
+
|
|
1405
|
+
export function __wbg_addDeposit_42b1593db58de120() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1406
|
+
let deferred0_0;
|
|
1407
|
+
let deferred0_1;
|
|
1408
|
+
try {
|
|
1409
|
+
deferred0_0 = arg1;
|
|
1410
|
+
deferred0_1 = arg2;
|
|
1411
|
+
const ret = arg0.addDeposit(getStringFromWasm0(arg1, arg2), arg3 >>> 0, BigInt.asUintN(64, arg4), arg5 !== 0);
|
|
1412
|
+
return ret;
|
|
1413
|
+
} finally {
|
|
1414
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1415
|
+
}
|
|
1416
|
+
}, arguments) };
|
|
1417
|
+
|
|
1418
|
+
export function __wbg_addLeaves_226f98499cdaa66d() { return handleError(function (arg0, arg1) {
|
|
1419
|
+
const ret = arg0.addLeaves(arg1);
|
|
1420
|
+
return ret;
|
|
1421
|
+
}, arguments) };
|
|
1422
|
+
|
|
1423
|
+
export function __wbg_aggregateFrost_053f2d54394422d5() { return handleError(function (arg0, arg1) {
|
|
1424
|
+
const ret = arg0.aggregateFrost(arg1);
|
|
1425
|
+
return ret;
|
|
1426
|
+
}, arguments) };
|
|
1427
|
+
|
|
1428
|
+
export function __wbg_append_8c7dd8d641a5f01b() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1429
|
+
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1430
|
+
}, arguments) };
|
|
1431
|
+
|
|
1432
|
+
export function __wbg_arrayBuffer_d1b44c4390db422f() { return handleError(function (arg0) {
|
|
1433
|
+
const ret = arg0.arrayBuffer();
|
|
1434
|
+
return ret;
|
|
1435
|
+
}, arguments) };
|
|
1436
|
+
|
|
1437
|
+
export function __wbg_beforeSend_57747b03876e1d28() { return handleError(function (arg0, arg1, arg2) {
|
|
1438
|
+
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
1439
|
+
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
1440
|
+
const ret = arg0.beforeSend(v0);
|
|
1441
|
+
return ret;
|
|
1442
|
+
}, arguments) };
|
|
1443
|
+
|
|
1444
|
+
export function __wbg_body_0b8fd1fe671660df(arg0) {
|
|
1445
|
+
const ret = arg0.body;
|
|
1446
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1447
|
+
};
|
|
1448
|
+
|
|
1449
|
+
export function __wbg_breezsdk_new(arg0) {
|
|
1450
|
+
const ret = BreezSdk.__wrap(arg0);
|
|
1451
|
+
return ret;
|
|
1452
|
+
};
|
|
1453
|
+
|
|
1454
|
+
export function __wbg_broadcastTransaction_67533cdbfe67273e() { return handleError(function (arg0, arg1, arg2) {
|
|
1455
|
+
let deferred0_0;
|
|
1456
|
+
let deferred0_1;
|
|
1457
|
+
try {
|
|
1458
|
+
deferred0_0 = arg1;
|
|
1459
|
+
deferred0_1 = arg2;
|
|
1460
|
+
const ret = arg0.broadcastTransaction(getStringFromWasm0(arg1, arg2));
|
|
1461
|
+
return ret;
|
|
1462
|
+
} finally {
|
|
1463
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1464
|
+
}
|
|
1465
|
+
}, arguments) };
|
|
1466
|
+
|
|
1467
|
+
export function __wbg_buffer_09165b52af8c5237(arg0) {
|
|
1468
|
+
const ret = arg0.buffer;
|
|
1469
|
+
return ret;
|
|
1470
|
+
};
|
|
1471
|
+
|
|
1472
|
+
export function __wbg_buffer_609cc3eee51ed158(arg0) {
|
|
1473
|
+
const ret = arg0.buffer;
|
|
1474
|
+
return ret;
|
|
1475
|
+
};
|
|
1476
|
+
|
|
1477
|
+
export function __wbg_byobRequest_77d9adf63337edfb(arg0) {
|
|
1478
|
+
const ret = arg0.byobRequest;
|
|
1479
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1480
|
+
};
|
|
1481
|
+
|
|
1482
|
+
export function __wbg_byteLength_e674b853d9c77e1d(arg0) {
|
|
1483
|
+
const ret = arg0.byteLength;
|
|
1484
|
+
return ret;
|
|
1485
|
+
};
|
|
1486
|
+
|
|
1487
|
+
export function __wbg_byteOffset_fd862df290ef848d(arg0) {
|
|
1488
|
+
const ret = arg0.byteOffset;
|
|
1489
|
+
return ret;
|
|
1490
|
+
};
|
|
1491
|
+
|
|
1492
|
+
export function __wbg_call_672a4d21634d4a24() { return handleError(function (arg0, arg1) {
|
|
1493
|
+
const ret = arg0.call(arg1);
|
|
1494
|
+
return ret;
|
|
1495
|
+
}, arguments) };
|
|
1496
|
+
|
|
1497
|
+
export function __wbg_call_7cccdd69e0791ae2() { return handleError(function (arg0, arg1, arg2) {
|
|
1498
|
+
const ret = arg0.call(arg1, arg2);
|
|
1499
|
+
return ret;
|
|
1500
|
+
}, arguments) };
|
|
1501
|
+
|
|
1502
|
+
export function __wbg_cancelReservation_d85a13db3e8e3c7b() { return handleError(function (arg0, arg1, arg2) {
|
|
1503
|
+
let deferred0_0;
|
|
1504
|
+
let deferred0_1;
|
|
1505
|
+
try {
|
|
1506
|
+
deferred0_0 = arg1;
|
|
1507
|
+
deferred0_1 = arg2;
|
|
1508
|
+
const ret = arg0.cancelReservation(getStringFromWasm0(arg1, arg2));
|
|
1509
|
+
return ret;
|
|
1510
|
+
} finally {
|
|
1511
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1512
|
+
}
|
|
1513
|
+
}, arguments) };
|
|
1514
|
+
|
|
1515
|
+
export function __wbg_cancelReservation_fd3065607b457424() { return handleError(function (arg0, arg1, arg2) {
|
|
1516
|
+
let deferred0_0;
|
|
1517
|
+
let deferred0_1;
|
|
1518
|
+
try {
|
|
1519
|
+
deferred0_0 = arg1;
|
|
1520
|
+
deferred0_1 = arg2;
|
|
1521
|
+
const ret = arg0.cancelReservation(getStringFromWasm0(arg1, arg2));
|
|
1522
|
+
return ret;
|
|
1523
|
+
} finally {
|
|
1524
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1525
|
+
}
|
|
1526
|
+
}, arguments) };
|
|
1527
|
+
|
|
1528
|
+
export function __wbg_cancel_8a308660caa6cadf(arg0) {
|
|
1529
|
+
const ret = arg0.cancel();
|
|
1530
|
+
return ret;
|
|
1531
|
+
};
|
|
1532
|
+
|
|
1533
|
+
export function __wbg_catch_a6e601879b2610e9(arg0, arg1) {
|
|
1534
|
+
const ret = arg0.catch(arg1);
|
|
1535
|
+
return ret;
|
|
1536
|
+
};
|
|
1537
|
+
|
|
1538
|
+
export function __wbg_clearTimeout_5a54f8841c30079a(arg0) {
|
|
1539
|
+
const ret = clearTimeout(arg0);
|
|
1540
|
+
return ret;
|
|
1541
|
+
};
|
|
1542
|
+
|
|
1543
|
+
export function __wbg_clearTimeout_6222fede17abcb1a(arg0) {
|
|
1544
|
+
const ret = clearTimeout(arg0);
|
|
1545
|
+
return ret;
|
|
1546
|
+
};
|
|
1547
|
+
|
|
1548
|
+
export function __wbg_close_2893b7d056a0627d() { return handleError(function (arg0) {
|
|
1549
|
+
arg0.close();
|
|
1550
|
+
}, arguments) };
|
|
1551
|
+
|
|
1552
|
+
export function __wbg_close_304cc1fef3466669() { return handleError(function (arg0) {
|
|
1553
|
+
arg0.close();
|
|
1554
|
+
}, arguments) };
|
|
1555
|
+
|
|
1556
|
+
export function __wbg_close_5ce03e29be453811() { return handleError(function (arg0) {
|
|
1557
|
+
arg0.close();
|
|
1558
|
+
}, arguments) };
|
|
1559
|
+
|
|
1560
|
+
export function __wbg_code_cfd8f6868bdaed9b(arg0) {
|
|
1561
|
+
const ret = arg0.code;
|
|
1562
|
+
return ret;
|
|
1563
|
+
};
|
|
1564
|
+
|
|
1565
|
+
export function __wbg_code_f4ec1e6e2e1b0417(arg0) {
|
|
1566
|
+
const ret = arg0.code;
|
|
1567
|
+
return ret;
|
|
1568
|
+
};
|
|
1569
|
+
|
|
1570
|
+
export function __wbg_createDefaultStorage_458aa01b5eaead27() { return handleError(function (arg0, arg1, arg2) {
|
|
1571
|
+
const ret = createDefaultStorage(getStringFromWasm0(arg0, arg1), arg2);
|
|
1572
|
+
return ret;
|
|
1573
|
+
}, arguments) };
|
|
1574
|
+
|
|
1575
|
+
export function __wbg_createPostgresPool_8b4003e9db8e9432() { return handleError(function (arg0) {
|
|
1576
|
+
const ret = createPostgresPool(arg0);
|
|
1577
|
+
return ret;
|
|
1578
|
+
}, arguments) };
|
|
1579
|
+
|
|
1580
|
+
export function __wbg_createPostgresStorageWithPool_77aa64bddd7440db() { return handleError(function (arg0, arg1) {
|
|
1581
|
+
const ret = createPostgresStorageWithPool(arg0, arg1);
|
|
1582
|
+
return ret;
|
|
1583
|
+
}, arguments) };
|
|
1584
|
+
|
|
1585
|
+
export function __wbg_createPostgresTokenStoreWithPool_5e7b75f5975d8b94() { return handleError(function (arg0, arg1) {
|
|
1586
|
+
const ret = createPostgresTokenStoreWithPool(arg0, arg1);
|
|
1587
|
+
return ret;
|
|
1588
|
+
}, arguments) };
|
|
1589
|
+
|
|
1590
|
+
export function __wbg_createPostgresTreeStoreWithPool_55e19122e69fb9e3() { return handleError(function (arg0, arg1) {
|
|
1591
|
+
const ret = createPostgresTreeStoreWithPool(arg0, arg1);
|
|
1592
|
+
return ret;
|
|
1593
|
+
}, arguments) };
|
|
1594
|
+
|
|
1595
|
+
export function __wbg_crypto_574e78ad8b13b65f(arg0) {
|
|
1596
|
+
const ret = arg0.crypto;
|
|
1597
|
+
return ret;
|
|
1598
|
+
};
|
|
1599
|
+
|
|
1600
|
+
export function __wbg_data_432d9c3df2630942(arg0) {
|
|
1601
|
+
const ret = arg0.data;
|
|
1602
|
+
return ret;
|
|
1603
|
+
};
|
|
1604
|
+
|
|
1605
|
+
export function __wbg_deleteCachedItem_ff3c84380e94360b() { return handleError(function (arg0, arg1, arg2) {
|
|
1606
|
+
let deferred0_0;
|
|
1607
|
+
let deferred0_1;
|
|
1608
|
+
try {
|
|
1609
|
+
deferred0_0 = arg1;
|
|
1610
|
+
deferred0_1 = arg2;
|
|
1611
|
+
const ret = arg0.deleteCachedItem(getStringFromWasm0(arg1, arg2));
|
|
1612
|
+
return ret;
|
|
1613
|
+
} finally {
|
|
1614
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1615
|
+
}
|
|
1616
|
+
}, arguments) };
|
|
1617
|
+
|
|
1618
|
+
export function __wbg_deleteContact_04d635b32c469d83() { return handleError(function (arg0, arg1, arg2) {
|
|
1619
|
+
let deferred0_0;
|
|
1620
|
+
let deferred0_1;
|
|
1621
|
+
try {
|
|
1622
|
+
deferred0_0 = arg1;
|
|
1623
|
+
deferred0_1 = arg2;
|
|
1624
|
+
const ret = arg0.deleteContact(getStringFromWasm0(arg1, arg2));
|
|
1625
|
+
return ret;
|
|
1626
|
+
} finally {
|
|
1627
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1628
|
+
}
|
|
1629
|
+
}, arguments) };
|
|
1630
|
+
|
|
1631
|
+
export function __wbg_deleteDeposit_72ec826e7c3c3ccf() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1632
|
+
let deferred0_0;
|
|
1633
|
+
let deferred0_1;
|
|
1634
|
+
try {
|
|
1635
|
+
deferred0_0 = arg1;
|
|
1636
|
+
deferred0_1 = arg2;
|
|
1637
|
+
const ret = arg0.deleteDeposit(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
|
|
1638
|
+
return ret;
|
|
1639
|
+
} finally {
|
|
1640
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1641
|
+
}
|
|
1642
|
+
}, arguments) };
|
|
1643
|
+
|
|
1644
|
+
export function __wbg_deleteRequest_7be0a74a10deac70() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1645
|
+
let deferred0_0;
|
|
1646
|
+
let deferred0_1;
|
|
1647
|
+
try {
|
|
1648
|
+
deferred0_0 = arg1;
|
|
1649
|
+
deferred0_1 = arg2;
|
|
1650
|
+
let v1;
|
|
1651
|
+
if (arg4 !== 0) {
|
|
1652
|
+
v1 = getStringFromWasm0(arg4, arg5).slice();
|
|
1653
|
+
wasm.__wbindgen_free(arg4, arg5 * 1, 1);
|
|
1654
|
+
}
|
|
1655
|
+
const ret = arg0.deleteRequest(getStringFromWasm0(arg1, arg2), arg3, v1);
|
|
1656
|
+
return ret;
|
|
1657
|
+
} finally {
|
|
1658
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1659
|
+
}
|
|
1660
|
+
}, arguments) };
|
|
1661
|
+
|
|
1662
|
+
export function __wbg_derivePrfSeed_8584c0fcf554b593() { return handleError(function (arg0, arg1, arg2) {
|
|
1663
|
+
let deferred0_0;
|
|
1664
|
+
let deferred0_1;
|
|
1665
|
+
try {
|
|
1666
|
+
deferred0_0 = arg1;
|
|
1667
|
+
deferred0_1 = arg2;
|
|
1668
|
+
const ret = arg0.derivePrfSeed(getStringFromWasm0(arg1, arg2));
|
|
1669
|
+
return ret;
|
|
1670
|
+
} finally {
|
|
1671
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1672
|
+
}
|
|
1673
|
+
}, arguments) };
|
|
1674
|
+
|
|
1675
|
+
export function __wbg_derivePublicKey_736fb57b6852f201() { return handleError(function (arg0, arg1, arg2) {
|
|
1676
|
+
let deferred0_0;
|
|
1677
|
+
let deferred0_1;
|
|
1678
|
+
try {
|
|
1679
|
+
deferred0_0 = arg1;
|
|
1680
|
+
deferred0_1 = arg2;
|
|
1681
|
+
const ret = arg0.derivePublicKey(getStringFromWasm0(arg1, arg2));
|
|
1682
|
+
return ret;
|
|
1683
|
+
} finally {
|
|
1684
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1685
|
+
}
|
|
1686
|
+
}, arguments) };
|
|
1687
|
+
|
|
1688
|
+
export function __wbg_done_769e5ede4b31c67b(arg0) {
|
|
1689
|
+
const ret = arg0.done;
|
|
1690
|
+
return ret;
|
|
1691
|
+
};
|
|
1692
|
+
|
|
1693
|
+
export function __wbg_eciesDecrypt_f54e495a0988c2cc() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1694
|
+
let deferred1_0;
|
|
1695
|
+
let deferred1_1;
|
|
1696
|
+
try {
|
|
1697
|
+
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
|
|
1698
|
+
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
1699
|
+
deferred1_0 = arg3;
|
|
1700
|
+
deferred1_1 = arg4;
|
|
1701
|
+
const ret = arg0.eciesDecrypt(v0, getStringFromWasm0(arg3, arg4));
|
|
1702
|
+
return ret;
|
|
1703
|
+
} finally {
|
|
1704
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1705
|
+
}
|
|
1706
|
+
}, arguments) };
|
|
1707
|
+
|
|
1708
|
+
export function __wbg_eciesEncrypt_d1c5b3c6a4602a28() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1709
|
+
let deferred1_0;
|
|
1710
|
+
let deferred1_1;
|
|
1711
|
+
try {
|
|
1712
|
+
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
|
|
1713
|
+
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
1714
|
+
deferred1_0 = arg3;
|
|
1715
|
+
deferred1_1 = arg4;
|
|
1716
|
+
const ret = arg0.eciesEncrypt(v0, getStringFromWasm0(arg3, arg4));
|
|
1717
|
+
return ret;
|
|
1718
|
+
} finally {
|
|
1719
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1720
|
+
}
|
|
1721
|
+
}, arguments) };
|
|
1722
|
+
|
|
1723
|
+
export function __wbg_encryptPrivateKeyForReceiver_346eec1080ebe04c() { return handleError(function (arg0, arg1, arg2) {
|
|
1724
|
+
const ret = arg0.encryptPrivateKeyForReceiver(arg1, arg2);
|
|
1725
|
+
return ret;
|
|
1726
|
+
}, arguments) };
|
|
1727
|
+
|
|
1728
|
+
export function __wbg_enqueue_bb16ba72f537dc9e() { return handleError(function (arg0, arg1) {
|
|
1729
|
+
arg0.enqueue(arg1);
|
|
1730
|
+
}, arguments) };
|
|
1731
|
+
|
|
1732
|
+
export function __wbg_entries_3265d4158b33e5dc(arg0) {
|
|
1733
|
+
const ret = Object.entries(arg0);
|
|
1734
|
+
return ret;
|
|
1735
|
+
};
|
|
1736
|
+
|
|
1737
|
+
export function __wbg_error_e98c298703cffa97(arg0, arg1) {
|
|
1738
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
1739
|
+
};
|
|
1740
|
+
|
|
1741
|
+
export function __wbg_fetchFiatCurrencies_d11be091c7fac943() { return handleError(function (arg0) {
|
|
1742
|
+
const ret = arg0.fetchFiatCurrencies();
|
|
1743
|
+
return ret;
|
|
1744
|
+
}, arguments) };
|
|
1745
|
+
|
|
1746
|
+
export function __wbg_fetchFiatRates_a5bc2d1be56de4a7() { return handleError(function (arg0) {
|
|
1747
|
+
const ret = arg0.fetchFiatRates();
|
|
1748
|
+
return ret;
|
|
1749
|
+
}, arguments) };
|
|
1750
|
+
|
|
1751
|
+
export function __wbg_fetch_07cd86dd296a5a63(arg0, arg1, arg2) {
|
|
1752
|
+
const ret = arg0.fetch(arg1, arg2);
|
|
1753
|
+
return ret;
|
|
1754
|
+
};
|
|
1755
|
+
|
|
1756
|
+
export function __wbg_fetch_509096533071c657(arg0, arg1) {
|
|
1757
|
+
const ret = arg0.fetch(arg1);
|
|
1758
|
+
return ret;
|
|
1759
|
+
};
|
|
1760
|
+
|
|
1761
|
+
export function __wbg_fetch_769f3df592e37b75(arg0, arg1) {
|
|
1762
|
+
const ret = fetch(arg0, arg1);
|
|
1763
|
+
return ret;
|
|
1764
|
+
};
|
|
1765
|
+
|
|
1766
|
+
export function __wbg_fetch_f156d10be9a5c88a(arg0) {
|
|
1767
|
+
const ret = fetch(arg0);
|
|
1768
|
+
return ret;
|
|
1769
|
+
};
|
|
1770
|
+
|
|
1771
|
+
export function __wbg_finalizeReservation_86ee8385c17e015b() { return handleError(function (arg0, arg1, arg2) {
|
|
1772
|
+
let deferred0_0;
|
|
1773
|
+
let deferred0_1;
|
|
1774
|
+
try {
|
|
1775
|
+
deferred0_0 = arg1;
|
|
1776
|
+
deferred0_1 = arg2;
|
|
1777
|
+
const ret = arg0.finalizeReservation(getStringFromWasm0(arg1, arg2));
|
|
1778
|
+
return ret;
|
|
1779
|
+
} finally {
|
|
1780
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1781
|
+
}
|
|
1782
|
+
}, arguments) };
|
|
1783
|
+
|
|
1784
|
+
export function __wbg_finalizeReservation_a8fad570b7fe5185() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1785
|
+
let deferred0_0;
|
|
1786
|
+
let deferred0_1;
|
|
1787
|
+
try {
|
|
1788
|
+
deferred0_0 = arg1;
|
|
1789
|
+
deferred0_1 = arg2;
|
|
1790
|
+
const ret = arg0.finalizeReservation(getStringFromWasm0(arg1, arg2), arg3);
|
|
1791
|
+
return ret;
|
|
1792
|
+
} finally {
|
|
1793
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1794
|
+
}
|
|
1795
|
+
}, arguments) };
|
|
1796
|
+
|
|
1797
|
+
export function __wbg_generateFrostSigningCommitments_0630bbabc5b72b42() { return handleError(function (arg0) {
|
|
1798
|
+
const ret = arg0.generateFrostSigningCommitments();
|
|
1799
|
+
return ret;
|
|
1800
|
+
}, arguments) };
|
|
1801
|
+
|
|
1802
|
+
export function __wbg_generateRandomSecret_3dcc7ca4a61a1d4d() { return handleError(function (arg0) {
|
|
1803
|
+
const ret = arg0.generateRandomSecret();
|
|
1804
|
+
return ret;
|
|
1805
|
+
}, arguments) };
|
|
1806
|
+
|
|
1807
|
+
export function __wbg_getAddressUtxos_328ceb8b4a63a6da() { return handleError(function (arg0, arg1, arg2) {
|
|
1808
|
+
let deferred0_0;
|
|
1809
|
+
let deferred0_1;
|
|
1810
|
+
try {
|
|
1811
|
+
deferred0_0 = arg1;
|
|
1812
|
+
deferred0_1 = arg2;
|
|
1813
|
+
const ret = arg0.getAddressUtxos(getStringFromWasm0(arg1, arg2));
|
|
1814
|
+
return ret;
|
|
1815
|
+
} finally {
|
|
1816
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1817
|
+
}
|
|
1818
|
+
}, arguments) };
|
|
1819
|
+
|
|
1820
|
+
export function __wbg_getCachedItem_de40d6348815c7b9() { return handleError(function (arg0, arg1, arg2) {
|
|
1821
|
+
let deferred0_0;
|
|
1822
|
+
let deferred0_1;
|
|
1823
|
+
try {
|
|
1824
|
+
deferred0_0 = arg1;
|
|
1825
|
+
deferred0_1 = arg2;
|
|
1826
|
+
const ret = arg0.getCachedItem(getStringFromWasm0(arg1, arg2));
|
|
1827
|
+
return ret;
|
|
1828
|
+
} finally {
|
|
1829
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1830
|
+
}
|
|
1831
|
+
}, arguments) };
|
|
1832
|
+
|
|
1833
|
+
export function __wbg_getContact_b7300737e5dee01b() { return handleError(function (arg0, arg1, arg2) {
|
|
1834
|
+
let deferred0_0;
|
|
1835
|
+
let deferred0_1;
|
|
1836
|
+
try {
|
|
1837
|
+
deferred0_0 = arg1;
|
|
1838
|
+
deferred0_1 = arg2;
|
|
1839
|
+
const ret = arg0.getContact(getStringFromWasm0(arg1, arg2));
|
|
1840
|
+
return ret;
|
|
1841
|
+
} finally {
|
|
1842
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1843
|
+
}
|
|
1844
|
+
}, arguments) };
|
|
1845
|
+
|
|
1846
|
+
export function __wbg_getLeaves_c94a1c927d239738() { return handleError(function (arg0) {
|
|
1847
|
+
const ret = arg0.getLeaves();
|
|
1848
|
+
return ret;
|
|
1849
|
+
}, arguments) };
|
|
1850
|
+
|
|
1851
|
+
export function __wbg_getPaymentById_c23144bfc404b2fc() { return handleError(function (arg0, arg1, arg2) {
|
|
1852
|
+
let deferred0_0;
|
|
1853
|
+
let deferred0_1;
|
|
1854
|
+
try {
|
|
1855
|
+
deferred0_0 = arg1;
|
|
1856
|
+
deferred0_1 = arg2;
|
|
1857
|
+
const ret = arg0.getPaymentById(getStringFromWasm0(arg1, arg2));
|
|
1858
|
+
return ret;
|
|
1859
|
+
} finally {
|
|
1860
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1861
|
+
}
|
|
1862
|
+
}, arguments) };
|
|
1863
|
+
|
|
1864
|
+
export function __wbg_getPaymentByInvoice_afddfcbefa5508b0() { return handleError(function (arg0, arg1, arg2) {
|
|
1865
|
+
let deferred0_0;
|
|
1866
|
+
let deferred0_1;
|
|
1867
|
+
try {
|
|
1868
|
+
deferred0_0 = arg1;
|
|
1869
|
+
deferred0_1 = arg2;
|
|
1870
|
+
const ret = arg0.getPaymentByInvoice(getStringFromWasm0(arg1, arg2));
|
|
1871
|
+
return ret;
|
|
1872
|
+
} finally {
|
|
1873
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1874
|
+
}
|
|
1875
|
+
}, arguments) };
|
|
1876
|
+
|
|
1877
|
+
export function __wbg_getPaymentsByParentIds_0f8f8e0097a07321() { return handleError(function (arg0, arg1, arg2) {
|
|
1878
|
+
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
1879
|
+
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
1880
|
+
const ret = arg0.getPaymentsByParentIds(v0);
|
|
1881
|
+
return ret;
|
|
1882
|
+
}, arguments) };
|
|
1883
|
+
|
|
1884
|
+
export function __wbg_getPublicKeyForNode_5ddb3378904e4ad4() { return handleError(function (arg0, arg1) {
|
|
1885
|
+
const ret = arg0.getPublicKeyForNode(arg1);
|
|
1886
|
+
return ret;
|
|
1887
|
+
}, arguments) };
|
|
1888
|
+
|
|
1889
|
+
export function __wbg_getPublicKeyFromSecretSource_9e324c0b205a9f99() { return handleError(function (arg0, arg1) {
|
|
1890
|
+
const ret = arg0.getPublicKeyFromSecretSource(arg1);
|
|
1891
|
+
return ret;
|
|
1892
|
+
}, arguments) };
|
|
1893
|
+
|
|
1894
|
+
export function __wbg_getRandomValues_b8f5dbd5f3995a9e() { return handleError(function (arg0, arg1) {
|
|
1895
|
+
arg0.getRandomValues(arg1);
|
|
1896
|
+
}, arguments) };
|
|
1897
|
+
|
|
1898
|
+
export function __wbg_getRandomValues_e14bd3de0db61032() { return handleError(function (arg0, arg1) {
|
|
1899
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1900
|
+
}, arguments) };
|
|
1901
|
+
|
|
1902
|
+
export function __wbg_getReader_48e00749fe3f6089() { return handleError(function (arg0) {
|
|
1903
|
+
const ret = arg0.getReader();
|
|
1904
|
+
return ret;
|
|
1905
|
+
}, arguments) };
|
|
1906
|
+
|
|
1907
|
+
export function __wbg_getRequest_4ab87a8cbe18fa22() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1908
|
+
let deferred0_0;
|
|
1909
|
+
let deferred0_1;
|
|
1910
|
+
try {
|
|
1911
|
+
deferred0_0 = arg1;
|
|
1912
|
+
deferred0_1 = arg2;
|
|
1913
|
+
const ret = arg0.getRequest(getStringFromWasm0(arg1, arg2), arg3);
|
|
1914
|
+
return ret;
|
|
1915
|
+
} finally {
|
|
1916
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1917
|
+
}
|
|
1918
|
+
}, arguments) };
|
|
1919
|
+
|
|
1920
|
+
export function __wbg_getStaticDepositPrivateKey_203e6f4eb4116ce0() { return handleError(function (arg0, arg1) {
|
|
1921
|
+
const ret = arg0.getStaticDepositPrivateKey(arg1 >>> 0);
|
|
1922
|
+
return ret;
|
|
1923
|
+
}, arguments) };
|
|
1924
|
+
|
|
1925
|
+
export function __wbg_getStaticDepositPublicKey_4551dec44c20efe6() { return handleError(function (arg0, arg1) {
|
|
1926
|
+
const ret = arg0.getStaticDepositPublicKey(arg1 >>> 0);
|
|
1927
|
+
return ret;
|
|
1928
|
+
}, arguments) };
|
|
1929
|
+
|
|
1930
|
+
export function __wbg_getStaticDepositSecretSource_8e310c718339e400() { return handleError(function (arg0, arg1) {
|
|
1931
|
+
const ret = arg0.getStaticDepositSecretSource(arg1 >>> 0);
|
|
1932
|
+
return ret;
|
|
1933
|
+
}, arguments) };
|
|
1934
|
+
|
|
1935
|
+
export function __wbg_getTokenOutputs_f51d6f5d47330273() { return handleError(function (arg0, arg1) {
|
|
1936
|
+
const ret = arg0.getTokenOutputs(arg1);
|
|
1937
|
+
return ret;
|
|
1938
|
+
}, arguments) };
|
|
1939
|
+
|
|
1940
|
+
export function __wbg_getTransactionHex_973b8d0555c60f99() { return handleError(function (arg0, arg1, arg2) {
|
|
1941
|
+
let deferred0_0;
|
|
1942
|
+
let deferred0_1;
|
|
1943
|
+
try {
|
|
1944
|
+
deferred0_0 = arg1;
|
|
1945
|
+
deferred0_1 = arg2;
|
|
1946
|
+
const ret = arg0.getTransactionHex(getStringFromWasm0(arg1, arg2));
|
|
1947
|
+
return ret;
|
|
1948
|
+
} finally {
|
|
1949
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1950
|
+
}
|
|
1951
|
+
}, arguments) };
|
|
1952
|
+
|
|
1953
|
+
export function __wbg_getTransactionStatus_731f0ef840c27f99() { return handleError(function (arg0, arg1, arg2) {
|
|
1954
|
+
let deferred0_0;
|
|
1955
|
+
let deferred0_1;
|
|
1956
|
+
try {
|
|
1957
|
+
deferred0_0 = arg1;
|
|
1958
|
+
deferred0_1 = arg2;
|
|
1959
|
+
const ret = arg0.getTransactionStatus(getStringFromWasm0(arg1, arg2));
|
|
1960
|
+
return ret;
|
|
1961
|
+
} finally {
|
|
1962
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1963
|
+
}
|
|
1964
|
+
}, arguments) };
|
|
1965
|
+
|
|
1966
|
+
export function __wbg_get_67b2ba62fc30de12() { return handleError(function (arg0, arg1) {
|
|
1967
|
+
const ret = Reflect.get(arg0, arg1);
|
|
1968
|
+
return ret;
|
|
1969
|
+
}, arguments) };
|
|
1970
|
+
|
|
1971
|
+
export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
|
1972
|
+
const ret = arg0[arg1 >>> 0];
|
|
1973
|
+
return ret;
|
|
1974
|
+
};
|
|
1975
|
+
|
|
1976
|
+
export function __wbg_getdone_d47073731acd3e74(arg0) {
|
|
1977
|
+
const ret = arg0.done;
|
|
1978
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1979
|
+
};
|
|
1980
|
+
|
|
1981
|
+
export function __wbg_getvalue_009dcd63692bee1f(arg0) {
|
|
1982
|
+
const ret = arg0.value;
|
|
1983
|
+
return ret;
|
|
1984
|
+
};
|
|
1985
|
+
|
|
1986
|
+
export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
|
|
1987
|
+
const ret = arg0[arg1];
|
|
1988
|
+
return ret;
|
|
1989
|
+
};
|
|
1990
|
+
|
|
1991
|
+
export function __wbg_has_a5ea9117f258a0ec() { return handleError(function (arg0, arg1) {
|
|
1992
|
+
const ret = Reflect.has(arg0, arg1);
|
|
1993
|
+
return ret;
|
|
1994
|
+
}, arguments) };
|
|
1995
|
+
|
|
1996
|
+
export function __wbg_headers_9cb51cfd2ac780a4(arg0) {
|
|
1997
|
+
const ret = arg0.headers;
|
|
1998
|
+
return ret;
|
|
1999
|
+
};
|
|
2000
|
+
|
|
2001
|
+
export function __wbg_hmacSha256_c6633de6089f686f() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2002
|
+
let deferred1_0;
|
|
2003
|
+
let deferred1_1;
|
|
2004
|
+
try {
|
|
2005
|
+
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
|
|
2006
|
+
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
2007
|
+
deferred1_0 = arg3;
|
|
2008
|
+
deferred1_1 = arg4;
|
|
2009
|
+
const ret = arg0.hmacSha256(v0, getStringFromWasm0(arg3, arg4));
|
|
2010
|
+
return ret;
|
|
2011
|
+
} finally {
|
|
2012
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2013
|
+
}
|
|
2014
|
+
}, arguments) };
|
|
2015
|
+
|
|
2016
|
+
export function __wbg_identityPublicKey_c8b35005055a3df0() { return handleError(function (arg0) {
|
|
2017
|
+
const ret = arg0.identityPublicKey();
|
|
2018
|
+
return ret;
|
|
2019
|
+
}, arguments) };
|
|
2020
|
+
|
|
2021
|
+
export function __wbg_insertContact_33c214012213409d() { return handleError(function (arg0, arg1) {
|
|
2022
|
+
const ret = arg0.insertContact(arg1);
|
|
2023
|
+
return ret;
|
|
2024
|
+
}, arguments) };
|
|
2025
|
+
|
|
2026
|
+
export function __wbg_insertPaymentMetadata_0c4ebdcde694d29b() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2027
|
+
let deferred0_0;
|
|
2028
|
+
let deferred0_1;
|
|
2029
|
+
try {
|
|
2030
|
+
deferred0_0 = arg1;
|
|
2031
|
+
deferred0_1 = arg2;
|
|
2032
|
+
const ret = arg0.insertPaymentMetadata(getStringFromWasm0(arg1, arg2), arg3);
|
|
2033
|
+
return ret;
|
|
2034
|
+
} finally {
|
|
2035
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2036
|
+
}
|
|
2037
|
+
}, arguments) };
|
|
2038
|
+
|
|
2039
|
+
export function __wbg_insertPayment_2afe3300c5f86ccf() { return handleError(function (arg0, arg1) {
|
|
2040
|
+
const ret = arg0.insertPayment(arg1);
|
|
2041
|
+
return ret;
|
|
2042
|
+
}, arguments) };
|
|
2043
|
+
|
|
2044
|
+
export function __wbg_insertTokenOutputs_043ceea065ff8f65() { return handleError(function (arg0, arg1) {
|
|
2045
|
+
const ret = arg0.insertTokenOutputs(arg1);
|
|
2046
|
+
return ret;
|
|
2047
|
+
}, arguments) };
|
|
2048
|
+
|
|
2049
|
+
export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
|
|
2050
|
+
let result;
|
|
2051
|
+
try {
|
|
2052
|
+
result = arg0 instanceof ArrayBuffer;
|
|
2053
|
+
} catch (_) {
|
|
2054
|
+
result = false;
|
|
2055
|
+
}
|
|
2056
|
+
const ret = result;
|
|
2057
|
+
return ret;
|
|
2058
|
+
};
|
|
2059
|
+
|
|
2060
|
+
export function __wbg_instanceof_Blob_ca721ef3bdab15d1(arg0) {
|
|
2061
|
+
let result;
|
|
2062
|
+
try {
|
|
2063
|
+
result = arg0 instanceof Blob;
|
|
2064
|
+
} catch (_) {
|
|
2065
|
+
result = false;
|
|
2066
|
+
}
|
|
2067
|
+
const ret = result;
|
|
2068
|
+
return ret;
|
|
2069
|
+
};
|
|
2070
|
+
|
|
2071
|
+
export function __wbg_instanceof_DomException_ed1ccb7aaf39034c(arg0) {
|
|
2072
|
+
let result;
|
|
2073
|
+
try {
|
|
2074
|
+
result = arg0 instanceof DOMException;
|
|
2075
|
+
} catch (_) {
|
|
2076
|
+
result = false;
|
|
2077
|
+
}
|
|
2078
|
+
const ret = result;
|
|
2079
|
+
return ret;
|
|
2080
|
+
};
|
|
2081
|
+
|
|
2082
|
+
export function __wbg_instanceof_Error_4d54113b22d20306(arg0) {
|
|
2083
|
+
let result;
|
|
2084
|
+
try {
|
|
2085
|
+
result = arg0 instanceof Error;
|
|
2086
|
+
} catch (_) {
|
|
2087
|
+
result = false;
|
|
2088
|
+
}
|
|
2089
|
+
const ret = result;
|
|
2090
|
+
return ret;
|
|
2091
|
+
};
|
|
2092
|
+
|
|
2093
|
+
export function __wbg_instanceof_Map_f3469ce2244d2430(arg0) {
|
|
2094
|
+
let result;
|
|
2095
|
+
try {
|
|
2096
|
+
result = arg0 instanceof Map;
|
|
2097
|
+
} catch (_) {
|
|
2098
|
+
result = false;
|
|
2099
|
+
}
|
|
2100
|
+
const ret = result;
|
|
2101
|
+
return ret;
|
|
2102
|
+
};
|
|
2103
|
+
|
|
2104
|
+
export function __wbg_instanceof_Object_7f2dcef8f78644a4(arg0) {
|
|
2105
|
+
let result;
|
|
2106
|
+
try {
|
|
2107
|
+
result = arg0 instanceof Object;
|
|
2108
|
+
} catch (_) {
|
|
2109
|
+
result = false;
|
|
2110
|
+
}
|
|
2111
|
+
const ret = result;
|
|
2112
|
+
return ret;
|
|
2113
|
+
};
|
|
2114
|
+
|
|
2115
|
+
export function __wbg_instanceof_Response_f2cc20d9f7dfd644(arg0) {
|
|
2116
|
+
let result;
|
|
2117
|
+
try {
|
|
2118
|
+
result = arg0 instanceof Response;
|
|
2119
|
+
} catch (_) {
|
|
2120
|
+
result = false;
|
|
2121
|
+
}
|
|
2122
|
+
const ret = result;
|
|
2123
|
+
return ret;
|
|
2124
|
+
};
|
|
2125
|
+
|
|
2126
|
+
export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
|
|
2127
|
+
let result;
|
|
2128
|
+
try {
|
|
2129
|
+
result = arg0 instanceof Uint8Array;
|
|
2130
|
+
} catch (_) {
|
|
2131
|
+
result = false;
|
|
2132
|
+
}
|
|
2133
|
+
const ret = result;
|
|
2134
|
+
return ret;
|
|
2135
|
+
};
|
|
2136
|
+
|
|
2137
|
+
export function __wbg_isArray_a1eab7e0d067391b(arg0) {
|
|
2138
|
+
const ret = Array.isArray(arg0);
|
|
2139
|
+
return ret;
|
|
2140
|
+
};
|
|
2141
|
+
|
|
2142
|
+
export function __wbg_isPrfAvailable_c13e727932109c6e() { return handleError(function (arg0) {
|
|
2143
|
+
const ret = arg0.isPrfAvailable();
|
|
2144
|
+
return ret;
|
|
2145
|
+
}, arguments) };
|
|
2146
|
+
|
|
2147
|
+
export function __wbg_isSafeInteger_343e2beeeece1bb0(arg0) {
|
|
2148
|
+
const ret = Number.isSafeInteger(arg0);
|
|
2149
|
+
return ret;
|
|
2150
|
+
};
|
|
2151
|
+
|
|
2152
|
+
export function __wbg_iterator_9a24c88df860dc65() {
|
|
2153
|
+
const ret = Symbol.iterator;
|
|
2154
|
+
return ret;
|
|
2155
|
+
};
|
|
2156
|
+
|
|
2157
|
+
export function __wbg_length_a446193dc22c12f8(arg0) {
|
|
2158
|
+
const ret = arg0.length;
|
|
2159
|
+
return ret;
|
|
2160
|
+
};
|
|
2161
|
+
|
|
2162
|
+
export function __wbg_length_e2d2a49132c1b256(arg0) {
|
|
2163
|
+
const ret = arg0.length;
|
|
2164
|
+
return ret;
|
|
2165
|
+
};
|
|
2166
|
+
|
|
2167
|
+
export function __wbg_listContacts_5b4d38a57743b713() { return handleError(function (arg0, arg1) {
|
|
2168
|
+
const ret = arg0.listContacts(arg1);
|
|
2169
|
+
return ret;
|
|
2170
|
+
}, arguments) };
|
|
2171
|
+
|
|
2172
|
+
export function __wbg_listDeposits_7ca6e22afc06d560() { return handleError(function (arg0) {
|
|
2173
|
+
const ret = arg0.listDeposits();
|
|
2174
|
+
return ret;
|
|
2175
|
+
}, arguments) };
|
|
2176
|
+
|
|
2177
|
+
export function __wbg_listPayments_d8c53ab09ffc756b() { return handleError(function (arg0, arg1) {
|
|
2178
|
+
const ret = arg0.listPayments(arg1);
|
|
2179
|
+
return ret;
|
|
2180
|
+
}, arguments) };
|
|
2181
|
+
|
|
2182
|
+
export function __wbg_listTokensOutputs_4b4500bd5aca2c88() { return handleError(function (arg0) {
|
|
2183
|
+
const ret = arg0.listTokensOutputs();
|
|
2184
|
+
return ret;
|
|
2185
|
+
}, arguments) };
|
|
2186
|
+
|
|
2187
|
+
export function __wbg_log_62b3ddcc89229688(arg0, arg1) {
|
|
2188
|
+
arg0.log(arg1);
|
|
2189
|
+
};
|
|
2190
|
+
|
|
2191
|
+
export function __wbg_message_5c5d919204d42400(arg0, arg1) {
|
|
2192
|
+
const ret = arg1.message;
|
|
2193
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2194
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2195
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2196
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2197
|
+
};
|
|
2198
|
+
|
|
2199
|
+
export function __wbg_message_97a2af9b89d693a3(arg0) {
|
|
2200
|
+
const ret = arg0.message;
|
|
2201
|
+
return ret;
|
|
2202
|
+
};
|
|
2203
|
+
|
|
2204
|
+
export function __wbg_msCrypto_a61aeb35a24c1329(arg0) {
|
|
2205
|
+
const ret = arg0.msCrypto;
|
|
2206
|
+
return ret;
|
|
2207
|
+
};
|
|
2208
|
+
|
|
2209
|
+
export function __wbg_name_0b327d569f00ebee(arg0) {
|
|
2210
|
+
const ret = arg0.name;
|
|
2211
|
+
return ret;
|
|
2212
|
+
};
|
|
2213
|
+
|
|
2214
|
+
export function __wbg_name_f2d27098bfd843e7(arg0, arg1) {
|
|
2215
|
+
const ret = arg1.name;
|
|
2216
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2217
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2218
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2219
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2220
|
+
};
|
|
2221
|
+
|
|
2222
|
+
export function __wbg_new_018dcc2d6c8c2f6a() { return handleError(function () {
|
|
2223
|
+
const ret = new Headers();
|
|
2224
|
+
return ret;
|
|
2225
|
+
}, arguments) };
|
|
2226
|
+
|
|
2227
|
+
export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
2228
|
+
try {
|
|
2229
|
+
var state0 = {a: arg0, b: arg1};
|
|
2230
|
+
var cb0 = (arg0, arg1) => {
|
|
2231
|
+
const a = state0.a;
|
|
2232
|
+
state0.a = 0;
|
|
2233
|
+
try {
|
|
2234
|
+
return __wbg_adapter_391(a, state0.b, arg0, arg1);
|
|
2235
|
+
} finally {
|
|
2236
|
+
state0.a = a;
|
|
2237
|
+
}
|
|
2238
|
+
};
|
|
2239
|
+
const ret = new Promise(cb0);
|
|
2240
|
+
return ret;
|
|
2241
|
+
} finally {
|
|
2242
|
+
state0.a = state0.b = 0;
|
|
2243
|
+
}
|
|
2244
|
+
};
|
|
2245
|
+
|
|
2246
|
+
export function __wbg_new_405e22f390576ce2() {
|
|
2247
|
+
const ret = new Object();
|
|
2248
|
+
return ret;
|
|
2249
|
+
};
|
|
2250
|
+
|
|
2251
|
+
export function __wbg_new_5e0be73521bc8c17() {
|
|
2252
|
+
const ret = new Map();
|
|
2253
|
+
return ret;
|
|
2254
|
+
};
|
|
2255
|
+
|
|
2256
|
+
export function __wbg_new_78feb108b6472713() {
|
|
2257
|
+
const ret = new Array();
|
|
2258
|
+
return ret;
|
|
2259
|
+
};
|
|
2260
|
+
|
|
2261
|
+
export function __wbg_new_92c54fc74574ef55() { return handleError(function (arg0, arg1) {
|
|
2262
|
+
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
|
2263
|
+
return ret;
|
|
2264
|
+
}, arguments) };
|
|
2265
|
+
|
|
2266
|
+
export function __wbg_new_a12002a7f91c75be(arg0) {
|
|
2267
|
+
const ret = new Uint8Array(arg0);
|
|
2268
|
+
return ret;
|
|
2269
|
+
};
|
|
2270
|
+
|
|
2271
|
+
export function __wbg_new_c68d7209be747379(arg0, arg1) {
|
|
2272
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2273
|
+
return ret;
|
|
2274
|
+
};
|
|
2275
|
+
|
|
2276
|
+
export function __wbg_new_e25e5aab09ff45db() { return handleError(function () {
|
|
2277
|
+
const ret = new AbortController();
|
|
2278
|
+
return ret;
|
|
2279
|
+
}, arguments) };
|
|
2280
|
+
|
|
2281
|
+
export function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
|
|
2282
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
2283
|
+
return ret;
|
|
2284
|
+
};
|
|
2285
|
+
|
|
2286
|
+
export function __wbg_newwithbyteoffsetandlength_d97e637ebe145a9a(arg0, arg1, arg2) {
|
|
2287
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
2288
|
+
return ret;
|
|
2289
|
+
};
|
|
2290
|
+
|
|
2291
|
+
export function __wbg_newwithlength_a381634e90c276d4(arg0) {
|
|
2292
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
2293
|
+
return ret;
|
|
2294
|
+
};
|
|
2295
|
+
|
|
2296
|
+
export function __wbg_newwithstrandinit_06c535e0a867c635() { return handleError(function (arg0, arg1, arg2) {
|
|
2297
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
2298
|
+
return ret;
|
|
2299
|
+
}, arguments) };
|
|
2300
|
+
|
|
2301
|
+
export function __wbg_next_25feadfc0913fea9(arg0) {
|
|
2302
|
+
const ret = arg0.next;
|
|
2303
|
+
return ret;
|
|
2304
|
+
};
|
|
2305
|
+
|
|
2306
|
+
export function __wbg_next_6574e1a8a62d1055() { return handleError(function (arg0) {
|
|
2307
|
+
const ret = arg0.next();
|
|
2308
|
+
return ret;
|
|
2309
|
+
}, arguments) };
|
|
2310
|
+
|
|
2311
|
+
export function __wbg_node_905d3e251edff8a2(arg0) {
|
|
2312
|
+
const ret = arg0.node;
|
|
2313
|
+
return ret;
|
|
2314
|
+
};
|
|
2315
|
+
|
|
2316
|
+
export function __wbg_now_063c1184182e178a() { return handleError(function (arg0) {
|
|
2317
|
+
const ret = arg0.now();
|
|
2318
|
+
return ret;
|
|
2319
|
+
}, arguments) };
|
|
2320
|
+
|
|
2321
|
+
export function __wbg_now_2c95c9de01293173(arg0) {
|
|
2322
|
+
const ret = arg0.now();
|
|
2323
|
+
return ret;
|
|
2324
|
+
};
|
|
2325
|
+
|
|
2326
|
+
export function __wbg_now_6af59e24f5a53ad4() { return handleError(function () {
|
|
2327
|
+
const ret = Date.now();
|
|
2328
|
+
return ret;
|
|
2329
|
+
}, arguments) };
|
|
2330
|
+
|
|
2331
|
+
export function __wbg_now_79892f24f17d010a() { return handleError(function (arg0) {
|
|
2332
|
+
const ret = arg0.now();
|
|
2333
|
+
return ret;
|
|
2334
|
+
}, arguments) };
|
|
2335
|
+
|
|
2336
|
+
export function __wbg_now_807e54c39636c349() {
|
|
2337
|
+
const ret = Date.now();
|
|
2338
|
+
return ret;
|
|
2339
|
+
};
|
|
2340
|
+
|
|
2341
|
+
export function __wbg_onEvent_3a18bdd7cfd911cb(arg0, arg1) {
|
|
2342
|
+
arg0.onEvent(arg1);
|
|
2343
|
+
};
|
|
2344
|
+
|
|
2345
|
+
export function __wbg_performance_7a3ffd0b17f663ad(arg0) {
|
|
2346
|
+
const ret = arg0.performance;
|
|
2347
|
+
return ret;
|
|
2348
|
+
};
|
|
2349
|
+
|
|
2350
|
+
export function __wbg_postMessage_83a8d58d3fcb6c13() { return handleError(function (arg0, arg1) {
|
|
2351
|
+
arg0.postMessage(arg1);
|
|
2352
|
+
}, arguments) };
|
|
2353
|
+
|
|
2354
|
+
export function __wbg_postRequest_678f7531153ace01() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2355
|
+
let deferred0_0;
|
|
2356
|
+
let deferred0_1;
|
|
2357
|
+
try {
|
|
2358
|
+
deferred0_0 = arg1;
|
|
2359
|
+
deferred0_1 = arg2;
|
|
2360
|
+
let v1;
|
|
2361
|
+
if (arg4 !== 0) {
|
|
2362
|
+
v1 = getStringFromWasm0(arg4, arg5).slice();
|
|
2363
|
+
wasm.__wbindgen_free(arg4, arg5 * 1, 1);
|
|
2364
|
+
}
|
|
2365
|
+
const ret = arg0.postRequest(getStringFromWasm0(arg1, arg2), arg3, v1);
|
|
2366
|
+
return ret;
|
|
2367
|
+
} finally {
|
|
2368
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2369
|
+
}
|
|
2370
|
+
}, arguments) };
|
|
2371
|
+
|
|
2372
|
+
export function __wbg_process_dc0fbacc7c1c06f7(arg0) {
|
|
2373
|
+
const ret = arg0.process;
|
|
2374
|
+
return ret;
|
|
2375
|
+
};
|
|
2376
|
+
|
|
2377
|
+
export function __wbg_queueMicrotask_97d92b4fcc8a61c5(arg0) {
|
|
2378
|
+
queueMicrotask(arg0);
|
|
2379
|
+
};
|
|
2380
|
+
|
|
2381
|
+
export function __wbg_queueMicrotask_d3219def82552485(arg0) {
|
|
2382
|
+
const ret = arg0.queueMicrotask;
|
|
2383
|
+
return ret;
|
|
2384
|
+
};
|
|
2385
|
+
|
|
2386
|
+
export function __wbg_randomFillSync_ac0988aba3254290() { return handleError(function (arg0, arg1) {
|
|
2387
|
+
arg0.randomFillSync(arg1);
|
|
2388
|
+
}, arguments) };
|
|
2389
|
+
|
|
2390
|
+
export function __wbg_read_a2434af1186cb56c(arg0) {
|
|
2391
|
+
const ret = arg0.read();
|
|
2392
|
+
return ret;
|
|
2393
|
+
};
|
|
2394
|
+
|
|
2395
|
+
export function __wbg_readyState_7ef6e63c349899ed(arg0) {
|
|
2396
|
+
const ret = arg0.readyState;
|
|
2397
|
+
return ret;
|
|
2398
|
+
};
|
|
2399
|
+
|
|
2400
|
+
export function __wbg_reason_49f1cede8bcf23dd(arg0, arg1) {
|
|
2401
|
+
const ret = arg1.reason;
|
|
2402
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2403
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2404
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2405
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2406
|
+
};
|
|
2407
|
+
|
|
2408
|
+
export function __wbg_recommendedFees_a61f331fce46523e() { return handleError(function (arg0) {
|
|
2409
|
+
const ret = arg0.recommendedFees();
|
|
2410
|
+
return ret;
|
|
2411
|
+
}, arguments) };
|
|
2412
|
+
|
|
2413
|
+
export function __wbg_releaseLock_091899af97991d2e(arg0) {
|
|
2414
|
+
arg0.releaseLock();
|
|
2415
|
+
};
|
|
2416
|
+
|
|
2417
|
+
export function __wbg_require_60cc747a6bc5215a() { return handleError(function () {
|
|
2418
|
+
const ret = module.require;
|
|
2419
|
+
return ret;
|
|
2420
|
+
}, arguments) };
|
|
2421
|
+
|
|
2422
|
+
export function __wbg_reserveTokenOutputs_6a190cf797e7d196() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
2423
|
+
let deferred0_0;
|
|
2424
|
+
let deferred0_1;
|
|
2425
|
+
let deferred1_0;
|
|
2426
|
+
let deferred1_1;
|
|
2427
|
+
try {
|
|
2428
|
+
deferred0_0 = arg1;
|
|
2429
|
+
deferred0_1 = arg2;
|
|
2430
|
+
deferred1_0 = arg4;
|
|
2431
|
+
deferred1_1 = arg5;
|
|
2432
|
+
const ret = arg0.reserveTokenOutputs(getStringFromWasm0(arg1, arg2), arg3, getStringFromWasm0(arg4, arg5), arg6, arg7);
|
|
2433
|
+
return ret;
|
|
2434
|
+
} finally {
|
|
2435
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2436
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2437
|
+
}
|
|
2438
|
+
}, arguments) };
|
|
2439
|
+
|
|
2440
|
+
export function __wbg_resolve_4851785c9c5f573d(arg0) {
|
|
2441
|
+
const ret = Promise.resolve(arg0);
|
|
2442
|
+
return ret;
|
|
2443
|
+
};
|
|
2444
|
+
|
|
2445
|
+
export function __wbg_respond_1f279fa9f8edcb1c() { return handleError(function (arg0, arg1) {
|
|
2446
|
+
arg0.respond(arg1 >>> 0);
|
|
2447
|
+
}, arguments) };
|
|
2448
|
+
|
|
2449
|
+
export function __wbg_sdkbuilder_new(arg0) {
|
|
2450
|
+
const ret = SdkBuilder.__wrap(arg0);
|
|
2451
|
+
return ret;
|
|
2452
|
+
};
|
|
2453
|
+
|
|
2454
|
+
export function __wbg_send_0293179ba074ffb4() { return handleError(function (arg0, arg1, arg2) {
|
|
2455
|
+
arg0.send(getStringFromWasm0(arg1, arg2));
|
|
2456
|
+
}, arguments) };
|
|
2457
|
+
|
|
2458
|
+
export function __wbg_send_fc0c204e8a1757f4() { return handleError(function (arg0, arg1, arg2) {
|
|
2459
|
+
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
2460
|
+
}, arguments) };
|
|
2461
|
+
|
|
2462
|
+
export function __wbg_setCachedItem_91b03741dfb0b4c2() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2463
|
+
let deferred0_0;
|
|
2464
|
+
let deferred0_1;
|
|
2465
|
+
let deferred1_0;
|
|
2466
|
+
let deferred1_1;
|
|
2467
|
+
try {
|
|
2468
|
+
deferred0_0 = arg1;
|
|
2469
|
+
deferred0_1 = arg2;
|
|
2470
|
+
deferred1_0 = arg3;
|
|
2471
|
+
deferred1_1 = arg4;
|
|
2472
|
+
const ret = arg0.setCachedItem(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
2473
|
+
return ret;
|
|
2474
|
+
} finally {
|
|
2475
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2476
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2477
|
+
}
|
|
2478
|
+
}, arguments) };
|
|
2479
|
+
|
|
2480
|
+
export function __wbg_setLeaves_d1c338c6d7d2ef28() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2481
|
+
const ret = arg0.setLeaves(arg1, arg2, arg3);
|
|
2482
|
+
return ret;
|
|
2483
|
+
}, arguments) };
|
|
2484
|
+
|
|
2485
|
+
export function __wbg_setLnurlMetadata_0bf15cc7efb6cc11() { return handleError(function (arg0, arg1, arg2) {
|
|
2486
|
+
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
2487
|
+
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
2488
|
+
const ret = arg0.setLnurlMetadata(v0);
|
|
2489
|
+
return ret;
|
|
2490
|
+
}, arguments) };
|
|
2491
|
+
|
|
2492
|
+
export function __wbg_setTimeout_2b339866a2aa3789(arg0, arg1) {
|
|
2493
|
+
const ret = setTimeout(arg0, arg1);
|
|
2494
|
+
return ret;
|
|
2495
|
+
};
|
|
2496
|
+
|
|
2497
|
+
export function __wbg_setTimeout_8f06012fba12034e(arg0, arg1) {
|
|
2498
|
+
globalThis.setTimeout(arg0, arg1);
|
|
2499
|
+
};
|
|
2500
|
+
|
|
2501
|
+
export function __wbg_setTimeout_db2dbaeefb6f39c7() { return handleError(function (arg0, arg1) {
|
|
2502
|
+
const ret = setTimeout(arg0, arg1);
|
|
2503
|
+
return ret;
|
|
2504
|
+
}, arguments) };
|
|
2505
|
+
|
|
2506
|
+
export function __wbg_setTokensOutputs_5b8449721027f347() { return handleError(function (arg0, arg1, arg2) {
|
|
2507
|
+
const ret = arg0.setTokensOutputs(arg1, arg2);
|
|
2508
|
+
return ret;
|
|
2509
|
+
}, arguments) };
|
|
2510
|
+
|
|
2511
|
+
export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
|
|
2512
|
+
arg0[arg1 >>> 0] = arg2;
|
|
2513
|
+
};
|
|
2514
|
+
|
|
2515
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
2516
|
+
arg0[arg1] = arg2;
|
|
2517
|
+
};
|
|
2518
|
+
|
|
2519
|
+
export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
|
2520
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
2521
|
+
};
|
|
2522
|
+
|
|
2523
|
+
export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
|
|
2524
|
+
const ret = arg0.set(arg1, arg2);
|
|
2525
|
+
return ret;
|
|
2526
|
+
};
|
|
2527
|
+
|
|
2528
|
+
export function __wbg_set_bb8cecf6a62b9f46() { return handleError(function (arg0, arg1, arg2) {
|
|
2529
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
2530
|
+
return ret;
|
|
2531
|
+
}, arguments) };
|
|
2532
|
+
|
|
2533
|
+
export function __wbg_setbinaryType_92fa1ffd873b327c(arg0, arg1) {
|
|
2534
|
+
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
2535
|
+
};
|
|
2536
|
+
|
|
2537
|
+
export function __wbg_setbody_5923b78a95eedf29(arg0, arg1) {
|
|
2538
|
+
arg0.body = arg1;
|
|
2539
|
+
};
|
|
2540
|
+
|
|
2541
|
+
export function __wbg_setcache_12f17c3a980650e4(arg0, arg1) {
|
|
2542
|
+
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
2543
|
+
};
|
|
2544
|
+
|
|
2545
|
+
export function __wbg_setcredentials_c3a22f1cd105a2c6(arg0, arg1) {
|
|
2546
|
+
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
2547
|
+
};
|
|
2548
|
+
|
|
2549
|
+
export function __wbg_setheaders_834c0bdb6a8949ad(arg0, arg1) {
|
|
2550
|
+
arg0.headers = arg1;
|
|
2551
|
+
};
|
|
2552
|
+
|
|
2553
|
+
export function __wbg_setintegrity_564a2397cf837760(arg0, arg1, arg2) {
|
|
2554
|
+
arg0.integrity = getStringFromWasm0(arg1, arg2);
|
|
2555
|
+
};
|
|
2556
|
+
|
|
2557
|
+
export function __wbg_setmethod_3c5280fe5d890842(arg0, arg1, arg2) {
|
|
2558
|
+
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
2559
|
+
};
|
|
2560
|
+
|
|
2561
|
+
export function __wbg_setmode_5dc300b865044b65(arg0, arg1) {
|
|
2562
|
+
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
2563
|
+
};
|
|
2564
|
+
|
|
2565
|
+
export function __wbg_setonclose_14fc475a49d488fc(arg0, arg1) {
|
|
2566
|
+
arg0.onclose = arg1;
|
|
2567
|
+
};
|
|
2568
|
+
|
|
2569
|
+
export function __wbg_setonerror_8639efe354b947cd(arg0, arg1) {
|
|
2570
|
+
arg0.onerror = arg1;
|
|
2571
|
+
};
|
|
2572
|
+
|
|
2573
|
+
export function __wbg_setonmessage_6eccab530a8fb4c7(arg0, arg1) {
|
|
2574
|
+
arg0.onmessage = arg1;
|
|
2575
|
+
};
|
|
2576
|
+
|
|
2577
|
+
export function __wbg_setonopen_2da654e1f39745d5(arg0, arg1) {
|
|
2578
|
+
arg0.onopen = arg1;
|
|
2579
|
+
};
|
|
2580
|
+
|
|
2581
|
+
export function __wbg_setredirect_40e6a7f717a2f86a(arg0, arg1) {
|
|
2582
|
+
arg0.redirect = __wbindgen_enum_RequestRedirect[arg1];
|
|
2583
|
+
};
|
|
2584
|
+
|
|
2585
|
+
export function __wbg_setreferrer_fea46c1230e5e29a(arg0, arg1, arg2) {
|
|
2586
|
+
arg0.referrer = getStringFromWasm0(arg1, arg2);
|
|
2587
|
+
};
|
|
2588
|
+
|
|
2589
|
+
export function __wbg_setreferrerpolicy_b73612479f761b6f(arg0, arg1) {
|
|
2590
|
+
arg0.referrerPolicy = __wbindgen_enum_ReferrerPolicy[arg1];
|
|
2591
|
+
};
|
|
2592
|
+
|
|
2593
|
+
export function __wbg_setsignal_75b21ef3a81de905(arg0, arg1) {
|
|
2594
|
+
arg0.signal = arg1;
|
|
2595
|
+
};
|
|
2596
|
+
|
|
2597
|
+
export function __wbg_signEcdsaRecoverable_756dd79f08e5ed39() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2598
|
+
let deferred0_0;
|
|
2599
|
+
let deferred0_1;
|
|
2600
|
+
try {
|
|
2601
|
+
deferred0_0 = arg2;
|
|
2602
|
+
deferred0_1 = arg3;
|
|
2603
|
+
const ret = arg0.signEcdsaRecoverable(arg1, getStringFromWasm0(arg2, arg3));
|
|
2604
|
+
return ret;
|
|
2605
|
+
} finally {
|
|
2606
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2607
|
+
}
|
|
2608
|
+
}, arguments) };
|
|
2609
|
+
|
|
2610
|
+
export function __wbg_signEcdsa_0ebea9dfc3b7c28f() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2611
|
+
let deferred0_0;
|
|
2612
|
+
let deferred0_1;
|
|
2613
|
+
try {
|
|
2614
|
+
deferred0_0 = arg2;
|
|
2615
|
+
deferred0_1 = arg3;
|
|
2616
|
+
const ret = arg0.signEcdsa(arg1, getStringFromWasm0(arg2, arg3));
|
|
2617
|
+
return ret;
|
|
2618
|
+
} finally {
|
|
2619
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2620
|
+
}
|
|
2621
|
+
}, arguments) };
|
|
2622
|
+
|
|
2623
|
+
export function __wbg_signFrost_06ac652135c4e862() { return handleError(function (arg0, arg1) {
|
|
2624
|
+
const ret = arg0.signFrost(arg1);
|
|
2625
|
+
return ret;
|
|
2626
|
+
}, arguments) };
|
|
2627
|
+
|
|
2628
|
+
export function __wbg_signHashSchnorr_390c51f0bbb70a7a() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2629
|
+
let deferred1_0;
|
|
2630
|
+
let deferred1_1;
|
|
2631
|
+
try {
|
|
2632
|
+
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
|
|
2633
|
+
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
2634
|
+
deferred1_0 = arg3;
|
|
2635
|
+
deferred1_1 = arg4;
|
|
2636
|
+
const ret = arg0.signHashSchnorr(v0, getStringFromWasm0(arg3, arg4));
|
|
2637
|
+
return ret;
|
|
2638
|
+
} finally {
|
|
2639
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2640
|
+
}
|
|
2641
|
+
}, arguments) };
|
|
2642
|
+
|
|
2643
|
+
export function __wbg_signal_aaf9ad74119f20a4(arg0) {
|
|
2644
|
+
const ret = arg0.signal;
|
|
2645
|
+
return ret;
|
|
2646
|
+
};
|
|
2647
|
+
|
|
2648
|
+
export function __wbg_splitSecretWithProofs_1aba146de2c5eb0a() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2649
|
+
const ret = arg0.splitSecretWithProofs(arg1, arg2 >>> 0, arg3 >>> 0);
|
|
2650
|
+
return ret;
|
|
2651
|
+
}, arguments) };
|
|
2652
|
+
|
|
2653
|
+
export function __wbg_static_accessor_GLOBAL_88a902d13a557d07() {
|
|
2654
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
2655
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2656
|
+
};
|
|
2657
|
+
|
|
2658
|
+
export function __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0() {
|
|
2659
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
2660
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2661
|
+
};
|
|
2662
|
+
|
|
2663
|
+
export function __wbg_static_accessor_SELF_37c5d418e4bf5819() {
|
|
2664
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
2665
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2666
|
+
};
|
|
2667
|
+
|
|
2668
|
+
export function __wbg_static_accessor_WINDOW_5de37043a91a9c40() {
|
|
2669
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
2670
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2671
|
+
};
|
|
2672
|
+
|
|
2673
|
+
export function __wbg_status_f6360336ca686bf0(arg0) {
|
|
2674
|
+
const ret = arg0.status;
|
|
2675
|
+
return ret;
|
|
2676
|
+
};
|
|
2677
|
+
|
|
2678
|
+
export function __wbg_stringify_f7ed6987935b4a24() { return handleError(function (arg0) {
|
|
2679
|
+
const ret = JSON.stringify(arg0);
|
|
2680
|
+
return ret;
|
|
2681
|
+
}, arguments) };
|
|
2682
|
+
|
|
2683
|
+
export function __wbg_subarray_aa9065fa9dc5df96(arg0, arg1, arg2) {
|
|
2684
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
2685
|
+
return ret;
|
|
2686
|
+
};
|
|
2687
|
+
|
|
2688
|
+
export function __wbg_subtractPrivateKeys_2d63747d9fa64d4f() { return handleError(function (arg0, arg1, arg2) {
|
|
2689
|
+
const ret = arg0.subtractPrivateKeys(arg1, arg2);
|
|
2690
|
+
return ret;
|
|
2691
|
+
}, arguments) };
|
|
2692
|
+
|
|
2693
|
+
export function __wbg_syncAddOutgoingChange_9d94d35ba215d3c9() { return handleError(function (arg0, arg1) {
|
|
2694
|
+
const ret = arg0.syncAddOutgoingChange(arg1);
|
|
2695
|
+
return ret;
|
|
2696
|
+
}, arguments) };
|
|
2697
|
+
|
|
2698
|
+
export function __wbg_syncCompleteOutgoingSync_959431da825d4042() { return handleError(function (arg0, arg1, arg2) {
|
|
2699
|
+
const ret = arg0.syncCompleteOutgoingSync(arg1, BigInt.asUintN(64, arg2));
|
|
2700
|
+
return ret;
|
|
2701
|
+
}, arguments) };
|
|
2702
|
+
|
|
2703
|
+
export function __wbg_syncDeleteIncomingRecord_ff76566691e4d7ca() { return handleError(function (arg0, arg1) {
|
|
2704
|
+
const ret = arg0.syncDeleteIncomingRecord(arg1);
|
|
2705
|
+
return ret;
|
|
2706
|
+
}, arguments) };
|
|
2707
|
+
|
|
2708
|
+
export function __wbg_syncGetIncomingRecords_a47bcdbce33f391b() { return handleError(function (arg0, arg1) {
|
|
2709
|
+
const ret = arg0.syncGetIncomingRecords(arg1 >>> 0);
|
|
2710
|
+
return ret;
|
|
2711
|
+
}, arguments) };
|
|
2712
|
+
|
|
2713
|
+
export function __wbg_syncGetLastRevision_3c8cdf9b9d5acbc9() { return handleError(function (arg0) {
|
|
2714
|
+
const ret = arg0.syncGetLastRevision();
|
|
2715
|
+
return ret;
|
|
2716
|
+
}, arguments) };
|
|
2717
|
+
|
|
2718
|
+
export function __wbg_syncGetLatestOutgoingChange_1a359277ba2618e6() { return handleError(function (arg0) {
|
|
2719
|
+
const ret = arg0.syncGetLatestOutgoingChange();
|
|
2720
|
+
return ret;
|
|
2721
|
+
}, arguments) };
|
|
2722
|
+
|
|
2723
|
+
export function __wbg_syncGetPendingOutgoingChanges_d2f9a942e5bbaa06() { return handleError(function (arg0, arg1) {
|
|
2724
|
+
const ret = arg0.syncGetPendingOutgoingChanges(arg1 >>> 0);
|
|
2725
|
+
return ret;
|
|
2726
|
+
}, arguments) };
|
|
2727
|
+
|
|
2728
|
+
export function __wbg_syncInsertIncomingRecords_dde4039dbc9cb38f() { return handleError(function (arg0, arg1, arg2) {
|
|
2729
|
+
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
2730
|
+
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
2731
|
+
const ret = arg0.syncInsertIncomingRecords(v0);
|
|
2732
|
+
return ret;
|
|
2733
|
+
}, arguments) };
|
|
2734
|
+
|
|
2735
|
+
export function __wbg_syncUpdateRecordFromIncoming_a76ad82592bfdcb3() { return handleError(function (arg0, arg1) {
|
|
2736
|
+
const ret = arg0.syncUpdateRecordFromIncoming(arg1);
|
|
2737
|
+
return ret;
|
|
2738
|
+
}, arguments) };
|
|
2739
|
+
|
|
2740
|
+
export function __wbg_text_7805bea50de2af49() { return handleError(function (arg0) {
|
|
2741
|
+
const ret = arg0.text();
|
|
2742
|
+
return ret;
|
|
2743
|
+
}, arguments) };
|
|
2744
|
+
|
|
2745
|
+
export function __wbg_then_44b73946d2fb3e7d(arg0, arg1) {
|
|
2746
|
+
const ret = arg0.then(arg1);
|
|
2747
|
+
return ret;
|
|
2748
|
+
};
|
|
2749
|
+
|
|
2750
|
+
export function __wbg_then_48b406749878a531(arg0, arg1, arg2) {
|
|
2751
|
+
const ret = arg0.then(arg1, arg2);
|
|
2752
|
+
return ret;
|
|
2753
|
+
};
|
|
2754
|
+
|
|
2755
|
+
export function __wbg_toString_5285597960676b7b(arg0) {
|
|
2756
|
+
const ret = arg0.toString();
|
|
2757
|
+
return ret;
|
|
2758
|
+
};
|
|
2759
|
+
|
|
2760
|
+
export function __wbg_tryReserveLeaves_9aacd30c9750a9df() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2761
|
+
let deferred0_0;
|
|
2762
|
+
let deferred0_1;
|
|
2763
|
+
try {
|
|
2764
|
+
deferred0_0 = arg3;
|
|
2765
|
+
deferred0_1 = arg4;
|
|
2766
|
+
const ret = arg0.tryReserveLeaves(arg1, arg2 !== 0, getStringFromWasm0(arg3, arg4));
|
|
2767
|
+
return ret;
|
|
2768
|
+
} finally {
|
|
2769
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2770
|
+
}
|
|
2771
|
+
}, arguments) };
|
|
2772
|
+
|
|
2773
|
+
export function __wbg_updateDeposit_87746090235ed235() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2774
|
+
let deferred0_0;
|
|
2775
|
+
let deferred0_1;
|
|
2776
|
+
try {
|
|
2777
|
+
deferred0_0 = arg1;
|
|
2778
|
+
deferred0_1 = arg2;
|
|
2779
|
+
const ret = arg0.updateDeposit(getStringFromWasm0(arg1, arg2), arg3 >>> 0, arg4);
|
|
2780
|
+
return ret;
|
|
2781
|
+
} finally {
|
|
2782
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2783
|
+
}
|
|
2784
|
+
}, arguments) };
|
|
2785
|
+
|
|
2786
|
+
export function __wbg_updateReservation_7641cd63d1a894b8() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2787
|
+
let deferred0_0;
|
|
2788
|
+
let deferred0_1;
|
|
2789
|
+
try {
|
|
2790
|
+
deferred0_0 = arg1;
|
|
2791
|
+
deferred0_1 = arg2;
|
|
2792
|
+
const ret = arg0.updateReservation(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
2793
|
+
return ret;
|
|
2794
|
+
} finally {
|
|
2795
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2796
|
+
}
|
|
2797
|
+
}, arguments) };
|
|
2798
|
+
|
|
2799
|
+
export function __wbg_url_ae10c34ca209681d(arg0, arg1) {
|
|
2800
|
+
const ret = arg1.url;
|
|
2801
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2802
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2803
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2804
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2805
|
+
};
|
|
2806
|
+
|
|
2807
|
+
export function __wbg_url_ce9ab75bf9627ae4(arg0, arg1) {
|
|
2808
|
+
const ret = arg1.url;
|
|
2809
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2810
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2811
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2812
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2813
|
+
};
|
|
2814
|
+
|
|
2815
|
+
export function __wbg_value_cd1ffa7b1ab794f1(arg0) {
|
|
2816
|
+
const ret = arg0.value;
|
|
2817
|
+
return ret;
|
|
2818
|
+
};
|
|
2819
|
+
|
|
2820
|
+
export function __wbg_versions_c01dfd4722a88165(arg0) {
|
|
2821
|
+
const ret = arg0.versions;
|
|
2822
|
+
return ret;
|
|
2823
|
+
};
|
|
2824
|
+
|
|
2825
|
+
export function __wbg_view_fd8a56e8983f448d(arg0) {
|
|
2826
|
+
const ret = arg0.view;
|
|
2827
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2828
|
+
};
|
|
2829
|
+
|
|
2830
|
+
export function __wbg_wasClean_605b4fd66d44354a(arg0) {
|
|
2831
|
+
const ret = arg0.wasClean;
|
|
2832
|
+
return ret;
|
|
2833
|
+
};
|
|
2834
|
+
|
|
2835
|
+
export function __wbindgen_array_new() {
|
|
2836
|
+
const ret = [];
|
|
2837
|
+
return ret;
|
|
2838
|
+
};
|
|
2839
|
+
|
|
2840
|
+
export function __wbindgen_array_push(arg0, arg1) {
|
|
2841
|
+
arg0.push(arg1);
|
|
2842
|
+
};
|
|
2843
|
+
|
|
2844
|
+
export function __wbindgen_as_number(arg0) {
|
|
2845
|
+
const ret = +arg0;
|
|
2846
|
+
return ret;
|
|
2847
|
+
};
|
|
2848
|
+
|
|
2849
|
+
export function __wbindgen_bigint_from_i64(arg0) {
|
|
2850
|
+
const ret = arg0;
|
|
2851
|
+
return ret;
|
|
2852
|
+
};
|
|
2853
|
+
|
|
2854
|
+
export function __wbindgen_bigint_from_u128(arg0, arg1) {
|
|
2855
|
+
const ret = BigInt.asUintN(64, arg0) << BigInt(64) | BigInt.asUintN(64, arg1);
|
|
2856
|
+
return ret;
|
|
2857
|
+
};
|
|
2858
|
+
|
|
2859
|
+
export function __wbindgen_bigint_from_u64(arg0) {
|
|
2860
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
2861
|
+
return ret;
|
|
2862
|
+
};
|
|
2863
|
+
|
|
2864
|
+
export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
|
|
2865
|
+
const v = arg1;
|
|
2866
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
2867
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
2868
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
2869
|
+
};
|
|
2870
|
+
|
|
2871
|
+
export function __wbindgen_boolean_get(arg0) {
|
|
2872
|
+
const v = arg0;
|
|
2873
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
2874
|
+
return ret;
|
|
2875
|
+
};
|
|
2876
|
+
|
|
2877
|
+
export function __wbindgen_cb_drop(arg0) {
|
|
2878
|
+
const obj = arg0.original;
|
|
2879
|
+
if (obj.cnt-- == 1) {
|
|
2880
|
+
obj.a = 0;
|
|
2881
|
+
return true;
|
|
2882
|
+
}
|
|
2883
|
+
const ret = false;
|
|
2884
|
+
return ret;
|
|
2885
|
+
};
|
|
2886
|
+
|
|
2887
|
+
export function __wbindgen_closure_wrapper13362(arg0, arg1, arg2) {
|
|
2888
|
+
const ret = makeMutClosure(arg0, arg1, 865, __wbg_adapter_69);
|
|
2889
|
+
return ret;
|
|
2890
|
+
};
|
|
2891
|
+
|
|
2892
|
+
export function __wbindgen_closure_wrapper15313(arg0, arg1, arg2) {
|
|
2893
|
+
const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_64);
|
|
2894
|
+
return ret;
|
|
2895
|
+
};
|
|
2896
|
+
|
|
2897
|
+
export function __wbindgen_closure_wrapper5938(arg0, arg1, arg2) {
|
|
2898
|
+
const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_64);
|
|
2899
|
+
return ret;
|
|
2900
|
+
};
|
|
2901
|
+
|
|
2902
|
+
export function __wbindgen_closure_wrapper5945(arg0, arg1, arg2) {
|
|
2903
|
+
const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_64);
|
|
2904
|
+
return ret;
|
|
2905
|
+
};
|
|
2906
|
+
|
|
2907
|
+
export function __wbindgen_closure_wrapper7541(arg0, arg1, arg2) {
|
|
2908
|
+
const ret = makeMutClosure(arg0, arg1, 386, __wbg_adapter_69);
|
|
2909
|
+
return ret;
|
|
2910
|
+
};
|
|
2911
|
+
|
|
2912
|
+
export function __wbindgen_debug_string(arg0, arg1) {
|
|
2913
|
+
const ret = debugString(arg1);
|
|
2914
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2915
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2916
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2917
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2918
|
+
};
|
|
2919
|
+
|
|
2920
|
+
export function __wbindgen_error_new(arg0, arg1) {
|
|
2921
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2922
|
+
return ret;
|
|
2923
|
+
};
|
|
2924
|
+
|
|
2925
|
+
export function __wbindgen_in(arg0, arg1) {
|
|
2926
|
+
const ret = arg0 in arg1;
|
|
2927
|
+
return ret;
|
|
2928
|
+
};
|
|
2929
|
+
|
|
2930
|
+
export function __wbindgen_init_externref_table() {
|
|
2931
|
+
const table = wasm.__wbindgen_export_5;
|
|
2932
|
+
const offset = table.grow(4);
|
|
2933
|
+
table.set(0, undefined);
|
|
2934
|
+
table.set(offset + 0, undefined);
|
|
2935
|
+
table.set(offset + 1, null);
|
|
2936
|
+
table.set(offset + 2, true);
|
|
2937
|
+
table.set(offset + 3, false);
|
|
2938
|
+
;
|
|
2939
|
+
};
|
|
2940
|
+
|
|
2941
|
+
export function __wbindgen_is_bigint(arg0) {
|
|
2942
|
+
const ret = typeof(arg0) === 'bigint';
|
|
2943
|
+
return ret;
|
|
2944
|
+
};
|
|
2945
|
+
|
|
2946
|
+
export function __wbindgen_is_function(arg0) {
|
|
2947
|
+
const ret = typeof(arg0) === 'function';
|
|
2948
|
+
return ret;
|
|
2949
|
+
};
|
|
2950
|
+
|
|
2951
|
+
export function __wbindgen_is_null(arg0) {
|
|
2952
|
+
const ret = arg0 === null;
|
|
2953
|
+
return ret;
|
|
2954
|
+
};
|
|
2955
|
+
|
|
2956
|
+
export function __wbindgen_is_object(arg0) {
|
|
2957
|
+
const val = arg0;
|
|
2958
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2959
|
+
return ret;
|
|
2960
|
+
};
|
|
2961
|
+
|
|
2962
|
+
export function __wbindgen_is_string(arg0) {
|
|
2963
|
+
const ret = typeof(arg0) === 'string';
|
|
2964
|
+
return ret;
|
|
2965
|
+
};
|
|
2966
|
+
|
|
2967
|
+
export function __wbindgen_is_undefined(arg0) {
|
|
2968
|
+
const ret = arg0 === undefined;
|
|
2969
|
+
return ret;
|
|
2970
|
+
};
|
|
2971
|
+
|
|
2972
|
+
export function __wbindgen_jsval_eq(arg0, arg1) {
|
|
2973
|
+
const ret = arg0 === arg1;
|
|
2974
|
+
return ret;
|
|
2975
|
+
};
|
|
2976
|
+
|
|
2977
|
+
export function __wbindgen_jsval_loose_eq(arg0, arg1) {
|
|
2978
|
+
const ret = arg0 == arg1;
|
|
2979
|
+
return ret;
|
|
2980
|
+
};
|
|
2981
|
+
|
|
2982
|
+
export function __wbindgen_memory() {
|
|
2983
|
+
const ret = wasm.memory;
|
|
2984
|
+
return ret;
|
|
2985
|
+
};
|
|
2986
|
+
|
|
2987
|
+
export function __wbindgen_number_get(arg0, arg1) {
|
|
2988
|
+
const obj = arg1;
|
|
2989
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
2990
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
2991
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
2992
|
+
};
|
|
2993
|
+
|
|
2994
|
+
export function __wbindgen_number_new(arg0) {
|
|
2995
|
+
const ret = arg0;
|
|
2996
|
+
return ret;
|
|
2997
|
+
};
|
|
2998
|
+
|
|
2999
|
+
export function __wbindgen_shr(arg0, arg1) {
|
|
3000
|
+
const ret = arg0 >> arg1;
|
|
3001
|
+
return ret;
|
|
3002
|
+
};
|
|
3003
|
+
|
|
3004
|
+
export function __wbindgen_string_get(arg0, arg1) {
|
|
3005
|
+
const obj = arg1;
|
|
3006
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
3007
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3008
|
+
var len1 = WASM_VECTOR_LEN;
|
|
3009
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3010
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3011
|
+
};
|
|
3012
|
+
|
|
3013
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
|
3014
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
3015
|
+
return ret;
|
|
3016
|
+
};
|
|
3017
|
+
|
|
3018
|
+
export function __wbindgen_throw(arg0, arg1) {
|
|
3019
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
3020
|
+
};
|
|
3021
|
+
|
|
3022
|
+
export function __wbindgen_uint8_array_new(arg0, arg1) {
|
|
3023
|
+
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
3024
|
+
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
3025
|
+
const ret = v0;
|
|
3026
|
+
return ret;
|
|
3027
|
+
};
|
|
3028
|
+
|