@requestnetwork/smart-contracts 0.28.1-next.1765 → 0.28.1-next.1768

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 (77) hide show
  1. package/dist/hardhat.config.d.ts.map +1 -1
  2. package/dist/hardhat.config.js +7 -1
  3. package/dist/hardhat.config.js.map +1 -1
  4. package/dist/scripts/test-deploy-all.d.ts.map +1 -1
  5. package/dist/scripts/test-deploy-all.js +2 -0
  6. package/dist/scripts/test-deploy-all.js.map +1 -1
  7. package/dist/scripts/test-deploy-batch-conversion-deployment.d.ts +6 -0
  8. package/dist/scripts/test-deploy-batch-conversion-deployment.d.ts.map +1 -0
  9. package/dist/scripts/test-deploy-batch-conversion-deployment.js +66 -0
  10. package/dist/scripts/test-deploy-batch-conversion-deployment.js.map +1 -0
  11. package/dist/scripts/test-deploy-batch-erc-eth-deployment.d.ts.map +1 -1
  12. package/dist/scripts/test-deploy-batch-erc-eth-deployment.js +2 -0
  13. package/dist/scripts/test-deploy-batch-erc-eth-deployment.js.map +1 -1
  14. package/dist/scripts/test-deploy_chainlink_contract.d.ts +6 -0
  15. package/dist/scripts/test-deploy_chainlink_contract.d.ts.map +1 -1
  16. package/dist/scripts/test-deploy_chainlink_contract.js +11 -4
  17. package/dist/scripts/test-deploy_chainlink_contract.js.map +1 -1
  18. package/dist/scripts/utils.d.ts +9 -0
  19. package/dist/scripts/utils.d.ts.map +1 -1
  20. package/dist/scripts/utils.js +17 -1
  21. package/dist/scripts/utils.js.map +1 -1
  22. package/dist/src/lib/artifacts/BatchConversionPayments/0.1.0.json +565 -0
  23. package/dist/src/lib/artifacts/BatchConversionPayments/index.d.ts +4 -0
  24. package/dist/src/lib/artifacts/BatchConversionPayments/index.d.ts.map +1 -0
  25. package/dist/src/lib/artifacts/BatchConversionPayments/index.js +17 -0
  26. package/dist/src/lib/artifacts/BatchConversionPayments/index.js.map +1 -0
  27. package/dist/src/lib/artifacts/BatchNoConversionPayments/0.1.0.json +268 -0
  28. package/dist/src/lib/artifacts/BatchNoConversionPayments/index.d.ts +4 -0
  29. package/dist/src/lib/artifacts/BatchNoConversionPayments/index.d.ts.map +1 -0
  30. package/dist/src/lib/artifacts/BatchNoConversionPayments/index.js +17 -0
  31. package/dist/src/lib/artifacts/BatchNoConversionPayments/index.js.map +1 -0
  32. package/dist/src/lib/artifacts/index.d.ts +2 -0
  33. package/dist/src/lib/artifacts/index.d.ts.map +1 -1
  34. package/dist/src/lib/artifacts/index.js +2 -0
  35. package/dist/src/lib/artifacts/index.js.map +1 -1
  36. package/dist/src/types/BatchConversionPayments.d.ts +1004 -0
  37. package/dist/src/types/BatchNoConversionPayments.d.ts +509 -0
  38. package/dist/src/types/IEthConversionProxy.d.ts +199 -0
  39. package/dist/src/types/factories/BatchConversionPayments__factory.d.ts +91 -0
  40. package/dist/src/types/factories/BatchConversionPayments__factory.d.ts.map +1 -0
  41. package/dist/src/types/factories/BatchConversionPayments__factory.js +598 -0
  42. package/dist/src/types/factories/BatchConversionPayments__factory.js.map +1 -0
  43. package/dist/src/types/factories/BatchNoConversionPayments__factory.d.ts +71 -0
  44. package/dist/src/types/factories/BatchNoConversionPayments__factory.d.ts.map +1 -0
  45. package/dist/src/types/factories/BatchNoConversionPayments__factory.js +301 -0
  46. package/dist/src/types/factories/BatchNoConversionPayments__factory.js.map +1 -0
  47. package/dist/src/types/factories/IEthConversionProxy__factory.d.ts +32 -0
  48. package/dist/src/types/factories/IEthConversionProxy__factory.d.ts.map +1 -0
  49. package/dist/src/types/factories/IEthConversionProxy__factory.js +137 -0
  50. package/dist/src/types/factories/IEthConversionProxy__factory.js.map +1 -0
  51. package/dist/src/types/hardhat.d.ts +12 -0
  52. package/dist/src/types/index.d.ts +6 -0
  53. package/dist/src/types/index.d.ts.map +1 -1
  54. package/dist/src/types/index.js +8 -1
  55. package/dist/src/types/index.js.map +1 -1
  56. package/dist/tsconfig.build.tsbuildinfo +1 -1
  57. package/package.json +5 -5
  58. package/types/BatchConversionPayments.d.ts +1004 -0
  59. package/types/BatchNoConversionPayments.d.ts +509 -0
  60. package/types/IEthConversionProxy.d.ts +199 -0
  61. package/types/factories/BatchConversionPayments__factory.d.ts +91 -0
  62. package/types/factories/BatchConversionPayments__factory.d.ts.map +1 -0
  63. package/types/factories/BatchConversionPayments__factory.js +598 -0
  64. package/types/factories/BatchConversionPayments__factory.js.map +1 -0
  65. package/types/factories/BatchNoConversionPayments__factory.d.ts +71 -0
  66. package/types/factories/BatchNoConversionPayments__factory.d.ts.map +1 -0
  67. package/types/factories/BatchNoConversionPayments__factory.js +301 -0
  68. package/types/factories/BatchNoConversionPayments__factory.js.map +1 -0
  69. package/types/factories/IEthConversionProxy__factory.d.ts +32 -0
  70. package/types/factories/IEthConversionProxy__factory.d.ts.map +1 -0
  71. package/types/factories/IEthConversionProxy__factory.js +137 -0
  72. package/types/factories/IEthConversionProxy__factory.js.map +1 -0
  73. package/types/hardhat.d.ts +12 -0
  74. package/types/index.d.ts +6 -0
  75. package/types/index.d.ts.map +1 -1
  76. package/types/index.js +8 -1
  77. package/types/index.js.map +1 -1
