@bitpay-labs/crypto-wallet-core 11.11.4 → 11.11.6

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.
Files changed (91) hide show
  1. package/package.json +9 -3
  2. package/ts_build/src/constants/index.d.ts +18 -1
  3. package/ts_build/src/constants/index.d.ts.map +1 -1
  4. package/ts_build/src/constants/tokens.d.ts +14 -2
  5. package/ts_build/src/constants/tokens.d.ts.map +1 -1
  6. package/ts_build/src/constants/tokens.js +8 -2
  7. package/ts_build/src/constants/tokens.js.map +1 -1
  8. package/ts_build/src/constants/units.d.ts +11 -0
  9. package/ts_build/src/constants/units.d.ts.map +1 -1
  10. package/ts_build/src/constants/units.js +11 -0
  11. package/ts_build/src/constants/units.js.map +1 -1
  12. package/ts_build/src/transactions/index.d.ts +1 -1
  13. package/ts_build/src/transactions/index.d.ts.map +1 -1
  14. package/ts_build/src/transactions/index.js.map +1 -1
  15. package/ts_build/src/types/derivation.d.ts +1 -0
  16. package/ts_build/src/types/derivation.d.ts.map +1 -1
  17. package/.mocharc.json +0 -6
  18. package/LICENSE +0 -21
  19. package/mcr.config.js +0 -17
  20. package/src/constants/address.ts +0 -7
  21. package/src/constants/algorithms.ts +0 -9
  22. package/src/constants/arc.ts +0 -4
  23. package/src/constants/chains.ts +0 -68
  24. package/src/constants/feeMinimums.ts +0 -23
  25. package/src/constants/index.ts +0 -40
  26. package/src/constants/tokens.ts +0 -227
  27. package/src/constants/units.ts +0 -300
  28. package/src/derivation/arb/index.ts +0 -3
  29. package/src/derivation/base/index.ts +0 -3
  30. package/src/derivation/bch/index.ts +0 -11
  31. package/src/derivation/btc/index.ts +0 -68
  32. package/src/derivation/doge/index.ts +0 -6
  33. package/src/derivation/eth/index.ts +0 -86
  34. package/src/derivation/index.ts +0 -140
  35. package/src/derivation/ltc/index.ts +0 -6
  36. package/src/derivation/matic/index.ts +0 -3
  37. package/src/derivation/op/index.ts +0 -3
  38. package/src/derivation/paths.ts +0 -45
  39. package/src/derivation/sol/index.ts +0 -81
  40. package/src/derivation/xrp/index.ts +0 -63
  41. package/src/index.ts +0 -48
  42. package/src/message/btc.ts +0 -28
  43. package/src/message/eth.ts +0 -47
  44. package/src/message/index.ts +0 -71
  45. package/src/message/sol.ts +0 -3
  46. package/src/message/xrp.ts +0 -4
  47. package/src/transactions/arb/index.ts +0 -14
  48. package/src/transactions/base/index.ts +0 -13
  49. package/src/transactions/bch/index.ts +0 -25
  50. package/src/transactions/btc/index.ts +0 -316
  51. package/src/transactions/doge/index.ts +0 -31
  52. package/src/transactions/erc20/abi.ts +0 -418
  53. package/src/transactions/erc20/index.ts +0 -57
  54. package/src/transactions/eth/index.ts +0 -192
  55. package/src/transactions/eth-multisig/abi.ts +0 -724
  56. package/src/transactions/eth-multisig/index.ts +0 -172
  57. package/src/transactions/index.ts +0 -85
  58. package/src/transactions/ltc/index.ts +0 -31
  59. package/src/transactions/matic/index.ts +0 -14
  60. package/src/transactions/matic-multisig/index.ts +0 -172
  61. package/src/transactions/op/index.ts +0 -14
  62. package/src/transactions/sol/index.ts +0 -306
  63. package/src/transactions/spl/index.ts +0 -192
  64. package/src/transactions/xrp/index.ts +0 -167
  65. package/src/types/derivation.ts +0 -34
  66. package/src/types/index.ts +0 -3
  67. package/src/types/message.ts +0 -15
  68. package/src/types/utils.ts +0 -1
  69. package/src/types/validation.ts +0 -4
  70. package/src/utils/bigint.ts +0 -238
  71. package/src/utils/index.ts +0 -188
  72. package/src/validation/arb/index.ts +0 -8
  73. package/src/validation/arc/index.ts +0 -8
  74. package/src/validation/base/index.ts +0 -8
  75. package/src/validation/bch/index.ts +0 -17
  76. package/src/validation/btc/index.ts +0 -17
  77. package/src/validation/doge/index.ts +0 -16
  78. package/src/validation/eth/index.ts +0 -29
  79. package/src/validation/index.ts +0 -45
  80. package/src/validation/ltc/index.ts +0 -16
  81. package/src/validation/matic/index.ts +0 -8
  82. package/src/validation/op/index.ts +0 -8
  83. package/src/validation/sol/index.ts +0 -34
  84. package/src/validation/xrp/index.ts +0 -50
  85. package/test/address.test.ts +0 -190
  86. package/test/bigint.test.ts +0 -373
  87. package/test/deriver.test.ts +0 -126
  88. package/test/transactions.test.ts +0 -2103
  89. package/test/utils.test.ts +0 -446
  90. package/test/validation.test.ts +0 -282
  91. package/tsconfig.json +0 -29
