bitmask-core 0.6.0-rc.9 → 0.6.2
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/bitmask_core.d.ts +81 -60
- package/bitmask_core_bg.js +208 -151
- package/bitmask_core_bg.wasm +0 -0
- package/package.json +2 -4
- package/LICENSE-APACHE +0 -176
- package/LICENSE-MIT +0 -25
package/bitmask_core.d.ts
CHANGED
|
@@ -110,6 +110,59 @@ export function watcher_next_address(nostr_hex_sk: string, name: string, iface:
|
|
|
110
110
|
*/
|
|
111
111
|
export function watcher_next_utxo(nostr_hex_sk: string, name: string, iface: string): Promise<any>;
|
|
112
112
|
/**
|
|
113
|
+
* @param {string} username
|
|
114
|
+
* @param {string} password
|
|
115
|
+
* @returns {Promise<any>}
|
|
116
|
+
*/
|
|
117
|
+
export function create_wallet(username: string, password: string): Promise<any>;
|
|
118
|
+
/**
|
|
119
|
+
* @param {string} username
|
|
120
|
+
* @param {string} password
|
|
121
|
+
* @returns {Promise<any>}
|
|
122
|
+
*/
|
|
123
|
+
export function auth(username: string, password: string): Promise<any>;
|
|
124
|
+
/**
|
|
125
|
+
* @param {string} description
|
|
126
|
+
* @param {number} amount
|
|
127
|
+
* @param {string} token
|
|
128
|
+
* @returns {Promise<any>}
|
|
129
|
+
*/
|
|
130
|
+
export function ln_create_invoice(description: string, amount: number, token: string): Promise<any>;
|
|
131
|
+
/**
|
|
132
|
+
* @param {string} token
|
|
133
|
+
* @returns {Promise<any>}
|
|
134
|
+
*/
|
|
135
|
+
export function get_balance(token: string): Promise<any>;
|
|
136
|
+
/**
|
|
137
|
+
* @param {string} token
|
|
138
|
+
* @returns {Promise<any>}
|
|
139
|
+
*/
|
|
140
|
+
export function get_txs(token: string): Promise<any>;
|
|
141
|
+
/**
|
|
142
|
+
* @param {string} payment_request
|
|
143
|
+
* @param {string} token
|
|
144
|
+
* @returns {Promise<any>}
|
|
145
|
+
*/
|
|
146
|
+
export function pay_invoice(payment_request: string, token: string): Promise<any>;
|
|
147
|
+
/**
|
|
148
|
+
* @param {string} payment_hash
|
|
149
|
+
* @returns {Promise<any>}
|
|
150
|
+
*/
|
|
151
|
+
export function check_payment(payment_hash: string): Promise<any>;
|
|
152
|
+
/**
|
|
153
|
+
* @param {string} token
|
|
154
|
+
* @param {string | undefined} ln_address
|
|
155
|
+
* @returns {Promise<any>}
|
|
156
|
+
*/
|
|
157
|
+
export function swap_btc_ln(token: string, ln_address?: string): Promise<any>;
|
|
158
|
+
/**
|
|
159
|
+
* @param {string} address
|
|
160
|
+
* @param {bigint} amount
|
|
161
|
+
* @param {string} token
|
|
162
|
+
* @returns {Promise<any>}
|
|
163
|
+
*/
|
|
164
|
+
export function swap_ln_btc(address: string, amount: bigint, token: string): Promise<any>;
|
|
165
|
+
/**
|
|
113
166
|
* @param {string} secret_key
|
|
114
167
|
* @param {string} name
|
|
115
168
|
* @param {Uint8Array} data
|
|
@@ -163,66 +216,6 @@ export function new_nostr_pubkey(pubkey: string, token: string): Promise<any>;
|
|
|
163
216
|
*/
|
|
164
217
|
export function update_nostr_pubkey(pubkey: string, token: string): Promise<any>;
|
|
165
218
|
/**
|
|
166
|
-
* @param {string} username
|
|
167
|
-
* @param {string} password
|
|
168
|
-
* @returns {Promise<any>}
|
|
169
|
-
*/
|
|
170
|
-
export function create_wallet(username: string, password: string): Promise<any>;
|
|
171
|
-
/**
|
|
172
|
-
* @param {string} username
|
|
173
|
-
* @param {string} password
|
|
174
|
-
* @returns {Promise<any>}
|
|
175
|
-
*/
|
|
176
|
-
export function auth(username: string, password: string): Promise<any>;
|
|
177
|
-
/**
|
|
178
|
-
* @param {string} description
|
|
179
|
-
* @param {number} amount
|
|
180
|
-
* @param {string} token
|
|
181
|
-
* @returns {Promise<any>}
|
|
182
|
-
*/
|
|
183
|
-
export function ln_create_invoice(description: string, amount: number, token: string): Promise<any>;
|
|
184
|
-
/**
|
|
185
|
-
* @param {string} token
|
|
186
|
-
* @returns {Promise<any>}
|
|
187
|
-
*/
|
|
188
|
-
export function get_balance(token: string): Promise<any>;
|
|
189
|
-
/**
|
|
190
|
-
* @param {string} token
|
|
191
|
-
* @returns {Promise<any>}
|
|
192
|
-
*/
|
|
193
|
-
export function get_txs(token: string): Promise<any>;
|
|
194
|
-
/**
|
|
195
|
-
* @param {string} payment_request
|
|
196
|
-
* @param {string} token
|
|
197
|
-
* @returns {Promise<any>}
|
|
198
|
-
*/
|
|
199
|
-
export function pay_invoice(payment_request: string, token: string): Promise<any>;
|
|
200
|
-
/**
|
|
201
|
-
* @param {string} payment_hash
|
|
202
|
-
* @returns {Promise<any>}
|
|
203
|
-
*/
|
|
204
|
-
export function check_payment(payment_hash: string): Promise<any>;
|
|
205
|
-
/**
|
|
206
|
-
* @returns {Promise<any>}
|
|
207
|
-
*/
|
|
208
|
-
export function get_network(): Promise<any>;
|
|
209
|
-
/**
|
|
210
|
-
* @param {string} network_str
|
|
211
|
-
* @returns {Promise<any>}
|
|
212
|
-
*/
|
|
213
|
-
export function switch_network(network_str: string): Promise<any>;
|
|
214
|
-
/**
|
|
215
|
-
* @param {string} key
|
|
216
|
-
* @returns {Promise<any>}
|
|
217
|
-
*/
|
|
218
|
-
export function get_env(key: string): Promise<any>;
|
|
219
|
-
/**
|
|
220
|
-
* @param {string} key
|
|
221
|
-
* @param {string} value
|
|
222
|
-
* @returns {Promise<any>}
|
|
223
|
-
*/
|
|
224
|
-
export function set_env(key: string, value: string): Promise<any>;
|
|
225
|
-
/**
|
|
226
219
|
* @param {string} password
|
|
227
220
|
* @returns {string}
|
|
228
221
|
*/
|
|
@@ -273,6 +266,14 @@ export function sync_wallets(): Promise<any>;
|
|
|
273
266
|
*/
|
|
274
267
|
export function send_sats(descriptor: string, change_descriptor: string, destination: string, amount: bigint, fee_rate?: number): Promise<any>;
|
|
275
268
|
/**
|
|
269
|
+
* @param {string} destination
|
|
270
|
+
* @param {string} descriptor
|
|
271
|
+
* @param {string | undefined} change_descriptor
|
|
272
|
+
* @param {number | undefined} fee_rate
|
|
273
|
+
* @returns {Promise<any>}
|
|
274
|
+
*/
|
|
275
|
+
export function drain_wallet(destination: string, descriptor: string, change_descriptor?: string, fee_rate?: number): Promise<any>;
|
|
276
|
+
/**
|
|
276
277
|
* @param {string} descriptor
|
|
277
278
|
* @param {string} change_descriptor
|
|
278
279
|
* @param {string} address
|
|
@@ -289,3 +290,23 @@ export function fund_vault(descriptor: string, change_descriptor: string, addres
|
|
|
289
290
|
* @returns {Promise<any>}
|
|
290
291
|
*/
|
|
291
292
|
export function get_assets_vault(rgb_assets_descriptor_xpub: string, rgb_udas_descriptor_xpub: string): Promise<any>;
|
|
293
|
+
/**
|
|
294
|
+
* @returns {Promise<any>}
|
|
295
|
+
*/
|
|
296
|
+
export function get_network(): Promise<any>;
|
|
297
|
+
/**
|
|
298
|
+
* @param {string} network_str
|
|
299
|
+
* @returns {Promise<any>}
|
|
300
|
+
*/
|
|
301
|
+
export function switch_network(network_str: string): Promise<any>;
|
|
302
|
+
/**
|
|
303
|
+
* @param {string} key
|
|
304
|
+
* @returns {Promise<any>}
|
|
305
|
+
*/
|
|
306
|
+
export function get_env(key: string): Promise<any>;
|
|
307
|
+
/**
|
|
308
|
+
* @param {string} key
|
|
309
|
+
* @param {string} value
|
|
310
|
+
* @returns {Promise<any>}
|
|
311
|
+
*/
|
|
312
|
+
export function set_env(key: string, value: string): Promise<any>;
|
package/bitmask_core_bg.js
CHANGED
|
@@ -230,7 +230,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
230
230
|
|
|
231
231
|
return real;
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function __wbg_adapter_46(arg0, arg1, arg2) {
|
|
234
234
|
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hae52e2144aa84ab8(arg0, arg1, addHeapObject(arg2));
|
|
235
235
|
}
|
|
236
236
|
|
|
@@ -471,6 +471,125 @@ export function watcher_next_utxo(nostr_hex_sk, name, iface) {
|
|
|
471
471
|
return takeObject(ret);
|
|
472
472
|
}
|
|
473
473
|
|
|
474
|
+
/**
|
|
475
|
+
* @param {string} username
|
|
476
|
+
* @param {string} password
|
|
477
|
+
* @returns {Promise<any>}
|
|
478
|
+
*/
|
|
479
|
+
export function create_wallet(username, password) {
|
|
480
|
+
const ptr0 = passStringToWasm0(username, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
481
|
+
const len0 = WASM_VECTOR_LEN;
|
|
482
|
+
const ptr1 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
483
|
+
const len1 = WASM_VECTOR_LEN;
|
|
484
|
+
const ret = wasm.create_wallet(ptr0, len0, ptr1, len1);
|
|
485
|
+
return takeObject(ret);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* @param {string} username
|
|
490
|
+
* @param {string} password
|
|
491
|
+
* @returns {Promise<any>}
|
|
492
|
+
*/
|
|
493
|
+
export function auth(username, password) {
|
|
494
|
+
const ptr0 = passStringToWasm0(username, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
495
|
+
const len0 = WASM_VECTOR_LEN;
|
|
496
|
+
const ptr1 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
497
|
+
const len1 = WASM_VECTOR_LEN;
|
|
498
|
+
const ret = wasm.auth(ptr0, len0, ptr1, len1);
|
|
499
|
+
return takeObject(ret);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* @param {string} description
|
|
504
|
+
* @param {number} amount
|
|
505
|
+
* @param {string} token
|
|
506
|
+
* @returns {Promise<any>}
|
|
507
|
+
*/
|
|
508
|
+
export function ln_create_invoice(description, amount, token) {
|
|
509
|
+
const ptr0 = passStringToWasm0(description, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
510
|
+
const len0 = WASM_VECTOR_LEN;
|
|
511
|
+
const ptr1 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
512
|
+
const len1 = WASM_VECTOR_LEN;
|
|
513
|
+
const ret = wasm.ln_create_invoice(ptr0, len0, amount, ptr1, len1);
|
|
514
|
+
return takeObject(ret);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* @param {string} token
|
|
519
|
+
* @returns {Promise<any>}
|
|
520
|
+
*/
|
|
521
|
+
export function get_balance(token) {
|
|
522
|
+
const ptr0 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
523
|
+
const len0 = WASM_VECTOR_LEN;
|
|
524
|
+
const ret = wasm.get_balance(ptr0, len0);
|
|
525
|
+
return takeObject(ret);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* @param {string} token
|
|
530
|
+
* @returns {Promise<any>}
|
|
531
|
+
*/
|
|
532
|
+
export function get_txs(token) {
|
|
533
|
+
const ptr0 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
534
|
+
const len0 = WASM_VECTOR_LEN;
|
|
535
|
+
const ret = wasm.get_txs(ptr0, len0);
|
|
536
|
+
return takeObject(ret);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* @param {string} payment_request
|
|
541
|
+
* @param {string} token
|
|
542
|
+
* @returns {Promise<any>}
|
|
543
|
+
*/
|
|
544
|
+
export function pay_invoice(payment_request, token) {
|
|
545
|
+
const ptr0 = passStringToWasm0(payment_request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
546
|
+
const len0 = WASM_VECTOR_LEN;
|
|
547
|
+
const ptr1 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
548
|
+
const len1 = WASM_VECTOR_LEN;
|
|
549
|
+
const ret = wasm.pay_invoice(ptr0, len0, ptr1, len1);
|
|
550
|
+
return takeObject(ret);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* @param {string} payment_hash
|
|
555
|
+
* @returns {Promise<any>}
|
|
556
|
+
*/
|
|
557
|
+
export function check_payment(payment_hash) {
|
|
558
|
+
const ptr0 = passStringToWasm0(payment_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
559
|
+
const len0 = WASM_VECTOR_LEN;
|
|
560
|
+
const ret = wasm.check_payment(ptr0, len0);
|
|
561
|
+
return takeObject(ret);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* @param {string} token
|
|
566
|
+
* @param {string | undefined} ln_address
|
|
567
|
+
* @returns {Promise<any>}
|
|
568
|
+
*/
|
|
569
|
+
export function swap_btc_ln(token, ln_address) {
|
|
570
|
+
const ptr0 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
571
|
+
const len0 = WASM_VECTOR_LEN;
|
|
572
|
+
var ptr1 = isLikeNone(ln_address) ? 0 : passStringToWasm0(ln_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
573
|
+
var len1 = WASM_VECTOR_LEN;
|
|
574
|
+
const ret = wasm.swap_btc_ln(ptr0, len0, ptr1, len1);
|
|
575
|
+
return takeObject(ret);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* @param {string} address
|
|
580
|
+
* @param {bigint} amount
|
|
581
|
+
* @param {string} token
|
|
582
|
+
* @returns {Promise<any>}
|
|
583
|
+
*/
|
|
584
|
+
export function swap_ln_btc(address, amount, token) {
|
|
585
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
586
|
+
const len0 = WASM_VECTOR_LEN;
|
|
587
|
+
const ptr1 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
588
|
+
const len1 = WASM_VECTOR_LEN;
|
|
589
|
+
const ret = wasm.swap_ln_btc(ptr0, len0, amount, ptr1, len1);
|
|
590
|
+
return takeObject(ret);
|
|
591
|
+
}
|
|
592
|
+
|
|
474
593
|
function passArray8ToWasm0(arg, malloc) {
|
|
475
594
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
476
595
|
getUint8Memory0().set(arg, ptr / 1);
|
|
@@ -654,140 +773,6 @@ export function update_nostr_pubkey(pubkey, token) {
|
|
|
654
773
|
return takeObject(ret);
|
|
655
774
|
}
|
|
656
775
|
|
|
657
|
-
/**
|
|
658
|
-
* @param {string} username
|
|
659
|
-
* @param {string} password
|
|
660
|
-
* @returns {Promise<any>}
|
|
661
|
-
*/
|
|
662
|
-
export function create_wallet(username, password) {
|
|
663
|
-
const ptr0 = passStringToWasm0(username, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
664
|
-
const len0 = WASM_VECTOR_LEN;
|
|
665
|
-
const ptr1 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
666
|
-
const len1 = WASM_VECTOR_LEN;
|
|
667
|
-
const ret = wasm.create_wallet(ptr0, len0, ptr1, len1);
|
|
668
|
-
return takeObject(ret);
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
/**
|
|
672
|
-
* @param {string} username
|
|
673
|
-
* @param {string} password
|
|
674
|
-
* @returns {Promise<any>}
|
|
675
|
-
*/
|
|
676
|
-
export function auth(username, password) {
|
|
677
|
-
const ptr0 = passStringToWasm0(username, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
678
|
-
const len0 = WASM_VECTOR_LEN;
|
|
679
|
-
const ptr1 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
680
|
-
const len1 = WASM_VECTOR_LEN;
|
|
681
|
-
const ret = wasm.auth(ptr0, len0, ptr1, len1);
|
|
682
|
-
return takeObject(ret);
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
/**
|
|
686
|
-
* @param {string} description
|
|
687
|
-
* @param {number} amount
|
|
688
|
-
* @param {string} token
|
|
689
|
-
* @returns {Promise<any>}
|
|
690
|
-
*/
|
|
691
|
-
export function ln_create_invoice(description, amount, token) {
|
|
692
|
-
const ptr0 = passStringToWasm0(description, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
693
|
-
const len0 = WASM_VECTOR_LEN;
|
|
694
|
-
const ptr1 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
695
|
-
const len1 = WASM_VECTOR_LEN;
|
|
696
|
-
const ret = wasm.ln_create_invoice(ptr0, len0, amount, ptr1, len1);
|
|
697
|
-
return takeObject(ret);
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
/**
|
|
701
|
-
* @param {string} token
|
|
702
|
-
* @returns {Promise<any>}
|
|
703
|
-
*/
|
|
704
|
-
export function get_balance(token) {
|
|
705
|
-
const ptr0 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
706
|
-
const len0 = WASM_VECTOR_LEN;
|
|
707
|
-
const ret = wasm.get_balance(ptr0, len0);
|
|
708
|
-
return takeObject(ret);
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
/**
|
|
712
|
-
* @param {string} token
|
|
713
|
-
* @returns {Promise<any>}
|
|
714
|
-
*/
|
|
715
|
-
export function get_txs(token) {
|
|
716
|
-
const ptr0 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
717
|
-
const len0 = WASM_VECTOR_LEN;
|
|
718
|
-
const ret = wasm.get_txs(ptr0, len0);
|
|
719
|
-
return takeObject(ret);
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
/**
|
|
723
|
-
* @param {string} payment_request
|
|
724
|
-
* @param {string} token
|
|
725
|
-
* @returns {Promise<any>}
|
|
726
|
-
*/
|
|
727
|
-
export function pay_invoice(payment_request, token) {
|
|
728
|
-
const ptr0 = passStringToWasm0(payment_request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
729
|
-
const len0 = WASM_VECTOR_LEN;
|
|
730
|
-
const ptr1 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
731
|
-
const len1 = WASM_VECTOR_LEN;
|
|
732
|
-
const ret = wasm.pay_invoice(ptr0, len0, ptr1, len1);
|
|
733
|
-
return takeObject(ret);
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
/**
|
|
737
|
-
* @param {string} payment_hash
|
|
738
|
-
* @returns {Promise<any>}
|
|
739
|
-
*/
|
|
740
|
-
export function check_payment(payment_hash) {
|
|
741
|
-
const ptr0 = passStringToWasm0(payment_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
742
|
-
const len0 = WASM_VECTOR_LEN;
|
|
743
|
-
const ret = wasm.check_payment(ptr0, len0);
|
|
744
|
-
return takeObject(ret);
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
/**
|
|
748
|
-
* @returns {Promise<any>}
|
|
749
|
-
*/
|
|
750
|
-
export function get_network() {
|
|
751
|
-
const ret = wasm.get_network();
|
|
752
|
-
return takeObject(ret);
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
/**
|
|
756
|
-
* @param {string} network_str
|
|
757
|
-
* @returns {Promise<any>}
|
|
758
|
-
*/
|
|
759
|
-
export function switch_network(network_str) {
|
|
760
|
-
const ptr0 = passStringToWasm0(network_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
761
|
-
const len0 = WASM_VECTOR_LEN;
|
|
762
|
-
const ret = wasm.switch_network(ptr0, len0);
|
|
763
|
-
return takeObject(ret);
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
/**
|
|
767
|
-
* @param {string} key
|
|
768
|
-
* @returns {Promise<any>}
|
|
769
|
-
*/
|
|
770
|
-
export function get_env(key) {
|
|
771
|
-
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
772
|
-
const len0 = WASM_VECTOR_LEN;
|
|
773
|
-
const ret = wasm.get_env(ptr0, len0);
|
|
774
|
-
return takeObject(ret);
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
/**
|
|
778
|
-
* @param {string} key
|
|
779
|
-
* @param {string} value
|
|
780
|
-
* @returns {Promise<any>}
|
|
781
|
-
*/
|
|
782
|
-
export function set_env(key, value) {
|
|
783
|
-
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
784
|
-
const len0 = WASM_VECTOR_LEN;
|
|
785
|
-
const ptr1 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
786
|
-
const len1 = WASM_VECTOR_LEN;
|
|
787
|
-
const ret = wasm.set_env(ptr0, len0, ptr1, len1);
|
|
788
|
-
return takeObject(ret);
|
|
789
|
-
}
|
|
790
|
-
|
|
791
776
|
/**
|
|
792
777
|
* @param {string} password
|
|
793
778
|
* @returns {string}
|
|
@@ -914,6 +899,24 @@ export function send_sats(descriptor, change_descriptor, destination, amount, fe
|
|
|
914
899
|
return takeObject(ret);
|
|
915
900
|
}
|
|
916
901
|
|
|
902
|
+
/**
|
|
903
|
+
* @param {string} destination
|
|
904
|
+
* @param {string} descriptor
|
|
905
|
+
* @param {string | undefined} change_descriptor
|
|
906
|
+
* @param {number | undefined} fee_rate
|
|
907
|
+
* @returns {Promise<any>}
|
|
908
|
+
*/
|
|
909
|
+
export function drain_wallet(destination, descriptor, change_descriptor, fee_rate) {
|
|
910
|
+
const ptr0 = passStringToWasm0(destination, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
911
|
+
const len0 = WASM_VECTOR_LEN;
|
|
912
|
+
const ptr1 = passStringToWasm0(descriptor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
913
|
+
const len1 = WASM_VECTOR_LEN;
|
|
914
|
+
var ptr2 = isLikeNone(change_descriptor) ? 0 : passStringToWasm0(change_descriptor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
915
|
+
var len2 = WASM_VECTOR_LEN;
|
|
916
|
+
const ret = wasm.drain_wallet(ptr0, len0, ptr1, len1, ptr2, len2, !isLikeNone(fee_rate), isLikeNone(fee_rate) ? 0 : fee_rate);
|
|
917
|
+
return takeObject(ret);
|
|
918
|
+
}
|
|
919
|
+
|
|
917
920
|
/**
|
|
918
921
|
* @param {string} descriptor
|
|
919
922
|
* @param {string} change_descriptor
|
|
@@ -951,6 +954,50 @@ export function get_assets_vault(rgb_assets_descriptor_xpub, rgb_udas_descriptor
|
|
|
951
954
|
return takeObject(ret);
|
|
952
955
|
}
|
|
953
956
|
|
|
957
|
+
/**
|
|
958
|
+
* @returns {Promise<any>}
|
|
959
|
+
*/
|
|
960
|
+
export function get_network() {
|
|
961
|
+
const ret = wasm.get_network();
|
|
962
|
+
return takeObject(ret);
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* @param {string} network_str
|
|
967
|
+
* @returns {Promise<any>}
|
|
968
|
+
*/
|
|
969
|
+
export function switch_network(network_str) {
|
|
970
|
+
const ptr0 = passStringToWasm0(network_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
971
|
+
const len0 = WASM_VECTOR_LEN;
|
|
972
|
+
const ret = wasm.switch_network(ptr0, len0);
|
|
973
|
+
return takeObject(ret);
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* @param {string} key
|
|
978
|
+
* @returns {Promise<any>}
|
|
979
|
+
*/
|
|
980
|
+
export function get_env(key) {
|
|
981
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
982
|
+
const len0 = WASM_VECTOR_LEN;
|
|
983
|
+
const ret = wasm.get_env(ptr0, len0);
|
|
984
|
+
return takeObject(ret);
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* @param {string} key
|
|
989
|
+
* @param {string} value
|
|
990
|
+
* @returns {Promise<any>}
|
|
991
|
+
*/
|
|
992
|
+
export function set_env(key, value) {
|
|
993
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
994
|
+
const len0 = WASM_VECTOR_LEN;
|
|
995
|
+
const ptr1 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
996
|
+
const len1 = WASM_VECTOR_LEN;
|
|
997
|
+
const ret = wasm.set_env(ptr0, len0, ptr1, len1);
|
|
998
|
+
return takeObject(ret);
|
|
999
|
+
}
|
|
1000
|
+
|
|
954
1001
|
let cachedUint32Memory0 = null;
|
|
955
1002
|
|
|
956
1003
|
function getUint32Memory0() {
|
|
@@ -978,7 +1025,7 @@ function handleError(f, args) {
|
|
|
978
1025
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
979
1026
|
}
|
|
980
1027
|
}
|
|
981
|
-
function
|
|
1028
|
+
function __wbg_adapter_196(arg0, arg1, arg2, arg3) {
|
|
982
1029
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h2e83059155d101bd(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
983
1030
|
}
|
|
984
1031
|
|
|
@@ -986,6 +1033,16 @@ export function __wbindgen_object_drop_ref(arg0) {
|
|
|
986
1033
|
takeObject(arg0);
|
|
987
1034
|
};
|
|
988
1035
|
|
|
1036
|
+
export function __wbindgen_cb_drop(arg0) {
|
|
1037
|
+
const obj = takeObject(arg0).original;
|
|
1038
|
+
if (obj.cnt-- == 1) {
|
|
1039
|
+
obj.a = 0;
|
|
1040
|
+
return true;
|
|
1041
|
+
}
|
|
1042
|
+
const ret = false;
|
|
1043
|
+
return ret;
|
|
1044
|
+
};
|
|
1045
|
+
|
|
989
1046
|
export function __wbindgen_error_new(arg0, arg1) {
|
|
990
1047
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
991
1048
|
return addHeapObject(ret);
|
|
@@ -997,16 +1054,6 @@ export function __wbindgen_boolean_get(arg0) {
|
|
|
997
1054
|
return ret;
|
|
998
1055
|
};
|
|
999
1056
|
|
|
1000
|
-
export function __wbindgen_cb_drop(arg0) {
|
|
1001
|
-
const obj = takeObject(arg0).original;
|
|
1002
|
-
if (obj.cnt-- == 1) {
|
|
1003
|
-
obj.a = 0;
|
|
1004
|
-
return true;
|
|
1005
|
-
}
|
|
1006
|
-
const ret = false;
|
|
1007
|
-
return ret;
|
|
1008
|
-
};
|
|
1009
|
-
|
|
1010
1057
|
export function __wbindgen_string_new(arg0, arg1) {
|
|
1011
1058
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1012
1059
|
return addHeapObject(ret);
|
|
@@ -1054,8 +1101,8 @@ export function __wbindgen_is_bigint(arg0) {
|
|
|
1054
1101
|
return ret;
|
|
1055
1102
|
};
|
|
1056
1103
|
|
|
1057
|
-
export function
|
|
1058
|
-
const ret =
|
|
1104
|
+
export function __wbindgen_bigint_from_i64(arg0) {
|
|
1105
|
+
const ret = arg0;
|
|
1059
1106
|
return addHeapObject(ret);
|
|
1060
1107
|
};
|
|
1061
1108
|
|
|
@@ -1064,6 +1111,11 @@ export function __wbindgen_jsval_eq(arg0, arg1) {
|
|
|
1064
1111
|
return ret;
|
|
1065
1112
|
};
|
|
1066
1113
|
|
|
1114
|
+
export function __wbindgen_bigint_from_u64(arg0) {
|
|
1115
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1116
|
+
return addHeapObject(ret);
|
|
1117
|
+
};
|
|
1118
|
+
|
|
1067
1119
|
export function __wbindgen_jsval_loose_eq(arg0, arg1) {
|
|
1068
1120
|
const ret = getObject(arg0) == getObject(arg1);
|
|
1069
1121
|
return ret;
|
|
@@ -1354,6 +1406,11 @@ export function __wbg_getTime_5e2054f832d82ec9(arg0) {
|
|
|
1354
1406
|
return ret;
|
|
1355
1407
|
};
|
|
1356
1408
|
|
|
1409
|
+
export function __wbg_getTimezoneOffset_8aee3445f323973e(arg0) {
|
|
1410
|
+
const ret = getObject(arg0).getTimezoneOffset();
|
|
1411
|
+
return ret;
|
|
1412
|
+
};
|
|
1413
|
+
|
|
1357
1414
|
export function __wbg_new0_c0be7df4b6bd481f() {
|
|
1358
1415
|
const ret = new Date();
|
|
1359
1416
|
return addHeapObject(ret);
|
|
@@ -1376,7 +1433,7 @@ export function __wbg_new_43f1b47c28813cbd(arg0, arg1) {
|
|
|
1376
1433
|
const a = state0.a;
|
|
1377
1434
|
state0.a = 0;
|
|
1378
1435
|
try {
|
|
1379
|
-
return
|
|
1436
|
+
return __wbg_adapter_196(a, state0.b, arg0, arg1);
|
|
1380
1437
|
} finally {
|
|
1381
1438
|
state0.a = a;
|
|
1382
1439
|
}
|
|
@@ -1487,8 +1544,8 @@ export function __wbindgen_memory() {
|
|
|
1487
1544
|
return addHeapObject(ret);
|
|
1488
1545
|
};
|
|
1489
1546
|
|
|
1490
|
-
export function
|
|
1491
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1547
|
+
export function __wbindgen_closure_wrapper12176(arg0, arg1, arg2) {
|
|
1548
|
+
const ret = makeMutClosure(arg0, arg1, 2562, __wbg_adapter_46);
|
|
1492
1549
|
return addHeapObject(ret);
|
|
1493
1550
|
};
|
|
1494
1551
|
|
package/bitmask_core_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"Francisco Calderón <francisco@diba.io>"
|
|
7
7
|
],
|
|
8
8
|
"description": "Core functionality for the BitMask wallet",
|
|
9
|
-
"version": "0.6.
|
|
9
|
+
"version": "0.6.2",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
@@ -16,9 +16,7 @@
|
|
|
16
16
|
"bitmask_core_bg.wasm",
|
|
17
17
|
"bitmask_core.js",
|
|
18
18
|
"bitmask_core_bg.js",
|
|
19
|
-
"bitmask_core.d.ts"
|
|
20
|
-
"LICENSE-APACHE",
|
|
21
|
-
"LICENSE-MIT"
|
|
19
|
+
"bitmask_core.d.ts"
|
|
22
20
|
],
|
|
23
21
|
"module": "bitmask_core.js",
|
|
24
22
|
"homepage": "https://bitmask.app",
|
package/LICENSE-APACHE
DELETED
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
package/LICENSE-MIT
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2022 DIBA Global, Inc.
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any
|
|
4
|
-
person obtaining a copy of this software and associated
|
|
5
|
-
documentation files (the "Software"), to deal in the
|
|
6
|
-
Software without restriction, including without
|
|
7
|
-
limitation the rights to use, copy, modify, merge,
|
|
8
|
-
publish, distribute, sublicense, and/or sell copies of
|
|
9
|
-
the Software, and to permit persons to whom the Software
|
|
10
|
-
is furnished to do so, subject to the following
|
|
11
|
-
conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice
|
|
14
|
-
shall be included in all copies or substantial portions
|
|
15
|
-
of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
18
|
-
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
19
|
-
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
20
|
-
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
|
21
|
-
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
22
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
23
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
24
|
-
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
25
|
-
DEALINGS IN THE SOFTWARE.
|