@requestnetwork/smart-contracts 0.28.1-next.1813 → 0.28.1-next.1814

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 (32) hide show
  1. package/dist/scripts/test-deploy-batch-conversion-deployment.d.ts.map +1 -1
  2. package/dist/scripts/test-deploy-batch-conversion-deployment.js +8 -3
  3. package/dist/scripts/test-deploy-batch-conversion-deployment.js.map +1 -1
  4. package/dist/scripts/test-deploy-main-payments.js +1 -1
  5. package/dist/scripts/test-deploy-main-payments.js.map +1 -1
  6. package/dist/src/lib/artifacts/BatchConversionPayments/0.1.0.json +326 -143
  7. package/dist/src/lib/artifacts/BatchConversionPayments/index.d.ts.map +1 -1
  8. package/dist/src/lib/artifacts/BatchConversionPayments/index.js +21 -25
  9. package/dist/src/lib/artifacts/BatchConversionPayments/index.js.map +1 -1
  10. package/dist/src/lib/artifacts/BatchNoConversionPayments/0.1.0.json +290 -76
  11. package/dist/src/types/BatchConversionPayments.d.ts +565 -317
  12. package/dist/src/types/BatchNoConversionPayments.d.ts +474 -147
  13. package/dist/src/types/factories/BatchConversionPayments__factory.d.ts +18 -4
  14. package/dist/src/types/factories/BatchConversionPayments__factory.d.ts.map +1 -1
  15. package/dist/src/types/factories/BatchConversionPayments__factory.js +329 -146
  16. package/dist/src/types/factories/BatchConversionPayments__factory.js.map +1 -1
  17. package/dist/src/types/factories/BatchNoConversionPayments__factory.d.ts +15 -12
  18. package/dist/src/types/factories/BatchNoConversionPayments__factory.d.ts.map +1 -1
  19. package/dist/src/types/factories/BatchNoConversionPayments__factory.js +288 -74
  20. package/dist/src/types/factories/BatchNoConversionPayments__factory.js.map +1 -1
  21. package/dist/tsconfig.build.tsbuildinfo +1 -1
  22. package/package.json +5 -5
  23. package/types/BatchConversionPayments.d.ts +565 -317
  24. package/types/BatchNoConversionPayments.d.ts +474 -147
  25. package/types/factories/BatchConversionPayments__factory.d.ts +18 -4
  26. package/types/factories/BatchConversionPayments__factory.d.ts.map +1 -1
  27. package/types/factories/BatchConversionPayments__factory.js +329 -146
  28. package/types/factories/BatchConversionPayments__factory.js.map +1 -1
  29. package/types/factories/BatchNoConversionPayments__factory.d.ts +15 -12
  30. package/types/factories/BatchNoConversionPayments__factory.d.ts.map +1 -1
  31. package/types/factories/BatchNoConversionPayments__factory.js +288 -74
  32. package/types/factories/BatchNoConversionPayments__factory.js.map +1 -1
@@ -9,7 +9,7 @@
9
9
  },
10
10
  {
11
11
  "internalType": "address",
12
- "name": "_paymentEthProxy",
12
+ "name": "_paymentNativeProxy",
13
13
  "type": "address"
14
14
  },
15
15
  {
@@ -19,7 +19,12 @@
19
19
  },
20
20
  {
21
21
  "internalType": "address",
22
- "name": "_paymentEthConversionFeeProxy",
22
+ "name": "_paymentNativeConversionFeeProxy",
23
+ "type": "address"
24
+ },
25
+ {
26
+ "internalType": "address",
27
+ "name": "_chainlinkConversionPath",
23
28
  "type": "address"
24
29
  },
25
30
  {
@@ -52,55 +57,122 @@
52
57
  },
53
58
  {
54
59
  "inputs": [],
55
- "name": "batchConversionFee",
60
+ "name": "NativeAddress",
56
61
  "outputs": [
57
62
  {
58
- "internalType": "uint256",
63
+ "internalType": "address",
59
64
  "name": "",
60
- "type": "uint256"
65
+ "type": "address"
61
66
  }
62
67
  ],
63
68
  "stateMutability": "view",
64
69
  "type": "function"
65
70
  },
