@reyaxyz/common 0.189.0 → 0.190.0

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 (42) hide show
  1. package/README.md +1 -1
  2. package/dist/transactions/abis/CustomMulticall3.json +490 -0
  3. package/dist/transactions/buildMulticallTx.js +5 -5
  4. package/dist/transactions/buildMulticallTx.js.map +1 -1
  5. package/dist/transactions/contractAddresses.js +2 -2
  6. package/dist/transactions/contractAddresses.js.map +1 -1
  7. package/dist/transactions/executeTransaction.js +23 -11
  8. package/dist/transactions/executeTransaction.js.map +1 -1
  9. package/dist/transactions/index.js +2 -2
  10. package/dist/transactions/index.js.map +1 -1
  11. package/dist/types/transactions/buildMulticallTx.d.ts +1 -1
  12. package/dist/types/transactions/buildMulticallTx.d.ts.map +1 -1
  13. package/dist/types/transactions/executeTransaction.d.ts +5 -0
  14. package/dist/types/transactions/executeTransaction.d.ts.map +1 -1
  15. package/dist/types/transactions/index.d.ts +1 -1
  16. package/dist/types/transactions/index.d.ts.map +1 -1
  17. package/dist/types/types.d.ts +1 -0
  18. package/dist/types/types.d.ts.map +1 -1
  19. package/dist/types/utils/consts.d.ts +2 -2
  20. package/dist/types/utils/index.d.ts +1 -0
  21. package/dist/types/utils/index.d.ts.map +1 -1
  22. package/dist/types/utils/stringify.d.ts +2 -0
  23. package/dist/types/utils/stringify.d.ts.map +1 -0
  24. package/dist/types.js.map +1 -1
  25. package/dist/utils/consts.js +4 -4
  26. package/dist/utils/consts.js.map +1 -1
  27. package/dist/utils/index.js +1 -0
  28. package/dist/utils/index.js.map +1 -1
  29. package/dist/utils/stringify.js +13 -0
  30. package/dist/utils/stringify.js.map +1 -0
  31. package/package.json +2 -2
  32. package/src/transactions/abis/CustomMulticall3.json +490 -0
  33. package/src/transactions/buildMulticallTx.ts +4 -4
  34. package/src/transactions/contractAddresses.ts +2 -2
  35. package/src/transactions/executeTransaction.ts +23 -0
  36. package/src/transactions/index.ts +1 -1
  37. package/src/types.ts +1 -0
  38. package/src/utils/consts.ts +4 -4
  39. package/src/utils/index.ts +1 -0
  40. package/src/utils/stringify.ts +8 -0
  41. package/dist/transactions/abis/MulticallV2.json +0 -376
  42. package/src/transactions/abis/MulticallV2.json +0 -376
