@cartesi/cli 2.0.0-alpha.3 → 2.0.0-alpha.31

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 (131) hide show
  1. package/dist/index.js +704 -1
  2. package/dist/index.js.map +791 -0
  3. package/package.json +77 -101
  4. package/LICENSE +0 -202
  5. package/bin/dev.cmd +0 -3
  6. package/bin/dev.js +0 -25
  7. package/bin/run.cmd +0 -3
  8. package/bin/run.js +0 -8
  9. package/dist/baseCommand.d.ts +0 -22
  10. package/dist/baseCommand.d.ts.map +0 -1
  11. package/dist/baseCommand.js +0 -92
  12. package/dist/builder/directory.d.ts +0 -3
  13. package/dist/builder/directory.d.ts.map +0 -1
  14. package/dist/builder/directory.js +0 -37
  15. package/dist/builder/docker.d.ts +0 -10
  16. package/dist/builder/docker.d.ts.map +0 -1
  17. package/dist/builder/docker.js +0 -112
  18. package/dist/builder/empty.d.ts +0 -3
  19. package/dist/builder/empty.d.ts.map +0 -1
  20. package/dist/builder/empty.js +0 -21
  21. package/dist/builder/index.d.ts +0 -6
  22. package/dist/builder/index.d.ts.map +0 -1
  23. package/dist/builder/index.js +0 -5
  24. package/dist/builder/none.d.ts +0 -3
  25. package/dist/builder/none.d.ts.map +0 -1
  26. package/dist/builder/none.js +0 -11
  27. package/dist/builder/tar.d.ts +0 -3
  28. package/dist/builder/tar.d.ts.map +0 -1
  29. package/dist/builder/tar.js +0 -30
  30. package/dist/commands/address-book.d.ts +0 -9
  31. package/dist/commands/address-book.d.ts.map +0 -1
  32. package/dist/commands/address-book.js +0 -40
  33. package/dist/commands/build.d.ts +0 -12
  34. package/dist/commands/build.d.ts.map +0 -1
  35. package/dist/commands/build.js +0 -73
  36. package/dist/commands/clean.d.ts +0 -8
  37. package/dist/commands/clean.d.ts.map +0 -1
  38. package/dist/commands/clean.js +0 -11
  39. package/dist/commands/create.d.ts +0 -16
  40. package/dist/commands/create.d.ts.map +0 -1
  41. package/dist/commands/create.js +0 -66
  42. package/dist/commands/deploy/build.d.ts +0 -15
  43. package/dist/commands/deploy/build.d.ts.map +0 -1
  44. package/dist/commands/deploy/build.js +0 -62
  45. package/dist/commands/deploy/index.d.ts +0 -12
  46. package/dist/commands/deploy/index.d.ts.map +0 -1
  47. package/dist/commands/deploy/index.js +0 -78
  48. package/dist/commands/doctor.d.ts +0 -13
  49. package/dist/commands/doctor.d.ts.map +0 -1
  50. package/dist/commands/doctor.js +0 -106
  51. package/dist/commands/hash.d.ts +0 -10
  52. package/dist/commands/hash.d.ts.map +0 -1
  53. package/dist/commands/hash.js +0 -22
  54. package/dist/commands/run.d.ts +0 -21
  55. package/dist/commands/run.d.ts.map +0 -1
  56. package/dist/commands/run.js +0 -191
  57. package/dist/commands/send/erc20.d.ts +0 -14
  58. package/dist/commands/send/erc20.d.ts.map +0 -1
  59. package/dist/commands/send/erc20.js +0 -70
  60. package/dist/commands/send/erc721.d.ts +0 -14
  61. package/dist/commands/send/erc721.d.ts.map +0 -1
  62. package/dist/commands/send/erc721.js +0 -73
  63. package/dist/commands/send/ether.d.ts +0 -13
  64. package/dist/commands/send/ether.d.ts.map +0 -1
  65. package/dist/commands/send/ether.js +0 -32
  66. package/dist/commands/send/generic.d.ts +0 -15
  67. package/dist/commands/send/generic.d.ts.map +0 -1
  68. package/dist/commands/send/generic.js +0 -119
  69. package/dist/commands/send/index.d.ts +0 -28
  70. package/dist/commands/send/index.d.ts.map +0 -1
  71. package/dist/commands/send/index.js +0 -102
  72. package/dist/commands/shell.d.ts +0 -15
  73. package/dist/commands/shell.d.ts.map +0 -1
  74. package/dist/commands/shell.js +0 -65
  75. package/dist/config.d.ts +0 -102
  76. package/dist/config.d.ts.map +0 -1
  77. package/dist/config.js +0 -367
  78. package/dist/contracts.d.ts +0 -4317
  79. package/dist/contracts.d.ts.map +0 -1
  80. package/dist/contracts.js +0 -1799
  81. package/dist/exec/cartesi-machine.d.ts +0 -9
  82. package/dist/exec/cartesi-machine.d.ts.map +0 -1
  83. package/dist/exec/cartesi-machine.js +0 -20
  84. package/dist/exec/crane.d.ts +0 -15
  85. package/dist/exec/crane.d.ts.map +0 -1
  86. package/dist/exec/crane.js +0 -17
  87. package/dist/exec/genext2fs.d.ts +0 -28
  88. package/dist/exec/genext2fs.d.ts.map +0 -1
  89. package/dist/exec/genext2fs.js +0 -44
  90. package/dist/exec/index.d.ts +0 -5
  91. package/dist/exec/index.d.ts.map +0 -1
  92. package/dist/exec/index.js +0 -4
  93. package/dist/exec/mksquashfs.d.ts +0 -21
  94. package/dist/exec/mksquashfs.d.ts.map +0 -1
  95. package/dist/exec/mksquashfs.js +0 -45
  96. package/dist/exec/util.d.ts +0 -36
  97. package/dist/exec/util.d.ts.map +0 -1
  98. package/dist/exec/util.js +0 -80
  99. package/dist/flags.d.ts +0 -17
  100. package/dist/flags.d.ts.map +0 -1
  101. package/dist/flags.js +0 -28
  102. package/dist/index.d.ts +0 -2
  103. package/dist/index.d.ts.map +0 -1
  104. package/dist/machine.d.ts +0 -6
  105. package/dist/machine.d.ts.map +0 -1
  106. package/dist/machine.js +0 -80
  107. package/dist/node/DockerfileDeploy.txt +0 -4
  108. package/dist/node/default.env +0 -27
  109. package/dist/node/docker-compose-anvil.yaml +0 -50
  110. package/dist/node/docker-compose-bundler.yaml +0 -57
  111. package/dist/node/docker-compose-database.yaml +0 -10
  112. package/dist/node/docker-compose-envfile.yaml +0 -4
  113. package/dist/node/docker-compose-explorer.yaml +0 -88
  114. package/dist/node/docker-compose-host.yaml +0 -30
  115. package/dist/node/docker-compose-paymaster.yaml +0 -33
  116. package/dist/node/docker-compose-prompt.yaml +0 -17
  117. package/dist/node/docker-compose-proxy.yaml +0 -48
  118. package/dist/node/docker-compose-snapshot-volume.yaml +0 -8
  119. package/dist/node/docker-compose-validator-cpus.yaml +0 -6
  120. package/dist/node/docker-compose-validator-memory.yaml +0 -6
  121. package/dist/node/docker-compose-validator.yaml +0 -59
  122. package/dist/prompts.d.ts +0 -62
  123. package/dist/prompts.d.ts.map +0 -1
  124. package/dist/prompts.js +0 -158
  125. package/dist/types/docker.d.ts +0 -22
  126. package/dist/types/docker.d.ts.map +0 -1
  127. package/dist/types/docker.js +0 -1
  128. package/dist/wallet.d.ts +0 -24
  129. package/dist/wallet.d.ts.map +0 -1
  130. package/dist/wallet.js +0 -204
  131. package/oclif.manifest.json +0 -876
