@orbs-network/spot-react 0.0.23 → 0.0.24

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