@plutonlabs/sdk 0.0.13-beta → 0.0.14-beta

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,1302 @@
1
+ [
2
+ {
3
+ "coinType": 9001,
4
+ "chainId": 42161,
5
+ "pluton": {
6
+ "address": "0x2ce98643a10abc814031704769957099b6074e32",
7
+ "abi": [
8
+ {
9
+ "type": "constructor",
10
+ "inputs": [],
11
+ "stateMutability": "nonpayable"
12
+ },
13
+ {
14
+ "type": "function",
15
+ "name": "claimAdmin",
16
+ "inputs": [
17
+ {
18
+ "name": "claimAddress",
19
+ "type": "address",
20
+ "internalType": "address"
21
+ },
22
+ {
23
+ "name": "tokenAddress",
24
+ "type": "address",
25
+ "internalType": "address"
26
+ },
27
+ { "name": "amount", "type": "uint256", "internalType": "uint256" }
28
+ ],
29
+ "outputs": [],
30
+ "stateMutability": "nonpayable"
31
+ },
32
+ {
33
+ "type": "function",
34
+ "name": "claimAffiliate",
35
+ "inputs": [
36
+ { "name": "signature", "type": "bytes", "internalType": "bytes" },
37
+ {
38
+ "name": "affiliateAddress",
39
+ "type": "address",
40
+ "internalType": "address"
41
+ },
42
+ {
43
+ "name": "tokenAddress",
44
+ "type": "address",
45
+ "internalType": "address"
46
+ },
47
+ { "name": "amount", "type": "uint256", "internalType": "uint256" }
48
+ ],
49
+ "outputs": [],
50
+ "stateMutability": "nonpayable"
51
+ },
52
+ {
53
+ "type": "function",
54
+ "name": "claimSolver",
55
+ "inputs": [
56
+ { "name": "signature", "type": "bytes", "internalType": "bytes" },
57
+ {
58
+ "name": "claimerAddress",
59
+ "type": "address",
60
+ "internalType": "address"
61
+ },
62
+ {
63
+ "name": "tokenAddress",
64
+ "type": "address",
65
+ "internalType": "address"
66
+ },
67
+ { "name": "amount", "type": "uint256", "internalType": "uint256" }
68
+ ],
69
+ "outputs": [],
70
+ "stateMutability": "nonpayable"
71
+ },
72
+ {
73
+ "type": "function",
74
+ "name": "eip712Domain",
75
+ "inputs": [],
76
+ "outputs": [
77
+ { "name": "fields", "type": "bytes1", "internalType": "bytes1" },
78
+ { "name": "name", "type": "string", "internalType": "string" },
79
+ { "name": "version", "type": "string", "internalType": "string" },
80
+ { "name": "chainId", "type": "uint256", "internalType": "uint256" },
81
+ {
82
+ "name": "verifyingContract",
83
+ "type": "address",
84
+ "internalType": "address"
85
+ },
86
+ { "name": "salt", "type": "bytes32", "internalType": "bytes32" },
87
+ {
88
+ "name": "extensions",
89
+ "type": "uint256[]",
90
+ "internalType": "uint256[]"
91
+ }
92
+ ],
93
+ "stateMutability": "view"
94
+ },
95
+ {
96
+ "type": "function",
97
+ "name": "lastAffiliateAddressAmount",
98
+ "inputs": [
99
+ {
100
+ "name": "affiliateAddress",
101
+ "type": "address",
102
+ "internalType": "address"
103
+ },
104
+ {
105
+ "name": "tokenAddress",
106
+ "type": "address",
107
+ "internalType": "address"
108
+ }
109
+ ],
110
+ "outputs": [
111
+ {
112
+ "name": "lastClaim",
113
+ "type": "uint256",
114
+ "internalType": "uint256"
115
+ }
116
+ ],
117
+ "stateMutability": "view"
118
+ },
119
+ {
120
+ "type": "function",
121
+ "name": "lastRefundAddressAmount",
122
+ "inputs": [
123
+ {
124
+ "name": "refundAddress",
125
+ "type": "address",
126
+ "internalType": "address"
127
+ },
128
+ {
129
+ "name": "tokenAddress",
130
+ "type": "address",
131
+ "internalType": "address"
132
+ }
133
+ ],
134
+ "outputs": [
135
+ {
136
+ "name": "lastClaim",
137
+ "type": "uint256",
138
+ "internalType": "uint256"
139
+ }
140
+ ],
141
+ "stateMutability": "view"
142
+ },
143
+ {
144
+ "type": "function",
145
+ "name": "lastSolverAddressAmount",
146
+ "inputs": [
147
+ {
148
+ "name": "solverAddress",
149
+ "type": "address",
150
+ "internalType": "address"
151
+ },
152
+ {
153
+ "name": "tokenAddress",
154
+ "type": "address",
155
+ "internalType": "address"
156
+ }
157
+ ],
158
+ "outputs": [
159
+ {
160
+ "name": "lastClaim",
161
+ "type": "uint256",
162
+ "internalType": "uint256"
163
+ }
164
+ ],
165
+ "stateMutability": "view"
166
+ },
167
+ {
168
+ "type": "function",
169
+ "name": "owner",
170
+ "inputs": [],
171
+ "outputs": [
172
+ { "name": "", "type": "address", "internalType": "address" }
173
+ ],
174
+ "stateMutability": "view"
175
+ },
176
+ {
177
+ "type": "function",
178
+ "name": "pluton",
179
+ "inputs": [
180
+ {
181
+ "name": "plutonRequest",
182
+ "type": "tuple",
183
+ "internalType": "struct PlutonContract.PlutonRequest",
184
+ "components": [
185
+ { "name": "id", "type": "bytes", "internalType": "bytes" },
186
+ {
187
+ "name": "user",
188
+ "type": "address",
189
+ "internalType": "address"
190
+ },
191
+ {
192
+ "name": "tokenInAddress",
193
+ "type": "address",
194
+ "internalType": "address"
195
+ },
196
+ {
197
+ "name": "amountIn",
198
+ "type": "uint256",
199
+ "internalType": "uint256"
200
+ },
201
+ {
202
+ "name": "initiationExpiry",
203
+ "type": "uint256",
204
+ "internalType": "uint256"
205
+ },
206
+ {
207
+ "name": "orderDataType",
208
+ "type": "bytes32",
209
+ "internalType": "bytes32"
210
+ },
211
+ {
212
+ "name": "orderData",
213
+ "type": "bytes",
214
+ "internalType": "bytes"
215
+ }
216
+ ]
217
+ }
218
+ ],
219
+ "outputs": [],
220
+ "stateMutability": "payable"
221
+ },
222
+ {
223
+ "type": "function",
224
+ "name": "refundUser",
225
+ "inputs": [
226
+ { "name": "signature", "type": "bytes", "internalType": "bytes" },
227
+ {
228
+ "name": "refundAddress",
229
+ "type": "address",
230
+ "internalType": "address"
231
+ },
232
+ {
233
+ "name": "tokenAddress",
234
+ "type": "address",
235
+ "internalType": "address"
236
+ },
237
+ { "name": "amount", "type": "uint256", "internalType": "uint256" }
238
+ ],
239
+ "outputs": [],
240
+ "stateMutability": "nonpayable"
241
+ },
242
+ {
243
+ "type": "function",
244
+ "name": "renounceOwnership",
245
+ "inputs": [],
246
+ "outputs": [],
247
+ "stateMutability": "nonpayable"
248
+ },
249
+ {
250
+ "type": "function",
251
+ "name": "transferOwnership",
252
+ "inputs": [
253
+ { "name": "newOwner", "type": "address", "internalType": "address" }
254
+ ],
255
+ "outputs": [],
256
+ "stateMutability": "nonpayable"
257
+ },
258
+ {
259
+ "type": "event",
260
+ "name": "ClaimAdmin",
261
+ "inputs": [
262
+ {
263
+ "name": "claimerAdmin",
264
+ "type": "address",
265
+ "indexed": true,
266
+ "internalType": "address"
267
+ },
268
+ {
269
+ "name": "tokenAddress",
270
+ "type": "address",
271
+ "indexed": true,
272
+ "internalType": "address"
273
+ },
274
+ {
275
+ "name": "amount",
276
+ "type": "uint256",
277
+ "indexed": true,
278
+ "internalType": "uint256"
279
+ },
280
+ {
281
+ "name": "balanceDifference",
282
+ "type": "uint256",
283
+ "indexed": false,
284
+ "internalType": "uint256"
285
+ }
286
+ ],
287
+ "anonymous": false
288
+ },
289
+ {
290
+ "type": "event",
291
+ "name": "ClaimAffiliate",
292
+ "inputs": [
293
+ {
294
+ "name": "affiliate",
295
+ "type": "address",
296
+ "indexed": true,
297
+ "internalType": "address"
298
+ },
299
+ {
300
+ "name": "tokenAddress",
301
+ "type": "address",
302
+ "indexed": true,
303
+ "internalType": "address"
304
+ },
305
+ {
306
+ "name": "amount",
307
+ "type": "uint256",
308
+ "indexed": true,
309
+ "internalType": "uint256"
310
+ },
311
+ {
312
+ "name": "balanceDifference",
313
+ "type": "uint256",
314
+ "indexed": false,
315
+ "internalType": "uint256"
316
+ }
317
+ ],
318
+ "anonymous": false
319
+ },
320
+ {
321
+ "type": "event",
322
+ "name": "ClaimSolver",
323
+ "inputs": [
324
+ {
325
+ "name": "claimerSolver",
326
+ "type": "address",
327
+ "indexed": true,
328
+ "internalType": "address"
329
+ },
330
+ {
331
+ "name": "tokenAddress",
332
+ "type": "address",
333
+ "indexed": true,
334
+ "internalType": "address"
335
+ },
336
+ {
337
+ "name": "amount",
338
+ "type": "uint256",
339
+ "indexed": true,
340
+ "internalType": "uint256"
341
+ },
342
+ {
343
+ "name": "balanceDifference",
344
+ "type": "uint256",
345
+ "indexed": false,
346
+ "internalType": "uint256"
347
+ }
348
+ ],
349
+ "anonymous": false
350
+ },
351
+ {
352
+ "type": "event",
353
+ "name": "EIP712DomainChanged",
354
+ "inputs": [],
355
+ "anonymous": false
356
+ },
357
+ {
358
+ "type": "event",
359
+ "name": "OwnershipTransferred",
360
+ "inputs": [
361
+ {
362
+ "name": "previousOwner",
363
+ "type": "address",
364
+ "indexed": true,
365
+ "internalType": "address"
366
+ },
367
+ {
368
+ "name": "newOwner",
369
+ "type": "address",
370
+ "indexed": true,
371
+ "internalType": "address"
372
+ }
373
+ ],
374
+ "anonymous": false
375
+ },
376
+ {
377
+ "type": "event",
378
+ "name": "Pluton",
379
+ "inputs": [
380
+ {
381
+ "name": "id",
382
+ "type": "bytes",
383
+ "indexed": true,
384
+ "internalType": "bytes"
385
+ },
386
+ {
387
+ "name": "sender",
388
+ "type": "address",
389
+ "indexed": true,
390
+ "internalType": "address"
391
+ },
392
+ {
393
+ "name": "plutonRequest",
394
+ "type": "tuple",
395
+ "indexed": false,
396
+ "internalType": "struct PlutonContract.PlutonRequest",
397
+ "components": [
398
+ { "name": "id", "type": "bytes", "internalType": "bytes" },
399
+ {
400
+ "name": "user",
401
+ "type": "address",
402
+ "internalType": "address"
403
+ },
404
+ {
405
+ "name": "tokenInAddress",
406
+ "type": "address",
407
+ "internalType": "address"
408
+ },
409
+ {
410
+ "name": "amountIn",
411
+ "type": "uint256",
412
+ "internalType": "uint256"
413
+ },
414
+ {
415
+ "name": "initiationExpiry",
416
+ "type": "uint256",
417
+ "internalType": "uint256"
418
+ },
419
+ {
420
+ "name": "orderDataType",
421
+ "type": "bytes32",
422
+ "internalType": "bytes32"
423
+ },
424
+ {
425
+ "name": "orderData",
426
+ "type": "bytes",
427
+ "internalType": "bytes"
428
+ }
429
+ ]
430
+ },
431
+ {
432
+ "name": "balanceDifference",
433
+ "type": "uint256",
434
+ "indexed": false,
435
+ "internalType": "uint256"
436
+ }
437
+ ],
438
+ "anonymous": false
439
+ },
440
+ {
441
+ "type": "event",
442
+ "name": "Refund",
443
+ "inputs": [
444
+ {
445
+ "name": "refunder",
446
+ "type": "address",
447
+ "indexed": true,
448
+ "internalType": "address"
449
+ },
450
+ {
451
+ "name": "tokenAddress",
452
+ "type": "address",
453
+ "indexed": true,
454
+ "internalType": "address"
455
+ },
456
+ {
457
+ "name": "amount",
458
+ "type": "uint256",
459
+ "indexed": true,
460
+ "internalType": "uint256"
461
+ },
462
+ {
463
+ "name": "balanceDifference",
464
+ "type": "uint256",
465
+ "indexed": false,
466
+ "internalType": "uint256"
467
+ }
468
+ ],
469
+ "anonymous": false
470
+ },
471
+ { "type": "error", "name": "AlreadyResolved", "inputs": [] },
472
+ {
473
+ "type": "error",
474
+ "name": "DeadlineReached",
475
+ "inputs": [
476
+ { "name": "", "type": "uint256", "internalType": "uint256" },
477
+ { "name": "", "type": "uint256", "internalType": "uint256" }
478
+ ]
479
+ },
480
+ { "type": "error", "name": "ECDSAInvalidSignature", "inputs": [] },
481
+ {
482
+ "type": "error",
483
+ "name": "ECDSAInvalidSignatureLength",
484
+ "inputs": [
485
+ { "name": "length", "type": "uint256", "internalType": "uint256" }
486
+ ]
487
+ },
488
+ {
489
+ "type": "error",
490
+ "name": "ECDSAInvalidSignatureS",
491
+ "inputs": [
492
+ { "name": "s", "type": "bytes32", "internalType": "bytes32" }
493
+ ]
494
+ },
495
+ { "type": "error", "name": "EthNotTransferred", "inputs": [] },
496
+ { "type": "error", "name": "InvalidShortString", "inputs": [] },
497
+ {
498
+ "type": "error",
499
+ "name": "OwnableInvalidOwner",
500
+ "inputs": [
501
+ { "name": "owner", "type": "address", "internalType": "address" }
502
+ ]
503
+ },
504
+ {
505
+ "type": "error",
506
+ "name": "OwnableUnauthorizedAccount",
507
+ "inputs": [
508
+ { "name": "account", "type": "address", "internalType": "address" }
509
+ ]
510
+ },
511
+ {
512
+ "type": "error",
513
+ "name": "ReentrancyGuardReentrantCall",
514
+ "inputs": []
515
+ },
516
+ {
517
+ "type": "error",
518
+ "name": "SafeERC20FailedOperation",
519
+ "inputs": [
520
+ { "name": "token", "type": "address", "internalType": "address" }
521
+ ]
522
+ },
523
+ { "type": "error", "name": "SignatureFailed", "inputs": [] },
524
+ {
525
+ "type": "error",
526
+ "name": "StringTooLong",
527
+ "inputs": [
528
+ { "name": "str", "type": "string", "internalType": "string" }
529
+ ]
530
+ },
531
+ {
532
+ "type": "error",
533
+ "name": "ValueNotEnough",
534
+ "inputs": [
535
+ { "name": "", "type": "uint256", "internalType": "uint256" },
536
+ { "name": "", "type": "uint256", "internalType": "uint256" }
537
+ ]
538
+ }
539
+ ]
540
+ },
541
+ "proxy": {
542
+ "address": "0x83d9838B460FD583E9942960B732A494A345a4cc",
543
+ "abi": [
544
+ {
545
+ "type": "constructor",
546
+ "inputs": [
547
+ {
548
+ "name": "_rangoDiamondAddress",
549
+ "type": "address",
550
+ "internalType": "address"
551
+ },
552
+ {
553
+ "name": "_plutonContractAddress",
554
+ "type": "address",
555
+ "internalType": "address"
556
+ },
557
+ {
558
+ "name": "_baseTokenAddress",
559
+ "type": "address",
560
+ "internalType": "address"
561
+ }
562
+ ],
563
+ "stateMutability": "nonpayable"
564
+ },
565
+ {
566
+ "type": "function",
567
+ "name": "baseTokenAddress",
568
+ "inputs": [],
569
+ "outputs": [
570
+ { "name": "", "type": "address", "internalType": "address" }
571
+ ],
572
+ "stateMutability": "view"
573
+ },
574
+ {
575
+ "type": "function",
576
+ "name": "plutonContract",
577
+ "inputs": [],
578
+ "outputs": [
579
+ {
580
+ "name": "",
581
+ "type": "address",
582
+ "internalType": "contract PlutonContract"
583
+ }
584
+ ],
585
+ "stateMutability": "view"
586
+ },
587
+ {
588
+ "type": "function",
589
+ "name": "rangoDiamondAddress",
590
+ "inputs": [],
591
+ "outputs": [
592
+ { "name": "", "type": "address", "internalType": "address" }
593
+ ],
594
+ "stateMutability": "view"
595
+ },
596
+ {
597
+ "type": "function",
598
+ "name": "swapAndpluton",
599
+ "inputs": [
600
+ {
601
+ "name": "plutonRequest",
602
+ "type": "tuple",
603
+ "internalType": "struct IPlutonMiddleware.PlutonRequest",
604
+ "components": [
605
+ { "name": "id", "type": "bytes", "internalType": "bytes" },
606
+ {
607
+ "name": "user",
608
+ "type": "address",
609
+ "internalType": "address"
610
+ },
611
+ {
612
+ "name": "initiationExpiry",
613
+ "type": "uint256",
614
+ "internalType": "uint256"
615
+ },
616
+ {
617
+ "name": "orderDataType",
618
+ "type": "bytes32",
619
+ "internalType": "bytes32"
620
+ },
621
+ {
622
+ "name": "orderData",
623
+ "type": "bytes",
624
+ "internalType": "bytes"
625
+ }
626
+ ]
627
+ },
628
+ {
629
+ "name": "swapCallData",
630
+ "type": "bytes",
631
+ "internalType": "bytes"
632
+ },
633
+ {
634
+ "name": "srcTokenAddress",
635
+ "type": "address",
636
+ "internalType": "address"
637
+ },
638
+ { "name": "amountIn", "type": "uint256", "internalType": "uint256" }
639
+ ],
640
+ "outputs": [],
641
+ "stateMutability": "payable"
642
+ },
643
+ { "type": "error", "name": "RangoSwapFailed", "inputs": [] },
644
+ {
645
+ "type": "error",
646
+ "name": "ReentrancyGuardReentrantCall",
647
+ "inputs": []
648
+ }
649
+ ]
650
+ }
651
+ },
652
+ {
653
+ "coinType": 8453,
654
+ "chainId": 8453,
655
+ "pluton": {
656
+ "address": "0x2C07aD3B59791F630E109C822af6f9f09392C661",
657
+ "abi": [
658
+ {
659
+ "type": "constructor",
660
+ "inputs": [],
661
+ "stateMutability": "nonpayable"
662
+ },
663
+ {
664
+ "type": "function",
665
+ "name": "claimAdmin",
666
+ "inputs": [
667
+ {
668
+ "name": "claimAddress",
669
+ "type": "address",
670
+ "internalType": "address"
671
+ },
672
+ {
673
+ "name": "tokenAddress",
674
+ "type": "address",
675
+ "internalType": "address"
676
+ },
677
+ { "name": "amount", "type": "uint256", "internalType": "uint256" }
678
+ ],
679
+ "outputs": [],
680
+ "stateMutability": "nonpayable"
681
+ },
682
+ {
683
+ "type": "function",
684
+ "name": "claimAffiliate",
685
+ "inputs": [
686
+ { "name": "signature", "type": "bytes", "internalType": "bytes" },
687
+ {
688
+ "name": "affiliateAddress",
689
+ "type": "address",
690
+ "internalType": "address"
691
+ },
692
+ {
693
+ "name": "tokenAddress",
694
+ "type": "address",
695
+ "internalType": "address"
696
+ },
697
+ { "name": "amount", "type": "uint256", "internalType": "uint256" }
698
+ ],
699
+ "outputs": [],
700
+ "stateMutability": "nonpayable"
701
+ },
702
+ {
703
+ "type": "function",
704
+ "name": "claimSolver",
705
+ "inputs": [
706
+ { "name": "signature", "type": "bytes", "internalType": "bytes" },
707
+ {
708
+ "name": "claimerAddress",
709
+ "type": "address",
710
+ "internalType": "address"
711
+ },
712
+ {
713
+ "name": "tokenAddress",
714
+ "type": "address",
715
+ "internalType": "address"
716
+ },
717
+ { "name": "amount", "type": "uint256", "internalType": "uint256" }
718
+ ],
719
+ "outputs": [],
720
+ "stateMutability": "nonpayable"
721
+ },
722
+ {
723
+ "type": "function",
724
+ "name": "eip712Domain",
725
+ "inputs": [],
726
+ "outputs": [
727
+ { "name": "fields", "type": "bytes1", "internalType": "bytes1" },
728
+ { "name": "name", "type": "string", "internalType": "string" },
729
+ { "name": "version", "type": "string", "internalType": "string" },
730
+ { "name": "chainId", "type": "uint256", "internalType": "uint256" },
731
+ {
732
+ "name": "verifyingContract",
733
+ "type": "address",
734
+ "internalType": "address"
735
+ },
736
+ { "name": "salt", "type": "bytes32", "internalType": "bytes32" },
737
+ {
738
+ "name": "extensions",
739
+ "type": "uint256[]",
740
+ "internalType": "uint256[]"
741
+ }
742
+ ],
743
+ "stateMutability": "view"
744
+ },
745
+ {
746
+ "type": "function",
747
+ "name": "lastAffiliateAddressAmount",
748
+ "inputs": [
749
+ {
750
+ "name": "affiliateAddress",
751
+ "type": "address",
752
+ "internalType": "address"
753
+ },
754
+ {
755
+ "name": "tokenAddress",
756
+ "type": "address",
757
+ "internalType": "address"
758
+ }
759
+ ],
760
+ "outputs": [
761
+ {
762
+ "name": "lastClaim",
763
+ "type": "uint256",
764
+ "internalType": "uint256"
765
+ }
766
+ ],
767
+ "stateMutability": "view"
768
+ },
769
+ {
770
+ "type": "function",
771
+ "name": "lastRefundAddressAmount",
772
+ "inputs": [
773
+ {
774
+ "name": "refundAddress",
775
+ "type": "address",
776
+ "internalType": "address"
777
+ },
778
+ {
779
+ "name": "tokenAddress",
780
+ "type": "address",
781
+ "internalType": "address"
782
+ }
783
+ ],
784
+ "outputs": [
785
+ {
786
+ "name": "lastClaim",
787
+ "type": "uint256",
788
+ "internalType": "uint256"
789
+ }
790
+ ],
791
+ "stateMutability": "view"
792
+ },
793
+ {
794
+ "type": "function",
795
+ "name": "lastSolverAddressAmount",
796
+ "inputs": [
797
+ {
798
+ "name": "solverAddress",
799
+ "type": "address",
800
+ "internalType": "address"
801
+ },
802
+ {
803
+ "name": "tokenAddress",
804
+ "type": "address",
805
+ "internalType": "address"
806
+ }
807
+ ],
808
+ "outputs": [
809
+ {
810
+ "name": "lastClaim",
811
+ "type": "uint256",
812
+ "internalType": "uint256"
813
+ }
814
+ ],
815
+ "stateMutability": "view"
816
+ },
817
+ {
818
+ "type": "function",
819
+ "name": "owner",
820
+ "inputs": [],
821
+ "outputs": [
822
+ { "name": "", "type": "address", "internalType": "address" }
823
+ ],
824
+ "stateMutability": "view"
825
+ },
826
+ {
827
+ "type": "function",
828
+ "name": "pluton",
829
+ "inputs": [
830
+ {
831
+ "name": "plutonRequest",
832
+ "type": "tuple",
833
+ "internalType": "struct PlutonContract.PlutonRequest",
834
+ "components": [
835
+ { "name": "id", "type": "bytes", "internalType": "bytes" },
836
+ {
837
+ "name": "user",
838
+ "type": "address",
839
+ "internalType": "address"
840
+ },
841
+ {
842
+ "name": "tokenInAddress",
843
+ "type": "address",
844
+ "internalType": "address"
845
+ },
846
+ {
847
+ "name": "amountIn",
848
+ "type": "uint256",
849
+ "internalType": "uint256"
850
+ },
851
+ {
852
+ "name": "initiationExpiry",
853
+ "type": "uint256",
854
+ "internalType": "uint256"
855
+ },
856
+ {
857
+ "name": "orderDataType",
858
+ "type": "bytes32",
859
+ "internalType": "bytes32"
860
+ },
861
+ {
862
+ "name": "orderData",
863
+ "type": "bytes",
864
+ "internalType": "bytes"
865
+ }
866
+ ]
867
+ }
868
+ ],
869
+ "outputs": [],
870
+ "stateMutability": "payable"
871
+ },
872
+ {
873
+ "type": "function",
874
+ "name": "refundUser",
875
+ "inputs": [
876
+ { "name": "signature", "type": "bytes", "internalType": "bytes" },
877
+ {
878
+ "name": "refundAddress",
879
+ "type": "address",
880
+ "internalType": "address"
881
+ },
882
+ {
883
+ "name": "tokenAddress",
884
+ "type": "address",
885
+ "internalType": "address"
886
+ },
887
+ { "name": "amount", "type": "uint256", "internalType": "uint256" }
888
+ ],
889
+ "outputs": [],
890
+ "stateMutability": "nonpayable"
891
+ },
892
+ {
893
+ "type": "function",
894
+ "name": "renounceOwnership",
895
+ "inputs": [],
896
+ "outputs": [],
897
+ "stateMutability": "nonpayable"
898
+ },
899
+ {
900
+ "type": "function",
901
+ "name": "transferOwnership",
902
+ "inputs": [
903
+ { "name": "newOwner", "type": "address", "internalType": "address" }
904
+ ],
905
+ "outputs": [],
906
+ "stateMutability": "nonpayable"
907
+ },
908
+ {
909
+ "type": "event",
910
+ "name": "ClaimAdmin",
911
+ "inputs": [
912
+ {
913
+ "name": "claimerAdmin",
914
+ "type": "address",
915
+ "indexed": true,
916
+ "internalType": "address"
917
+ },
918
+ {
919
+ "name": "tokenAddress",
920
+ "type": "address",
921
+ "indexed": true,
922
+ "internalType": "address"
923
+ },
924
+ {
925
+ "name": "amount",
926
+ "type": "uint256",
927
+ "indexed": true,
928
+ "internalType": "uint256"
929
+ },
930
+ {
931
+ "name": "balanceDifference",
932
+ "type": "uint256",
933
+ "indexed": false,
934
+ "internalType": "uint256"
935
+ }
936
+ ],
937
+ "anonymous": false
938
+ },
939
+ {
940
+ "type": "event",
941
+ "name": "ClaimAffiliate",
942
+ "inputs": [
943
+ {
944
+ "name": "affiliate",
945
+ "type": "address",
946
+ "indexed": true,
947
+ "internalType": "address"
948
+ },
949
+ {
950
+ "name": "tokenAddress",
951
+ "type": "address",
952
+ "indexed": true,
953
+ "internalType": "address"
954
+ },
955
+ {
956
+ "name": "amount",
957
+ "type": "uint256",
958
+ "indexed": true,
959
+ "internalType": "uint256"
960
+ },
961
+ {
962
+ "name": "balanceDifference",
963
+ "type": "uint256",
964
+ "indexed": false,
965
+ "internalType": "uint256"
966
+ }
967
+ ],
968
+ "anonymous": false
969
+ },
970
+ {
971
+ "type": "event",
972
+ "name": "ClaimSolver",
973
+ "inputs": [
974
+ {
975
+ "name": "claimerSolver",
976
+ "type": "address",
977
+ "indexed": true,
978
+ "internalType": "address"
979
+ },
980
+ {
981
+ "name": "tokenAddress",
982
+ "type": "address",
983
+ "indexed": true,
984
+ "internalType": "address"
985
+ },
986
+ {
987
+ "name": "amount",
988
+ "type": "uint256",
989
+ "indexed": true,
990
+ "internalType": "uint256"
991
+ },
992
+ {
993
+ "name": "balanceDifference",
994
+ "type": "uint256",
995
+ "indexed": false,
996
+ "internalType": "uint256"
997
+ }
998
+ ],
999
+ "anonymous": false
1000
+ },
1001
+ {
1002
+ "type": "event",
1003
+ "name": "EIP712DomainChanged",
1004
+ "inputs": [],
1005
+ "anonymous": false
1006
+ },
1007
+ {
1008
+ "type": "event",
1009
+ "name": "OwnershipTransferred",
1010
+ "inputs": [
1011
+ {
1012
+ "name": "previousOwner",
1013
+ "type": "address",
1014
+ "indexed": true,
1015
+ "internalType": "address"
1016
+ },
1017
+ {
1018
+ "name": "newOwner",
1019
+ "type": "address",
1020
+ "indexed": true,
1021
+ "internalType": "address"
1022
+ }
1023
+ ],
1024
+ "anonymous": false
1025
+ },
1026
+ {
1027
+ "type": "event",
1028
+ "name": "Pluton",
1029
+ "inputs": [
1030
+ {
1031
+ "name": "id",
1032
+ "type": "bytes",
1033
+ "indexed": true,
1034
+ "internalType": "bytes"
1035
+ },
1036
+ {
1037
+ "name": "sender",
1038
+ "type": "address",
1039
+ "indexed": true,
1040
+ "internalType": "address"
1041
+ },
1042
+ {
1043
+ "name": "plutonRequest",
1044
+ "type": "tuple",
1045
+ "indexed": false,
1046
+ "internalType": "struct PlutonContract.PlutonRequest",
1047
+ "components": [
1048
+ { "name": "id", "type": "bytes", "internalType": "bytes" },
1049
+ {
1050
+ "name": "user",
1051
+ "type": "address",
1052
+ "internalType": "address"
1053
+ },
1054
+ {
1055
+ "name": "tokenInAddress",
1056
+ "type": "address",
1057
+ "internalType": "address"
1058
+ },
1059
+ {
1060
+ "name": "amountIn",
1061
+ "type": "uint256",
1062
+ "internalType": "uint256"
1063
+ },
1064
+ {
1065
+ "name": "initiationExpiry",
1066
+ "type": "uint256",
1067
+ "internalType": "uint256"
1068
+ },
1069
+ {
1070
+ "name": "orderDataType",
1071
+ "type": "bytes32",
1072
+ "internalType": "bytes32"
1073
+ },
1074
+ {
1075
+ "name": "orderData",
1076
+ "type": "bytes",
1077
+ "internalType": "bytes"
1078
+ }
1079
+ ]
1080
+ },
1081
+ {
1082
+ "name": "balanceDifference",
1083
+ "type": "uint256",
1084
+ "indexed": false,
1085
+ "internalType": "uint256"
1086
+ }
1087
+ ],
1088
+ "anonymous": false
1089
+ },
1090
+ {
1091
+ "type": "event",
1092
+ "name": "Refund",
1093
+ "inputs": [
1094
+ {
1095
+ "name": "refunder",
1096
+ "type": "address",
1097
+ "indexed": true,
1098
+ "internalType": "address"
1099
+ },
1100
+ {
1101
+ "name": "tokenAddress",
1102
+ "type": "address",
1103
+ "indexed": true,
1104
+ "internalType": "address"
1105
+ },
1106
+ {
1107
+ "name": "amount",
1108
+ "type": "uint256",
1109
+ "indexed": true,
1110
+ "internalType": "uint256"
1111
+ },
1112
+ {
1113
+ "name": "balanceDifference",
1114
+ "type": "uint256",
1115
+ "indexed": false,
1116
+ "internalType": "uint256"
1117
+ }
1118
+ ],
1119
+ "anonymous": false
1120
+ },
1121
+ { "type": "error", "name": "AlreadyResolved", "inputs": [] },
1122
+ {
1123
+ "type": "error",
1124
+ "name": "DeadlineReached",
1125
+ "inputs": [
1126
+ { "name": "", "type": "uint256", "internalType": "uint256" },
1127
+ { "name": "", "type": "uint256", "internalType": "uint256" }
1128
+ ]
1129
+ },
1130
+ { "type": "error", "name": "ECDSAInvalidSignature", "inputs": [] },
1131
+ {
1132
+ "type": "error",
1133
+ "name": "ECDSAInvalidSignatureLength",
1134
+ "inputs": [
1135
+ { "name": "length", "type": "uint256", "internalType": "uint256" }
1136
+ ]
1137
+ },
1138
+ {
1139
+ "type": "error",
1140
+ "name": "ECDSAInvalidSignatureS",
1141
+ "inputs": [
1142
+ { "name": "s", "type": "bytes32", "internalType": "bytes32" }
1143
+ ]
1144
+ },
1145
+ { "type": "error", "name": "EthNotTransferred", "inputs": [] },
1146
+ { "type": "error", "name": "InvalidShortString", "inputs": [] },
1147
+ {
1148
+ "type": "error",
1149
+ "name": "OwnableInvalidOwner",
1150
+ "inputs": [
1151
+ { "name": "owner", "type": "address", "internalType": "address" }
1152
+ ]
1153
+ },
1154
+ {
1155
+ "type": "error",
1156
+ "name": "OwnableUnauthorizedAccount",
1157
+ "inputs": [
1158
+ { "name": "account", "type": "address", "internalType": "address" }
1159
+ ]
1160
+ },
1161
+ {
1162
+ "type": "error",
1163
+ "name": "ReentrancyGuardReentrantCall",
1164
+ "inputs": []
1165
+ },
1166
+ {
1167
+ "type": "error",
1168
+ "name": "SafeERC20FailedOperation",
1169
+ "inputs": [
1170
+ { "name": "token", "type": "address", "internalType": "address" }
1171
+ ]
1172
+ },
1173
+ { "type": "error", "name": "SignatureFailed", "inputs": [] },
1174
+ {
1175
+ "type": "error",
1176
+ "name": "StringTooLong",
1177
+ "inputs": [
1178
+ { "name": "str", "type": "string", "internalType": "string" }
1179
+ ]
1180
+ },
1181
+ {
1182
+ "type": "error",
1183
+ "name": "ValueNotEnough",
1184
+ "inputs": [
1185
+ { "name": "", "type": "uint256", "internalType": "uint256" },
1186
+ { "name": "", "type": "uint256", "internalType": "uint256" }
1187
+ ]
1188
+ }
1189
+ ]
1190
+ },
1191
+ "proxy": {
1192
+ "address": "0x937848941811143d599AdfF13317728EC4876B7b",
1193
+ "abi": [
1194
+ {
1195
+ "type": "constructor",
1196
+ "inputs": [
1197
+ {
1198
+ "name": "_rangoDiamondAddress",
1199
+ "type": "address",
1200
+ "internalType": "address"
1201
+ },
1202
+ {
1203
+ "name": "_plutonContractAddress",
1204
+ "type": "address",
1205
+ "internalType": "address"
1206
+ },
1207
+ {
1208
+ "name": "_baseTokenAddress",
1209
+ "type": "address",
1210
+ "internalType": "address"
1211
+ }
1212
+ ],
1213
+ "stateMutability": "nonpayable"
1214
+ },
1215
+ {
1216
+ "type": "function",
1217
+ "name": "baseTokenAddress",
1218
+ "inputs": [],
1219
+ "outputs": [
1220
+ { "name": "", "type": "address", "internalType": "address" }
1221
+ ],
1222
+ "stateMutability": "view"
1223
+ },
1224
+ {
1225
+ "type": "function",
1226
+ "name": "plutonContract",
1227
+ "inputs": [],
1228
+ "outputs": [
1229
+ {
1230
+ "name": "",
1231
+ "type": "address",
1232
+ "internalType": "contract PlutonContract"
1233
+ }
1234
+ ],
1235
+ "stateMutability": "view"
1236
+ },
1237
+ {
1238
+ "type": "function",
1239
+ "name": "rangoDiamondAddress",
1240
+ "inputs": [],
1241
+ "outputs": [
1242
+ { "name": "", "type": "address", "internalType": "address" }
1243
+ ],
1244
+ "stateMutability": "view"
1245
+ },
1246
+ {
1247
+ "type": "function",
1248
+ "name": "swapAndpluton",
1249
+ "inputs": [
1250
+ {
1251
+ "name": "plutonRequest",
1252
+ "type": "tuple",
1253
+ "internalType": "struct IPlutonMiddleware.PlutonRequest",
1254
+ "components": [
1255
+ { "name": "id", "type": "bytes", "internalType": "bytes" },
1256
+ {
1257
+ "name": "user",
1258
+ "type": "address",
1259
+ "internalType": "address"
1260
+ },
1261
+ {
1262
+ "name": "initiationExpiry",
1263
+ "type": "uint256",
1264
+ "internalType": "uint256"
1265
+ },
1266
+ {
1267
+ "name": "orderDataType",
1268
+ "type": "bytes32",
1269
+ "internalType": "bytes32"
1270
+ },
1271
+ {
1272
+ "name": "orderData",
1273
+ "type": "bytes",
1274
+ "internalType": "bytes"
1275
+ }
1276
+ ]
1277
+ },
1278
+ {
1279
+ "name": "swapCallData",
1280
+ "type": "bytes",
1281
+ "internalType": "bytes"
1282
+ },
1283
+ {
1284
+ "name": "srcTokenAddress",
1285
+ "type": "address",
1286
+ "internalType": "address"
1287
+ },
1288
+ { "name": "amountIn", "type": "uint256", "internalType": "uint256" }
1289
+ ],
1290
+ "outputs": [],
1291
+ "stateMutability": "payable"
1292
+ },
1293
+ { "type": "error", "name": "RangoSwapFailed", "inputs": [] },
1294
+ {
1295
+ "type": "error",
1296
+ "name": "ReentrancyGuardReentrantCall",
1297
+ "inputs": []
1298
+ }
1299
+ ]
1300
+ }
1301
+ }
1302
+ ]