@@ -0,0 +1,565 @@
1
+ {
2
+ "abi": [
3
+ {
4
+ "inputs": [
5
+ {
6
+ "internalType": "address",
7
+ "name": "_paymentErc20Proxy",
8
+ "type": "address"
9
+ },
10
+ {
11
+ "internalType": "address",
12
+ "name": "_paymentEthProxy",
13
+ "type": "address"
14
+ },
15
+ {
16
+ "internalType": "address",
17
+ "name": "_paymentErc20ConversionProxy",
18
+ "type": "address"
19
+ },
20
+ {
21
+ "internalType": "address",
22
+ "name": "_paymentEthConversionFeeProxy",
23
+ "type": "address"
24
+ },
25
+ {
26
+ "internalType": "address",
27
+ "name": "_owner",
28
+ "type": "address"
29
+ }
30
+ ],
31
+ "stateMutability": "nonpayable",
32
+ "type": "constructor"
33
+ },
34
+ {
35
+ "anonymous": false,
36
+ "inputs": [
37
+ {
38
+ "indexed": true,
39
+ "internalType": "address",
40
+ "name": "previousOwner",
41
+ "type": "address"
42
+ },
43
+ {
44
+ "indexed": true,
45
+ "internalType": "address",
46
+ "name": "newOwner",
47
+ "type": "address"
48
+ }
49
+ ],
50
+ "name": "OwnershipTransferred",
51
+ "type": "event"
52
+ },
53
+ {
54
+ "inputs": [],
55
+ "name": "batchConversionFee",
56
+ "outputs": [
57
+ {
58
+ "internalType": "uint256",
59
+ "name": "",
60
+ "type": "uint256"
61
+ }
62
+ ],
63
+ "stateMutability": "view",
64
+ "type": "function"
65
+ },
66
+ {
67
+ "inputs": [
68
+ {
69
+ "internalType": "address",
70
+ "name": "_tokenAddress",
71
+ "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
+ },
83
+ {
84
+ "internalType": "bytes[]",
85
+ "name": "_paymentReferences",
86
+ "type": "bytes[]"
87
+ },
88
+ {
89
+ "internalType": "uint256[]",
90
+ "name": "_feeAmounts",
91
+ "type": "uint256[]"
92
+ },
93
+ {
94
+ "internalType": "address",
95
+ "name": "_feeAddress",
96
+ "type": "address"
97
+ }
98
+ ],
99
+ "name": "batchERC20Payments",
100
+ "outputs": [],
101
+ "stateMutability": "nonpayable",
102
+ "type": "function"
103
+ },
104
+ {
105
+ "inputs": [
106
+ {
107
+ "components": [
108
+ {
109
+ "internalType": "address",
110
+ "name": "recipient",
111
+ "type": "address"
112
+ },
113
+ {
114
+ "internalType": "uint256",
115
+ "name": "requestAmount",
116
+ "type": "uint256"
117
+ },
118
+ {
119
+ "internalType": "address[]",
120
+ "name": "path",
121
+ "type": "address[]"
122
+ },
123
+ {
124
+ "internalType": "bytes",
125
+ "name": "paymentReference",
126
+ "type": "bytes"
127
+ },
128
+ {
129
+ "internalType": "uint256",
130
+ "name": "feeAmount",
131
+ "type": "uint256"
132
+ },
133
+ {
134
+ "internalType": "uint256",
135
+ "name": "maxToSpend",
136
+ "type": "uint256"
137
+ },
138
+ {
139
+ "internalType": "uint256",
140
+ "name": "maxRateTimespan",
141
+ "type": "uint256"
142
+ }
143
+ ],
144
+ "internalType": "struct BatchConversionPayments.ConversionDetail[]",
145
+ "name": "conversionDetails",
146
+ "type": "tuple[]"
147
+ },
148
+ {
149
+ "internalType": "address payable",
150
+ "name": "_feeAddress",
151
+ "type": "address"
152
+ }
153
+ ],
154
+ "name": "batchEthConversionPayments",
155
+ "outputs": [],
156
+ "stateMutability": "payable",
157
+ "type": "function"
158
+ },
159
+ {
160
+ "inputs": [
161
+ {
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[]"
175
+ },
176
+ {
177
+ "internalType": "uint256[]",
178
+ "name": "_feeAmounts",
179
+ "type": "uint256[]"
180
+ },
181
+ {
182
+ "internalType": "address payable",
183
+ "name": "_feeAddress",
184
+ "type": "address"
185
+ }
186
+ ],
187
+ "name": "batchEthPayments",
188
+ "outputs": [],
189
+ "stateMutability": "payable",
190
+ "type": "function"
191
+ },
192
+ {
193
+ "inputs": [],
194
+ "name": "batchFee",
195
+ "outputs": [
196
+ {
197
+ "internalType": "uint256",
198
+ "name": "",
199
+ "type": "uint256"
200
+ }
201
+ ],
202
+ "stateMutability": "view",
203
+ "type": "function"
204
+ },
205
+ {
206
+ "inputs": [
207
+ {
208
+ "components": [
209
+ {
210
+ "internalType": "address",
211
+ "name": "recipient",
212
+ "type": "address"
213
+ },
214
+ {
215
+ "internalType": "uint256",
216
+ "name": "requestAmount",
217
+ "type": "uint256"
218
+ },
219
+ {
220
+ "internalType": "address[]",
221
+ "name": "path",
222
+ "type": "address[]"
223
+ },
224
+ {
225
+ "internalType": "bytes",
226
+ "name": "paymentReference",
227
+ "type": "bytes"
228
+ },
229
+ {
230
+ "internalType": "uint256",
231
+ "name": "feeAmount",
232
+ "type": "uint256"
233
+ },
234
+ {
235
+ "internalType": "uint256",
236
+ "name": "maxToSpend",
237
+ "type": "uint256"
238
+ },
239
+ {
240
+ "internalType": "uint256",
241
+ "name": "maxRateTimespan",
242
+ "type": "uint256"
243
+ }
244
+ ],
245
+ "internalType": "struct BatchConversionPayments.ConversionDetail[]",
246
+ "name": "conversionDetails",
247
+ "type": "tuple[]"
248
+ },
249
+ {
250
+ "internalType": "address",
251
+ "name": "_feeAddress",
252
+ "type": "address"
253
+ }
254
+ ],
255
+ "name": "batchMultiERC20ConversionPayments",
256
+ "outputs": [],
257
+ "stateMutability": "nonpayable",
258
+ "type": "function"
259
+ },
260
+ {
261
+ "inputs": [
262
+ {
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[]"
281
+ },
282
+ {
283
+ "internalType": "uint256[]",
284
+ "name": "_feeAmounts",
285
+ "type": "uint256[]"
286
+ },
287
+ {
288
+ "internalType": "address",
289
+ "name": "_feeAddress",
290
+ "type": "address"
291
+ }
292
+ ],
293
+ "name": "batchMultiERC20Payments",
294
+ "outputs": [],
295
+ "stateMutability": "nonpayable",
296
+ "type": "function"
297
+ },
298
+ {
299
+ "inputs": [
300
+ {
301
+ "components": [
302
+ {
303
+ "internalType": "uint256",
304
+ "name": "paymentNetworkId",
305
+ "type": "uint256"
306
+ },
307
+ {
308
+ "components": [
309
+ {
310
+ "internalType": "address",
311
+ "name": "recipient",
312
+ "type": "address"
313
+ },
314
+ {
315
+ "internalType": "uint256",
316
+ "name": "requestAmount",
317
+ "type": "uint256"
318
+ },
319
+ {
320
+ "internalType": "address[]",
321
+ "name": "path",
322
+ "type": "address[]"
323
+ },
324
+ {
325
+ "internalType": "bytes",
326
+ "name": "paymentReference",
327
+ "type": "bytes"
328
+ },
329
+ {
330
+ "internalType": "uint256",
331
+ "name": "feeAmount",
332
+ "type": "uint256"
333
+ },
334
+ {
335
+ "internalType": "uint256",
336
+ "name": "maxToSpend",
337
+ "type": "uint256"
338
+ },
339
+ {
340
+ "internalType": "uint256",
341
+ "name": "maxRateTimespan",
342
+ "type": "uint256"
343
+ }
344
+ ],
345
+ "internalType": "struct BatchConversionPayments.ConversionDetail[]",
346
+ "name": "conversionDetails",
347
+ "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
+ }
381
+ ],
382
+ "internalType": "struct BatchConversionPayments.MetaDetail[]",
383
+ "name": "metaDetails",
384
+ "type": "tuple[]"
385
+ },
386
+ {
387
+ "internalType": "address",
388
+ "name": "_feeAddress",
389
+ "type": "address"
390
+ }
391
+ ],
392
+ "name": "batchRouter",
393
+ "outputs": [],
394
+ "stateMutability": "payable",
395
+ "type": "function"
396
+ },
397
+ {
398
+ "inputs": [],
399
+ "name": "owner",
400
+ "outputs": [
401
+ {
402
+ "internalType": "address",
403
+ "name": "",
404
+ "type": "address"
405
+ }
406
+ ],
407
+ "stateMutability": "view",
408
+ "type": "function"
409
+ },
410
+ {
411
+ "inputs": [],
412
+ "name": "paymentErc20ConversionProxy",
413
+ "outputs": [
414
+ {
415
+ "internalType": "contract IERC20ConversionProxy",
416
+ "name": "",
417
+ "type": "address"
418
+ }
419
+ ],
420
+ "stateMutability": "view",
421
+ "type": "function"
422
+ },
423
+ {
424
+ "inputs": [],
425
+ "name": "paymentErc20Proxy",
426
+ "outputs": [
427
+ {
428
+ "internalType": "contract IERC20FeeProxy",
429
+ "name": "",
430
+ "type": "address"
431
+ }
432
+ ],
433
+ "stateMutability": "view",
434
+ "type": "function"
435
+ },
436
+ {
437
+ "inputs": [],
438
+ "name": "paymentEthConversionProxy",
439
+ "outputs": [
440
+ {
441
+ "internalType": "contract IEthConversionProxy",
442
+ "name": "",
443
+ "type": "address"
444
+ }
445
+ ],
446
+ "stateMutability": "view",
447
+ "type": "function"
448
+ },
449
+ {
450
+ "inputs": [],
451
+ "name": "paymentEthProxy",
452
+ "outputs": [
453
+ {
454
+ "internalType": "contract IEthereumFeeProxy",
455
+ "name": "",
456
+ "type": "address"
457
+ }
458
+ ],
459
+ "stateMutability": "view",
460
+ "type": "function"
461
+ },
462
+ {
463
+ "inputs": [],
464
+ "name": "renounceOwnership",
465
+ "outputs": [],
466
+ "stateMutability": "nonpayable",
467
+ "type": "function"
468
+ },
469
+ {
470
+ "inputs": [
471
+ {
472
+ "internalType": "uint256",
473
+ "name": "_batchConversionFee",
474
+ "type": "uint256"
475
+ }
476
+ ],
477
+ "name": "setBatchConversionFee",
478
+ "outputs": [],
479
+ "stateMutability": "nonpayable",
480
+ "type": "function"
481
+ },
482
+ {
483
+ "inputs": [
484
+ {
485
+ "internalType": "uint256",
486
+ "name": "_batchFee",
487
+ "type": "uint256"
488
+ }
489
+ ],
490
+ "name": "setBatchFee",
491
+ "outputs": [],
492
+ "stateMutability": "nonpayable",
493
+ "type": "function"
494
+ },
495
+ {
496
+ "inputs": [
497
+ {
498
+ "internalType": "address",
499
+ "name": "_paymentErc20ConversionProxy",
500
+ "type": "address"
501
+ }
502
+ ],
503
+ "name": "setPaymentErc20ConversionProxy",
504
+ "outputs": [],
505
+ "stateMutability": "nonpayable",
506
+ "type": "function"
507
+ },
508
+ {
509
+ "inputs": [
510
+ {
511
+ "internalType": "address",
512
+ "name": "_paymentErc20Proxy",
513
+ "type": "address"
514
+ }
515
+ ],
516
+ "name": "setPaymentErc20Proxy",
517
+ "outputs": [],
518
+ "stateMutability": "nonpayable",
519
+ "type": "function"
520
+ },
521
+ {
522
+ "inputs": [
523
+ {
524
+ "internalType": "address",
525
+ "name": "_paymentEthConversionProxy",
526
+ "type": "address"
527
+ }
528
+ ],
529
+ "name": "setPaymentEthConversionProxy",
530
+ "outputs": [],
531
+ "stateMutability": "nonpayable",
532
+ "type": "function"
533
+ },
534
+ {
535
+ "inputs": [
536
+ {
537
+ "internalType": "address",
538
+ "name": "_paymentEthProxy",
539
+ "type": "address"
540
+ }
541
+ ],
542
+ "name": "setPaymentEthProxy",
543
+ "outputs": [],
544
+ "stateMutability": "nonpayable",
545
+ "type": "function"
546
+ },
547
+ {
548
+ "inputs": [
549
+ {
550
+ "internalType": "address",
551
+ "name": "newOwner",
552
+ "type": "address"
553
+ }
554
+ ],
555
+ "name": "transferOwnership",
556
+ "outputs": [],
557
+ "stateMutability": "nonpayable",
558
+ "type": "function"
559
+ },
560
+ {
561
+ "stateMutability": "payable",
562
+ "type": "receive"
563
+ }
564
+ ]
565
+ }
@@ -0,0 +1,4 @@
1
+ import { ContractArtifact } from '../../ContractArtifact';
2
+ import type { BatchConversionPayments } from '../../../types/BatchConversionPayments';
3
+ export declare const batchConversionPaymentsArtifact: ContractArtifact<BatchConversionPayments>;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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,2CAa3C,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.batchConversionPaymentsArtifact = void 0;
4
+ const ContractArtifact_1 = require("../../ContractArtifact");
5
+ const _0_1_0_json_1 = require("./0.1.0.json");
6
+ exports.batchConversionPaymentsArtifact = new ContractArtifact_1.ContractArtifact({
7
+ '0.1.0': {
8
+ abi: _0_1_0_json_1.abi,
9
+ deployment: {
10
+ private: {
11
+ address: '0x2e335F247E91caa168c64b63104C4475b2af3942',
12
+ creationBlockNumber: 0,
13
+ },
14
+ },
15
+ },
16
+ }, '0.1.0');
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/artifacts/BatchConversionPayments/index.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAE1D,8CAAgD;AAInC,QAAA,+BAA+B,GAAG,IAAI,mCAAgB,CACjE;IACE,OAAO,EAAE;QACP,GAAG,EAAE,iBAAS;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,OAAO,EAAE,4CAA4C;gBACrD,mBAAmB,EAAE,CAAC;aACvB;SACF;KACF;CACF,EACD,OAAO,CACR,CAAC"}