@cartesi/cli 0.14.0

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