@requestnetwork/smart-contracts 0.28.1-next.1722 → 0.28.1-next.1726

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.
@@ -4,12 +4,12 @@
4
4
  "inputs": [
5
5
  {
6
6
  "internalType": "address",
7
- "name": "_erc20FeeProxy",
7
+ "name": "_paymentErc20FeeProxy",
8
8
  "type": "address"
9
9
  },
10
10
  {
11
11
  "internalType": "address",
12
- "name": "_erc20FeeProxy",
12
+ "name": "_paymentEthFeeProxy",
13
13
  "type": "address"
14
14
  },
15
15
  {
@@ -25,51 +25,40 @@
25
25
  "anonymous": false,
26
26
  "inputs": [
27
27
  {
28
- "indexed": false,
29
- "internalType": "address",
30
- "name": "tokenAddress",
31
- "type": "address"
32
- },
33
- {
34
- "indexed": false,
28
+ "indexed": true,
35
29
  "internalType": "address",
36
- "name": "to",
30
+ "name": "previousOwner",
37
31
  "type": "address"
38
32
  },
39
- {
40
- "indexed": false,
41
- "internalType": "uint256",
42
- "name": "amount",
43
- "type": "uint256"
44
- },
45
33
  {
46
34
  "indexed": true,
47
- "internalType": "bytes",
48
- "name": "paymentReference",
49
- "type": "bytes"
50
- },
51
- {
52
- "indexed": false,
53
- "internalType": "uint256",
54
- "name": "feeAmount",
55
- "type": "uint256"
56
- },
57
- {
58
- "indexed": false,
59
35
  "internalType": "address",
60
- "name": "feeAddress",
36
+ "name": "newOwner",
61
37
  "type": "address"
62
38
  }
63
39
  ],
64
- "name": "TransferWithReferenceAndFee",
40
+ "name": "OwnershipTransferred",
65
41
  "type": "event"
66
42
  },
67
43
  {
68
44
  "inputs": [
69
45
  {
70
46
  "internalType": "address",
71
- "name": "_tokenAddress",
47
+ "name": "_erc20Address",
72
48
  "type": "address"
49
+ }
50
+ ],
51
+ "name": "approvePaymentProxyToSpend",
52
+ "outputs": [],
53
+ "stateMutability": "nonpayable",
54
+ "type": "function"
55
+ },
56
+ {
57
+ "inputs": [
58
+ {
59
+ "internalType": "address[]",
60
+ "name": "_tokenAddresses",
61
+ "type": "address[]"
73
62
  },
74
63
  {
75
64
  "internalType": "address[]",
@@ -78,7 +67,7 @@
78
67
  },
79
68
  {
80
69
  "internalType": "uint256[]",
81
- "name": "_values",
70
+ "name": "_amounts",
82
71
  "type": "uint256[]"
83
72
  },
84
73
  {
@@ -88,7 +77,7 @@
88
77
  },
89
78
  {
90
79
  "internalType": "uint256[]",
91
- "name": "_feeAmount",
80
+ "name": "_feeAmounts",
92
81
  "type": "uint256[]"
93
82
  },
94
83
  {
@@ -97,13 +86,18 @@
97
86
  "type": "address"
98
87
  }
99
88
  ],
100
- "name": "batchERC20PaymentsWithReference",
89
+ "name": "batchERC20PaymentsMultiTokensWithReference",
101
90
  "outputs": [],
102
91
  "stateMutability": "nonpayable",
103
92
  "type": "function"
104
93
  },
105
94
  {
106
95
  "inputs": [
96
+ {
97
+ "internalType": "address",
98
+ "name": "_tokenAddress",
99
+ "type": "address"
100
+ },
107
101
  {
108
102
  "internalType": "address[]",
109
103
  "name": "_recipients",
@@ -111,7 +105,7 @@
111
105
  },
112
106
  {
113
107
  "internalType": "uint256[]",
114
- "name": "_values",
108
+ "name": "_amounts",
115
109
  "type": "uint256[]"
116
110
  },
117
111
  {
@@ -121,40 +115,22 @@
121
115
  },
122
116
  {
123
117
  "internalType": "uint256[]",
124
- "name": "_feeAmount",
118
+ "name": "_feeAmounts",
125
119
  "type": "uint256[]"
126
120
  },
127
121
  {
128
- "internalType": "address payable",
122
+ "internalType": "address",
129
123
  "name": "_feeAddress",
130
124
  "type": "address"
131
125
  }
132
126
  ],
133
- "name": "batchEthPaymentsWithReference",
134
- "outputs": [],
135
- "stateMutability": "payable",
136
- "type": "function"
137
- },
138
- {
139
- "inputs": [
140
- {
141
- "internalType": "uint256",
142
- "name": "_feeBatch",
143
- "type": "uint256"
144
- }
145
- ],
146
- "name": "setBatchFee",
127
+ "name": "batchERC20PaymentsWithReference",
147
128
  "outputs": [],
148
129
  "stateMutability": "nonpayable",
149
130
  "type": "function"
150
131
  },
151
132
  {
152
133
  "inputs": [
153
- {
154
- "internalType": "address[]",
155
- "name": "_tokenAddresses",
156
- "type": "address[]"
157
- },
158
134
  {
159
135
  "internalType": "address[]",
160
136
  "name": "_recipients",
@@ -162,7 +138,7 @@
162
138
  },
163
139
  {
164
140
  "internalType": "uint256[]",
165
- "name": "_values",
141
+ "name": "_amounts",
166
142
  "type": "uint256[]"
167
143
  },
168
144
  {
@@ -172,28 +148,28 @@
172
148
  },
173
149
  {
174
150
  "internalType": "uint256[]",
175
- "name": "_feeAmount",
151
+ "name": "_feeAmounts",
176
152
  "type": "uint256[]"
177
153
  },
178
154
  {
179
- "internalType": "address",
155
+ "internalType": "address payable",
180
156
  "name": "_feeAddress",
181
157
  "type": "address"
182
158
  }
183
159
  ],
184
- "name": "batchERC20PaymentsMultiTokensWithReference",
160
+ "name": "batchEthPaymentsWithReference",
185
161
  "outputs": [],
186
- "stateMutability": "nonpayable",
162
+ "stateMutability": "payable",
187
163
  "type": "function"
188
164
  },
189
165
  {
190
166
  "inputs": [],
191
- "name": "erc20FeeProxy",
167
+ "name": "batchFee",
192
168
  "outputs": [
193
169
  {
194
- "internalType": "contract IERC20FeeProxy",
170
+ "internalType": "uint256",
195
171
  "name": "",
196
- "type": "address"
172
+ "type": "uint256"
197
173
  }
198
174
  ],
199
175
  "stateMutability": "view",
@@ -201,28 +177,18 @@
201
177
  },
202
178
  {
203
179
  "inputs": [],
204
- "name": "recieve",
205
- "outputs": [],
206
- "stateMutability": "payable",
207
- "type": "function"
208
- },
209
- {
210
- "constant": true,
211
- "inputs": [],
212
- "name": "paymentEthereumFeeProxy",
180
+ "name": "owner",
213
181
  "outputs": [
214
182
  {
215
- "internalType": "contract IEthereumFeeProxy",
183
+ "internalType": "address",
216
184
  "name": "",
217
185
  "type": "address"
218
186
  }
219
187
  ],
220
- "payable": false,
221
188
  "stateMutability": "view",
222
189
  "type": "function"
223
190
  },
224
191
  {
225
- "constant": true,
226
192
  "inputs": [],
227
193
  "name": "paymentErc20FeeProxy",
228
194
  "outputs": [
@@ -232,12 +198,10 @@
232
198
  "type": "address"
233
199
  }
234
200
  ],
235
- "payable": false,
236
201
  "stateMutability": "view",
237
202
  "type": "function"
238
203
  },