66
71
  {
67
- "inputs": [
72
+ "inputs": [],
73
+ "name": "USDAddress",
74
+ "outputs": [
68
75
  {
69
76
  "internalType": "address",
70
- "name": "_tokenAddress",
77
+ "name": "",
71
78
  "type": "address"
72
- },
73
- {
74
- "internalType": "address[]",
75
- "name": "_recipients",
76
- "type": "address[]"
77
- },
78
- {
79
- "internalType": "uint256[]",
80
- "name": "_amounts",
81
- "type": "uint256[]"
82
- },
79
+ }
80
+ ],
81
+ "stateMutability": "view",
82
+ "type": "function"
83
+ },
84
+ {
85
+ "inputs": [
83
86
  {
84
- "internalType": "bytes[]",
85
- "name": "_paymentReferences",
86
- "type": "bytes[]"
87
+ "components": [
88
+ {
89
+ "internalType": "address",
90
+ "name": "recipient",
91
+ "type": "address"
92
+ },
93
+ {
94
+ "internalType": "uint256",
95
+ "name": "requestAmount",
96
+ "type": "uint256"
97
+ },
98
+ {
99
+ "internalType": "address[]",
100
+ "name": "path",
101
+ "type": "address[]"
102
+ },
103
+ {
104
+ "internalType": "bytes",
105
+ "name": "paymentReference",
106
+ "type": "bytes"
107
+ },
108
+ {
109
+ "internalType": "uint256",
110
+ "name": "feeAmount",
111
+ "type": "uint256"
112
+ },
113
+ {
114
+ "internalType": "uint256",
115
+ "name": "maxToSpend",
116
+ "type": "uint256"
117
+ },
118
+ {
119
+ "internalType": "uint256",
120
+ "name": "maxRateTimespan",
121
+ "type": "uint256"
122
+ }
123
+ ],
124
+ "internalType": "struct BatchNoConversionPayments.RequestDetail[]",
125
+ "name": "requestDetails",
126
+ "type": "tuple[]"
87
127
  },
88
128
  {
89
- "internalType": "uint256[]",
90
- "name": "_feeAmounts",
91
- "type": "uint256[]"
129
+ "internalType": "address[][]",
130
+ "name": "pathsToUSD",
131
+ "type": "address[][]"
92
132
  },
93
133
  {
94
134
  "internalType": "address",
95
- "name": "_feeAddress",
135
+ "name": "feeAddress",
96
136
  "type": "address"
97
137
  }
98
138
  ],
99
139
  "name": "batchERC20Payments",
100
- "outputs": [],
140
+ "outputs": [
141
+ {
142
+ "internalType": "uint256",
143
+ "name": "",
144
+ "type": "uint256"
145
+ }
146
+ ],
101
147
  "stateMutability": "nonpayable",
102
148
  "type": "function"
103
149
  },
150
+ {
151
+ "inputs": [],
152
+ "name": "batchFee",
153
+ "outputs": [
154
+ {
155
+ "internalType": "uint16",
156
+ "name": "",
157
+ "type": "uint16"
158
+ }
159
+ ],
160
+ "stateMutability": "view",
161
+ "type": "function"
162
+ },
163
+ {
164
+ "inputs": [],
165
+ "name": "batchFeeAmountUSDLimit",
166
+ "outputs": [
167
+ {
168
+ "internalType": "uint64",
169
+ "name": "",
170
+ "type": "uint64"
171
+ }
172
+ ],
173
+ "stateMutability": "view",
174
+ "type": "function"
175
+ },
104
176
  {
105
177
  "inputs": [
106
178
  {
@@ -141,57 +213,88 @@
141
213
  "type": "uint256"
142
214
  }
143
215
  ],
144
- "internalType": "struct BatchConversionPayments.ConversionDetail[]",
145
- "name": "conversionDetails",
216
+ "internalType": "struct BatchNoConversionPayments.RequestDetail[]",
217
+ "name": "requestDetails",
146
218
  "type": "tuple[]"
147
219
  },
148
220
  {
149
- "internalType": "address payable",
150
- "name": "_feeAddress",
221
+ "internalType": "address[][]",
222
+ "name": "pathsToUSD",
223
+ "type": "address[][]"
224
+ },
225
+ {
226
+ "internalType": "address",
227
+ "name": "feeAddress",
151
228
  "type": "address"
152
229
  }
153
230
  ],
154
- "name": "batchEthConversionPayments",
155
- "outputs": [],
156
- "stateMutability": "payable",
231
+ "name": "batchMultiERC20ConversionPayments",
232
+ "outputs": [
233
+ {
234
+ "internalType": "uint256",
235
+ "name": "",
236
+ "type": "uint256"
237
+ }
238
+ ],
239
+ "stateMutability": "nonpayable",
157
240
  "type": "function"
158
241
  },