@@ -1,724 +0,0 @@
1
- export const MultisigAbi = [
2
- {
3
- constant: true,
4
- inputs: [
5
- {
6
- name: '',
7
- type: 'address'
8
- }
9
- ],
10
- name: 'isInstantiation',
11
- outputs: [
12
- {
13
- name: '',
14
- type: 'bool'
15
- }
16
- ],
17
- payable: false,
18
- type: 'function',
19
- stateMutability: 'view'
20
- },
21
- {
22
- constant: false,
23
- inputs: [
24
- {
25
- name: '_owners',
26
- type: 'address[]'
27
- },
28
- {
29
- name: '_required',
30
- type: 'uint256'
31
- },
32
- {
33
- name: '_dailyLimit',
34
- type: 'uint256'
35
- }
36
- ],
37
- name: 'create',
38
- outputs: [
39
- {
40
- name: 'wallet',
41
- type: 'address'
42
- }
43
- ],
44
- payable: false,
45
- type: 'function',
46
- stateMutability: 'nonpayable'
47
- },
48
- {
49
- constant: true,
50
- inputs: [
51
- {
52
- name: '',
53
- type: 'address'
54
- },
55
- {
56
- name: '',
57
- type: 'uint256'
58
- }
59
- ],
60
- name: 'instantiations',
61
- outputs: [
62
- {
63
- name: '',
64
- type: 'address'
65
- }
66
- ],
67
- payable: false,
68
- type: 'function',
69
- stateMutability: 'view'
70
- },
71
- {
72
- constant: true,
73
- inputs: [
74
- {
75
- name: 'creator',
76
- type: 'address'
77
- }
78
- ],
79
- name: 'getInstantiationCount',
80
- outputs: [
81
- {
82
- name: '',
83
- type: 'uint256'
84
- }
85
- ],
86
- payable: false,
87
- type: 'function',
88
- stateMutability: 'view'
89
- },
90
- {
91
- anonymous: false,
92
- inputs: [
93
- {
94
- indexed: false,
95
- name: 'sender',
96
- type: 'address'
97
- },
98
- {
99
- indexed: false,
100
- name: 'instantiation',
101
- type: 'address'
102
- }
103
- ],
104
- name: 'ContractInstantiation',
105
- type: 'event'
106
- },
107
- {
108
- constant: true,
109
- inputs: [
110
- {
111
- name: '',
112
- type: 'uint256'
113
- }
114
- ],
115
- name: 'owners',
116
- outputs: [
117
- {
118
- name: '',
119
- type: 'address'
120
- }
121
- ],
122
- payable: false,
123
- type: 'function',
124
- stateMutability: 'view'
125
- },
126
- {
127
- constant: false,
128
- inputs: [
129
- {
130
- name: 'owner',
131
- type: 'address'
132
- }
133
- ],
134
- name: 'removeOwner',
135
- outputs: [],
136
- payable: false,
137
- type: 'function',
138
- stateMutability: 'nonpayable'
139
- },
140
- {
141
- constant: false,
142
- inputs: [
143
- {
144
- name: 'transactionId',
145
- type: 'uint256'
146
- }
147
- ],
148
- name: 'revokeConfirmation',
149
- outputs: [],
150
- payable: false,
151
- type: 'function',
152
- stateMutability: 'nonpayable'
153
- },
154
- {
155
- constant: true,
156
- inputs: [
157
- {
158
- name: '',
159
- type: 'address'
160
- }
161
- ],
162
- name: 'isOwner',
163
- outputs: [
164
- {
165
- name: '',
166
- type: 'bool'
167
- }
168
- ],
169
- payable: false,
170
- type: 'function',
171
- stateMutability: 'view'
172
- },
173
- {
174
- constant: true,
175
- inputs: [
176
- {
177
- name: '',
178
- type: 'uint256'
179
- },
180
- {
181
- name: '',
182
- type: 'address'
183
- }
184
- ],
185
- name: 'confirmations',
186
- outputs: [
187
- {
188
- name: '',
189
- type: 'bool'
190
- }
191
- ],
192
- payable: false,
193
- type: 'function',
194
- stateMutability: 'view'
195
- },
196
- {
197
- constant: true,
198
- inputs: [],
199
- name: 'calcMaxWithdraw',
200
- outputs: [
201
- {
202
- name: '',
203
- type: 'uint256'
204
- }
205
- ],
206
- payable: false,
207
- type: 'function',
208
- stateMutability: 'view'
209
- },
210
- {
211
- constant: true,
212
- inputs: [
213
- {
214
- name: 'pending',
215
- type: 'bool'
216
- },
217
- {
218
- name: 'executed',
219
- type: 'bool'
220
- }
221
- ],
222
- name: 'getTransactionCount',
223
- outputs: [
224
- {
225
- name: 'count',
226
- type: 'uint256'
227
- }
228
- ],
229
- payable: false,
230
- type: 'function',
231
- stateMutability: 'view'
232
- },
233
- {
234
- constant: true,
235
- inputs: [],
236
- name: 'dailyLimit',
237
- outputs: [
238
- {
239
- name: '',
240
- type: 'uint256'
241
- }
242
- ],
243
- payable: false,
244
- type: 'function',
245
- stateMutability: 'view'
246
- },
247
- {
248
- constant: true,
249
- inputs: [],
250
- name: 'lastDay',
251
- outputs: [
252
- {
253
- name: '',
254
- type: 'uint256'
255
- }
256
- ],
257
- payable: false,
258
- type: 'function',
259
- stateMutability: 'view'
260
- },
261
- {
262
- constant: false,
263
- inputs: [
264
- {
265
- name: 'owner',
266
- type: 'address'
267
- }
268
- ],
269
- name: 'addOwner',
270
- outputs: [],
271
- payable: false,
272
- type: 'function',
273
- stateMutability: 'nonpayable'
274
- },
275
- {
276
- constant: true,
277
- inputs: [
278
- {
279
- name: 'transactionId',
280
- type: 'uint256'
281
- }
282
- ],
283
- name: 'isConfirmed',
284
- outputs: [
285
- {
286
- name: '',
287
- type: 'bool'
288
- }
289
- ],
290
- payable: false,
291
- type: 'function',
292
- stateMutability: 'view'
293
- },
294
- {
295
- constant: true,
296
- inputs: [
297
- {
298
- name: 'transactionId',
299
- type: 'uint256'
300
- }
301
- ],
302
- name: 'getConfirmationCount',
303
- outputs: [
304
- {
305
- name: 'count',
306
- type: 'uint256'
307
- }
308
- ],
309
- payable: false,
310
- type: 'function',
311
- stateMutability: 'view'
312
- },
313
- {
314
- constant: true,
315
- inputs: [
316
- {
317
- name: '',
318
- type: 'uint256'
319
- }
320
- ],
321
- name: 'transactions',
322
- outputs: [
323
- {
324
- name: 'destination',
325
- type: 'address'
326
- },
327
- {
328
- name: 'value',
329
- type: 'uint256'
330
- },
331
- {
332
- name: 'data',
333
- type: 'bytes'
334
- },
335
- {
336
- name: 'executed',
337
- type: 'bool'
338
- }
339
- ],
340
- payable: false,
341
- type: 'function',
342
- stateMutability: 'view'
343
- },
344
- {
345
- constant: true,
346
- inputs: [],
347
- name: 'getOwners',
348
- outputs: [
349
- {
350
- name: '',
351
- type: 'address[]'
352
- }
353
- ],
354
- payable: false,
355
- type: 'function',
356
- stateMutability: 'view'
357
- },
358
- {
359
- constant: true,
360
- inputs: [
361
- {
362
- name: 'from',
363
- type: 'uint256'
364
- },
365
- {
366
- name: 'to',
367
- type: 'uint256'
368
- },
369
- {
370
- name: 'pending',
371
- type: 'bool'
372
- },
373
- {
374
- name: 'executed',
375
- type: 'bool'
376
- }
377
- ],
378
- name: 'getTransactionIds',
379
- outputs: [
380
- {
381
- name: '_transactionIds',
382
- type: 'uint256[]'
383
- }
384
- ],
385
- payable: false,
386
- type: 'function',
387
- stateMutability: 'view'
388
- },
389
- {
390
- constant: true,
391
- inputs: [
392
- {
393
- name: 'transactionId',
394
- type: 'uint256'
395
- }
396
- ],
397
- name: 'getConfirmations',
398
- outputs: [
399
- {
400
- name: '_confirmations',
401
- type: 'address[]'
402
- }
403
- ],
404
- payable: false,
405
- type: 'function',
406
- stateMutability: 'view'
407
- },
408
- {
409
- constant: true,
410
- inputs: [],
411
- name: 'transactionCount',
412
- outputs: [
413
- {
414
- name: '',
415
- type: 'uint256'
416
- }
417
- ],
418
- payable: false,
419
- type: 'function',
420
- stateMutability: 'view'
421
- },
422
- {
423
- constant: false,
424
- inputs: [
425
- {
426
- name: '_required',
427
- type: 'uint256'
428
- }
429
- ],
430
- name: 'changeRequirement',
431
- outputs: [],
432
- payable: false,
433
- type: 'function',
434
- stateMutability: 'nonpayable'
435
- },
436
- {
437
- constant: false,
438
- inputs: [
439
- {
440
- name: 'transactionId',
441
- type: 'uint256'
442
- }
443
- ],
444
- name: 'confirmTransaction',
445
- outputs: [],
446
- payable: false,
447
- type: 'function',
448
- stateMutability: 'nonpayable'
449
- },
450
- {
451
- constant: false,
452
- inputs: [
453
- {
454
- name: 'destination',
455
- type: 'address'
456
- },
457
- {
458
- name: 'value',
459
- type: 'uint256'
460
- },
461
- {
462
- name: 'data',
463
- type: 'bytes'
464
- }
465
- ],
466
- name: 'submitTransaction',
467
- outputs: [
468
- {
469
- name: 'transactionId',
470
- type: 'uint256'
471
- }
472
- ],
473
- payable: false,
474
- type: 'function',
475
- stateMutability: 'nonpayable'
476
- },
477
- {
478
- constant: false,
479
- inputs: [
480
- {
481
- name: '_dailyLimit',
482
- type: 'uint256'
483
- }
484
- ],
485
- name: 'changeDailyLimit',
486
- outputs: [],
487
- payable: false,
488
- type: 'function',
489
- stateMutability: 'nonpayable'
490
- },
491
- {
492
- constant: true,
493
- inputs: [],
494
- name: 'MAX_OWNER_COUNT',
495
- outputs: [
496
- {
497
- name: '',
498
- type: 'uint256'
499
- }
500
- ],
501
- payable: false,
502
- type: 'function',
503
- stateMutability: 'view'
504
- },
505
- {
506
- constant: true,
507
- inputs: [],
508
- name: 'required',
509
- outputs: [
510
- {
511
- name: '',
512
- type: 'uint256'
513
- }
514
- ],
515
- payable: false,
516
- type: 'function',
517
- stateMutability: 'view'
518
- },
519
- {
520
- constant: false,
521
- inputs: [
522
- {
523
- name: 'owner',
524
- type: 'address'
525
- },
526
- {
527
- name: 'newOwner',
528
- type: 'address'
529
- }
530
- ],
531
- name: 'replaceOwner',
532
- outputs: [],
533
- payable: false,
534
- type: 'function',
535
- stateMutability: 'nonpayable'
536
- },
537
- {
538
- constant: false,
539
- inputs: [
540
- {
541
- name: 'transactionId',
542
- type: 'uint256'
543
- }
544
- ],
545
- name: 'executeTransaction',
546
- outputs: [],
547
- payable: false,
548
- type: 'function',
549
- stateMutability: 'nonpayable'
550
- },
551
- {
552
- constant: true,
553
- inputs: [],
554
- name: 'spentToday',
555
- outputs: [
556
- {
557
- name: '',
558
- type: 'uint256'
559
- }
560
- ],
561
- payable: false,
562
- type: 'function',
563
- stateMutability: 'view'
564
- },
565
- {
566
- inputs: [
567
- {
568
- name: '_owners',
569
- type: 'address[]'
570
- },
571
- {
572
- name: '_required',
573
- type: 'uint256'
574
- },
575
- {
576
- name: '_dailyLimit',
577
- type: 'uint256'
578
- }
579
- ],
580
- payable: false,
581
- type: 'constructor',
582
- stateMutability: 'nonpayable'
583
- },
584
- {
585
- payable: true,
586
- type: 'fallback',
587
- stateMutability: 'payable'
588
- },
589
- {
590
- anonymous: false,
591
- inputs: [
592
- {
593
- indexed: false,
594
- name: 'dailyLimit',
595
- type: 'uint256'
596
- }
597
- ],
598
- name: 'DailyLimitChange',
599
- type: 'event'
600
- },
601
- {
602
- anonymous: false,
603
- inputs: [
604
- {
605
- indexed: true,
606
- name: 'sender',
607
- type: 'address'
608
- },
609
- {
610
- indexed: true,
611
- name: 'transactionId',
612
- type: 'uint256'
613
- }
614
- ],
615
- name: 'Confirmation',
616
- type: 'event'
617
- },
618
- {
619
- anonymous: false,
620
- inputs: [
621
- {
622
- indexed: true,
623
- name: 'sender',
624
- type: 'address'
625
- },
626
- {
627
- indexed: true,
628
- name: 'transactionId',
629
- type: 'uint256'
630
- }
631
- ],
632
- name: 'Revocation',
633
- type: 'event'
634
- },
635
- {
636
- anonymous: false,
637
- inputs: [
638
- {
639
- indexed: true,
640
- name: 'transactionId',
641
- type: 'uint256'
642
- }
643
- ],
644
- name: 'Submission',
645
- type: 'event'
646
- },
647
- {
648
- anonymous: false,
649
- inputs: [
650
- {
651
- indexed: true,
652
- name: 'transactionId',
653
- type: 'uint256'
654
- }
655
- ],
656
- name: 'Execution',
657
- type: 'event'
658
- },
659
- {
660
- anonymous: false,
661
- inputs: [
662
- {
663
- indexed: true,
664
- name: 'transactionId',
665
- type: 'uint256'
666
- }
667
- ],
668
- name: 'ExecutionFailure',
669
- type: 'event'
670
- },
671
- {
672
- anonymous: false,
673
- inputs: [
674
- {
675
- indexed: true,
676
- name: 'sender',
677
- type: 'address'
678
- },
679
- {
680
- indexed: false,
681
- name: 'value',
682
- type: 'uint256'
683
- }
684
- ],
685
- name: 'Deposit',
686
- type: 'event'
687
- },
688
- {
689
- anonymous: false,
690
- inputs: [
691
- {
692
- indexed: true,
693
- name: 'owner',
694
- type: 'address'
695
- }
696
- ],
697
- name: 'OwnerAddition',
698
- type: 'event'
699
- },
700
- {
701
- anonymous: false,
702
- inputs: [
703
- {
704
- indexed: true,
705
- name: 'owner',
706
- type: 'address'
707
- }
708
- ],
709
- name: 'OwnerRemoval',
710
- type: 'event'
711
- },
712
- {
713
- anonymous: false,
714
- inputs: [
715
- {
716
- indexed: false,
717
- name: 'required',
718
- type: 'uint256'
719
- }
720
- ],
721
- name: 'RequirementChange',
722
- type: 'event'
723
- }
724
- ];