@cartesi/cli 2.0.0-alpha.21 → 2.0.0-alpha.23

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