159
242
  {
160
243
  "inputs": [
161
244
  {
162
- "internalType": "address[]",
163
- "name": "_recipients",
164
- "type": "address[]"
165
- },
166
- {
167
- "internalType": "uint256[]",
168
- "name": "_amounts",
169
- "type": "uint256[]"
170
- },
171
- {
172
- "internalType": "bytes[]",
173
- "name": "_paymentReferences",
174
- "type": "bytes[]"
245
+ "components": [
246
+ {
247
+ "internalType": "address",
248
+ "name": "recipient",
249
+ "type": "address"
250
+ },
251
+ {
252
+ "internalType": "uint256",
253
+ "name": "requestAmount",
254
+ "type": "uint256"
255
+ },
256
+ {
257
+ "internalType": "address[]",
258
+ "name": "path",
259
+ "type": "address[]"
260
+ },
261
+ {
262
+ "internalType": "bytes",
263
+ "name": "paymentReference",
264
+ "type": "bytes"
265
+ },
266
+ {
267
+ "internalType": "uint256",
268
+ "name": "feeAmount",
269
+ "type": "uint256"
270
+ },
271
+ {
272
+ "internalType": "uint256",
273
+ "name": "maxToSpend",
274
+ "type": "uint256"
275
+ },
276
+ {
277
+ "internalType": "uint256",
278
+ "name": "maxRateTimespan",
279
+ "type": "uint256"
280
+ }
281
+ ],
282
+ "internalType": "struct BatchNoConversionPayments.RequestDetail[]",
283
+ "name": "requestDetails",
284
+ "type": "tuple[]"
175
285
  },
176
286
  {
177
- "internalType": "uint256[]",
178
- "name": "_feeAmounts",
179
- "type": "uint256[]"
287
+ "internalType": "address[][]",
288
+ "name": "pathsToUSD",
289
+ "type": "address[][]"
180
290
  },
181
291
  {
182
- "internalType": "address payable",
183
- "name": "_feeAddress",
292
+ "internalType": "address",
293
+ "name": "feeAddress",
184
294
  "type": "address"
185
295
  }
186
296
  ],
187
- "name": "batchEthPayments",
188
- "outputs": [],
189
- "stateMutability": "payable",
190
- "type": "function"
191
- },
192
- {
193
- "inputs": [],
194
- "name": "batchFee",
297
+ "name": "batchMultiERC20Payments",
195
298
  "outputs": [
196
299
  {
197
300
  "internalType": "uint256",
@@ -199,7 +302,7 @@
199
302
  "type": "uint256"
200
303
  }
201
304
  ],
202
- "stateMutability": "view",
305
+ "stateMutability": "nonpayable",
203
306
  "type": "function"
204
307
  },
205
308
  {
@@ -242,57 +345,96 @@
242
345
  "type": "uint256"
243
346
  }
244
347
  ],
245
- "internalType": "struct BatchConversionPayments.ConversionDetail[]",
246
- "name": "conversionDetails",
348
+ "internalType": "struct BatchNoConversionPayments.RequestDetail[]",
349
+ "name": "requestDetails",
247
350
  "type": "tuple[]"
248
351
  },
249
352
  {
250
- "internalType": "address",
251
- "name": "_feeAddress",
353
+ "internalType": "bool",
354
+ "name": "skipFeeUSDLimit",
355
+ "type": "bool"
356
+ },
357
+ {
358
+ "internalType": "address payable",
359
+ "name": "feeAddress",
252
360
  "type": "address"
253
361
  }
254
362
  ],
255
- "name": "batchMultiERC20ConversionPayments",
256
- "outputs": [],
257
- "stateMutability": "nonpayable",
363
+ "name": "batchNativeConversionPayments",
364
+ "outputs": [
365
+ {
366
+ "internalType": "uint256",
367
+ "name": "",
368
+ "type": "uint256"
369
+ }
370
+ ],
371
+ "stateMutability": "payable",
258
372
  "type": "function"
259
373
  },
