@cartesi/cli 2.0.0-alpha.7 → 2.0.0-alpha.8
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.
- package/dist/commands/create.d.ts +1 -1
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +1 -1
- package/dist/commands/rollups/deploy.d.ts.map +1 -1
- package/dist/commands/rollups/deploy.js +21 -9
- package/dist/commands/rollups/start.d.ts.map +1 -1
- package/dist/commands/rollups/start.js +6 -4
- package/dist/commands/send.js +1 -1
- package/dist/compose/rollups/default.env +6 -7
- package/dist/compose/rollups/docker-compose-anvil.yaml +4 -2
- package/dist/compose/rollups/docker-compose-database.yaml +1 -1
- package/dist/compose/rollups/docker-compose-espresso.yaml +6 -32
- package/dist/compose/rollups/docker-compose-explorer.yaml +8 -21
- package/dist/compose/rollups/docker-compose-graphql.yaml +3 -29
- package/dist/compose/rollups/docker-compose-node.yaml +2 -12
- package/dist/compose/rollups/proxy/anvil.yaml +17 -0
- package/dist/config.d.ts +2 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +4 -3
- package/dist/contracts.d.ts +1695 -1636
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +632 -592
- package/dist/exec/rollups.js +6 -6
- package/dist/wallet.d.ts.map +1 -1
- package/dist/wallet.js +29 -11
- package/package.json +3 -3
package/dist/contracts.js
CHANGED
|
@@ -2,47 +2,17 @@
|
|
|
2
2
|
// ApplicationFactory
|
|
3
3
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
4
4
|
export const applicationFactoryAbi = [
|
|
5
|
-
{
|
|
6
|
-
type: 'event',
|
|
7
|
-
anonymous: false,
|
|
8
|
-
inputs: [
|
|
9
|
-
{
|
|
10
|
-
name: 'consensus',
|
|
11
|
-
internalType: 'contract IConsensus',
|
|
12
|
-
type: 'address',
|
|
13
|
-
indexed: true,
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
name: 'appOwner',
|
|
17
|
-
internalType: 'address',
|
|
18
|
-
type: 'address',
|
|
19
|
-
indexed: false,
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
name: 'templateHash',
|
|
23
|
-
internalType: 'bytes32',
|
|
24
|
-
type: 'bytes32',
|
|
25
|
-
indexed: false,
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: 'appContract',
|
|
29
|
-
internalType: 'contract IApplication',
|
|
30
|
-
type: 'address',
|
|
31
|
-
indexed: false,
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
name: 'ApplicationCreated',
|
|
35
|
-
},
|
|
36
5
|
{
|
|
37
6
|
type: 'function',
|
|
38
7
|
inputs: [
|
|
39
8
|
{
|
|
40
|
-
name: '
|
|
41
|
-
internalType: 'contract
|
|
9
|
+
name: 'outputsMerkleRootValidator',
|
|
10
|
+
internalType: 'contract IOutputsMerkleRootValidator',
|
|
42
11
|
type: 'address',
|
|
43
12
|
},
|
|
44
13
|
{ name: 'appOwner', internalType: 'address', type: 'address' },
|
|
45
14
|
{ name: 'templateHash', internalType: 'bytes32', type: 'bytes32' },
|
|
15
|
+
{ name: 'dataAvailability', internalType: 'bytes', type: 'bytes' },
|
|
46
16
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
47
17
|
],
|
|
48
18
|
name: 'calculateApplicationAddress',
|
|
@@ -53,12 +23,13 @@ export const applicationFactoryAbi = [
|
|
|
53
23
|
type: 'function',
|
|
54
24
|
inputs: [
|
|
55
25
|
{
|
|
56
|
-
name: '
|
|
57
|
-
internalType: 'contract
|
|
26
|
+
name: 'outputsMerkleRootValidator',
|
|
27
|
+
internalType: 'contract IOutputsMerkleRootValidator',
|
|
58
28
|
type: 'address',
|
|
59
29
|
},
|
|
60
30
|
{ name: 'appOwner', internalType: 'address', type: 'address' },
|
|
61
31
|
{ name: 'templateHash', internalType: 'bytes32', type: 'bytes32' },
|
|
32
|
+
{ name: 'dataAvailability', internalType: 'bytes', type: 'bytes' },
|
|
62
33
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
63
34
|
],
|
|
64
35
|
name: 'newApplication',
|
|
@@ -75,12 +46,13 @@ export const applicationFactoryAbi = [
|
|
|
75
46
|
type: 'function',
|
|
76
47
|
inputs: [
|
|
77
48
|
{
|
|
78
|
-
name: '
|
|
79
|
-
internalType: 'contract
|
|
49
|
+
name: 'outputsMerkleRootValidator',
|
|
50
|
+
internalType: 'contract IOutputsMerkleRootValidator',
|
|
80
51
|
type: 'address',
|
|
81
52
|
},
|
|
82
53
|
{ name: 'appOwner', internalType: 'address', type: 'address' },
|
|
83
54
|
{ name: 'templateHash', internalType: 'bytes32', type: 'bytes32' },
|
|
55
|
+
{ name: 'dataAvailability', internalType: 'bytes', type: 'bytes' },
|
|
84
56
|
],
|
|
85
57
|
name: 'newApplication',
|
|
86
58
|
outputs: [
|
|
@@ -92,29 +64,53 @@ export const applicationFactoryAbi = [
|
|
|
92
64
|
],
|
|
93
65
|
stateMutability: 'nonpayable',
|
|
94
66
|
},
|
|
95
|
-
];
|
|
96
|
-
export const applicationFactoryAddress = '0xd7d4d184b82b1a4e08f304DDaB0A2A7a301C2620';
|
|
97
|
-
export const applicationFactoryConfig = {
|
|
98
|
-
address: applicationFactoryAddress,
|
|
99
|
-
abi: applicationFactoryAbi,
|
|
100
|
-
};
|
|
101
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
102
|
-
// AuthorityFactory
|
|
103
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
104
|
-
export const authorityFactoryAbi = [
|
|
105
67
|
{
|
|
106
68
|
type: 'event',
|
|
107
69
|
anonymous: false,
|
|
108
70
|
inputs: [
|
|
109
71
|
{
|
|
110
|
-
name: '
|
|
111
|
-
internalType: 'contract
|
|
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',
|
|
112
98
|
type: 'address',
|
|
113
99
|
indexed: false,
|
|
114
100
|
},
|
|
115
101
|
],
|
|
116
|
-
name: '
|
|
102
|
+
name: 'ApplicationCreated',
|
|
117
103
|
},
|
|
104
|
+
];
|
|
105
|
+
export const applicationFactoryAddress = '0x2210ad1d9B0bD2D470c2bfA4814ab6253BC421A0';
|
|
106
|
+
export const applicationFactoryConfig = {
|
|
107
|
+
address: applicationFactoryAddress,
|
|
108
|
+
abi: applicationFactoryAbi,
|
|
109
|
+
};
|
|
110
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
111
|
+
// AuthorityFactory
|
|
112
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
113
|
+
export const authorityFactoryAbi = [
|
|
118
114
|
{
|
|
119
115
|
type: 'function',
|
|
120
116
|
inputs: [
|
|
@@ -163,13 +159,59 @@ export const authorityFactoryAbi = [
|
|
|
163
159
|
],
|
|
164
160
|
stateMutability: 'nonpayable',
|
|
165
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
|
+
},
|
|
166
175
|
];
|
|
167
|
-
export const authorityFactoryAddress = '
|
|
176
|
+
export const authorityFactoryAddress = '0x451f57Ca716046D114Ab9ff23269a2F9F4a1bdaF';
|
|
168
177
|
export const authorityFactoryConfig = {
|
|
169
178
|
address: authorityFactoryAddress,
|
|
170
179
|
abi: authorityFactoryAbi,
|
|
171
180
|
};
|
|
172
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
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
173
215
|
// ERC1155BatchPortal
|
|
174
216
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
175
217
|
export const erc1155BatchPortalAbi = [
|
|
@@ -212,7 +254,7 @@ export const erc1155BatchPortalAbi = [
|
|
|
212
254
|
stateMutability: 'view',
|
|
213
255
|
},
|
|
214
256
|
];
|
|
215
|
-
export const erc1155BatchPortalAddress = '
|
|
257
|
+
export const erc1155BatchPortalAddress = '0xBc70d79F916A6d48aB0b8F03AC58f89742dEDA34';
|
|
216
258
|
export const erc1155BatchPortalConfig = {
|
|
217
259
|
address: erc1155BatchPortalAddress,
|
|
218
260
|
abi: erc1155BatchPortalAbi,
|
|
@@ -260,7 +302,7 @@ export const erc1155SinglePortalAbi = [
|
|
|
260
302
|
stateMutability: 'view',
|
|
261
303
|
},
|
|
262
304
|
];
|
|
263
|
-
export const erc1155SinglePortalAddress = '
|
|
305
|
+
export const erc1155SinglePortalAddress = '0xB778147D50219544F113A55DE1d8de626f0cC1bB';
|
|
264
306
|
export const erc1155SinglePortalConfig = {
|
|
265
307
|
address: erc1155SinglePortalAddress,
|
|
266
308
|
abi: erc1155SinglePortalAbi,
|
|
@@ -280,7 +322,6 @@ export const erc20PortalAbi = [
|
|
|
280
322
|
],
|
|
281
323
|
stateMutability: 'nonpayable',
|
|
282
324
|
},
|
|
283
|
-
{ type: 'error', inputs: [], name: 'ERC20TransferFailed' },
|
|
284
325
|
{
|
|
285
326
|
type: 'function',
|
|
286
327
|
inputs: [
|
|
@@ -302,8 +343,9 @@ export const erc20PortalAbi = [
|
|
|
302
343
|
],
|
|
303
344
|
stateMutability: 'view',
|
|
304
345
|
},
|
|
346
|
+
{ type: 'error', inputs: [], name: 'ERC20TransferFailed' },
|
|
305
347
|
];
|
|
306
|
-
export const erc20PortalAddress = '
|
|
348
|
+
export const erc20PortalAddress = '0x05355c2F9bA566c06199DEb17212c3B78C1A3C31';
|
|
307
349
|
export const erc20PortalConfig = {
|
|
308
350
|
address: erc20PortalAddress,
|
|
309
351
|
abi: erc20PortalAbi,
|
|
@@ -350,7 +392,7 @@ export const erc721PortalAbi = [
|
|
|
350
392
|
stateMutability: 'view',
|
|
351
393
|
},
|
|
352
394
|
];
|
|
353
|
-
export const erc721PortalAddress = '
|
|
395
|
+
export const erc721PortalAddress = '0x0F5A20d3729c44FedabBb560b3D633dc1c246DDe';
|
|
354
396
|
export const erc721PortalConfig = {
|
|
355
397
|
address: erc721PortalAddress,
|
|
356
398
|
abi: erc721PortalAbi,
|
|
@@ -370,7 +412,6 @@ export const etherPortalAbi = [
|
|
|
370
412
|
],
|
|
371
413
|
stateMutability: 'nonpayable',
|
|
372
414
|
},
|
|
373
|
-
{ type: 'error', inputs: [], name: 'EtherTransferFailed' },
|
|
374
415
|
{
|
|
375
416
|
type: 'function',
|
|
376
417
|
inputs: [
|
|
@@ -390,8 +431,9 @@ export const etherPortalAbi = [
|
|
|
390
431
|
],
|
|
391
432
|
stateMutability: 'view',
|
|
392
433
|
},
|
|
434
|
+
{ type: 'error', inputs: [], name: 'EtherTransferFailed' },
|
|
393
435
|
];
|
|
394
|
-
export const etherPortalAddress = '
|
|
436
|
+
export const etherPortalAddress = '0xd31aD6613bDaA139E7D12B2428C0Dd00fdBF8aDa';
|
|
395
437
|
export const etherPortalConfig = {
|
|
396
438
|
address: etherPortalAddress,
|
|
397
439
|
abi: etherPortalAbi,
|
|
@@ -401,17 +443,40 @@ export const etherPortalConfig = {
|
|
|
401
443
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
402
444
|
export const inputBoxAbi = [
|
|
403
445
|
{
|
|
404
|
-
type: '
|
|
446
|
+
type: 'function',
|
|
405
447
|
inputs: [
|
|
406
448
|
{ name: 'appContract', internalType: 'address', type: 'address' },
|
|
407
|
-
{ name: '
|
|
408
|
-
{
|
|
409
|
-
name: 'maxInputLength',
|
|
410
|
-
internalType: 'uint256',
|
|
411
|
-
type: 'uint256',
|
|
412
|
-
},
|
|
449
|
+
{ name: 'payload', internalType: 'bytes', type: 'bytes' },
|
|
413
450
|
],
|
|
414
|
-
name: '
|
|
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',
|
|
415
480
|
},
|
|
416
481
|
{
|
|
417
482
|
type: 'event',
|
|
@@ -439,36 +504,20 @@ export const inputBoxAbi = [
|
|
|
439
504
|
name: 'InputAdded',
|
|
440
505
|
},
|
|
441
506
|
{
|
|
442
|
-
type: '
|
|
443
|
-
inputs: [
|
|
444
|
-
{ name: 'appContract', internalType: 'address', type: 'address' },
|
|
445
|
-
{ name: 'payload', internalType: 'bytes', type: 'bytes' },
|
|
446
|
-
],
|
|
447
|
-
name: 'addInput',
|
|
448
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
449
|
-
stateMutability: 'nonpayable',
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
type: 'function',
|
|
453
|
-
inputs: [
|
|
454
|
-
{ name: 'appContract', internalType: 'address', type: 'address' },
|
|
455
|
-
{ name: 'index', internalType: 'uint256', type: 'uint256' },
|
|
456
|
-
],
|
|
457
|
-
name: 'getInputHash',
|
|
458
|
-
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
459
|
-
stateMutability: 'view',
|
|
460
|
-
},
|
|
461
|
-
{
|
|
462
|
-
type: 'function',
|
|
507
|
+
type: 'error',
|
|
463
508
|
inputs: [
|
|
464
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
|
+
},
|
|
465
516
|
],
|
|
466
|
-
name: '
|
|
467
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
468
|
-
stateMutability: 'view',
|
|
517
|
+
name: 'InputTooLarge',
|
|
469
518
|
},
|
|
470
519
|
];
|
|
471
|
-
export const inputBoxAddress = '
|
|
520
|
+
export const inputBoxAddress = '0xB6b39Fb3dD926A9e3FBc7A129540eEbeA3016a6c';
|
|
472
521
|
export const inputBoxConfig = {
|
|
473
522
|
address: inputBoxAddress,
|
|
474
523
|
abi: inputBoxAbi,
|
|
@@ -477,19 +526,6 @@ export const inputBoxConfig = {
|
|
|
477
526
|
// QuorumFactory
|
|
478
527
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
479
528
|
export const quorumFactoryAbi = [
|
|
480
|
-
{
|
|
481
|
-
type: 'event',
|
|
482
|
-
anonymous: false,
|
|
483
|
-
inputs: [
|
|
484
|
-
{
|
|
485
|
-
name: 'quorum',
|
|
486
|
-
internalType: 'contract IQuorum',
|
|
487
|
-
type: 'address',
|
|
488
|
-
indexed: false,
|
|
489
|
-
},
|
|
490
|
-
],
|
|
491
|
-
name: 'QuorumCreated',
|
|
492
|
-
},
|
|
493
529
|
{
|
|
494
530
|
type: 'function',
|
|
495
531
|
inputs: [
|
|
@@ -538,8 +574,21 @@ export const quorumFactoryAbi = [
|
|
|
538
574
|
],
|
|
539
575
|
stateMutability: 'nonpayable',
|
|
540
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
|
+
},
|
|
541
590
|
];
|
|
542
|
-
export const quorumFactoryAddress = '
|
|
591
|
+
export const quorumFactoryAddress = '0xb85D3942e551E6E5f19AC2CCF8dAb195f5f0347E';
|
|
543
592
|
export const quorumFactoryConfig = {
|
|
544
593
|
address: quorumFactoryAddress,
|
|
545
594
|
abi: quorumFactoryAbi,
|
|
@@ -548,22 +597,6 @@ export const quorumFactoryConfig = {
|
|
|
548
597
|
// SafeERC20Transfer
|
|
549
598
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
550
599
|
export const safeErc20TransferAbi = [
|
|
551
|
-
{
|
|
552
|
-
type: 'error',
|
|
553
|
-
inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
|
|
554
|
-
name: 'AddressEmptyCode',
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
type: 'error',
|
|
558
|
-
inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
|
|
559
|
-
name: 'AddressInsufficientBalance',
|
|
560
|
-
},
|
|
561
|
-
{ type: 'error', inputs: [], name: 'FailedInnerCall' },
|
|
562
|
-
{
|
|
563
|
-
type: 'error',
|
|
564
|
-
inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
|
|
565
|
-
name: 'SafeERC20FailedOperation',
|
|
566
|
-
},
|
|
567
600
|
{
|
|
568
601
|
type: 'function',
|
|
569
602
|
inputs: [
|
|
@@ -575,8 +608,13 @@ export const safeErc20TransferAbi = [
|
|
|
575
608
|
outputs: [],
|
|
576
609
|
stateMutability: 'nonpayable',
|
|
577
610
|
},
|
|
611
|
+
{
|
|
612
|
+
type: 'error',
|
|
613
|
+
inputs: [{ name: 'token', internalType: 'address', type: 'address' }],
|
|
614
|
+
name: 'SafeERC20FailedOperation',
|
|
615
|
+
},
|
|
578
616
|
];
|
|
579
|
-
export const safeErc20TransferAddress = '
|
|
617
|
+
export const safeErc20TransferAddress = '0x35187C9f069D34aB73c02327ae155746a8274208';
|
|
580
618
|
export const safeErc20TransferConfig = {
|
|
581
619
|
address: safeErc20TransferAddress,
|
|
582
620
|
abi: safeErc20TransferAbi,
|
|
@@ -612,6 +650,7 @@ export const selfHostedApplicationFactoryAbi = [
|
|
|
612
650
|
{ name: 'epochLength', internalType: 'uint256', type: 'uint256' },
|
|
613
651
|
{ name: 'appOwner', internalType: 'address', type: 'address' },
|
|
614
652
|
{ name: 'templateHash', internalType: 'bytes32', type: 'bytes32' },
|
|
653
|
+
{ name: 'dataAvailability', internalType: 'bytes', type: 'bytes' },
|
|
615
654
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
616
655
|
],
|
|
617
656
|
name: 'calculateAddresses',
|
|
@@ -632,6 +671,7 @@ export const selfHostedApplicationFactoryAbi = [
|
|
|
632
671
|
{ name: 'epochLength', internalType: 'uint256', type: 'uint256' },
|
|
633
672
|
{ name: 'appOwner', internalType: 'address', type: 'address' },
|
|
634
673
|
{ name: 'templateHash', internalType: 'bytes32', type: 'bytes32' },
|
|
674
|
+
{ name: 'dataAvailability', internalType: 'bytes', type: 'bytes' },
|
|
635
675
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
636
676
|
],
|
|
637
677
|
name: 'deployContracts',
|
|
@@ -676,7 +716,7 @@ export const selfHostedApplicationFactoryAbi = [
|
|
|
676
716
|
stateMutability: 'view',
|
|
677
717
|
},
|
|
678
718
|
];
|
|
679
|
-
export const selfHostedApplicationFactoryAddress = '
|
|
719
|
+
export const selfHostedApplicationFactoryAddress = '0x4a409e1CaB9229711C4e1f68625DdbC75809e721';
|
|
680
720
|
export const selfHostedApplicationFactoryConfig = {
|
|
681
721
|
address: selfHostedApplicationFactoryAddress,
|
|
682
722
|
abi: selfHostedApplicationFactoryAbi,
|
|
@@ -693,66 +733,140 @@ export const testMultiTokenAbi = [
|
|
|
693
733
|
stateMutability: 'nonpayable',
|
|
694
734
|
},
|
|
695
735
|
{
|
|
696
|
-
type: '
|
|
736
|
+
type: 'function',
|
|
697
737
|
inputs: [
|
|
698
|
-
{ name: '
|
|
699
|
-
{ name: '
|
|
700
|
-
{ name: 'needed', internalType: 'uint256', type: 'uint256' },
|
|
701
|
-
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
738
|
+
{ name: 'account', internalType: 'address', type: 'address' },
|
|
739
|
+
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
702
740
|
],
|
|
703
|
-
name: '
|
|
741
|
+
name: 'balanceOf',
|
|
742
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
743
|
+
stateMutability: 'view',
|
|
704
744
|
},
|
|
705
745
|
{
|
|
706
|
-
type: '
|
|
746
|
+
type: 'function',
|
|
707
747
|
inputs: [
|
|
708
|
-
{ name: '
|
|
748
|
+
{ name: 'accounts', internalType: 'address[]', type: 'address[]' },
|
|
749
|
+
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
709
750
|
],
|
|
710
|
-
name: '
|
|
751
|
+
name: 'balanceOfBatch',
|
|
752
|
+
outputs: [{ name: '', internalType: 'uint256[]', type: 'uint256[]' }],
|
|
753
|
+
stateMutability: 'view',
|
|
711
754
|
},
|
|
712
755
|
{
|
|
713
|
-
type: '
|
|
756
|
+
type: 'function',
|
|
714
757
|
inputs: [
|
|
715
|
-
{ name: '
|
|
716
|
-
{ name: '
|
|
758
|
+
{ name: 'account', internalType: 'address', type: 'address' },
|
|
759
|
+
{ name: 'operator', internalType: 'address', type: 'address' },
|
|
717
760
|
],
|
|
718
|
-
name: '
|
|
761
|
+
name: 'isApprovedForAll',
|
|
762
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
763
|
+
stateMutability: 'view',
|
|
719
764
|
},
|
|
720
765
|
{
|
|
721
|
-
type: '
|
|
766
|
+
type: 'function',
|
|
722
767
|
inputs: [
|
|
723
|
-
{ name: '
|
|
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' },
|
|
724
772
|
],
|
|
725
|
-
name: '
|
|
773
|
+
name: 'mint',
|
|
774
|
+
outputs: [],
|
|
775
|
+
stateMutability: 'nonpayable',
|
|
726
776
|
},
|
|
727
777
|
{
|
|
728
|
-
type: '
|
|
778
|
+
type: 'function',
|
|
729
779
|
inputs: [
|
|
730
|
-
{ name: '
|
|
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' },
|
|
731
784
|
],
|
|
732
|
-
name: '
|
|
785
|
+
name: 'mintBatch',
|
|
786
|
+
outputs: [],
|
|
787
|
+
stateMutability: 'nonpayable',
|
|
733
788
|
},
|
|
734
789
|
{
|
|
735
|
-
type: '
|
|
736
|
-
inputs: [
|
|
737
|
-
name: '
|
|
790
|
+
type: 'function',
|
|
791
|
+
inputs: [],
|
|
792
|
+
name: 'owner',
|
|
793
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
794
|
+
stateMutability: 'view',
|
|
738
795
|
},
|
|
739
796
|
{
|
|
740
|
-
type: '
|
|
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',
|
|
741
831
|
inputs: [
|
|
742
832
|
{ name: 'operator', internalType: 'address', type: 'address' },
|
|
743
|
-
{ name: '
|
|
833
|
+
{ name: 'approved', internalType: 'bool', type: 'bool' },
|
|
744
834
|
],
|
|
745
|
-
name: '
|
|
835
|
+
name: 'setApprovalForAll',
|
|
836
|
+
outputs: [],
|
|
837
|
+
stateMutability: 'nonpayable',
|
|
746
838
|
},
|
|
747
839
|
{
|
|
748
|
-
type: '
|
|
749
|
-
inputs: [{ name: '
|
|
750
|
-
name: '
|
|
840
|
+
type: 'function',
|
|
841
|
+
inputs: [{ name: 'newuri', internalType: 'string', type: 'string' }],
|
|
842
|
+
name: 'setURI',
|
|
843
|
+
outputs: [],
|
|
844
|
+
stateMutability: 'nonpayable',
|
|
751
845
|
},
|
|
752
846
|
{
|
|
753
|
-
type: '
|
|
754
|
-
inputs: [
|
|
755
|
-
|
|
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',
|
|
756
870
|
},
|
|
757
871
|
{
|
|
758
872
|
type: 'event',
|
|
@@ -892,59 +1006,125 @@ export const testMultiTokenAbi = [
|
|
|
892
1006
|
name: 'URI',
|
|
893
1007
|
},
|
|
894
1008
|
{
|
|
895
|
-
type: '
|
|
1009
|
+
type: 'error',
|
|
896
1010
|
inputs: [
|
|
897
|
-
{ name: '
|
|
898
|
-
{ name: '
|
|
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' },
|
|
899
1015
|
],
|
|
900
|
-
name: '
|
|
901
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
902
|
-
stateMutability: 'view',
|
|
1016
|
+
name: 'ERC1155InsufficientBalance',
|
|
903
1017
|
},
|
|
904
1018
|
{
|
|
905
|
-
type: '
|
|
1019
|
+
type: 'error',
|
|
906
1020
|
inputs: [
|
|
907
|
-
{ name: '
|
|
908
|
-
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1021
|
+
{ name: 'approver', internalType: 'address', type: 'address' },
|
|
909
1022
|
],
|
|
910
|
-
name: '
|
|
911
|
-
outputs: [{ name: '', internalType: 'uint256[]', type: 'uint256[]' }],
|
|
912
|
-
stateMutability: 'view',
|
|
1023
|
+
name: 'ERC1155InvalidApprover',
|
|
913
1024
|
},
|
|
914
1025
|
{
|
|
915
|
-
type: '
|
|
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',
|
|
916
1035
|
inputs: [
|
|
917
|
-
{ name: 'account', internalType: 'address', type: 'address' },
|
|
918
1036
|
{ name: 'operator', internalType: 'address', type: 'address' },
|
|
919
1037
|
],
|
|
920
|
-
name: '
|
|
921
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
922
|
-
stateMutability: 'view',
|
|
1038
|
+
name: 'ERC1155InvalidOperator',
|
|
923
1039
|
},
|
|
924
1040
|
{
|
|
925
|
-
type: '
|
|
1041
|
+
type: 'error',
|
|
926
1042
|
inputs: [
|
|
927
|
-
{ name: '
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
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' },
|
|
931
1084
|
],
|
|
932
|
-
name: 'mint',
|
|
933
|
-
outputs: [],
|
|
934
1085
|
stateMutability: 'nonpayable',
|
|
935
1086
|
},
|
|
936
1087
|
{
|
|
937
1088
|
type: 'function',
|
|
938
1089
|
inputs: [
|
|
939
1090
|
{ name: 'to', internalType: 'address', type: 'address' },
|
|
940
|
-
{ name: '
|
|
941
|
-
{ name: 'amounts', internalType: 'uint256[]', type: 'uint256[]' },
|
|
942
|
-
{ name: 'data', internalType: 'bytes', type: 'bytes' },
|
|
1091
|
+
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
943
1092
|
],
|
|
944
|
-
name: '
|
|
1093
|
+
name: 'approve',
|
|
945
1094
|
outputs: [],
|
|
946
1095
|
stateMutability: 'nonpayable',
|
|
947
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
|
+
},
|
|
948
1128
|
{
|
|
949
1129
|
type: 'function',
|
|
950
1130
|
inputs: [],
|
|
@@ -952,6 +1132,13 @@ export const testMultiTokenAbi = [
|
|
|
952
1132
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
953
1133
|
stateMutability: 'view',
|
|
954
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
|
+
},
|
|
955
1142
|
{
|
|
956
1143
|
type: 'function',
|
|
957
1144
|
inputs: [],
|
|
@@ -962,13 +1149,11 @@ export const testMultiTokenAbi = [
|
|
|
962
1149
|
{
|
|
963
1150
|
type: 'function',
|
|
964
1151
|
inputs: [
|
|
965
|
-
{ name: 'from', internalType: 'address', type: 'address' },
|
|
966
1152
|
{ name: 'to', internalType: 'address', type: 'address' },
|
|
967
|
-
{ name: '
|
|
968
|
-
{ name: '
|
|
969
|
-
{ name: 'data', internalType: 'bytes', type: 'bytes' },
|
|
1153
|
+
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
1154
|
+
{ name: 'uri', internalType: 'string', type: 'string' },
|
|
970
1155
|
],
|
|
971
|
-
name: '
|
|
1156
|
+
name: 'safeMint',
|
|
972
1157
|
outputs: [],
|
|
973
1158
|
stateMutability: 'nonpayable',
|
|
974
1159
|
},
|
|
@@ -977,9 +1162,7 @@ export const testMultiTokenAbi = [
|
|
|
977
1162
|
inputs: [
|
|
978
1163
|
{ name: 'from', internalType: 'address', type: 'address' },
|
|
979
1164
|
{ name: 'to', internalType: 'address', type: 'address' },
|
|
980
|
-
{ name: '
|
|
981
|
-
{ name: 'value', internalType: 'uint256', type: 'uint256' },
|
|
982
|
-
{ name: 'data', internalType: 'bytes', type: 'bytes' },
|
|
1165
|
+
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
983
1166
|
],
|
|
984
1167
|
name: 'safeTransferFrom',
|
|
985
1168
|
outputs: [],
|
|
@@ -988,17 +1171,22 @@ export const testMultiTokenAbi = [
|
|
|
988
1171
|
{
|
|
989
1172
|
type: 'function',
|
|
990
1173
|
inputs: [
|
|
991
|
-
{ name: '
|
|
992
|
-
{ name: '
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
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: [],
|
|
996
1181
|
stateMutability: 'nonpayable',
|
|
997
1182
|
},
|
|
998
1183
|
{
|
|
999
1184
|
type: 'function',
|
|
1000
|
-
inputs: [
|
|
1001
|
-
|
|
1185
|
+
inputs: [
|
|
1186
|
+
{ name: 'operator', internalType: 'address', type: 'address' },
|
|
1187
|
+
{ name: 'approved', internalType: 'bool', type: 'bool' },
|
|
1188
|
+
],
|
|
1189
|
+
name: 'setApprovalForAll',
|
|
1002
1190
|
outputs: [],
|
|
1003
1191
|
stateMutability: 'nonpayable',
|
|
1004
1192
|
},
|
|
@@ -1013,99 +1201,37 @@ export const testMultiTokenAbi = [
|
|
|
1013
1201
|
},
|
|
1014
1202
|
{
|
|
1015
1203
|
type: 'function',
|
|
1016
|
-
inputs: [
|
|
1017
|
-
|
|
1018
|
-
],
|
|
1019
|
-
|
|
1020
|
-
outputs: [],
|
|
1021
|
-
stateMutability: 'nonpayable',
|
|
1204
|
+
inputs: [],
|
|
1205
|
+
name: 'symbol',
|
|
1206
|
+
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
|
1207
|
+
stateMutability: 'view',
|
|
1022
1208
|
},
|
|
1023
1209
|
{
|
|
1024
1210
|
type: 'function',
|
|
1025
|
-
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1026
|
-
name: '
|
|
1211
|
+
inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
|
|
1212
|
+
name: 'tokenURI',
|
|
1027
1213
|
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
|
1028
1214
|
stateMutability: 'view',
|
|
1029
1215
|
},
|
|
1030
|
-
];
|
|
1031
|
-
export const testMultiTokenAddress = '0x9d72403870769eE1af0145e1ad3F7f1d29E86Af5';
|
|
1032
|
-
export const testMultiTokenConfig = {
|
|
1033
|
-
address: testMultiTokenAddress,
|
|
1034
|
-
abi: testMultiTokenAbi,
|
|
1035
|
-
};
|
|
1036
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
1037
|
-
// TestNFT
|
|
1038
|
-
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
1039
|
-
export const testNftAbi = [
|
|
1040
|
-
{
|
|
1041
|
-
type: 'constructor',
|
|
1042
|
-
inputs: [
|
|
1043
|
-
{ name: 'initialOwner', internalType: 'address', type: 'address' },
|
|
1044
|
-
],
|
|
1045
|
-
stateMutability: 'nonpayable',
|
|
1046
|
-
},
|
|
1047
|
-
{
|
|
1048
|
-
type: 'error',
|
|
1049
|
-
inputs: [
|
|
1050
|
-
{ name: 'sender', internalType: 'address', type: 'address' },
|
|
1051
|
-
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
1052
|
-
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
1053
|
-
],
|
|
1054
|
-
name: 'ERC721IncorrectOwner',
|
|
1055
|
-
},
|
|
1056
1216
|
{
|
|
1057
|
-
type: '
|
|
1217
|
+
type: 'function',
|
|
1058
1218
|
inputs: [
|
|
1059
|
-
{ name: '
|
|
1219
|
+
{ name: 'from', internalType: 'address', type: 'address' },
|
|
1220
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1060
1221
|
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
1061
1222
|
],
|
|
1062
|
-
name: '
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
type: 'error',
|
|
1066
|
-
inputs: [
|
|
1067
|
-
{ name: 'approver', internalType: 'address', type: 'address' },
|
|
1068
|
-
],
|
|
1069
|
-
name: 'ERC721InvalidApprover',
|
|
1070
|
-
},
|
|
1071
|
-
{
|
|
1072
|
-
type: 'error',
|
|
1073
|
-
inputs: [
|
|
1074
|
-
{ name: 'operator', internalType: 'address', type: 'address' },
|
|
1075
|
-
],
|
|
1076
|
-
name: 'ERC721InvalidOperator',
|
|
1077
|
-
},
|
|
1078
|
-
{
|
|
1079
|
-
type: 'error',
|
|
1080
|
-
inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
|
|
1081
|
-
name: 'ERC721InvalidOwner',
|
|
1223
|
+
name: 'transferFrom',
|
|
1224
|
+
outputs: [],
|
|
1225
|
+
stateMutability: 'nonpayable',
|
|
1082
1226
|
},
|
|
1083
1227
|
{
|
|
1084
|
-
type: '
|
|
1228
|
+
type: 'function',
|
|
1085
1229
|
inputs: [
|
|
1086
|
-
{ name: '
|
|
1230
|
+
{ name: 'newOwner', internalType: 'address', type: 'address' },
|
|
1087
1231
|
],
|
|
1088
|
-
name: '
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
type: 'error',
|
|
1092
|
-
inputs: [{ name: 'sender', internalType: 'address', type: 'address' }],
|
|
1093
|
-
name: 'ERC721InvalidSender',
|
|
1094
|
-
},
|
|
1095
|
-
{
|
|
1096
|
-
type: 'error',
|
|
1097
|
-
inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
|
|
1098
|
-
name: 'ERC721NonexistentToken',
|
|
1099
|
-
},
|
|
1100
|
-
{
|
|
1101
|
-
type: 'error',
|
|
1102
|
-
inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
|
|
1103
|
-
name: 'OwnableInvalidOwner',
|
|
1104
|
-
},
|
|
1105
|
-
{
|
|
1106
|
-
type: 'error',
|
|
1107
|
-
inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
|
|
1108
|
-
name: 'OwnableUnauthorizedAccount',
|
|
1232
|
+
name: 'transferOwnership',
|
|
1233
|
+
outputs: [],
|
|
1234
|
+
stateMutability: 'nonpayable',
|
|
1109
1235
|
},
|
|
1110
1236
|
{
|
|
1111
1237
|
type: 'event',
|
|
@@ -1234,156 +1360,70 @@ export const testNftAbi = [
|
|
|
1234
1360
|
name: 'Transfer',
|
|
1235
1361
|
},
|
|
1236
1362
|
{
|
|
1237
|
-
type: '
|
|
1363
|
+
type: 'error',
|
|
1238
1364
|
inputs: [
|
|
1239
|
-
{ name: '
|
|
1365
|
+
{ name: 'sender', internalType: 'address', type: 'address' },
|
|
1240
1366
|
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
1241
|
-
],
|
|
1242
|
-
name: 'approve',
|
|
1243
|
-
outputs: [],
|
|
1244
|
-
stateMutability: 'nonpayable',
|
|
1245
|
-
},
|
|
1246
|
-
{
|
|
1247
|
-
type: 'function',
|
|
1248
|
-
inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
|
|
1249
|
-
name: 'balanceOf',
|
|
1250
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1251
|
-
stateMutability: 'view',
|
|
1252
|
-
},
|
|
1253
|
-
{
|
|
1254
|
-
type: 'function',
|
|
1255
|
-
inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
|
|
1256
|
-
name: 'getApproved',
|
|
1257
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1258
|
-
stateMutability: 'view',
|
|
1259
|
-
},
|
|
1260
|
-
{
|
|
1261
|
-
type: 'function',
|
|
1262
|
-
inputs: [
|
|
1263
1367
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
1264
|
-
{ name: 'operator', internalType: 'address', type: 'address' },
|
|
1265
1368
|
],
|
|
1266
|
-
name: '
|
|
1267
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1268
|
-
stateMutability: 'view',
|
|
1269
|
-
},
|
|
1270
|
-
{
|
|
1271
|
-
type: 'function',
|
|
1272
|
-
inputs: [],
|
|
1273
|
-
name: 'name',
|
|
1274
|
-
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
|
1275
|
-
stateMutability: 'view',
|
|
1276
|
-
},
|
|
1277
|
-
{
|
|
1278
|
-
type: 'function',
|
|
1279
|
-
inputs: [],
|
|
1280
|
-
name: 'owner',
|
|
1281
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1282
|
-
stateMutability: 'view',
|
|
1283
|
-
},
|
|
1284
|
-
{
|
|
1285
|
-
type: 'function',
|
|
1286
|
-
inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
|
|
1287
|
-
name: 'ownerOf',
|
|
1288
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1289
|
-
stateMutability: 'view',
|
|
1290
|
-
},
|
|
1291
|
-
{
|
|
1292
|
-
type: 'function',
|
|
1293
|
-
inputs: [],
|
|
1294
|
-
name: 'renounceOwnership',
|
|
1295
|
-
outputs: [],
|
|
1296
|
-
stateMutability: 'nonpayable',
|
|
1369
|
+
name: 'ERC721IncorrectOwner',
|
|
1297
1370
|
},
|
|
1298
1371
|
{
|
|
1299
|
-
type: '
|
|
1372
|
+
type: 'error',
|
|
1300
1373
|
inputs: [
|
|
1301
|
-
{ name: '
|
|
1374
|
+
{ name: 'operator', internalType: 'address', type: 'address' },
|
|
1302
1375
|
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
1303
|
-
{ name: 'uri', internalType: 'string', type: 'string' },
|
|
1304
1376
|
],
|
|
1305
|
-
name: '
|
|
1306
|
-
outputs: [],
|
|
1307
|
-
stateMutability: 'nonpayable',
|
|
1377
|
+
name: 'ERC721InsufficientApproval',
|
|
1308
1378
|
},
|
|
1309
1379
|
{
|
|
1310
|
-
type: '
|
|
1380
|
+
type: 'error',
|
|
1311
1381
|
inputs: [
|
|
1312
|
-
{ name: '
|
|
1313
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1314
|
-
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
1382
|
+
{ name: 'approver', internalType: 'address', type: 'address' },
|
|
1315
1383
|
],
|
|
1316
|
-
name: '
|
|
1317
|
-
outputs: [],
|
|
1318
|
-
stateMutability: 'nonpayable',
|
|
1384
|
+
name: 'ERC721InvalidApprover',
|
|
1319
1385
|
},
|
|
1320
1386
|
{
|
|
1321
|
-
type: '
|
|
1387
|
+
type: 'error',
|
|
1322
1388
|
inputs: [
|
|
1323
|
-
{ name: '
|
|
1324
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1325
|
-
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
1326
|
-
{ name: 'data', internalType: 'bytes', type: 'bytes' },
|
|
1389
|
+
{ name: 'operator', internalType: 'address', type: 'address' },
|
|
1327
1390
|
],
|
|
1328
|
-
name: '
|
|
1329
|
-
outputs: [],
|
|
1330
|
-
stateMutability: 'nonpayable',
|
|
1391
|
+
name: 'ERC721InvalidOperator',
|
|
1331
1392
|
},
|
|
1332
1393
|
{
|
|
1333
|
-
type: '
|
|
1334
|
-
inputs: [
|
|
1335
|
-
|
|
1336
|
-
{ name: 'approved', internalType: 'bool', type: 'bool' },
|
|
1337
|
-
],
|
|
1338
|
-
name: 'setApprovalForAll',
|
|
1339
|
-
outputs: [],
|
|
1340
|
-
stateMutability: 'nonpayable',
|
|
1394
|
+
type: 'error',
|
|
1395
|
+
inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
|
|
1396
|
+
name: 'ERC721InvalidOwner',
|
|
1341
1397
|
},
|
|
1342
1398
|
{
|
|
1343
|
-
type: '
|
|
1399
|
+
type: 'error',
|
|
1344
1400
|
inputs: [
|
|
1345
|
-
{ name: '
|
|
1401
|
+
{ name: 'receiver', internalType: 'address', type: 'address' },
|
|
1346
1402
|
],
|
|
1347
|
-
name: '
|
|
1348
|
-
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
1349
|
-
stateMutability: 'view',
|
|
1403
|
+
name: 'ERC721InvalidReceiver',
|
|
1350
1404
|
},
|
|
1351
1405
|
{
|
|
1352
|
-
type: '
|
|
1353
|
-
inputs: [],
|
|
1354
|
-
name: '
|
|
1355
|
-
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
|
1356
|
-
stateMutability: 'view',
|
|
1406
|
+
type: 'error',
|
|
1407
|
+
inputs: [{ name: 'sender', internalType: 'address', type: 'address' }],
|
|
1408
|
+
name: 'ERC721InvalidSender',
|
|
1357
1409
|
},
|
|
1358
1410
|
{
|
|
1359
|
-
type: '
|
|
1411
|
+
type: 'error',
|
|
1360
1412
|
inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
|
|
1361
|
-
name: '
|
|
1362
|
-
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
|
1363
|
-
stateMutability: 'view',
|
|
1413
|
+
name: 'ERC721NonexistentToken',
|
|
1364
1414
|
},
|
|
1365
1415
|
{
|
|
1366
|
-
type: '
|
|
1367
|
-
inputs: [
|
|
1368
|
-
|
|
1369
|
-
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1370
|
-
{ name: 'tokenId', internalType: 'uint256', type: 'uint256' },
|
|
1371
|
-
],
|
|
1372
|
-
name: 'transferFrom',
|
|
1373
|
-
outputs: [],
|
|
1374
|
-
stateMutability: 'nonpayable',
|
|
1416
|
+
type: 'error',
|
|
1417
|
+
inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
|
|
1418
|
+
name: 'OwnableInvalidOwner',
|
|
1375
1419
|
},
|
|
1376
1420
|
{
|
|
1377
|
-
type: '
|
|
1378
|
-
inputs: [
|
|
1379
|
-
|
|
1380
|
-
],
|
|
1381
|
-
name: 'transferOwnership',
|
|
1382
|
-
outputs: [],
|
|
1383
|
-
stateMutability: 'nonpayable',
|
|
1421
|
+
type: 'error',
|
|
1422
|
+
inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
|
|
1423
|
+
name: 'OwnableUnauthorizedAccount',
|
|
1384
1424
|
},
|
|
1385
1425
|
];
|
|
1386
|
-
export const testNftAddress = '
|
|
1426
|
+
export const testNftAddress = '0xBa46623aD94AB45850c4ecbA9555D26328917c3B';
|
|
1387
1427
|
export const testNftConfig = {
|
|
1388
1428
|
address: testNftAddress,
|
|
1389
1429
|
abi: testNftAbi,
|
|
@@ -1403,205 +1443,6 @@ export const testTokenAbi = [
|
|
|
1403
1443
|
],
|
|
1404
1444
|
stateMutability: 'nonpayable',
|
|
1405
1445
|
},
|
|
1406
|
-
{
|
|
1407
|
-
type: 'error',
|
|
1408
|
-
inputs: [
|
|
1409
|
-
{ name: 'authority', internalType: 'address', type: 'address' },
|
|
1410
|
-
],
|
|
1411
|
-
name: 'AccessManagedInvalidAuthority',
|
|
1412
|
-
},
|
|
1413
|
-
{
|
|
1414
|
-
type: 'error',
|
|
1415
|
-
inputs: [
|
|
1416
|
-
{ name: 'caller', internalType: 'address', type: 'address' },
|
|
1417
|
-
{ name: 'delay', internalType: 'uint32', type: 'uint32' },
|
|
1418
|
-
],
|
|
1419
|
-
name: 'AccessManagedRequiredDelay',
|
|
1420
|
-
},
|
|
1421
|
-
{
|
|
1422
|
-
type: 'error',
|
|
1423
|
-
inputs: [{ name: 'caller', internalType: 'address', type: 'address' }],
|
|
1424
|
-
name: 'AccessManagedUnauthorized',
|
|
1425
|
-
},
|
|
1426
|
-
{ type: 'error', inputs: [], name: 'ECDSAInvalidSignature' },
|
|
1427
|
-
{
|
|
1428
|
-
type: 'error',
|
|
1429
|
-
inputs: [{ name: 'length', internalType: 'uint256', type: 'uint256' }],
|
|
1430
|
-
name: 'ECDSAInvalidSignatureLength',
|
|
1431
|
-
},
|
|
1432
|
-
{
|
|
1433
|
-
type: 'error',
|
|
1434
|
-
inputs: [{ name: 's', internalType: 'bytes32', type: 'bytes32' }],
|
|
1435
|
-
name: 'ECDSAInvalidSignatureS',
|
|
1436
|
-
},
|
|
1437
|
-
{
|
|
1438
|
-
type: 'error',
|
|
1439
|
-
inputs: [
|
|
1440
|
-
{ name: 'spender', internalType: 'address', type: 'address' },
|
|
1441
|
-
{ name: 'allowance', internalType: 'uint256', type: 'uint256' },
|
|
1442
|
-
{ name: 'needed', internalType: 'uint256', type: 'uint256' },
|
|
1443
|
-
],
|
|
1444
|
-
name: 'ERC20InsufficientAllowance',
|
|
1445
|
-
},
|
|
1446
|
-
{
|
|
1447
|
-
type: 'error',
|
|
1448
|
-
inputs: [
|
|
1449
|
-
{ name: 'sender', internalType: 'address', type: 'address' },
|
|
1450
|
-
{ name: 'balance', internalType: 'uint256', type: 'uint256' },
|
|
1451
|
-
{ name: 'needed', internalType: 'uint256', type: 'uint256' },
|
|
1452
|
-
],
|
|
1453
|
-
name: 'ERC20InsufficientBalance',
|
|
1454
|
-
},
|
|
1455
|
-
{
|
|
1456
|
-
type: 'error',
|
|
1457
|
-
inputs: [
|
|
1458
|
-
{ name: 'approver', internalType: 'address', type: 'address' },
|
|
1459
|
-
],
|
|
1460
|
-
name: 'ERC20InvalidApprover',
|
|
1461
|
-
},
|
|
1462
|
-
{
|
|
1463
|
-
type: 'error',
|
|
1464
|
-
inputs: [
|
|
1465
|
-
{ name: 'receiver', internalType: 'address', type: 'address' },
|
|
1466
|
-
],
|
|
1467
|
-
name: 'ERC20InvalidReceiver',
|
|
1468
|
-
},
|
|
1469
|
-
{
|
|
1470
|
-
type: 'error',
|
|
1471
|
-
inputs: [{ name: 'sender', internalType: 'address', type: 'address' }],
|
|
1472
|
-
name: 'ERC20InvalidSender',
|
|
1473
|
-
},
|
|
1474
|
-
{
|
|
1475
|
-
type: 'error',
|
|
1476
|
-
inputs: [{ name: 'spender', internalType: 'address', type: 'address' }],
|
|
1477
|
-
name: 'ERC20InvalidSpender',
|
|
1478
|
-
},
|
|
1479
|
-
{
|
|
1480
|
-
type: 'error',
|
|
1481
|
-
inputs: [
|
|
1482
|
-
{ name: 'deadline', internalType: 'uint256', type: 'uint256' },
|
|
1483
|
-
],
|
|
1484
|
-
name: 'ERC2612ExpiredSignature',
|
|
1485
|
-
},
|
|
1486
|
-
{
|
|
1487
|
-
type: 'error',
|
|
1488
|
-
inputs: [
|
|
1489
|
-
{ name: 'signer', internalType: 'address', type: 'address' },
|
|
1490
|
-
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
1491
|
-
],
|
|
1492
|
-
name: 'ERC2612InvalidSigner',
|
|
1493
|
-
},
|
|
1494
|
-
{ type: 'error', inputs: [], name: 'EnforcedPause' },
|
|
1495
|
-
{ type: 'error', inputs: [], name: 'ExpectedPause' },
|
|
1496
|
-
{
|
|
1497
|
-
type: 'error',
|
|
1498
|
-
inputs: [
|
|
1499
|
-
{ name: 'account', internalType: 'address', type: 'address' },
|
|
1500
|
-
{ name: 'currentNonce', internalType: 'uint256', type: 'uint256' },
|
|
1501
|
-
],
|
|
1502
|
-
name: 'InvalidAccountNonce',
|
|
1503
|
-
},
|
|
1504
|
-
{ type: 'error', inputs: [], name: 'InvalidShortString' },
|
|
1505
|
-
{
|
|
1506
|
-
type: 'error',
|
|
1507
|
-
inputs: [{ name: 'str', internalType: 'string', type: 'string' }],
|
|
1508
|
-
name: 'StringTooLong',
|
|
1509
|
-
},
|
|
1510
|
-
{
|
|
1511
|
-
type: 'event',
|
|
1512
|
-
anonymous: false,
|
|
1513
|
-
inputs: [
|
|
1514
|
-
{
|
|
1515
|
-
name: 'owner',
|
|
1516
|
-
internalType: 'address',
|
|
1517
|
-
type: 'address',
|
|
1518
|
-
indexed: true,
|
|
1519
|
-
},
|
|
1520
|
-
{
|
|
1521
|
-
name: 'spender',
|
|
1522
|
-
internalType: 'address',
|
|
1523
|
-
type: 'address',
|
|
1524
|
-
indexed: true,
|
|
1525
|
-
},
|
|
1526
|
-
{
|
|
1527
|
-
name: 'value',
|
|
1528
|
-
internalType: 'uint256',
|
|
1529
|
-
type: 'uint256',
|
|
1530
|
-
indexed: false,
|
|
1531
|
-
},
|
|
1532
|
-
],
|
|
1533
|
-
name: 'Approval',
|
|
1534
|
-
},
|
|
1535
|
-
{
|
|
1536
|
-
type: 'event',
|
|
1537
|
-
anonymous: false,
|
|
1538
|
-
inputs: [
|
|
1539
|
-
{
|
|
1540
|
-
name: 'authority',
|
|
1541
|
-
internalType: 'address',
|
|
1542
|
-
type: 'address',
|
|
1543
|
-
indexed: false,
|
|
1544
|
-
},
|
|
1545
|
-
],
|
|
1546
|
-
name: 'AuthorityUpdated',
|
|
1547
|
-
},
|
|
1548
|
-
{
|
|
1549
|
-
type: 'event',
|
|
1550
|
-
anonymous: false,
|
|
1551
|
-
inputs: [],
|
|
1552
|
-
name: 'EIP712DomainChanged',
|
|
1553
|
-
},
|
|
1554
|
-
{
|
|
1555
|
-
type: 'event',
|
|
1556
|
-
anonymous: false,
|
|
1557
|
-
inputs: [
|
|
1558
|
-
{
|
|
1559
|
-
name: 'account',
|
|
1560
|
-
internalType: 'address',
|
|
1561
|
-
type: 'address',
|
|
1562
|
-
indexed: false,
|
|
1563
|
-
},
|
|
1564
|
-
],
|
|
1565
|
-
name: 'Paused',
|
|
1566
|
-
},
|
|
1567
|
-
{
|
|
1568
|
-
type: 'event',
|
|
1569
|
-
anonymous: false,
|
|
1570
|
-
inputs: [
|
|
1571
|
-
{
|
|
1572
|
-
name: 'from',
|
|
1573
|
-
internalType: 'address',
|
|
1574
|
-
type: 'address',
|
|
1575
|
-
indexed: true,
|
|
1576
|
-
},
|
|
1577
|
-
{
|
|
1578
|
-
name: 'to',
|
|
1579
|
-
internalType: 'address',
|
|
1580
|
-
type: 'address',
|
|
1581
|
-
indexed: true,
|
|
1582
|
-
},
|
|
1583
|
-
{
|
|
1584
|
-
name: 'value',
|
|
1585
|
-
internalType: 'uint256',
|
|
1586
|
-
type: 'uint256',
|
|
1587
|
-
indexed: false,
|
|
1588
|
-
},
|
|
1589
|
-
],
|
|
1590
|
-
name: 'Transfer',
|
|
1591
|
-
},
|
|
1592
|
-
{
|
|
1593
|
-
type: 'event',
|
|
1594
|
-
anonymous: false,
|
|
1595
|
-
inputs: [
|
|
1596
|
-
{
|
|
1597
|
-
name: 'account',
|
|
1598
|
-
internalType: 'address',
|
|
1599
|
-
type: 'address',
|
|
1600
|
-
indexed: false,
|
|
1601
|
-
},
|
|
1602
|
-
],
|
|
1603
|
-
name: 'Unpaused',
|
|
1604
|
-
},
|
|
1605
1446
|
{
|
|
1606
1447
|
type: 'function',
|
|
1607
1448
|
inputs: [],
|
|
@@ -1791,8 +1632,207 @@ export const testTokenAbi = [
|
|
|
1791
1632
|
outputs: [],
|
|
1792
1633
|
stateMutability: 'nonpayable',
|
|
1793
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
|
+
},
|
|
1794
1834
|
];
|
|
1795
|
-
export const testTokenAddress = '
|
|
1835
|
+
export const testTokenAddress = '0xFBdB734EF6a23aD76863CbA6f10d0C5CBBD8342C';
|
|
1796
1836
|
export const testTokenConfig = {
|
|
1797
1837
|
address: testTokenAddress,
|
|
1798
1838
|
abi: testTokenAbi,
|