@rainprotocolsdk/sdk 1.0.0 → 1.0.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.
@@ -0,0 +1,772 @@
1
+ export const ERC20Abi = [
2
+ {
3
+ "anonymous": false,
4
+ "inputs": [
5
+ {
6
+ "indexed": true,
7
+ "internalType": "address",
8
+ "name": "owner",
9
+ "type": "address"
10
+ },
11
+ {
12
+ "indexed": true,
13
+ "internalType": "address",
14
+ "name": "spender",
15
+ "type": "address"
16
+ },
17
+ {
18
+ "indexed": false,
19
+ "internalType": "uint256",
20
+ "name": "value",
21
+ "type": "uint256"
22
+ }
23
+ ],
24
+ "name": "Approval",
25
+ "type": "event"
26
+ },
27
+ {
28
+ "anonymous": false,
29
+ "inputs": [
30
+ {
31
+ "indexed": true,
32
+ "internalType": "address",
33
+ "name": "_user",
34
+ "type": "address"
35
+ }
36
+ ],
37
+ "name": "BlockPlaced",
38
+ "type": "event"
39
+ },
40
+ {
41
+ "anonymous": false,
42
+ "inputs": [
43
+ {
44
+ "indexed": true,
45
+ "internalType": "address",
46
+ "name": "_user",
47
+ "type": "address"
48
+ }
49
+ ],
50
+ "name": "BlockReleased",
51
+ "type": "event"
52
+ },
53
+ {
54
+ "anonymous": false,
55
+ "inputs": [
56
+ {
57
+ "indexed": true,
58
+ "internalType": "address",
59
+ "name": "_blockedUser",
60
+ "type": "address"
61
+ },
62
+ {
63
+ "indexed": false,
64
+ "internalType": "uint256",
65
+ "name": "_balance",
66
+ "type": "uint256"
67
+ }
68
+ ],
69
+ "name": "DestroyedBlockedFunds",
70
+ "type": "event"
71
+ },
72
+ {
73
+ "anonymous": false,
74
+ "inputs": [
75
+ {
76
+ "indexed": true,
77
+ "internalType": "address",
78
+ "name": "_destination",
79
+ "type": "address"
80
+ },
81
+ {
82
+ "indexed": false,
83
+ "internalType": "uint256",
84
+ "name": "_amount",
85
+ "type": "uint256"
86
+ }
87
+ ],
88
+ "name": "Mint",
89
+ "type": "event"
90
+ },
91
+ {
92
+ "anonymous": false,
93
+ "inputs": [
94
+ {
95
+ "indexed": true,
96
+ "internalType": "address",
97
+ "name": "_contract",
98
+ "type": "address"
99
+ }
100
+ ],
101
+ "name": "NewPrivilegedContract",
102
+ "type": "event"
103
+ },
104
+ {
105
+ "anonymous": false,
106
+ "inputs": [
107
+ {
108
+ "indexed": true,
109
+ "internalType": "address",
110
+ "name": "previousOwner",
111
+ "type": "address"
112
+ },
113
+ {
114
+ "indexed": true,
115
+ "internalType": "address",
116
+ "name": "newOwner",
117
+ "type": "address"
118
+ }
119
+ ],
120
+ "name": "OwnershipTransferred",
121
+ "type": "event"
122
+ },
123
+ {
124
+ "anonymous": false,
125
+ "inputs": [
126
+ {
127
+ "indexed": false,
128
+ "internalType": "uint256",
129
+ "name": "_amount",
130
+ "type": "uint256"
131
+ }
132
+ ],
133
+ "name": "Redeem",
134
+ "type": "event"
135
+ },
136
+ {
137
+ "anonymous": false,
138
+ "inputs": [
139
+ {
140
+ "indexed": true,
141
+ "internalType": "address",
142
+ "name": "_contract",
143
+ "type": "address"
144
+ }
145
+ ],
146
+ "name": "RemovedPrivilegedContract",
147
+ "type": "event"
148
+ },
149
+ {
150
+ "anonymous": false,
151
+ "inputs": [
152
+ {
153
+ "indexed": true,
154
+ "internalType": "address",
155
+ "name": "from",
156
+ "type": "address"
157
+ },
158
+ {
159
+ "indexed": true,
160
+ "internalType": "address",
161
+ "name": "to",
162
+ "type": "address"
163
+ },
164
+ {
165
+ "indexed": false,
166
+ "internalType": "uint256",
167
+ "name": "value",
168
+ "type": "uint256"
169
+ }
170
+ ],
171
+ "name": "Transfer",
172
+ "type": "event"
173
+ },
174
+ {
175
+ "inputs": [],
176
+ "name": "DOMAIN_SEPARATOR",
177
+ "outputs": [
178
+ {
179
+ "internalType": "bytes32",
180
+ "name": "",
181
+ "type": "bytes32"
182
+ }
183
+ ],
184
+ "stateMutability": "view",
185
+ "type": "function"
186
+ },
187
+ {
188
+ "inputs": [
189
+ {
190
+ "internalType": "address",
191
+ "name": "_trustedDeFiContract",
192
+ "type": "address"
193
+ }
194
+ ],
195
+ "name": "addPrivilegedContract",
196
+ "outputs": [],
197
+ "stateMutability": "nonpayable",
198
+ "type": "function"
199
+ },
200
+ {
201
+ "inputs": [
202
+ {
203
+ "internalType": "address",
204
+ "name": "_user",
205
+ "type": "address"
206
+ }
207
+ ],
208
+ "name": "addToBlockedList",
209
+ "outputs": [],
210
+ "stateMutability": "nonpayable",
211
+ "type": "function"
212
+ },
213
+ {
214
+ "inputs": [
215
+ {
216
+ "internalType": "address",
217
+ "name": "_owner",
218
+ "type": "address"
219
+ },
220
+ {
221
+ "internalType": "address",
222
+ "name": "_spender",
223
+ "type": "address"
224
+ }
225
+ ],
226
+ "name": "allowance",
227
+ "outputs": [
228
+ {
229
+ "internalType": "uint256",
230
+ "name": "",
231
+ "type": "uint256"
232
+ }
233
+ ],
234
+ "stateMutability": "view",
235
+ "type": "function"
236
+ },
237
+ {
238
+ "inputs": [
239
+ {
240
+ "internalType": "address",
241
+ "name": "spender",
242
+ "type": "address"
243
+ },
244
+ {
245
+ "internalType": "uint256",
246
+ "name": "amount",
247
+ "type": "uint256"
248
+ }
249
+ ],
250
+ "name": "approve",
251
+ "outputs": [
252
+ {
253
+ "internalType": "bool",
254
+ "name": "",
255
+ "type": "bool"
256
+ }
257
+ ],
258
+ "stateMutability": "nonpayable",
259
+ "type": "function"
260
+ },
261
+ {
262
+ "inputs": [
263
+ {
264
+ "internalType": "address",
265
+ "name": "account",
266
+ "type": "address"
267
+ }
268
+ ],
269
+ "name": "balanceOf",
270
+ "outputs": [
271
+ {
272
+ "internalType": "uint256",
273
+ "name": "",
274
+ "type": "uint256"
275
+ }
276
+ ],
277
+ "stateMutability": "view",
278
+ "type": "function"
279
+ },
280
+ {
281
+ "inputs": [
282
+ {
283
+ "internalType": "address",
284
+ "name": "account",
285
+ "type": "address"
286
+ },
287
+ {
288
+ "internalType": "uint256",
289
+ "name": "amount",
290
+ "type": "uint256"
291
+ }
292
+ ],
293
+ "name": "bridgeBurn",
294
+ "outputs": [],
295
+ "stateMutability": "nonpayable",
296
+ "type": "function"
297
+ },
298
+ {
299
+ "inputs": [
300
+ {
301
+ "internalType": "address",
302
+ "name": "account",
303
+ "type": "address"
304
+ },
305
+ {
306
+ "internalType": "uint256",
307
+ "name": "amount",
308
+ "type": "uint256"
309
+ }
310
+ ],
311
+ "name": "bridgeMint",
312
+ "outputs": [],
313
+ "stateMutability": "nonpayable",
314
+ "type": "function"
315
+ },
316
+ {
317
+ "inputs": [],
318
+ "name": "decimals",
319
+ "outputs": [
320
+ {
321
+ "internalType": "uint8",
322
+ "name": "",
323
+ "type": "uint8"
324
+ }
325
+ ],
326
+ "stateMutability": "view",
327
+ "type": "function"
328
+ },
329
+ {
330
+ "inputs": [
331
+ {
332
+ "internalType": "address",
333
+ "name": "spender",
334
+ "type": "address"
335
+ },
336
+ {
337
+ "internalType": "uint256",
338
+ "name": "subtractedValue",
339
+ "type": "uint256"
340
+ }
341
+ ],
342
+ "name": "decreaseAllowance",
343
+ "outputs": [
344
+ {
345
+ "internalType": "bool",
346
+ "name": "",
347
+ "type": "bool"
348
+ }
349
+ ],
350
+ "stateMutability": "nonpayable",
351
+ "type": "function"
352
+ },
353
+ {
354
+ "inputs": [
355
+ {
356
+ "internalType": "address",
357
+ "name": "_blockedUser",
358
+ "type": "address"
359
+ }
360
+ ],
361
+ "name": "destroyBlockedFunds",
362
+ "outputs": [],
363
+ "stateMutability": "nonpayable",
364
+ "type": "function"
365
+ },
366
+ {
367
+ "inputs": [
368
+ {
369
+ "internalType": "address",
370
+ "name": "spender",
371
+ "type": "address"
372
+ },
373
+ {
374
+ "internalType": "uint256",
375
+ "name": "addedValue",
376
+ "type": "uint256"
377
+ }
378
+ ],
379
+ "name": "increaseAllowance",
380
+ "outputs": [
381
+ {
382
+ "internalType": "bool",
383
+ "name": "",
384
+ "type": "bool"
385
+ }
386
+ ],
387
+ "stateMutability": "nonpayable",
388
+ "type": "function"
389
+ },
390
+ {
391
+ "inputs": [
392
+ {
393
+ "internalType": "string",
394
+ "name": "_name",
395
+ "type": "string"
396
+ },
397
+ {
398
+ "internalType": "string",
399
+ "name": "_symbol",
400
+ "type": "string"
401
+ },
402
+ {
403
+ "internalType": "uint8",
404
+ "name": "_decimals",
405
+ "type": "uint8"
406
+ }
407
+ ],
408
+ "name": "initialize",
409
+ "outputs": [],
410
+ "stateMutability": "nonpayable",
411
+ "type": "function"
412
+ },
413
+ {
414
+ "inputs": [
415
+ {
416
+ "internalType": "string",
417
+ "name": "_name",
418
+ "type": "string"
419
+ },
420
+ {
421
+ "internalType": "string",
422
+ "name": "_symbol",
423
+ "type": "string"
424
+ },
425
+ {
426
+ "internalType": "uint8",
427
+ "name": "_decimals",
428
+ "type": "uint8"
429
+ },
430
+ {
431
+ "internalType": "address",
432
+ "name": "_l2Gateway",
433
+ "type": "address"
434
+ },
435
+ {
436
+ "internalType": "address",
437
+ "name": "_l1Counterpart",
438
+ "type": "address"
439
+ }
440
+ ],
441
+ "name": "initialize",
442
+ "outputs": [],
443
+ "stateMutability": "nonpayable",
444
+ "type": "function"
445
+ },
446
+ {
447
+ "inputs": [
448
+ {
449
+ "internalType": "address",
450
+ "name": "",
451
+ "type": "address"
452
+ }
453
+ ],
454
+ "name": "isBlocked",
455
+ "outputs": [
456
+ {
457
+ "internalType": "bool",
458
+ "name": "",
459
+ "type": "bool"
460
+ }
461
+ ],
462
+ "stateMutability": "view",
463
+ "type": "function"
464
+ },
465
+ {
466
+ "inputs": [
467
+ {
468
+ "internalType": "address",
469
+ "name": "",
470
+ "type": "address"
471
+ }
472
+ ],
473
+ "name": "isTrusted",
474
+ "outputs": [
475
+ {
476
+ "internalType": "bool",
477
+ "name": "",
478
+ "type": "bool"
479
+ }
480
+ ],
481
+ "stateMutability": "view",
482
+ "type": "function"
483
+ },
484
+ {
485
+ "inputs": [],
486
+ "name": "l1Address",
487
+ "outputs": [
488
+ {
489
+ "internalType": "address",
490
+ "name": "",
491
+ "type": "address"
492
+ }
493
+ ],
494
+ "stateMutability": "view",
495
+ "type": "function"
496
+ },
497
+ {
498
+ "inputs": [],
499
+ "name": "l2Gateway",
500
+ "outputs": [
501
+ {
502
+ "internalType": "address",
503
+ "name": "",
504
+ "type": "address"
505
+ }
506
+ ],
507
+ "stateMutability": "view",
508
+ "type": "function"
509
+ },
510
+ {
511
+ "inputs": [
512
+ {
513
+ "internalType": "address",
514
+ "name": "_destination",
515
+ "type": "address"
516
+ },
517
+ {
518
+ "internalType": "uint256",
519
+ "name": "_amount",
520
+ "type": "uint256"
521
+ }
522
+ ],
523
+ "name": "mint",
524
+ "outputs": [],
525
+ "stateMutability": "nonpayable",
526
+ "type": "function"
527
+ },
528
+ {
529
+ "inputs": [
530
+ {
531
+ "internalType": "address[]",
532
+ "name": "_recipients",
533
+ "type": "address[]"
534
+ },
535
+ {
536
+ "internalType": "uint256[]",
537
+ "name": "_values",
538
+ "type": "uint256[]"
539
+ }
540
+ ],
541
+ "name": "multiTransfer",
542
+ "outputs": [],
543
+ "stateMutability": "nonpayable",
544
+ "type": "function"
545
+ },
546
+ {
547
+ "inputs": [],
548
+ "name": "name",
549
+ "outputs": [
550
+ {
551
+ "internalType": "string",
552
+ "name": "",
553
+ "type": "string"
554
+ }
555
+ ],
556
+ "stateMutability": "view",
557
+ "type": "function"
558
+ },
559
+ {
560
+ "inputs": [
561
+ {
562
+ "internalType": "address",
563
+ "name": "owner",
564
+ "type": "address"
565
+ }
566
+ ],
567
+ "name": "nonces",
568
+ "outputs": [
569
+ {
570
+ "internalType": "uint256",
571
+ "name": "",
572
+ "type": "uint256"
573
+ }
574
+ ],
575
+ "stateMutability": "view",
576
+ "type": "function"
577
+ },
578
+ {
579
+ "inputs": [],
580
+ "name": "owner",
581
+ "outputs": [
582
+ {
583
+ "internalType": "address",
584
+ "name": "",
585
+ "type": "address"
586
+ }
587
+ ],
588
+ "stateMutability": "view",
589
+ "type": "function"
590
+ },
591
+ {
592
+ "inputs": [
593
+ {
594
+ "internalType": "address",
595
+ "name": "owner",
596
+ "type": "address"
597
+ },
598
+ {
599
+ "internalType": "address",
600
+ "name": "spender",
601
+ "type": "address"
602
+ },
603
+ {
604
+ "internalType": "uint256",
605
+ "name": "value",
606
+ "type": "uint256"
607
+ },
608
+ {
609
+ "internalType": "uint256",
610
+ "name": "deadline",
611
+ "type": "uint256"
612
+ },
613
+ {
614
+ "internalType": "uint8",
615
+ "name": "v",
616
+ "type": "uint8"
617
+ },
618
+ {
619
+ "internalType": "bytes32",
620
+ "name": "r",
621
+ "type": "bytes32"
622
+ },
623
+ {
624
+ "internalType": "bytes32",
625
+ "name": "s",
626
+ "type": "bytes32"
627
+ }
628
+ ],
629
+ "name": "permit",
630
+ "outputs": [],
631
+ "stateMutability": "nonpayable",
632
+ "type": "function"
633
+ },
634
+ {
635
+ "inputs": [
636
+ {
637
+ "internalType": "uint256",
638
+ "name": "_amount",
639
+ "type": "uint256"
640
+ }
641
+ ],
642
+ "name": "redeem",
643
+ "outputs": [],
644
+ "stateMutability": "nonpayable",
645
+ "type": "function"
646
+ },
647
+ {
648
+ "inputs": [
649
+ {
650
+ "internalType": "address",
651
+ "name": "_user",
652
+ "type": "address"
653
+ }
654
+ ],
655
+ "name": "removeFromBlockedList",
656
+ "outputs": [],
657
+ "stateMutability": "nonpayable",
658
+ "type": "function"
659
+ },
660
+ {
661
+ "inputs": [
662
+ {
663
+ "internalType": "address",
664
+ "name": "_trustedDeFiContract",
665
+ "type": "address"
666
+ }
667
+ ],
668
+ "name": "removePrivilegedContract",
669
+ "outputs": [],
670
+ "stateMutability": "nonpayable",
671
+ "type": "function"
672
+ },
673
+ {
674
+ "inputs": [],
675
+ "name": "renounceOwnership",
676
+ "outputs": [],
677
+ "stateMutability": "nonpayable",
678
+ "type": "function"
679
+ },
680
+ {
681
+ "inputs": [],
682
+ "name": "symbol",
683
+ "outputs": [
684
+ {
685
+ "internalType": "string",
686
+ "name": "",
687
+ "type": "string"
688
+ }
689
+ ],
690
+ "stateMutability": "view",
691
+ "type": "function"
692
+ },
693
+ {
694
+ "inputs": [],
695
+ "name": "totalSupply",
696
+ "outputs": [
697
+ {
698
+ "internalType": "uint256",
699
+ "name": "",
700
+ "type": "uint256"
701
+ }
702
+ ],
703
+ "stateMutability": "view",
704
+ "type": "function"
705
+ },
706
+ {
707
+ "inputs": [
708
+ {
709
+ "internalType": "address",
710
+ "name": "_recipient",
711
+ "type": "address"
712
+ },
713
+ {
714
+ "internalType": "uint256",
715
+ "name": "_amount",
716
+ "type": "uint256"
717
+ }
718
+ ],
719
+ "name": "transfer",
720
+ "outputs": [
721
+ {
722
+ "internalType": "bool",
723
+ "name": "",
724
+ "type": "bool"
725
+ }
726
+ ],
727
+ "stateMutability": "nonpayable",
728
+ "type": "function"
729
+ },
730
+ {
731
+ "inputs": [
732
+ {
733
+ "internalType": "address",
734
+ "name": "_sender",
735
+ "type": "address"
736
+ },
737
+ {
738
+ "internalType": "address",
739
+ "name": "_recipient",
740
+ "type": "address"
741
+ },
742
+ {
743
+ "internalType": "uint256",
744
+ "name": "_amount",
745
+ "type": "uint256"
746
+ }
747
+ ],
748
+ "name": "transferFrom",
749
+ "outputs": [
750
+ {
751
+ "internalType": "bool",
752
+ "name": "",
753
+ "type": "bool"
754
+ }
755
+ ],
756
+ "stateMutability": "nonpayable",
757
+ "type": "function"
758
+ },
759
+ {
760
+ "inputs": [
761
+ {
762
+ "internalType": "address",
763
+ "name": "newOwner",
764
+ "type": "address"
765
+ }
766
+ ],
767
+ "name": "transferOwnership",
768
+ "outputs": [],
769
+ "stateMutability": "nonpayable",
770
+ "type": "function"
771
+ }
772
+ ];