260
374
  {
261
375
  "inputs": [
262
376
  {
263
- "internalType": "address[]",
264
- "name": "_tokenAddresses",
265
- "type": "address[]"
266
- },
267
- {
268
- "internalType": "address[]",
269
- "name": "_recipients",
270
- "type": "address[]"
271
- },
272
- {
273
- "internalType": "uint256[]",
274
- "name": "_amounts",
275
- "type": "uint256[]"
276
- },
277
- {
278
- "internalType": "bytes[]",
279
- "name": "_paymentReferences",
280
- "type": "bytes[]"
377
+ "components": [
378
+ {
379
+ "internalType": "address",
380
+ "name": "recipient",
381
+ "type": "address"
382
+ },
383
+ {
384
+ "internalType": "uint256",
385
+ "name": "requestAmount",
386
+ "type": "uint256"
387
+ },
388
+ {
389
+ "internalType": "address[]",
390
+ "name": "path",
391
+ "type": "address[]"
392
+ },
393
+ {
394
+ "internalType": "bytes",
395
+ "name": "paymentReference",
396
+ "type": "bytes"
397
+ },
398
+ {
399
+ "internalType": "uint256",
400
+ "name": "feeAmount",
401
+ "type": "uint256"
402
+ },
403
+ {
404
+ "internalType": "uint256",
405
+ "name": "maxToSpend",
406
+ "type": "uint256"
407
+ },
408
+ {
409
+ "internalType": "uint256",
410
+ "name": "maxRateTimespan",
411
+ "type": "uint256"
412
+ }
413
+ ],
414
+ "internalType": "struct BatchNoConversionPayments.RequestDetail[]",
415
+ "name": "requestDetails",
416
+ "type": "tuple[]"
281
417
  },
282
418
  {
283
- "internalType": "uint256[]",
284
- "name": "_feeAmounts",
285
- "type": "uint256[]"
419
+ "internalType": "bool",
420
+ "name": "skipFeeUSDLimit",
421
+ "type": "bool"
286
422
  },
287
423
  {
288
- "internalType": "address",
289
- "name": "_feeAddress",
424
+ "internalType": "address payable",
425
+ "name": "feeAddress",
290
426
  "type": "address"
291
427
  }
292
428
  ],
293
- "name": "batchMultiERC20Payments",
294
- "outputs": [],
295
- "stateMutability": "nonpayable",
429
+ "name": "batchNativePayments",
430
+ "outputs": [
431
+ {
432
+ "internalType": "uint256",
433
+ "name": "",
434
+ "type": "uint256"
435
+ }
436
+ ],
437
+ "stateMutability": "payable",
296
438
  "type": "function"
297
439
  },
298
440
  {
@@ -342,58 +484,44 @@
342
484
  "type": "uint256"
343
485
  }
344
486
  ],
345
- "internalType": "struct BatchConversionPayments.ConversionDetail[]",
346
- "name": "conversionDetails",
487
+ "internalType": "struct BatchNoConversionPayments.RequestDetail[]",
488
+ "name": "requestDetails",
347
489
  "type": "tuple[]"
348
- },
349
- {
350
- "components": [
351
- {
352
- "internalType": "address[]",
353
- "name": "tokenAddresses",
354
- "type": "address[]"
355
- },
356
- {
357
- "internalType": "address[]",
358
- "name": "recipients",
359
- "type": "address[]"
360
- },
361
- {
362
- "internalType": "uint256[]",
363
- "name": "amounts",
364
- "type": "uint256[]"
365
- },
366
- {
367
- "internalType": "bytes[]",
368
- "name": "paymentReferences",
369
- "type": "bytes[]"
370
- },
371
- {
372
- "internalType": "uint256[]",
373
- "name": "feeAmounts",
374
- "type": "uint256[]"
375
- }
376
- ],
377
- "internalType": "struct BatchConversionPayments.CryptoDetails",
378
- "name": "cryptoDetails",
379
- "type": "tuple"
380
490
  }
381
491
  ],
382
492
  "internalType": "struct BatchConversionPayments.MetaDetail[]",
383
493
  "name": "metaDetails",
384
494
  "type": "tuple[]"
385
495
  },
496
+ {
497
+ "internalType": "address[][]",
498
+ "name": "pathsToUSD",
499
+ "type": "address[][]"
500
+ },
386
501
  {
387
502
  "internalType": "address",
388
- "name": "_feeAddress",
503
+ "name": "feeAddress",
389
504
  "type": "address"
390
505
  }
391
506
  ],
392
- "name": "batchRouter",
507
+ "name": "batchPayments",
393
508
  "outputs": [],
394
509
  "stateMutability": "payable",
395
510
  "type": "function"
396
511
  },
512
+ {
513
+ "inputs": [],
514
+ "name": "chainlinkConversionPath",
515
+ "outputs": [
516
+ {
517
+ "internalType": "contract ChainlinkConversionPath",
518
+ "name": "",
519
+ "type": "address"
520
+ }
521
+ ],
522
+ "stateMutability": "view",
523
+ "type": "function"
524
+ },
397
525
  {
398
526
  "inputs": [],
399
527
  "name": "owner",
@@ -407,6 +535,30 @@
407
535
  "stateMutability": "view",
408
536
  "type": "function"
409
537
  },