239
204
  {
240
- "constant": true,
241
205
  "inputs": [],
242
206
  "name": "paymentEthFeeProxy",
243
207
  "outputs": [
@@ -247,23 +211,27 @@
247
211
  "type": "address"
248
212
  }
249
213
  ],
250
- "payable": false,
251
214
  "stateMutability": "view",
252
215
  "type": "function"
253
216
  },
254
217
  {
255
- "constant": true,
256
218
  "inputs": [],
257
- "name": "batchFee",
258
- "outputs": [
219
+ "name": "renounceOwnership",
220
+ "outputs": [],
221
+ "stateMutability": "nonpayable",
222
+ "type": "function"
223
+ },
224
+ {
225
+ "inputs": [
259
226
  {
260
227
  "internalType": "uint256",
261
- "name": "",
228
+ "name": "_batchFee",
262
229
  "type": "uint256"
263
230
  }
264
231
  ],
265
- "payable": false,
266
- "stateMutability": "view",
232
+ "name": "setBatchFee",
233
+ "outputs": [],
234
+ "stateMutability": "nonpayable",
267
235
  "type": "function"
268
236
  },
269
237
  {
@@ -291,6 +259,23 @@
291
259
  "outputs": [],
292
260
  "stateMutability": "nonpayable",
293
261
  "type": "function"
262
+ },
263
+ {
264
+ "inputs": [
265
+ {
266
+ "internalType": "address",
267
+ "name": "newOwner",
268
+ "type": "address"
269
+ }
270
+ ],
271
+ "name": "transferOwnership",
272
+ "outputs": [],
273
+ "stateMutability": "nonpayable",
274
+ "type": "function"
275
+ },
276
+ {
277
+ "stateMutability": "payable",
278
+ "type": "receive"
294
279
  }
295
280
  ]