package/dist/contracts.js DELETED
@@ -1,1799 +0,0 @@
1
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2
- // ApplicationFactory
3
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4
- export const applicationFactoryAbi = [
5
- {
6
- type: 'event',
7
- anonymous: false,
8
- inputs: [
9
- {
10
- name: 'consensus',
11
- internalType: 'contract IConsensus',
12
- type: 'address',
13
- indexed: true,
14
- },
15
- {
16
- name: 'appOwner',
17
- internalType: 'address',
18
- type: 'address',
19
- indexed: false,
20
- },
21
- {
22
- name: 'templateHash',
23
- internalType: 'bytes32',
24
- type: 'bytes32',
25
- indexed: false,
26
- },
27
- {
28
- name: 'appContract',
29
- internalType: 'contract IApplication',
30
- type: 'address',
31
- indexed: false,
32
- },
33
- ],
34
- name: 'ApplicationCreated',
35
- },
36
- {
37
- type: 'function',
38
- inputs: [
39
- {
40
- name: 'consensus',
41
- internalType: 'contract IConsensus',
42
- type: 'address',
43
- },
44
- { name: 'appOwner', internalType: 'address', type: 'address' },
45
- { name: 'templateHash', internalType: 'bytes32', type: 'bytes32' },
46
- { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
47
- ],
48
- name: 'calculateApplicationAddress',
49
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
50
- stateMutability: 'view',
51
- },
52
- {
53
- type: 'function',
54
- inputs: [
55
- {
56
- name: 'consensus',
57
- internalType: 'contract IConsensus',
58
- type: 'address',
59
- },
60
- { name: 'appOwner', internalType: 'address', type: 'address' },
61
- { name: 'templateHash', internalType: 'bytes32', type: 'bytes32' },
62
- { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
63
- ],
64
- name: 'newApplication',
65
- outputs: [
66
- {
67
- name: '',
68
- internalType: 'contract IApplication',
69
- type: 'address',
70
- },
71
- ],
72
- stateMutability: 'nonpayable',
73
- },
74
- {
75
- type: 'function',
76
- inputs: [
77
- {
78
- name: 'consensus',
79
- internalType: 'contract IConsensus',
80
- type: 'address',
81
- },
82
- { name: 'appOwner', internalType: 'address', type: 'address' },
83
- { name: 'templateHash', internalType: 'bytes32', type: 'bytes32' },
84
- ],
85
- name: 'newApplication',
86
- outputs: [
87
- {
88
- name: '',
89
- internalType: 'contract IApplication',
90
- type: 'address',
91
- },
92
- ],
93
- stateMutability: 'nonpayable',
94
- },
95
- ];
96
- export const applicationFactoryAddress = '0xd7d4d184b82b1a4e08f304DDaB0A2A7a301C2620';
97
- export const applicationFactoryConfig = {
98
- address: applicationFactoryAddress,
99
- abi: applicationFactoryAbi,
100
- };
101
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
102
- // AuthorityFactory
103
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
104
- export const authorityFactoryAbi = [
105
- {
106
- type: 'event',
107
- anonymous: false,
108
- inputs: [
109
- {
110
- name: 'authority',
111
- internalType: 'contract IAuthority',
112
- type: 'address',
113
- indexed: false,
114
- },
115
- ],
116
- name: 'AuthorityCreated',
117
- },
118
- {
119
- type: 'function',
120
- inputs: [
121
- {
122
- name: 'authorityOwner',
123
- internalType: 'address',
124
- type: 'address',
125
- },
126
- { name: 'epochLength', internalType: 'uint256', type: 'uint256' },
127
- { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
128
- ],
129
- name: 'calculateAuthorityAddress',
130
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
131
- stateMutability: 'view',
132
- },
133
- {
134
- type: 'function',
135
- inputs: [
136
- {
137
- name: 'authorityOwner',
138
- internalType: 'address',
139
- type: 'address',
140
- },
141
- { name: 'epochLength', internalType: 'uint256', type: 'uint256' },
142
- ],
143
- name: 'newAuthority',
144
- outputs: [
145
- { name: '', internalType: 'contract IAuthority', type: 'address' },
146
- ],
147
- stateMutability: 'nonpayable',
148
- },
149
- {
150
- type: 'function',
151
- inputs: [
152
- {
153
- name: 'authorityOwner',
154
- internalType: 'address',
155
- type: 'address',
156
- },
157
- { name: 'epochLength', internalType: 'uint256', type: 'uint256' },
158
- { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
159
- ],
160
- name: 'newAuthority',
161
- outputs: [
162
- { name: '', internalType: 'contract IAuthority', type: 'address' },
163
- ],
164
- stateMutability: 'nonpayable',
165
- },
166
- ];
167
- export const authorityFactoryAddress = '0xB897F7Fe78f220aE34B7FA9493092701a873Ed45';
168
- export const authorityFactoryConfig = {
169
- address: authorityFactoryAddress,
170
- abi: authorityFactoryAbi,
171
- };
172
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
173
- // ERC1155BatchPortal
174
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
175
- export const erc1155BatchPortalAbi = [
176
- {
177
- type: 'constructor',
178
- inputs: [
179
- {
180
- name: 'inputBox',
181
- internalType: 'contract IInputBox',
182
- type: 'address',
183
- },
184
- ],
185
- stateMutability: 'nonpayable',
186
- },
187
- {
188
- type: 'function',
189
- inputs: [
190
- {
191
- name: 'token',
192
- internalType: 'contract IERC1155',
193
- type: 'address',
194
- },
195
- { name: 'appContract', internalType: 'address', type: 'address' },
196
- { name: 'tokenIds', internalType: 'uint256[]', type: 'uint256[]' },
197
- { name: 'values', internalType: 'uint256[]', type: 'uint256[]' },
198
- { name: 'baseLayerData', internalType: 'bytes', type: 'bytes' },
199
- { name: 'execLayerData', internalType: 'bytes', type: 'bytes' },
200
- ],
201
- name: 'depositBatchERC1155Token',
202
- outputs: [],
203
- stateMutability: 'nonpayable',
204
- },
205
- {
206
- type: 'function',
207
- inputs: [],
208
- name: 'getInputBox',
209
- outputs: [
210
- { name: '', internalType: 'contract IInputBox', type: 'address' },
211
- ],
212
- stateMutability: 'view',
213
- },
214
- ];
215
- export const erc1155BatchPortalAddress = '0x4a218D331C0933d7E3EB496ac901669f28D94981';
216
- export const erc1155BatchPortalConfig = {
217
- address: erc1155BatchPortalAddress,
218
- abi: erc1155BatchPortalAbi,
219
- };
220
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
221
- // ERC1155SinglePortal
222
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
223
- export const erc1155SinglePortalAbi = [
224
- {
225
- type: 'constructor',
226
- inputs: [
227
- {
228
- name: 'inputBox',
229
- internalType: 'contract IInputBox',
230
- type: 'address',
231
- },
232
- ],
233
- stateMutability: 'nonpayable',
234
- },
235
- {
236
- type: 'function',
237
- inputs: [
238
- {
239
- name: 'token',
240
- internalType: 'contract IERC1155',
241
- type: 'address',
242
- },
243
- { name: 'appContract', internalType: 'address', type: 'address' },
244
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
245
- { name: 'value', internalType: 'uint256', type: 'uint256' },
246
- { name: 'baseLayerData', internalType: 'bytes', type: 'bytes' },
247
- { name: 'execLayerData', internalType: 'bytes', type: 'bytes' },
248
- ],
249
- name: 'depositSingleERC1155Token',
250
- outputs: [],
251
- stateMutability: 'nonpayable',
252
- },
253
- {
254
- type: 'function',
255
- inputs: [],
256
- name: 'getInputBox',
257
- outputs: [
258
- { name: '', internalType: 'contract IInputBox', type: 'address' },
259
- ],
260
- stateMutability: 'view',
261
- },
262
- ];
263
- export const erc1155SinglePortalAddress = '0x2f0D587DD6EcF67d25C558f2e9c3839c579e5e38';
264
- export const erc1155SinglePortalConfig = {
265
- address: erc1155SinglePortalAddress,
266
- abi: erc1155SinglePortalAbi,
267
- };
268
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
269
- // ERC20Portal
270
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
271
- export const erc20PortalAbi = [
272
- {
273
- type: 'constructor',
274
- inputs: [
275
- {
276
- name: 'inputBox',
277
- internalType: 'contract IInputBox',
278
- type: 'address',
279
- },
280
- ],
281
- stateMutability: 'nonpayable',
282
- },
283
- { type: 'error', inputs: [], name: 'ERC20TransferFailed' },
284
- {
285
- type: 'function',
286
- inputs: [
287
- { name: 'token', internalType: 'contract IERC20', type: 'address' },
288
- { name: 'appContract', internalType: 'address', type: 'address' },
289
- { name: 'value', internalType: 'uint256', type: 'uint256' },
290
- { name: 'execLayerData', internalType: 'bytes', type: 'bytes' },
291
- ],
292
- name: 'depositERC20Tokens',
293
- outputs: [],
294
- stateMutability: 'nonpayable',
295
- },
296
- {
297
- type: 'function',
298
- inputs: [],
299
- name: 'getInputBox',
300
- outputs: [
301
- { name: '', internalType: 'contract IInputBox', type: 'address' },
302
- ],
303
- stateMutability: 'view',
304
- },
305
- ];
306
- export const erc20PortalAddress = '0xB0e28881FF7ee9CD5B1229d570540d74bce23D39';
307
- export const erc20PortalConfig = {
308
- address: erc20PortalAddress,
309
- abi: erc20PortalAbi,
310
- };
311
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
312
- // ERC721Portal
313
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
314
- export const erc721PortalAbi = [
315
- {
316
- type: 'constructor',
317
- inputs: [
318
- {
319
- name: 'inputBox',
320
- internalType: 'contract IInputBox',
321
- type: 'address',
322
- },
323
- ],
324
- stateMutability: 'nonpayable',
325
- },
326
- {
327
- type: 'function',
328
- inputs: [
329
- {
330
- name: 'token',
331
- internalType: 'contract IERC721',
332
- type: 'address',
333
- },
334
- { name: 'appContract', internalType: 'address', type: 'address' },
335
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
336
- { name: 'baseLayerData', internalType: 'bytes', type: 'bytes' },
337
- { name: 'execLayerData', internalType: 'bytes', type: 'bytes' },
338
- ],
339
- name: 'depositERC721Token',
340
- outputs: [],
341
- stateMutability: 'nonpayable',
342
- },
343
- {
344
- type: 'function',
345
- inputs: [],
346
- name: 'getInputBox',
347
- outputs: [
348
- { name: '', internalType: 'contract IInputBox', type: 'address' },
349
- ],
350
- stateMutability: 'view',
351
- },
352
- ];
353
- export const erc721PortalAddress = '0x874b3245ead7474Cb9f3b83cD1446dC522f6bd36';
354
- export const erc721PortalConfig = {
355
- address: erc721PortalAddress,
356
- abi: erc721PortalAbi,
357
- };
358
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
359
- // EtherPortal
360
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
361
- export const etherPortalAbi = [
362
- {
363
- type: 'constructor',
364
- inputs: [
365
- {
366
- name: 'inputBox',
367
- internalType: 'contract IInputBox',
368
- type: 'address',
369
- },
370
- ],
371
- stateMutability: 'nonpayable',
372
- },
373
- { type: 'error', inputs: [], name: 'EtherTransferFailed' },
374
- {
375
- type: 'function',
376
- inputs: [
377
- { name: 'appContract', internalType: 'address', type: 'address' },
378
- { name: 'execLayerData', internalType: 'bytes', type: 'bytes' },
379
- ],
380
- name: 'depositEther',
381
- outputs: [],
382
- stateMutability: 'payable',
383
- },
384
- {
385
- type: 'function',
386
- inputs: [],
387
- name: 'getInputBox',
388
- outputs: [
389
- { name: '', internalType: 'contract IInputBox', type: 'address' },
390
- ],
391
- stateMutability: 'view',
392
- },
393
- ];
394
- export const etherPortalAddress = '0xfa2292f6D85ea4e629B156A4f99219e30D12EE17';
395
- export const etherPortalConfig = {
396
- address: etherPortalAddress,
397
- abi: etherPortalAbi,
398
- };
399
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
400
- // InputBox
401
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
402
- export const inputBoxAbi = [
403
- {
404
- type: 'error',
405
- inputs: [
406
- { name: 'appContract', internalType: 'address', type: 'address' },
407
- { name: 'inputLength', internalType: 'uint256', type: 'uint256' },
408
- {
409
- name: 'maxInputLength',
410
- internalType: 'uint256',
411
- type: 'uint256',
412
- },
413
- ],
414
- name: 'InputTooLarge',
415
- },
416
- {
417
- type: 'event',
418
- anonymous: false,
419
- inputs: [
420
- {
421
- name: 'appContract',
422
- internalType: 'address',
423
- type: 'address',
424
- indexed: true,
425
- },
426
- {
427
- name: 'index',
428
- internalType: 'uint256',
429
- type: 'uint256',
430
- indexed: true,
431
- },
432
- {
433
- name: 'input',
434
- internalType: 'bytes',
435
- type: 'bytes',
436
- indexed: false,
437
- },
438
- ],
439
- name: 'InputAdded',
440
- },
441
- {
442
- type: 'function',
443
- inputs: [
444
- { name: 'appContract', internalType: 'address', type: 'address' },
445
- { name: 'payload', internalType: 'bytes', type: 'bytes' },
446
- ],
447
- name: 'addInput',
448
- outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
449
- stateMutability: 'nonpayable',
450
- },
451
- {
452
- type: 'function',
453
- inputs: [
454
- { name: 'appContract', internalType: 'address', type: 'address' },
455
- { name: 'index', internalType: 'uint256', type: 'uint256' },
456
- ],
457
- name: 'getInputHash',
458
- outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
459
- stateMutability: 'view',
460
- },
461
- {
462
- type: 'function',
463
- inputs: [
464
- { name: 'appContract', internalType: 'address', type: 'address' },
465
- ],
466
- name: 'getNumberOfInputs',
467
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
468
- stateMutability: 'view',
469
- },
470
- ];
471
- export const inputBoxAddress = '0x593E5BCf894D6829Dd26D0810DA7F064406aebB6';
472
- export const inputBoxConfig = {
473
- address: inputBoxAddress,
474
- abi: inputBoxAbi,
475
- };
476
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
477
- // QuorumFactory
478
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
479
- export const quorumFactoryAbi = [
480
- {
481
- type: 'event',
482
- anonymous: false,
483
- inputs: [
484
- {
485
- name: 'quorum',
486
- internalType: 'contract IQuorum',
487
- type: 'address',
488
- indexed: false,
489
- },
490
- ],
491
- name: 'QuorumCreated',
492
- },
493
- {
494
- type: 'function',
495
- inputs: [
496
- {
497
- name: 'validators',
498
- internalType: 'address[]',
499
- type: 'address[]',
500
- },
501
- { name: 'epochLength', internalType: 'uint256', type: 'uint256' },
502
- { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
503
- ],
504
- name: 'calculateQuorumAddress',
505
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
506
- stateMutability: 'view',
507
- },
508
- {
509
- type: 'function',
510
- inputs: [
511
- {
512
- name: 'validators',
513
- internalType: 'address[]',
514
- type: 'address[]',
515
- },
516
- { name: 'epochLength', internalType: 'uint256', type: 'uint256' },
517
- { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
518
- ],
519
- name: 'newQuorum',
520
- outputs: [
521
- { name: '', internalType: 'contract IQuorum', type: 'address' },
522
- ],
523
- stateMutability: 'nonpayable',
524
- },
525
- {
526
- type: 'function',
527
- inputs: [
528
- {
529
- name: 'validators',
530
- internalType: 'address[]',
531
- type: 'address[]',
532
- },
533
- { name: 'epochLength', internalType: 'uint256', type: 'uint256' },
534
- ],
535
- name: 'newQuorum',
536
- outputs: [
537
- { name: '', internalType: 'contract IQuorum', type: 'address' },
538
- ],
539
- stateMutability: 'nonpayable',
540
- },
541
- ];
542
- export const quorumFactoryAddress = '0x22AFD9162079c7Ac0aF874054298Bf46F29157F1';
543
- export const quorumFactoryConfig = {
544
- address: quorumFactoryAddress,
545
- abi: quorumFactoryAbi,
546
- };
547
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
548
- // SafeERC20Transfer
549
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
550
- export const safeErc20TransferAbi = [
551
- {
552
- type: 'error',
553
- inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
554
- name: 'AddressEmptyCode',
555
- },
556
- {
557
- type: 'error',
558
- inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
559
- name: 'AddressInsufficientBalance',
560
- },
561
- { type: 'error', inputs: [], name: 'FailedInnerCall' },
562
- {
563
- type: 'error',
564
- inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
565
- name: 'SafeERC20FailedOperation',
566
- },
567
- {
568
- type: 'function',
569
- inputs: [
570
- { name: 'token', internalType: 'contract IERC20', type: 'address' },
571
- { name: 'to', internalType: 'address', type: 'address' },
572
- { name: 'value', internalType: 'uint256', type: 'uint256' },
573
- ],
574
- name: 'safeTransfer',
575
- outputs: [],
576
- stateMutability: 'nonpayable',
577
- },
578
- ];
579
- export const safeErc20TransferAddress = '0x817b126F242B5F184Fa685b4f2F91DC99D8115F9';
580
- export const safeErc20TransferConfig = {
581
- address: safeErc20TransferAddress,
582
- abi: safeErc20TransferAbi,
583
- };
584
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
585
- // SelfHostedApplicationFactory
586
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
587
- export const selfHostedApplicationFactoryAbi = [
588
- {
589
- type: 'constructor',
590
- inputs: [
591
- {
592
- name: 'authorityFactory',
593
- internalType: 'contract IAuthorityFactory',
594
- type: 'address',
595
- },
596
- {
597
- name: 'applicationFactory',
598
- internalType: 'contract IApplicationFactory',
599
- type: 'address',
600
- },
601
- ],
602
- stateMutability: 'nonpayable',
603
- },
604
- {
605
- type: 'function',
606
- inputs: [
607
- {
608
- name: 'authorityOwner',
609
- internalType: 'address',
610
- type: 'address',
611
- },
612
- { name: 'epochLength', internalType: 'uint256', type: 'uint256' },
613
- { name: 'appOwner', internalType: 'address', type: 'address' },
614
- { name: 'templateHash', internalType: 'bytes32', type: 'bytes32' },
615
- { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
616
- ],
617
- name: 'calculateAddresses',
618
- outputs: [
619
- { name: 'application', internalType: 'address', type: 'address' },
620
- { name: 'authority', internalType: 'address', type: 'address' },
621
- ],
622
- stateMutability: 'view',
623
- },
624
- {
625
- type: 'function',
626
- inputs: [
627
- {
628
- name: 'authorityOwner',
629
- internalType: 'address',
630
- type: 'address',
631
- },
632
- { name: 'epochLength', internalType: 'uint256', type: 'uint256' },
633
- { name: 'appOwner', internalType: 'address', type: 'address' },
634
- { name: 'templateHash', internalType: 'bytes32', type: 'bytes32' },
635
- { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
636
- ],
637
- name: 'deployContracts',
638
- outputs: [
639
- {
640
- name: 'application',
641
- internalType: 'contract IApplication',
642
- type: 'address',
643
- },
644
- {
645
- name: 'authority',
646
- internalType: 'contract IAuthority',
647
- type: 'address',
648
- },
649
- ],
650
- stateMutability: 'nonpayable',
651
- },
652
- {
653
- type: 'function',
654
- inputs: [],
655
- name: 'getApplicationFactory',
656
- outputs: [
657
- {
658
- name: '',
659
- internalType: 'contract IApplicationFactory',
660
- type: 'address',
661
- },
662
- ],
663
- stateMutability: 'view',
664
- },
665
- {
666
- type: 'function',
667
- inputs: [],
668
- name: 'getAuthorityFactory',
669
- outputs: [
670
- {
671
- name: '',
672
- internalType: 'contract IAuthorityFactory',
673
- type: 'address',
674
- },
675
- ],
676
- stateMutability: 'view',
677
- },
678
- ];
679
- export const selfHostedApplicationFactoryAddress = '0xF925E1467DfCb1be6904bcF70621A974b5eA8708';
680
- export const selfHostedApplicationFactoryConfig = {
681
- address: selfHostedApplicationFactoryAddress,
682
- abi: selfHostedApplicationFactoryAbi,
683
- };
684
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
685
- // TestMultiToken
686
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
687
- export const testMultiTokenAbi = [
688
- {
689
- type: 'constructor',
690
- inputs: [
691
- { name: 'initialOwner', internalType: 'address', type: 'address' },
692
- ],
693
- stateMutability: 'nonpayable',
694
- },
695
- {
696
- type: 'error',
697
- inputs: [
698
- { name: 'sender', internalType: 'address', type: 'address' },
699
- { name: 'balance', internalType: 'uint256', type: 'uint256' },
700
- { name: 'needed', internalType: 'uint256', type: 'uint256' },
701
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
702
- ],
703
- name: 'ERC1155InsufficientBalance',
704
- },
705
- {
706
- type: 'error',
707
- inputs: [
708
- { name: 'approver', internalType: 'address', type: 'address' },
709
- ],
710
- name: 'ERC1155InvalidApprover',
711
- },
712
- {
713
- type: 'error',
714
- inputs: [
715
- { name: 'idsLength', internalType: 'uint256', type: 'uint256' },
716
- { name: 'valuesLength', internalType: 'uint256', type: 'uint256' },
717
- ],
718
- name: 'ERC1155InvalidArrayLength',
719
- },
720
- {
721
- type: 'error',
722
- inputs: [
723
- { name: 'operator', internalType: 'address', type: 'address' },
724
- ],
725
- name: 'ERC1155InvalidOperator',
726
- },
727
- {
728
- type: 'error',
729
- inputs: [
730
- { name: 'receiver', internalType: 'address', type: 'address' },
731
- ],
732
- name: 'ERC1155InvalidReceiver',
733
- },
734
- {
735
- type: 'error',
736
- inputs: [{ name: 'sender', internalType: 'address', type: 'address' }],
737
- name: 'ERC1155InvalidSender',
738
- },
739
- {
740
- type: 'error',
741
- inputs: [
742
- { name: 'operator', internalType: 'address', type: 'address' },
743
- { name: 'owner', internalType: 'address', type: 'address' },
744
- ],
745
- name: 'ERC1155MissingApprovalForAll',
746
- },
747
- {
748
- type: 'error',
749
- inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
750
- name: 'OwnableInvalidOwner',
751
- },
752
- {
753
- type: 'error',
754
- inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
755
- name: 'OwnableUnauthorizedAccount',
756
- },
757
- {
758
- type: 'event',
759
- anonymous: false,
760
- inputs: [
761
- {
762
- name: 'account',
763
- internalType: 'address',
764
- type: 'address',
765
- indexed: true,
766
- },
767
- {
768
- name: 'operator',
769
- internalType: 'address',
770
- type: 'address',
771
- indexed: true,
772
- },
773
- {
774
- name: 'approved',
775
- internalType: 'bool',
776
- type: 'bool',
777
- indexed: false,
778
- },
779
- ],
780
- name: 'ApprovalForAll',
781
- },
782
- {
783
- type: 'event',
784
- anonymous: false,
785
- inputs: [
786
- {
787
- name: 'previousOwner',
788
- internalType: 'address',
789
- type: 'address',
790
- indexed: true,
791
- },
792
- {
793
- name: 'newOwner',
794
- internalType: 'address',
795
- type: 'address',
796
- indexed: true,
797
- },
798
- ],
799
- name: 'OwnershipTransferred',
800
- },
801
- {
802
- type: 'event',
803
- anonymous: false,
804
- inputs: [
805
- {
806
- name: 'operator',
807
- internalType: 'address',
808
- type: 'address',
809
- indexed: true,
810
- },
811
- {
812
- name: 'from',
813
- internalType: 'address',
814
- type: 'address',
815
- indexed: true,
816
- },
817
- {
818
- name: 'to',
819
- internalType: 'address',
820
- type: 'address',
821
- indexed: true,
822
- },
823
- {
824
- name: 'ids',
825
- internalType: 'uint256[]',
826
- type: 'uint256[]',
827
- indexed: false,
828
- },
829
- {
830
- name: 'values',
831
- internalType: 'uint256[]',
832
- type: 'uint256[]',
833
- indexed: false,
834
- },
835
- ],
836
- name: 'TransferBatch',
837
- },
838
- {
839
- type: 'event',
840
- anonymous: false,
841
- inputs: [
842
- {
843
- name: 'operator',
844
- internalType: 'address',
845
- type: 'address',
846
- indexed: true,
847
- },
848
- {
849
- name: 'from',
850
- internalType: 'address',
851
- type: 'address',
852
- indexed: true,
853
- },
854
- {
855
- name: 'to',
856
- internalType: 'address',
857
- type: 'address',
858
- indexed: true,
859
- },
860
- {
861
- name: 'id',
862
- internalType: 'uint256',
863
- type: 'uint256',
864
- indexed: false,
865
- },
866
- {
867
- name: 'value',
868
- internalType: 'uint256',
869
- type: 'uint256',
870
- indexed: false,
871
- },
872
- ],
873
- name: 'TransferSingle',
874
- },
875
- {
876
- type: 'event',
877
- anonymous: false,
878
- inputs: [
879
- {
880
- name: 'value',
881
- internalType: 'string',
882
- type: 'string',
883
- indexed: false,
884
- },
885
- {
886
- name: 'id',
887
- internalType: 'uint256',
888
- type: 'uint256',
889
- indexed: true,
890
- },
891
- ],
892
- name: 'URI',
893
- },
894
- {
895
- type: 'function',
896
- inputs: [
897
- { name: 'account', internalType: 'address', type: 'address' },
898
- { name: 'id', internalType: 'uint256', type: 'uint256' },
899
- ],
900
- name: 'balanceOf',
901
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
902
- stateMutability: 'view',
903
- },
904
- {
905
- type: 'function',
906
- inputs: [
907
- { name: 'accounts', internalType: 'address[]', type: 'address[]' },
908
- { name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
909
- ],
910
- name: 'balanceOfBatch',
911
- outputs: [{ name: '', internalType: 'uint256[]', type: 'uint256[]' }],
912
- stateMutability: 'view',
913
- },
914
- {
915
- type: 'function',
916
- inputs: [
917
- { name: 'account', internalType: 'address', type: 'address' },
918
- { name: 'operator', internalType: 'address', type: 'address' },
919
- ],
920
- name: 'isApprovedForAll',
921
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
922
- stateMutability: 'view',
923
- },
924
- {
925
- type: 'function',
926
- inputs: [
927
- { name: 'account', internalType: 'address', type: 'address' },
928
- { name: 'id', internalType: 'uint256', type: 'uint256' },
929
- { name: 'amount', internalType: 'uint256', type: 'uint256' },
930
- { name: 'data', internalType: 'bytes', type: 'bytes' },
931
- ],
932
- name: 'mint',
933
- outputs: [],
934
- stateMutability: 'nonpayable',
935
- },
936
- {
937
- type: 'function',
938
- inputs: [
939
- { name: 'to', internalType: 'address', type: 'address' },
940
- { name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
941
- { name: 'amounts', internalType: 'uint256[]', type: 'uint256[]' },
942
- { name: 'data', internalType: 'bytes', type: 'bytes' },
943
- ],
944
- name: 'mintBatch',
945
- outputs: [],
946
- stateMutability: 'nonpayable',
947
- },
948
- {
949
- type: 'function',
950
- inputs: [],
951
- name: 'owner',
952
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
953
- stateMutability: 'view',
954
- },
955
- {
956
- type: 'function',
957
- inputs: [],
958
- name: 'renounceOwnership',
959
- outputs: [],
960
- stateMutability: 'nonpayable',
961
- },
962
- {
963
- type: 'function',
964
- inputs: [
965
- { name: 'from', internalType: 'address', type: 'address' },
966
- { name: 'to', internalType: 'address', type: 'address' },
967
- { name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
968
- { name: 'values', internalType: 'uint256[]', type: 'uint256[]' },
969
- { name: 'data', internalType: 'bytes', type: 'bytes' },
970
- ],
971
- name: 'safeBatchTransferFrom',
972
- outputs: [],
973
- stateMutability: 'nonpayable',
974
- },
975
- {
976
- type: 'function',
977
- inputs: [
978
- { name: 'from', internalType: 'address', type: 'address' },
979
- { name: 'to', internalType: 'address', type: 'address' },
980
- { name: 'id', internalType: 'uint256', type: 'uint256' },
981
- { name: 'value', internalType: 'uint256', type: 'uint256' },
982
- { name: 'data', internalType: 'bytes', type: 'bytes' },
983
- ],
984
- name: 'safeTransferFrom',
985
- outputs: [],
986
- stateMutability: 'nonpayable',
987
- },
988
- {
989
- type: 'function',
990
- inputs: [
991
- { name: 'operator', internalType: 'address', type: 'address' },
992
- { name: 'approved', internalType: 'bool', type: 'bool' },
993
- ],
994
- name: 'setApprovalForAll',
995
- outputs: [],
996
- stateMutability: 'nonpayable',
997
- },
998
- {
999
- type: 'function',
1000
- inputs: [{ name: 'newuri', internalType: 'string', type: 'string' }],
1001
- name: 'setURI',
1002
- outputs: [],
1003
- stateMutability: 'nonpayable',
1004
- },
1005
- {
1006
- type: 'function',
1007
- inputs: [
1008
- { name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' },
1009
- ],
1010
- name: 'supportsInterface',
1011
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1012
- stateMutability: 'view',
1013
- },
1014
- {
1015
- type: 'function',
1016
- inputs: [
1017
- { name: 'newOwner', internalType: 'address', type: 'address' },
1018
- ],
1019
- name: 'transferOwnership',
1020
- outputs: [],
1021
- stateMutability: 'nonpayable',
1022
- },
1023
- {
1024
- type: 'function',
1025
- inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1026
- name: 'uri',
1027
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
1028
- stateMutability: 'view',
1029
- },
1030
- ];
1031
- export const testMultiTokenAddress = '0x9d72403870769eE1af0145e1ad3F7f1d29E86Af5';
1032
- export const testMultiTokenConfig = {
1033
- address: testMultiTokenAddress,
1034
- abi: testMultiTokenAbi,
1035
- };
1036
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1037
- // TestNFT
1038
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1039
- export const testNftAbi = [
1040
- {
1041
- type: 'constructor',
1042
- inputs: [
1043
- { name: 'initialOwner', internalType: 'address', type: 'address' },
1044
- ],
1045
- stateMutability: 'nonpayable',
1046
- },
1047
- {
1048
- type: 'error',
1049
- inputs: [
1050
- { name: 'sender', internalType: 'address', type: 'address' },
1051
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
1052
- { name: 'owner', internalType: 'address', type: 'address' },
1053
- ],
1054
- name: 'ERC721IncorrectOwner',
1055
- },
1056
- {
1057
- type: 'error',
1058
- inputs: [
1059
- { name: 'operator', internalType: 'address', type: 'address' },
1060
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
1061
- ],
1062
- name: 'ERC721InsufficientApproval',
1063
- },
1064
- {
1065
- type: 'error',
1066
- inputs: [
1067
- { name: 'approver', internalType: 'address', type: 'address' },
1068
- ],
1069
- name: 'ERC721InvalidApprover',
1070
- },
1071
- {
1072
- type: 'error',
1073
- inputs: [
1074
- { name: 'operator', internalType: 'address', type: 'address' },
1075
- ],
1076
- name: 'ERC721InvalidOperator',
1077
- },
1078
- {
1079
- type: 'error',
1080
- inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
1081
- name: 'ERC721InvalidOwner',
1082
- },
1083
- {
1084
- type: 'error',
1085
- inputs: [
1086
- { name: 'receiver', internalType: 'address', type: 'address' },
1087
- ],
1088
- name: 'ERC721InvalidReceiver',
1089
- },
1090
- {
1091
- type: 'error',
1092
- inputs: [{ name: 'sender', internalType: 'address', type: 'address' }],
1093
- name: 'ERC721InvalidSender',
1094
- },
1095
- {
1096
- type: 'error',
1097
- inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
1098
- name: 'ERC721NonexistentToken',
1099
- },
1100
- {
1101
- type: 'error',
1102
- inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
1103
- name: 'OwnableInvalidOwner',
1104
- },
1105
- {
1106
- type: 'error',
1107
- inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
1108
- name: 'OwnableUnauthorizedAccount',
1109
- },
1110
- {
1111
- type: 'event',
1112
- anonymous: false,
1113
- inputs: [
1114
- {
1115
- name: 'owner',
1116
- internalType: 'address',
1117
- type: 'address',
1118
- indexed: true,
1119
- },
1120
- {
1121
- name: 'approved',
1122
- internalType: 'address',
1123
- type: 'address',
1124
- indexed: true,
1125
- },
1126
- {
1127
- name: 'tokenId',
1128
- internalType: 'uint256',
1129
- type: 'uint256',
1130
- indexed: true,
1131
- },
1132
- ],
1133
- name: 'Approval',
1134
- },
1135
- {
1136
- type: 'event',
1137
- anonymous: false,
1138
- inputs: [
1139
- {
1140
- name: 'owner',
1141
- internalType: 'address',
1142
- type: 'address',
1143
- indexed: true,
1144
- },
1145
- {
1146
- name: 'operator',
1147
- internalType: 'address',
1148
- type: 'address',
1149
- indexed: true,
1150
- },
1151
- {
1152
- name: 'approved',
1153
- internalType: 'bool',
1154
- type: 'bool',
1155
- indexed: false,
1156
- },
1157
- ],
1158
- name: 'ApprovalForAll',
1159
- },
1160
- {
1161
- type: 'event',
1162
- anonymous: false,
1163
- inputs: [
1164
- {
1165
- name: '_fromTokenId',
1166
- internalType: 'uint256',
1167
- type: 'uint256',
1168
- indexed: false,
1169
- },
1170
- {
1171
- name: '_toTokenId',
1172
- internalType: 'uint256',
1173
- type: 'uint256',
1174
- indexed: false,
1175
- },
1176
- ],
1177
- name: 'BatchMetadataUpdate',
1178
- },
1179
- {
1180
- type: 'event',
1181
- anonymous: false,
1182
- inputs: [
1183
- {
1184
- name: '_tokenId',
1185
- internalType: 'uint256',
1186
- type: 'uint256',
1187
- indexed: false,
1188
- },
1189
- ],
1190
- name: 'MetadataUpdate',
1191
- },
1192
- {
1193
- type: 'event',
1194
- anonymous: false,
1195
- inputs: [
1196
- {
1197
- name: 'previousOwner',
1198
- internalType: 'address',
1199
- type: 'address',
1200
- indexed: true,
1201
- },
1202
- {
1203
- name: 'newOwner',
1204
- internalType: 'address',
1205
- type: 'address',
1206
- indexed: true,
1207
- },
1208
- ],
1209
- name: 'OwnershipTransferred',
1210
- },
1211
- {
1212
- type: 'event',
1213
- anonymous: false,
1214
- inputs: [
1215
- {
1216
- name: 'from',
1217
- internalType: 'address',
1218
- type: 'address',
1219
- indexed: true,
1220
- },
1221
- {
1222
- name: 'to',
1223
- internalType: 'address',
1224
- type: 'address',
1225
- indexed: true,
1226
- },
1227
- {
1228
- name: 'tokenId',
1229
- internalType: 'uint256',
1230
- type: 'uint256',
1231
- indexed: true,
1232
- },
1233
- ],
1234
- name: 'Transfer',
1235
- },
1236
- {
1237
- type: 'function',
1238
- inputs: [
1239
- { name: 'to', internalType: 'address', type: 'address' },
1240
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
1241
- ],
1242
- name: 'approve',
1243
- outputs: [],
1244
- stateMutability: 'nonpayable',
1245
- },
1246
- {
1247
- type: 'function',
1248
- inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
1249
- name: 'balanceOf',
1250
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1251
- stateMutability: 'view',
1252
- },
1253
- {
1254
- type: 'function',
1255
- inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
1256
- name: 'getApproved',
1257
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
1258
- stateMutability: 'view',
1259
- },
1260
- {
1261
- type: 'function',
1262
- inputs: [
1263
- { name: 'owner', internalType: 'address', type: 'address' },
1264
- { name: 'operator', internalType: 'address', type: 'address' },
1265
- ],
1266
- name: 'isApprovedForAll',
1267
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1268
- stateMutability: 'view',
1269
- },
1270
- {
1271
- type: 'function',
1272
- inputs: [],
1273
- name: 'name',
1274
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
1275
- stateMutability: 'view',
1276
- },
1277
- {
1278
- type: 'function',
1279
- inputs: [],
1280
- name: 'owner',
1281
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
1282
- stateMutability: 'view',
1283
- },
1284
- {
1285
- type: 'function',
1286
- inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
1287
- name: 'ownerOf',
1288
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
1289
- stateMutability: 'view',
1290
- },
1291
- {
1292
- type: 'function',
1293
- inputs: [],
1294
- name: 'renounceOwnership',
1295
- outputs: [],
1296
- stateMutability: 'nonpayable',
1297
- },
1298
- {
1299
- type: 'function',
1300
- inputs: [
1301
- { name: 'to', internalType: 'address', type: 'address' },
1302
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
1303
- { name: 'uri', internalType: 'string', type: 'string' },
1304
- ],
1305
- name: 'safeMint',
1306
- outputs: [],
1307
- stateMutability: 'nonpayable',
1308
- },
1309
- {
1310
- type: 'function',
1311
- inputs: [
1312
- { name: 'from', internalType: 'address', type: 'address' },
1313
- { name: 'to', internalType: 'address', type: 'address' },
1314
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
1315
- ],
1316
- name: 'safeTransferFrom',
1317
- outputs: [],
1318
- stateMutability: 'nonpayable',
1319
- },
1320
- {
1321
- type: 'function',
1322
- inputs: [
1323
- { name: 'from', internalType: 'address', type: 'address' },
1324
- { name: 'to', internalType: 'address', type: 'address' },
1325
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
1326
- { name: 'data', internalType: 'bytes', type: 'bytes' },
1327
- ],
1328
- name: 'safeTransferFrom',
1329
- outputs: [],
1330
- stateMutability: 'nonpayable',
1331
- },
1332
- {
1333
- type: 'function',
1334
- inputs: [
1335
- { name: 'operator', internalType: 'address', type: 'address' },
1336
- { name: 'approved', internalType: 'bool', type: 'bool' },
1337
- ],
1338
- name: 'setApprovalForAll',
1339
- outputs: [],
1340
- stateMutability: 'nonpayable',
1341
- },
1342
- {
1343
- type: 'function',
1344
- inputs: [
1345
- { name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' },
1346
- ],
1347
- name: 'supportsInterface',
1348
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1349
- stateMutability: 'view',
1350
- },
1351
- {
1352
- type: 'function',
1353
- inputs: [],
1354
- name: 'symbol',
1355
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
1356
- stateMutability: 'view',
1357
- },
1358
- {
1359
- type: 'function',
1360
- inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
1361
- name: 'tokenURI',
1362
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
1363
- stateMutability: 'view',
1364
- },
1365
- {
1366
- type: 'function',
1367
- inputs: [
1368
- { name: 'from', internalType: 'address', type: 'address' },
1369
- { name: 'to', internalType: 'address', type: 'address' },
1370
- { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
1371
- ],
1372
- name: 'transferFrom',
1373
- outputs: [],
1374
- stateMutability: 'nonpayable',
1375
- },
1376
- {
1377
- type: 'function',
1378
- inputs: [
1379
- { name: 'newOwner', internalType: 'address', type: 'address' },
1380
- ],
1381
- name: 'transferOwnership',
1382
- outputs: [],
1383
- stateMutability: 'nonpayable',
1384
- },
1385
- ];
1386
- export const testNftAddress = '0x5dF0fB951D9f9a37E53Ae0111a653B1187938213';
1387
- export const testNftConfig = {
1388
- address: testNftAddress,
1389
- abi: testNftAbi,
1390
- };
1391
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1392
- // TestToken
1393
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1394
- export const testTokenAbi = [
1395
- {
1396
- type: 'constructor',
1397
- inputs: [
1398
- {
1399
- name: 'initialAuthority',
1400
- internalType: 'address',
1401
- type: 'address',
1402
- },
1403
- ],
1404
- stateMutability: 'nonpayable',
1405
- },
1406
- {
1407
- type: 'error',
1408
- inputs: [
1409
- { name: 'authority', internalType: 'address', type: 'address' },
1410
- ],
1411
- name: 'AccessManagedInvalidAuthority',
1412
- },
1413
- {
1414
- type: 'error',
1415
- inputs: [
1416
- { name: 'caller', internalType: 'address', type: 'address' },
1417
- { name: 'delay', internalType: 'uint32', type: 'uint32' },
1418
- ],
1419
- name: 'AccessManagedRequiredDelay',
1420
- },
1421
- {
1422
- type: 'error',
1423
- inputs: [{ name: 'caller', internalType: 'address', type: 'address' }],
1424
- name: 'AccessManagedUnauthorized',
1425
- },
1426
- { type: 'error', inputs: [], name: 'ECDSAInvalidSignature' },
1427
- {
1428
- type: 'error',
1429
- inputs: [{ name: 'length', internalType: 'uint256', type: 'uint256' }],
1430
- name: 'ECDSAInvalidSignatureLength',
1431
- },
1432
- {
1433
- type: 'error',
1434
- inputs: [{ name: 's', internalType: 'bytes32', type: 'bytes32' }],
1435
- name: 'ECDSAInvalidSignatureS',
1436
- },
1437
- {
1438
- type: 'error',
1439
- inputs: [
1440
- { name: 'spender', internalType: 'address', type: 'address' },
1441
- { name: 'allowance', internalType: 'uint256', type: 'uint256' },
1442
- { name: 'needed', internalType: 'uint256', type: 'uint256' },
1443
- ],
1444
- name: 'ERC20InsufficientAllowance',
1445
- },
1446
- {
1447
- type: 'error',
1448
- inputs: [
1449
- { name: 'sender', internalType: 'address', type: 'address' },
1450
- { name: 'balance', internalType: 'uint256', type: 'uint256' },
1451
- { name: 'needed', internalType: 'uint256', type: 'uint256' },
1452
- ],
1453
- name: 'ERC20InsufficientBalance',
1454
- },
1455
- {
1456
- type: 'error',
1457
- inputs: [
1458
- { name: 'approver', internalType: 'address', type: 'address' },
1459
- ],
1460
- name: 'ERC20InvalidApprover',
1461
- },
1462
- {
1463
- type: 'error',
1464
- inputs: [
1465
- { name: 'receiver', internalType: 'address', type: 'address' },
1466
- ],
1467
- name: 'ERC20InvalidReceiver',
1468
- },
1469
- {
1470
- type: 'error',
1471
- inputs: [{ name: 'sender', internalType: 'address', type: 'address' }],
1472
- name: 'ERC20InvalidSender',
1473
- },
1474
- {
1475
- type: 'error',
1476
- inputs: [{ name: 'spender', internalType: 'address', type: 'address' }],
1477
- name: 'ERC20InvalidSpender',
1478
- },
1479
- {
1480
- type: 'error',
1481
- inputs: [
1482
- { name: 'deadline', internalType: 'uint256', type: 'uint256' },
1483
- ],
1484
- name: 'ERC2612ExpiredSignature',
1485
- },
1486
- {
1487
- type: 'error',
1488
- inputs: [
1489
- { name: 'signer', internalType: 'address', type: 'address' },
1490
- { name: 'owner', internalType: 'address', type: 'address' },
1491
- ],
1492
- name: 'ERC2612InvalidSigner',
1493
- },
1494
- { type: 'error', inputs: [], name: 'EnforcedPause' },
1495
- { type: 'error', inputs: [], name: 'ExpectedPause' },
1496
- {
1497
- type: 'error',
1498
- inputs: [
1499
- { name: 'account', internalType: 'address', type: 'address' },
1500
- { name: 'currentNonce', internalType: 'uint256', type: 'uint256' },
1501
- ],
1502
- name: 'InvalidAccountNonce',
1503
- },
1504
- { type: 'error', inputs: [], name: 'InvalidShortString' },
1505
- {
1506
- type: 'error',
1507
- inputs: [{ name: 'str', internalType: 'string', type: 'string' }],
1508
- name: 'StringTooLong',
1509
- },
1510
- {
1511
- type: 'event',
1512
- anonymous: false,
1513
- inputs: [
1514
- {
1515
- name: 'owner',
1516
- internalType: 'address',
1517
- type: 'address',
1518
- indexed: true,
1519
- },
1520
- {
1521
- name: 'spender',
1522
- internalType: 'address',
1523
- type: 'address',
1524
- indexed: true,
1525
- },
1526
- {
1527
- name: 'value',
1528
- internalType: 'uint256',
1529
- type: 'uint256',
1530
- indexed: false,
1531
- },
1532
- ],
1533
- name: 'Approval',
1534
- },
1535
- {
1536
- type: 'event',
1537
- anonymous: false,
1538
- inputs: [
1539
- {
1540
- name: 'authority',
1541
- internalType: 'address',
1542
- type: 'address',
1543
- indexed: false,
1544
- },
1545
- ],
1546
- name: 'AuthorityUpdated',
1547
- },
1548
- {
1549
- type: 'event',
1550
- anonymous: false,
1551
- inputs: [],
1552
- name: 'EIP712DomainChanged',
1553
- },
1554
- {
1555
- type: 'event',
1556
- anonymous: false,
1557
- inputs: [
1558
- {
1559
- name: 'account',
1560
- internalType: 'address',
1561
- type: 'address',
1562
- indexed: false,
1563
- },
1564
- ],
1565
- name: 'Paused',
1566
- },
1567
- {
1568
- type: 'event',
1569
- anonymous: false,
1570
- inputs: [
1571
- {
1572
- name: 'from',
1573
- internalType: 'address',
1574
- type: 'address',
1575
- indexed: true,
1576
- },
1577
- {
1578
- name: 'to',
1579
- internalType: 'address',
1580
- type: 'address',
1581
- indexed: true,
1582
- },
1583
- {
1584
- name: 'value',
1585
- internalType: 'uint256',
1586
- type: 'uint256',
1587
- indexed: false,
1588
- },
1589
- ],
1590
- name: 'Transfer',
1591
- },
1592
- {
1593
- type: 'event',
1594
- anonymous: false,
1595
- inputs: [
1596
- {
1597
- name: 'account',
1598
- internalType: 'address',
1599
- type: 'address',
1600
- indexed: false,
1601
- },
1602
- ],
1603
- name: 'Unpaused',
1604
- },
1605
- {
1606
- type: 'function',
1607
- inputs: [],
1608
- name: 'DOMAIN_SEPARATOR',
1609
- outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
1610
- stateMutability: 'view',
1611
- },
1612
- {
1613
- type: 'function',
1614
- inputs: [
1615
- { name: 'owner', internalType: 'address', type: 'address' },
1616
- { name: 'spender', internalType: 'address', type: 'address' },
1617
- ],
1618
- name: 'allowance',
1619
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1620
- stateMutability: 'view',
1621
- },
1622
- {
1623
- type: 'function',
1624
- inputs: [
1625
- { name: 'spender', internalType: 'address', type: 'address' },
1626
- { name: 'value', internalType: 'uint256', type: 'uint256' },
1627
- ],
1628
- name: 'approve',
1629
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1630
- stateMutability: 'nonpayable',
1631
- },
1632
- {
1633
- type: 'function',
1634
- inputs: [],
1635
- name: 'authority',
1636
- outputs: [{ name: '', internalType: 'address', type: 'address' }],
1637
- stateMutability: 'view',
1638
- },
1639
- {
1640
- type: 'function',
1641
- inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
1642
- name: 'balanceOf',
1643
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1644
- stateMutability: 'view',
1645
- },
1646
- {
1647
- type: 'function',
1648
- inputs: [{ name: 'value', internalType: 'uint256', type: 'uint256' }],
1649
- name: 'burn',
1650
- outputs: [],
1651
- stateMutability: 'nonpayable',
1652
- },
1653
- {
1654
- type: 'function',
1655
- inputs: [
1656
- { name: 'account', internalType: 'address', type: 'address' },
1657
- { name: 'value', internalType: 'uint256', type: 'uint256' },
1658
- ],
1659
- name: 'burnFrom',
1660
- outputs: [],
1661
- stateMutability: 'nonpayable',
1662
- },
1663
- {
1664
- type: 'function',
1665
- inputs: [],
1666
- name: 'decimals',
1667
- outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
1668
- stateMutability: 'view',
1669
- },
1670
- {
1671
- type: 'function',
1672
- inputs: [],
1673
- name: 'eip712Domain',
1674
- outputs: [
1675
- { name: 'fields', internalType: 'bytes1', type: 'bytes1' },
1676
- { name: 'name', internalType: 'string', type: 'string' },
1677
- { name: 'version', internalType: 'string', type: 'string' },
1678
- { name: 'chainId', internalType: 'uint256', type: 'uint256' },
1679
- {
1680
- name: 'verifyingContract',
1681
- internalType: 'address',
1682
- type: 'address',
1683
- },
1684
- { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
1685
- {
1686
- name: 'extensions',
1687
- internalType: 'uint256[]',
1688
- type: 'uint256[]',
1689
- },
1690
- ],
1691
- stateMutability: 'view',
1692
- },
1693
- {
1694
- type: 'function',
1695
- inputs: [],
1696
- name: 'isConsumingScheduledOp',
1697
- outputs: [{ name: '', internalType: 'bytes4', type: 'bytes4' }],
1698
- stateMutability: 'view',
1699
- },
1700
- {
1701
- type: 'function',
1702
- inputs: [],
1703
- name: 'name',
1704
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
1705
- stateMutability: 'view',
1706
- },
1707
- {
1708
- type: 'function',
1709
- inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
1710
- name: 'nonces',
1711
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1712
- stateMutability: 'view',
1713
- },
1714
- {
1715
- type: 'function',
1716
- inputs: [],
1717
- name: 'pause',
1718
- outputs: [],
1719
- stateMutability: 'nonpayable',
1720
- },
1721
- {
1722
- type: 'function',
1723
- inputs: [],
1724
- name: 'paused',
1725
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1726
- stateMutability: 'view',
1727
- },
1728
- {
1729
- type: 'function',
1730
- inputs: [
1731
- { name: 'owner', internalType: 'address', type: 'address' },
1732
- { name: 'spender', internalType: 'address', type: 'address' },
1733
- { name: 'value', internalType: 'uint256', type: 'uint256' },
1734
- { name: 'deadline', internalType: 'uint256', type: 'uint256' },
1735
- { name: 'v', internalType: 'uint8', type: 'uint8' },
1736
- { name: 'r', internalType: 'bytes32', type: 'bytes32' },
1737
- { name: 's', internalType: 'bytes32', type: 'bytes32' },
1738
- ],
1739
- name: 'permit',
1740
- outputs: [],
1741
- stateMutability: 'nonpayable',
1742
- },
1743
- {
1744
- type: 'function',
1745
- inputs: [
1746
- { name: 'newAuthority', internalType: 'address', type: 'address' },
1747
- ],
1748
- name: 'setAuthority',
1749
- outputs: [],
1750
- stateMutability: 'nonpayable',
1751
- },
1752
- {
1753
- type: 'function',
1754
- inputs: [],
1755
- name: 'symbol',
1756
- outputs: [{ name: '', internalType: 'string', type: 'string' }],
1757
- stateMutability: 'view',
1758
- },
1759
- {
1760
- type: 'function',
1761
- inputs: [],
1762
- name: 'totalSupply',
1763
- outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1764
- stateMutability: 'view',
1765
- },
1766
- {
1767
- type: 'function',
1768
- inputs: [
1769
- { name: 'to', internalType: 'address', type: 'address' },
1770
- { name: 'value', internalType: 'uint256', type: 'uint256' },
1771
- ],
1772
- name: 'transfer',
1773
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1774
- stateMutability: 'nonpayable',
1775
- },
1776
- {
1777
- type: 'function',
1778
- inputs: [
1779
- { name: 'from', internalType: 'address', type: 'address' },
1780
- { name: 'to', internalType: 'address', type: 'address' },
1781
- { name: 'value', internalType: 'uint256', type: 'uint256' },
1782
- ],
1783
- name: 'transferFrom',
1784
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1785
- stateMutability: 'nonpayable',
1786
- },
1787
- {
1788
- type: 'function',
1789
- inputs: [],
1790
- name: 'unpause',
1791
- outputs: [],
1792
- stateMutability: 'nonpayable',
1793
- },
1794
- ];
1795
- export const testTokenAddress = '0xfb47f7065a6a81E28520cA5Ce0E4D787E3683973';
1796
- export const testTokenConfig = {
1797
- address: testTokenAddress,
1798
- abi: testTokenAbi,
1799
- };