538
+ {
539
+ "inputs": [
540
+ {
541
+ "internalType": "uint256",
542
+ "name": "",
543
+ "type": "uint256"
544
+ },
545
+ {
546
+ "internalType": "uint256",
547
+ "name": "",
548
+ "type": "uint256"
549
+ }
550
+ ],
551
+ "name": "pathsNativeToUSD",
552
+ "outputs": [
553
+ {
554
+ "internalType": "address",
555
+ "name": "",
556
+ "type": "address"
557
+ }
558
+ ],
559
+ "stateMutability": "view",
560
+ "type": "function"
561
+ },
410
562
  {
411
563
  "inputs": [],
412
564
  "name": "paymentErc20ConversionProxy",
@@ -435,7 +587,7 @@
435
587
  },
436
588
  {
437
589
  "inputs": [],
438
- "name": "paymentEthConversionProxy",
590
+ "name": "paymentNativeConversionProxy",
439
591
  "outputs": [
440
592
  {
441
593
  "internalType": "contract IEthConversionProxy",
@@ -448,7 +600,7 @@
448
600
  },
449
601
  {
450
602
  "inputs": [],
451
- "name": "paymentEthProxy",
603
+ "name": "paymentNativeProxy",
452
604
  "outputs": [
453
605
  {
454
606
  "internalType": "contract IEthereumFeeProxy",
@@ -469,12 +621,12 @@
469
621
  {
470
622
  "inputs": [
471
623
  {
472
- "internalType": "uint256",
473
- "name": "_batchConversionFee",
474
- "type": "uint256"
624
+ "internalType": "uint16",
625
+ "name": "_batchFee",
626
+ "type": "uint16"
475
627
  }
476
628
  ],
477
- "name": "setBatchConversionFee",
629
+ "name": "setBatchFee",
478
630
  "outputs": [],
479
631
  "stateMutability": "nonpayable",
480
632
  "type": "function"
@@ -482,12 +634,43 @@
482
634
  {
483
635
  "inputs": [
484
636
  {
485
- "internalType": "uint256",
486
- "name": "_batchFee",
487
- "type": "uint256"
637
+ "internalType": "uint64",
638
+ "name": "_batchFeeAmountUSDLimit",
639
+ "type": "uint64"
488
640
  }
489
641
  ],
490
- "name": "setBatchFee",
642
+ "name": "setBatchFeeAmountUSDLimit",
643
+ "outputs": [],
644
+ "stateMutability": "nonpayable",
645
+ "type": "function"
646
+ },
647
+ {
648
+ "inputs": [
649
+ {
650
+ "internalType": "address",
651
+ "name": "_chainlinkConversionPath",
652
+ "type": "address"
653
+ }
654
+ ],
655
+ "name": "setChainlinkConversionPath",
656
+ "outputs": [],
657
+ "stateMutability": "nonpayable",
658
+ "type": "function"
659
+ },
660
+ {
661
+ "inputs": [
662
+ {
663
+ "internalType": "address",
664
+ "name": "_NativeAddress",
665
+ "type": "address"
666
+ },
667
+ {
668
+ "internalType": "address",
669
+ "name": "_USDAddress",
670
+ "type": "address"
671
+ }
672
+ ],
673
+ "name": "setNativeAndUSDAddress",
491
674
  "outputs": [],
492
675
  "stateMutability": "nonpayable",
493
676
  "type": "function"
@@ -522,11 +705,11 @@
522
705
  "inputs": [
523
706
  {
524
707
  "internalType": "address",
525
- "name": "_paymentEthConversionProxy",
708
+ "name": "_paymentNativeConversionProxy",
526
709
  "type": "address"
527
710
  }
528
711
  ],
529
- "name": "setPaymentEthConversionProxy",
712
+ "name": "setPaymentNativeConversionProxy",
530
713
  "outputs": [],
531
714
  "stateMutability": "nonpayable",
532
715
  "type": "function"
@@ -535,11 +718,11 @@
535
718
  "inputs": [
536
719
  {
537
720
  "internalType": "address",
538
- "name": "_paymentEthProxy",
721
+ "name": "_paymentNativeProxy",
539
722
  "type": "address"
540
723
  }
541
724
  ],
542
- "name": "setPaymentEthProxy",
725
+ "name": "setPaymentNativeProxy",
543
726
  "outputs": [],
544
727
  "stateMutability": "nonpayable",
545
728
  "type": "function"
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/artifacts/BatchConversionPayments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI1D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEtF,eAAO,MAAM,+BAA+B,2CA2D3C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/artifacts/BatchConversionPayments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI1D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEtF,eAAO,MAAM,+BAA+B,2CAuD3C,CAAC"}