296
281
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/artifacts/BatchPayments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAElE,eAAO,MAAM,qBAAqB,iCAiBjC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/artifacts/BatchPayments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAElE,eAAO,MAAM,qBAAqB,iCAqDjC,CAAC"}
@@ -15,6 +15,42 @@ exports.batchPaymentsArtifact = new ContractArtifact_1.ContractArtifact({
15
15
  address: '0xfeE3f8937Ca62DA486a4E067Ed11aA6Bc6B21b4B',
16
16
  creationBlockNumber: 10732960,
17
17
  },
18
+ mainnet: {
19
+ address: '0x0DD57FFe83a53bCbd657e234B16A3e74fEDb8fBA',
20
+ creationBlockNumber: 14884721,
21
+ },
22
+ matic: {
23
+ address: '0x0DD57FFe83a53bCbd657e234B16A3e74fEDb8fBA',
24
+ creationBlockNumber: 29028253,
25
+ },
26
+ celo: {
27
+ address: '0x0DD57FFe83a53bCbd657e234B16A3e74fEDb8fBA',
28
+ creationBlockNumber: 13301318,
29
+ },
30
+ fuse: {
31
+ address: '0x0DD57FFe83a53bCbd657e234B16A3e74fEDb8fBA',
32
+ creationBlockNumber: 17329966,
33
+ },
34
+ xdai: {
35
+ address: '0x0DD57FFe83a53bCbd657e234B16A3e74fEDb8fBA',
36
+ creationBlockNumber: 22438505,
37
+ },
38
+ // bsc: {
39
+ // address: '',
40
+ // creationBlockNumber: ,
41
+ // },
42
+ fantom: {
43
+ address: '0x0DD57FFe83a53bCbd657e234B16A3e74fEDb8fBA',
44
+ creationBlockNumber: 39541135,
45
+ },
46
+ 'arbitrum-one': {
47
+ address: '0x0DD57FFe83a53bCbd657e234B16A3e74fEDb8fBA',
48
+ creationBlockNumber: 13425347,
49
+ },
50
+ // avalanche: {
51
+ // address: '',
52
+ // creationBlockNumber: ,
53
+ // },
18
54
  },
19
55
  },
20
56
  }, '0.1.0');
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/artifacts/BatchPayments/index.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAE1D,8CAAgD;AAInC,QAAA,qBAAqB,GAAG,IAAI,mCAAgB,CACvD;IACE,OAAO,EAAE;QACP,GAAG,EAAE,iBAAS;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,OAAO,EAAE,4CAA4C;gBACrD,mBAAmB,EAAE,CAAC;aACvB;YACD,OAAO,EAAE;gBACP,OAAO,EAAE,4CAA4C;gBACrD,mBAAmB,EAAE,QAAQ;aAC9B;SACF;KACF;CACF,EACD,OAAO,CACR,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/artifacts/BatchPayments/index.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAE1D,8CAAgD;AAInC,QAAA,qBAAqB,GAAG,IAAI,mCAAgB,CACvD;IACE,OAAO,EAAE;QACP,GAAG,EAAE,iBAAS;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,OAAO,EAAE,4CAA4C;gBACrD,mBAAmB,EAAE,CAAC;aACvB;YACD,OAAO,EAAE;gBACP,OAAO,EAAE,4CAA4C;gBACrD,mBAAmB,EAAE,QAAQ;aAC9B;YACD,OAAO,EAAE;gBACP,OAAO,EAAE,4CAA4C;gBACrD,mBAAmB,EAAE,QAAQ;aAC9B;YACD,KAAK,EAAE;gBACL,OAAO,EAAE,4CAA4C;gBACrD,mBAAmB,EAAE,QAAQ;aAC9B;YACD,IAAI,EAAE;gBACJ,OAAO,EAAE,4CAA4C;gBACrD,mBAAmB,EAAE,QAAQ;aAC9B;YACD,IAAI,EAAE;gBACJ,OAAO,EAAE,4CAA4C;gBACrD,mBAAmB,EAAE,QAAQ;aAC9B;YACD,IAAI,EAAE;gBACJ,OAAO,EAAE,4CAA4C;gBACrD,mBAAmB,EAAE,QAAQ;aAC9B;YACD,SAAS;YACT,iBAAiB;YACjB,2BAA2B;YAC3B,KAAK;YACL,MAAM,EAAE;gBACN,OAAO,EAAE,4CAA4C;gBACrD,mBAAmB,EAAE,QAAQ;aAC9B;YACD,cAAc,EAAE;gBACd,OAAO,EAAE,4CAA4C;gBACrD,mBAAmB,EAAE,QAAQ;aAC9B;YACD,eAAe;YACf,iBAAiB;YACjB,2BAA2B;YAC3B,KAAK;SACN;KACF;CACF,EACD,OAAO,CACR,CAAC"}