@@ -1,376 +0,0 @@
1
- {
2
- "abi": [
3
- {
4
- "inputs": [
5
- {
6
- "components": [
7
- {
8
- "internalType": "address",
9
- "name": "target",
10
- "type": "address"
11
- },
12
- {
13
- "internalType": "bytes",
14
- "name": "callData",
15
- "type": "bytes"
16
- }
17
- ],
18
- "internalType": "struct ArbMulticall2.Call[]",
19
- "name": "calls",
20
- "type": "tuple[]"
21
- }
22
- ],
23
- "name": "aggregate",
24
- "outputs": [
25
- {
26
- "internalType": "uint256",
27
- "name": "blockNumber",
28
- "type": "uint256"
29
- },
30
- {
31
- "internalType": "bytes[]",
32
- "name": "returnData",
33
- "type": "bytes[]"
34
- }
35
- ],
36
- "stateMutability": "nonpayable",
37
- "type": "function"
38
- },
39
- {
40
- "inputs": [
41
- {
42
- "components": [
43
- {
44
- "internalType": "address",
45
- "name": "target",
46
- "type": "address"
47
- },
48
- {
49
- "internalType": "bytes",
50
- "name": "callData",
51
- "type": "bytes"
52
- }
53
- ],
54
- "internalType": "struct ArbMulticall2.Call[]",
55
- "name": "calls",
56
- "type": "tuple[]"
57
- }
58
- ],
59
- "name": "blockAndAggregate",
60
- "outputs": [
61
- {
62
- "internalType": "uint256",
63
- "name": "blockNumber",
64
- "type": "uint256"
65
- },
66
- {
67
- "internalType": "bytes32",
68
- "name": "blockHash",
69
- "type": "bytes32"
70
- },
71
- {
72
- "components": [
73
- {
74
- "internalType": "bool",
75
- "name": "success",
76
- "type": "bool"
77
- },
78
- {
79
- "internalType": "bytes",
80
- "name": "returnData",
81
- "type": "bytes"
82
- }
83
- ],
84
- "internalType": "struct ArbMulticall2.Result[]",
85
- "name": "returnData",
86
- "type": "tuple[]"
87
- }
88
- ],
89
- "stateMutability": "nonpayable",
90
- "type": "function"
91
- },
92
- {
93
- "inputs": [
94
- {
95
- "internalType": "uint256",
96
- "name": "blockNumber",
97
- "type": "uint256"
98
- }
99
- ],
100
- "name": "getBlockHash",
101
- "outputs": [
102
- {
103
- "internalType": "bytes32",
104
- "name": "blockHash",
105
- "type": "bytes32"
106
- }
107
- ],
108
- "stateMutability": "view",
109
- "type": "function"
110
- },
111
- {
112
- "inputs": [],
113
- "name": "getBlockNumber",
114
- "outputs": [
115
- {
116
- "internalType": "uint256",
117
- "name": "blockNumber",
118
- "type": "uint256"
119
- }
120
- ],
121
- "stateMutability": "view",
122
- "type": "function"
123
- },
124
- {
125
- "inputs": [],
126
- "name": "getCurrentBlockCoinbase",
127
- "outputs": [
128
- {
129
- "internalType": "address",
130
- "name": "coinbase",
131
- "type": "address"
132
- }
133
- ],
134
- "stateMutability": "view",
135
- "type": "function"
136
- },
137
- {
138
- "inputs": [],
139
- "name": "getCurrentBlockDifficulty",
140
- "outputs": [
141
- {
142
- "internalType": "uint256",
143
- "name": "difficulty",
144
- "type": "uint256"
145
- }
146
- ],
147
- "stateMutability": "view",
148
- "type": "function"
149
- },
150
- {
151
- "inputs": [],
152
- "name": "getCurrentBlockGasLimit",
153
- "outputs": [
154
- {
155
- "internalType": "uint256",
156
- "name": "gaslimit",
157
- "type": "uint256"
158
- }
159
- ],
160
- "stateMutability": "view",
161
- "type": "function"
162
- },
163
- {
164
- "inputs": [],
165
- "name": "getCurrentBlockTimestamp",
166
- "outputs": [
167
- {
168
- "internalType": "uint256",
169
- "name": "timestamp",
170
- "type": "uint256"
171
- }
172
- ],
173
- "stateMutability": "view",
174
- "type": "function"
175
- },
176
- {
177
- "inputs": [
178
- {
179
- "internalType": "address",
180
- "name": "addr",
181
- "type": "address"
182
- }
183
- ],
184
- "name": "getEthBalance",
185
- "outputs": [
186
- {
187
- "internalType": "uint256",
188
- "name": "balance",
189
- "type": "uint256"
190
- }
191
- ],
192
- "stateMutability": "view",
193
- "type": "function"
194
- },
195
- {
196
- "inputs": [],
197
- "name": "getL1BlockNumber",
198
- "outputs": [
199
- {
200
- "internalType": "uint256",
201
- "name": "l1BlockNumber",
202
- "type": "uint256"
203
- }
204
- ],
205
- "stateMutability": "view",
206
- "type": "function"
207
- },
208
- {
209
- "inputs": [],
210
- "name": "getLastBlockHash",
211
- "outputs": [
212
- {
213
- "internalType": "bytes32",
214
- "name": "blockHash",
215
- "type": "bytes32"
216
- }
217
- ],
218
- "stateMutability": "view",
219
- "type": "function"
220
- },
221
- {
222
- "inputs": [
223
- {
224
- "internalType": "bool",
225
- "name": "requireSuccess",
226
- "type": "bool"
227
- },
228
- {
229
- "components": [
230
- {
231
- "internalType": "address",
232
- "name": "target",
233
- "type": "address"
234
- },
235
- {
236
- "internalType": "bytes",
237
- "name": "callData",
238
- "type": "bytes"
239
- }
240
- ],
241
- "internalType": "struct ArbMulticall2.Call[]",
242
- "name": "calls",
243
- "type": "tuple[]"
244
- }
245
- ],
246
- "name": "tryAggregate",
247
- "outputs": [
248
- {
249
- "components": [
250
- {
251
- "internalType": "bool",
252
- "name": "success",
253
- "type": "bool"
254
- },
255
- {
256
- "internalType": "bytes",
257
- "name": "returnData",
258
- "type": "bytes"
259
- }
260
- ],
261
- "internalType": "struct ArbMulticall2.Result[]",
262
- "name": "returnData",
263
- "type": "tuple[]"
264
- }
265
- ],
266
- "stateMutability": "nonpayable",
267
- "type": "function"
268
- },
269
- {
270
- "inputs": [
271
- {
272
- "internalType": "bool",
273
- "name": "requireSuccess",
274
- "type": "bool"
275
- },
276
- {
277
- "components": [
278
- {
279
- "internalType": "address",
280
- "name": "target",
281
- "type": "address"
282
- },
283
- {
284
- "internalType": "bytes",
285
- "name": "callData",
286
- "type": "bytes"
287
- }
288
- ],
289
- "internalType": "struct ArbMulticall2.Call[]",
290
- "name": "calls",
291
- "type": "tuple[]"
292
- }
293
- ],
294
- "name": "tryAggregateGasRation",
295
- "outputs": [
296
- {
297
- "components": [
298
- {
299
- "internalType": "bool",
300
- "name": "success",
301
- "type": "bool"
302
- },
303
- {
304
- "internalType": "bytes",
305
- "name": "returnData",
306
- "type": "bytes"
307
- }
308
- ],
309
- "internalType": "struct ArbMulticall2.Result[]",
310
- "name": "returnData",
311
- "type": "tuple[]"
312
- }
313
- ],
314
- "stateMutability": "nonpayable",
315
- "type": "function"
316
- },
317
- {
318
- "inputs": [
319
- {
320
- "internalType": "bool",
321
- "name": "requireSuccess",
322
- "type": "bool"
323
- },
324
- {
325
- "components": [
326
- {
327
- "internalType": "address",
328
- "name": "target",
329
- "type": "address"
330
- },
331
- {
332
- "internalType": "bytes",
333
- "name": "callData",
334
- "type": "bytes"
335
- }
336
- ],
337
- "internalType": "struct ArbMulticall2.Call[]",
338
- "name": "calls",
339
- "type": "tuple[]"
340
- }
341
- ],
342
- "name": "tryBlockAndAggregate",
343
- "outputs": [
344
- {
345
- "internalType": "uint256",
346
- "name": "blockNumber",
347
- "type": "uint256"
348
- },
349
- {
350
- "internalType": "bytes32",
351
- "name": "blockHash",
352
- "type": "bytes32"
353
- },
354
- {
355
- "components": [
356
- {
357
- "internalType": "bool",
358
- "name": "success",
359
- "type": "bool"
360
- },
361
- {
362
- "internalType": "bytes",
363
- "name": "returnData",
364
- "type": "bytes"
365
- }
366
- ],
367
- "internalType": "struct ArbMulticall2.Result[]",
368
- "name": "returnData",
369
- "type": "tuple[]"
370
- }
371
- ],
372
- "stateMutability": "nonpayable",
373
- "type": "function"
374
- }
375
- ]
376
- }