@cartesi/devnet 1.7.0 → 2.0.0-alpha.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 (31) hide show
  1. package/build/anvil_state.json +1 -1
  2. package/deployments/localhost/ApplicationFactory.json +227 -0
  3. package/deployments/localhost/AuthorityFactory.json +55 -44
  4. package/deployments/localhost/ERC1155BatchPortal.json +26 -26
  5. package/deployments/localhost/ERC1155SinglePortal.json +25 -25
  6. package/deployments/localhost/ERC20Portal.json +35 -23
  7. package/deployments/localhost/ERC721Portal.json +23 -23
  8. package/deployments/localhost/EtherPortal.json +21 -21
  9. package/deployments/localhost/InputBox.json +64 -58
  10. package/deployments/localhost/QuorumFactory.json +188 -0
  11. package/deployments/localhost/SafeERC20Transfer.json +118 -0
  12. package/deployments/localhost/SelfHostedApplicationFactory.json +71 -70
  13. package/deployments/localhost/TestMultiToken.json +7 -7
  14. package/deployments/localhost/TestNFT.json +7 -7
  15. package/deployments/localhost/TestToken.json +10 -10
  16. package/dist/deploy/04_4337.js +342 -0
  17. package/dist/src/aa/constants.d.ts +31 -0
  18. package/dist/src/aa/constants.d.ts.map +1 -0
  19. package/dist/src/aa/constants.js +65 -0
  20. package/dist/src/tasks/deploy-anvil.js +5 -3
  21. package/export/abi/localhost.json +231 -599
  22. package/package.json +9 -8
  23. package/build/anvil_state copy.json +0 -229
  24. package/deployments/localhost/AuthorityHistoryPairFactory.json +0 -276
  25. package/deployments/localhost/Bitmask.json +0 -44
  26. package/deployments/localhost/CartesiDAppFactory.json +0 -231
  27. package/deployments/localhost/CartesiMathV2.json +0 -213
  28. package/deployments/localhost/DAppAddressRelay.json +0 -102
  29. package/deployments/localhost/HistoryFactory.json +0 -177
  30. package/deployments/localhost/MerkleV2.json +0 -217
  31. package/deployments/localhost/UnrolledCordic.json +0 -54
@@ -2,289 +2,28 @@
2
2
  "name": "localhost",
3
3
  "chainId": "31337",
4
4
  "contracts": {
5
- "Bitmask": {
6
- "address": "0xF5B2d8c81cDE4D6238bBf20D3D77DB37df13f735",
7
- "abi": []
8
- },
9
- "CartesiMathV2": {
10
- "address": "0xB634F716BEd5Dd5A2b9a91C92474C499e50Cb27D",
11
- "abi": [
12
- {
13
- "inputs": [
14
- {
15
- "internalType": "uint256",
16
- "name": "_num",
17
- "type": "uint256"
18
- }
19
- ],
20
- "name": "clz",
21
- "outputs": [
22
- {
23
- "internalType": "uint256",
24
- "name": "",
25
- "type": "uint256"
26
- }
27
- ],
28
- "stateMutability": "pure",
29
- "type": "function"
30
- },
31
- {
32
- "inputs": [
33
- {
34
- "internalType": "uint256",
35
- "name": "_num",
36
- "type": "uint256"
37
- }
38
- ],
39
- "name": "ctz",
40
- "outputs": [
41
- {
42
- "internalType": "uint256",
43
- "name": "",
44
- "type": "uint256"
45
- }
46
- ],
47
- "stateMutability": "pure",
48
- "type": "function"
49
- },
50
- {
51
- "inputs": [
52
- {
53
- "internalType": "uint256",
54
- "name": "_num",
55
- "type": "uint256"
56
- }
57
- ],
58
- "name": "getLog2Floor",
59
- "outputs": [
60
- {
61
- "internalType": "uint8",
62
- "name": "",
63
- "type": "uint8"
64
- }
65
- ],
66
- "stateMutability": "pure",
67
- "type": "function"
68
- },
69
- {
70
- "inputs": [
71
- {
72
- "internalType": "uint256",
73
- "name": "_num",
74
- "type": "uint256"
75
- }
76
- ],
77
- "name": "getLog2TableTimes1M",
78
- "outputs": [
79
- {
80
- "internalType": "uint256",
81
- "name": "",
82
- "type": "uint256"
83
- }
84
- ],
85
- "stateMutability": "pure",
86
- "type": "function"
87
- },
88
- {
89
- "inputs": [
90
- {
91
- "internalType": "uint256",
92
- "name": "_num",
93
- "type": "uint256"
94
- }
95
- ],
96
- "name": "isPowerOf2",
97
- "outputs": [
98
- {
99
- "internalType": "bool",
100
- "name": "",
101
- "type": "bool"
102
- }
103
- ],
104
- "stateMutability": "pure",
105
- "type": "function"
106
- },
107
- {
108
- "inputs": [
109
- {
110
- "internalType": "uint256",
111
- "name": "_num",
112
- "type": "uint256"
113
- }
114
- ],
115
- "name": "log2ApproxTimes1M",
116
- "outputs": [
117
- {
118
- "internalType": "uint256",
119
- "name": "",
120
- "type": "uint256"
121
- }
122
- ],
123
- "stateMutability": "pure",
124
- "type": "function"
125
- }
126
- ]
127
- },
128
- "MerkleV2": {
129
- "address": "0x33436035441927Df1a73FE3AAC5906854632e53d",
5
+ "InputBox": {
6
+ "address": "0x593E5BCf894D6829Dd26D0810DA7F064406aebB6",
130
7
  "abi": [
131
8
  {
132
9
  "inputs": [
133
10
  {
134
- "internalType": "bytes32[]",
135
- "name": "hashes",
136
- "type": "bytes32[]"
137
- }
138
- ],
139
- "name": "calculateRootFromPowerOfTwo",
140
- "outputs": [
141
- {
142
- "internalType": "bytes32",
143
- "name": "",
144
- "type": "bytes32"
145
- }
146
- ],
147
- "stateMutability": "pure",
148
- "type": "function"
149
- },
150
- {
151
- "inputs": [
152
- {
153
- "internalType": "uint256",
154
- "name": "_index",
155
- "type": "uint256"
156
- }
157
- ],
158
- "name": "getEmptyTreeHashAtIndex",
159
- "outputs": [
160
- {
161
- "internalType": "bytes32",
162
- "name": "",
163
- "type": "bytes32"
164
- }
165
- ],
166
- "stateMutability": "pure",
167
- "type": "function"
168
- },
169
- {
170
- "inputs": [
171
- {
172
- "internalType": "bytes",
173
- "name": "_data",
174
- "type": "bytes"
175
- },
176
- {
177
- "internalType": "uint256",
178
- "name": "_wordIndex",
179
- "type": "uint256"
180
- }
181
- ],
182
- "name": "getHashOfWordAtIndex",
183
- "outputs": [
184
- {
185
- "internalType": "bytes32",
186
- "name": "",
187
- "type": "bytes32"
188
- }
189
- ],
190
- "stateMutability": "pure",
191
- "type": "function"
192
- },
193
- {
194
- "inputs": [
195
- {
196
- "internalType": "bytes",
197
- "name": "_data",
198
- "type": "bytes"
199
- },
200
- {
201
- "internalType": "uint256",
202
- "name": "_log2Size",
203
- "type": "uint256"
204
- }
205
- ],
206
- "name": "getMerkleRootFromBytes",
207
- "outputs": [
208
- {
209
- "internalType": "bytes32",
210
- "name": "",
211
- "type": "bytes32"
212
- }
213
- ],
214
- "stateMutability": "pure",
215
- "type": "function"
216
- },
217
- {
218
- "inputs": [
219
- {
220
- "internalType": "uint256",
221
- "name": "_position",
222
- "type": "uint256"
223
- },
224
- {
225
- "internalType": "uint256",
226
- "name": "_logSizeOfReplacement",
227
- "type": "uint256"
11
+ "internalType": "address",
12
+ "name": "appContract",
13
+ "type": "address"
228
14
  },
229
15
  {
230
16
  "internalType": "uint256",
231
- "name": "_logSizeOfFullDrive",
17
+ "name": "inputLength",
232
18
  "type": "uint256"
233
19
  },
234
- {
235
- "internalType": "bytes32",
236
- "name": "_replacement",
237
- "type": "bytes32"
238
- },
239
- {
240
- "internalType": "bytes32[]",
241
- "name": "siblings",
242
- "type": "bytes32[]"
243
- }
244
- ],
245
- "name": "getRootAfterReplacementInDrive",
246
- "outputs": [
247
- {
248
- "internalType": "bytes32",
249
- "name": "",
250
- "type": "bytes32"
251
- }
252
- ],
253
- "stateMutability": "pure",
254
- "type": "function"
255
- }
256
- ]
257
- },
258
- "UnrolledCordic": {
259
- "address": "0x3F8FdcD1B0F421D817BF58C96b7C91B98100B450",
260
- "abi": [
261
- {
262
- "inputs": [
263
20
  {
264
21
  "internalType": "uint256",
265
- "name": "val",
22
+ "name": "maxInputLength",
266
23
  "type": "uint256"
267
24
  }
268
25
  ],
269
- "name": "log2Times1e18",
270
- "outputs": [
271
- {
272
- "internalType": "uint256",
273
- "name": "",
274
- "type": "uint256"
275
- }
276
- ],
277
- "stateMutability": "pure",
278
- "type": "function"
279
- }
280
- ]
281
- },
282
- "InputBox": {
283
- "address": "0x59b22D57D4f067708AB0c00552767405926dc768",
284
- "abi": [
285
- {
286
- "inputs": [],
287
- "name": "InputSizeExceedsLimit",
26
+ "name": "InputTooLarge",
288
27
  "type": "error"
289
28
  },
290
29
  {
@@ -293,21 +32,15 @@
293
32
  {
294
33
  "indexed": true,
295
34
  "internalType": "address",
296
- "name": "dapp",
35
+ "name": "appContract",
297
36
  "type": "address"
298
37
  },
299
38
  {
300
39
  "indexed": true,
301
40
  "internalType": "uint256",
302
- "name": "inputIndex",
41
+ "name": "index",
303
42
  "type": "uint256"
304
43
  },
305
- {
306
- "indexed": false,
307
- "internalType": "address",
308
- "name": "sender",
309
- "type": "address"
310
- },
311
44
  {
312
45
  "indexed": false,
313
46
  "internalType": "bytes",
@@ -322,12 +55,12 @@
322
55
  "inputs": [
323
56
  {
324
57
  "internalType": "address",
325
- "name": "_dapp",
58
+ "name": "appContract",
326
59
  "type": "address"
327
60
  },
328
61
  {
329
62
  "internalType": "bytes",
330
- "name": "_input",
63
+ "name": "payload",
331
64
  "type": "bytes"
332
65
  }
333
66
  ],
@@ -346,12 +79,12 @@
346
79
  "inputs": [
347
80
  {
348
81
  "internalType": "address",
349
- "name": "_dapp",
82
+ "name": "appContract",
350
83
  "type": "address"
351
84
  },
352
85
  {
353
86
  "internalType": "uint256",
354
- "name": "_index",
87
+ "name": "index",
355
88
  "type": "uint256"
356
89
  }
357
90
  ],
@@ -370,7 +103,7 @@
370
103
  "inputs": [
371
104
  {
372
105
  "internalType": "address",
373
- "name": "_dapp",
106
+ "name": "appContract",
374
107
  "type": "address"
375
108
  }
376
109
  ],
@@ -388,13 +121,13 @@
388
121
  ]
389
122
  },
390
123
  "EtherPortal": {
391
- "address": "0xFfdbe43d4c855BF7e0f105c400A50857f53AB044",
124
+ "address": "0xfa2292f6D85ea4e629B156A4f99219e30D12EE17",
392
125
  "abi": [
393
126
  {
394
127
  "inputs": [
395
128
  {
396
129
  "internalType": "contract IInputBox",
397
- "name": "_inputBox",
130
+ "name": "inputBox",
398
131
  "type": "address"
399
132
  }
400
133
  ],
@@ -410,12 +143,12 @@
410
143
  "inputs": [
411
144
  {
412
145
  "internalType": "address",
413
- "name": "_dapp",
146
+ "name": "appContract",
414
147
  "type": "address"
415
148
  },
416
149
  {
417
150
  "internalType": "bytes",
418
- "name": "_execLayerData",
151
+ "name": "execLayerData",
419
152
  "type": "bytes"
420
153
  }
421
154
  ],
@@ -440,39 +173,44 @@
440
173
  ]
441
174
  },
442
175
  "ERC20Portal": {
443
- "address": "0x9C21AEb2093C32DDbC53eEF24B873BDCd1aDa1DB",
176
+ "address": "0xB0e28881FF7ee9CD5B1229d570540d74bce23D39",
444
177
  "abi": [
445
178
  {
446
179
  "inputs": [
447
180
  {
448
181
  "internalType": "contract IInputBox",
449
- "name": "_inputBox",
182
+ "name": "inputBox",
450
183
  "type": "address"
451
184
  }
452
185
  ],
453
186
  "stateMutability": "nonpayable",
454
187
  "type": "constructor"
455
188
  },
189
+ {
190
+ "inputs": [],
191
+ "name": "ERC20TransferFailed",
192
+ "type": "error"
193
+ },
456
194
  {
457
195
  "inputs": [
458
196
  {
459
197
  "internalType": "contract IERC20",
460
- "name": "_token",
198
+ "name": "token",
461
199
  "type": "address"
462
200
  },
463
201
  {
464
202
  "internalType": "address",
465
- "name": "_dapp",
203
+ "name": "appContract",
466
204
  "type": "address"
467
205
  },
468
206
  {
469
207
  "internalType": "uint256",
470
- "name": "_amount",
208
+ "name": "value",
471
209
  "type": "uint256"
472
210
  },
473
211
  {
474
212
  "internalType": "bytes",
475
- "name": "_execLayerData",
213
+ "name": "execLayerData",
476
214
  "type": "bytes"
477
215
  }
478
216
  ],
@@ -497,13 +235,13 @@
497
235
  ]
498
236
  },
499
237
  "ERC721Portal": {
500
- "address": "0x237F8DD094C0e47f4236f12b4Fa01d6Dae89fb87",
238
+ "address": "0x874b3245ead7474Cb9f3b83cD1446dC522f6bd36",
501
239
  "abi": [
502
240
  {
503
241
  "inputs": [
504
242
  {
505
243
  "internalType": "contract IInputBox",
506
- "name": "_inputBox",
244
+ "name": "inputBox",
507
245
  "type": "address"
508
246
  }
509
247
  ],
@@ -514,27 +252,27 @@
514
252
  "inputs": [
515
253
  {
516
254
  "internalType": "contract IERC721",
517
- "name": "_token",
255
+ "name": "token",
518
256
  "type": "address"
519
257
  },
520
258
  {
521
259
  "internalType": "address",
522
- "name": "_dapp",
260
+ "name": "appContract",
523
261
  "type": "address"
524
262
  },
525
263
  {
526
264
  "internalType": "uint256",
527
- "name": "_tokenId",
265
+ "name": "tokenId",
528
266
  "type": "uint256"
529
267
  },
530
268
  {
531
269
  "internalType": "bytes",
532
- "name": "_baseLayerData",
270
+ "name": "baseLayerData",
533
271
  "type": "bytes"
534
272
  },
535
273
  {
536
274
  "internalType": "bytes",
537
- "name": "_execLayerData",
275
+ "name": "execLayerData",
538
276
  "type": "bytes"
539
277
  }
540
278
  ],
@@ -559,13 +297,13 @@
559
297
  ]
560
298
  },
561
299
  "ERC1155SinglePortal": {
562
- "address": "0x7CFB0193Ca87eB6e48056885E026552c3A941FC4",
300
+ "address": "0x2f0D587DD6EcF67d25C558f2e9c3839c579e5e38",
563
301
  "abi": [
564
302
  {
565
303
  "inputs": [
566
304
  {
567
305
  "internalType": "contract IInputBox",
568
- "name": "_inputBox",
306
+ "name": "inputBox",
569
307
  "type": "address"
570
308
  }
571
309
  ],
@@ -576,32 +314,32 @@
576
314
  "inputs": [
577
315
  {
578
316
  "internalType": "contract IERC1155",
579
- "name": "_token",
317
+ "name": "token",
580
318
  "type": "address"
581
319
  },
582
320
  {
583
321
  "internalType": "address",
584
- "name": "_dapp",
322
+ "name": "appContract",
585
323
  "type": "address"
586
324
  },
587
325
  {
588
326
  "internalType": "uint256",
589
- "name": "_tokenId",
327
+ "name": "tokenId",
590
328
  "type": "uint256"
591
329
  },
592
330
  {
593
331
  "internalType": "uint256",
594
- "name": "_value",
332
+ "name": "value",
595
333
  "type": "uint256"
596
334
  },
597
335
  {
598
336
  "internalType": "bytes",
599
- "name": "_baseLayerData",
337
+ "name": "baseLayerData",
600
338
  "type": "bytes"
601
339
  },
602
340
  {
603
341
  "internalType": "bytes",
604
- "name": "_execLayerData",
342
+ "name": "execLayerData",
605
343
  "type": "bytes"
606
344
  }
607
345
  ],
@@ -626,13 +364,13 @@
626
364
  ]
627
365
  },
628
366
  "ERC1155BatchPortal": {
629
- "address": "0xedB53860A6B52bbb7561Ad596416ee9965B055Aa",
367
+ "address": "0x4a218D331C0933d7E3EB496ac901669f28D94981",
630
368
  "abi": [
631
369
  {
632
370
  "inputs": [
633
371
  {
634
372
  "internalType": "contract IInputBox",
635
- "name": "_inputBox",
373
+ "name": "inputBox",
636
374
  "type": "address"
637
375
  }
638
376
  ],
@@ -643,32 +381,32 @@
643
381
  "inputs": [
644
382
  {
645
383
  "internalType": "contract IERC1155",
646
- "name": "_token",
384
+ "name": "token",
647
385
  "type": "address"
648
386
  },
649
387
  {
650
388
  "internalType": "address",
651
- "name": "_dapp",
389
+ "name": "appContract",
652
390
  "type": "address"
653
391
  },
654
392
  {
655
393
  "internalType": "uint256[]",
656
- "name": "_tokenIds",
394
+ "name": "tokenIds",
657
395
  "type": "uint256[]"
658
396
  },
659
397
  {
660
398
  "internalType": "uint256[]",
661
- "name": "_values",
399
+ "name": "values",
662
400
  "type": "uint256[]"
663
401
  },
664
402
  {
665
403
  "internalType": "bytes",
666
- "name": "_baseLayerData",
404
+ "name": "baseLayerData",
667
405
  "type": "bytes"
668
406
  },
669
407
  {
670
408
  "internalType": "bytes",
671
- "name": "_execLayerData",
409
+ "name": "execLayerData",
672
410
  "type": "bytes"
673
411
  }
674
412
  ],
@@ -692,80 +430,37 @@
692
430
  }
693
431
  ]
694
432
  },
695
- "DAppAddressRelay": {
696
- "address": "0xF5DE34d6BbC0446E2a45719E718efEbaaE179daE",
433
+ "AuthorityFactory": {
434
+ "address": "0xB897F7Fe78f220aE34B7FA9493092701a873Ed45",
697
435
  "abi": [
698
436
  {
437
+ "anonymous": false,
699
438
  "inputs": [
700
439
  {
701
- "internalType": "contract IInputBox",
702
- "name": "_inputBox",
703
- "type": "address"
704
- }
705
- ],
706
- "stateMutability": "nonpayable",
707
- "type": "constructor"
708
- },
709
- {
710
- "inputs": [],
711
- "name": "getInputBox",
712
- "outputs": [
713
- {
714
- "internalType": "contract IInputBox",
715
- "name": "",
440
+ "indexed": false,
441
+ "internalType": "contract IAuthority",
442
+ "name": "authority",
716
443
  "type": "address"
717
444
  }
718
445
  ],
719
- "stateMutability": "view",
720
- "type": "function"
446
+ "name": "AuthorityCreated",
447
+ "type": "event"
721
448
  },
722
449
  {
723
450
  "inputs": [
724
451
  {
725
452
  "internalType": "address",
726
- "name": "_dapp",
727
- "type": "address"
728
- }
729
- ],
730
- "name": "relayDAppAddress",
731
- "outputs": [],
732
- "stateMutability": "nonpayable",
733
- "type": "function"
734
- }
735
- ]
736
- },
737
- "AuthorityFactory": {
738
- "address": "0xf26a5b278C25D8D41A136d22Ad719EACEd9c3e63",
739
- "abi": [
740
- {
741
- "anonymous": false,
742
- "inputs": [
743
- {
744
- "indexed": false,
745
- "internalType": "address",
746
- "name": "authorityOwner",
453
+ "name": "authorityOwner",
747
454
  "type": "address"
748
455
  },
749
456
  {
750
- "indexed": false,
751
- "internalType": "contract Authority",
752
- "name": "authority",
753
- "type": "address"
754
- }
755
- ],
756
- "name": "AuthorityCreated",
757
- "type": "event"
758
- },
759
- {
760
- "inputs": [
761
- {
762
- "internalType": "address",
763
- "name": "_authorityOwner",
764
- "type": "address"
457
+ "internalType": "uint256",
458
+ "name": "epochLength",
459
+ "type": "uint256"
765
460
  },
766
461
  {
767
462
  "internalType": "bytes32",
768
- "name": "_salt",
463
+ "name": "salt",
769
464
  "type": "bytes32"
770
465
  }
771
466
  ],
@@ -784,19 +479,19 @@
784
479
  "inputs": [
785
480
  {
786
481
  "internalType": "address",
787
- "name": "_authorityOwner",
482
+ "name": "authorityOwner",
788
483
  "type": "address"
789
484
  },
790
485
  {
791
- "internalType": "bytes32",
792
- "name": "_salt",
793
- "type": "bytes32"
486
+ "internalType": "uint256",
487
+ "name": "epochLength",
488
+ "type": "uint256"
794
489
  }
795
490
  ],
796
491
  "name": "newAuthority",
797
492
  "outputs": [
798
493
  {
799
- "internalType": "contract Authority",
494
+ "internalType": "contract IAuthority",
800
495
  "name": "",
801
496
  "type": "address"
802
497
  }
@@ -808,14 +503,24 @@
808
503
  "inputs": [
809
504
  {
810
505
  "internalType": "address",
811
- "name": "_authorityOwner",
506
+ "name": "authorityOwner",
812
507
  "type": "address"
508
+ },
509
+ {
510
+ "internalType": "uint256",
511
+ "name": "epochLength",
512
+ "type": "uint256"
513
+ },
514
+ {
515
+ "internalType": "bytes32",
516
+ "name": "salt",
517
+ "type": "bytes32"
813
518
  }
814
519
  ],
815
520
  "name": "newAuthority",
816
521
  "outputs": [
817
522
  {
818
- "internalType": "contract Authority",
523
+ "internalType": "contract IAuthority",
819
524
  "name": "",
820
525
  "type": "address"
821
526
  }
@@ -825,237 +530,98 @@
825
530
  }
826
531
  ]
827
532
  },
828
- "HistoryFactory": {
829
- "address": "0x1f158b5320BBf677FdA89F9a438df99BbE560A26",
533
+ "QuorumFactory": {
534
+ "address": "0x22AFD9162079c7Ac0aF874054298Bf46F29157F1",
830
535
  "abi": [
831
536
  {
832
537
  "anonymous": false,
833
538
  "inputs": [
834
539
  {
835
540
  "indexed": false,
836
- "internalType": "address",
837
- "name": "historyOwner",
838
- "type": "address"
839
- },
840
- {
841
- "indexed": false,
842
- "internalType": "contract History",
843
- "name": "history",
541
+ "internalType": "contract IQuorum",
542
+ "name": "quorum",
844
543
  "type": "address"
845
544
  }
846
545
  ],
847
- "name": "HistoryCreated",
546
+ "name": "QuorumCreated",
848
547
  "type": "event"
849
548
  },
850
549
  {
851
550
  "inputs": [
852
551
  {
853
- "internalType": "address",
854
- "name": "_historyOwner",
855
- "type": "address"
552
+ "internalType": "address[]",
553
+ "name": "validators",
554
+ "type": "address[]"
856
555
  },
857
556
  {
858
- "internalType": "bytes32",
859
- "name": "_salt",
860
- "type": "bytes32"
861
- }
862
- ],
863
- "name": "calculateHistoryAddress",
864
- "outputs": [
865
- {
866
- "internalType": "address",
867
- "name": "",
868
- "type": "address"
869
- }
870
- ],
871
- "stateMutability": "view",
872
- "type": "function"
873
- },
874
- {
875
- "inputs": [
876
- {
877
- "internalType": "address",
878
- "name": "_historyOwner",
879
- "type": "address"
557
+ "internalType": "uint256",
558
+ "name": "epochLength",
559
+ "type": "uint256"
880
560
  },
881
561
  {
882
562
  "internalType": "bytes32",
883
- "name": "_salt",
563
+ "name": "salt",
884
564
  "type": "bytes32"
885
565
  }
886
566
  ],
887
- "name": "newHistory",
567
+ "name": "calculateQuorumAddress",
888
568
  "outputs": [
889
- {
890
- "internalType": "contract History",
891
- "name": "",
892
- "type": "address"
893
- }
894
- ],
895
- "stateMutability": "nonpayable",
896
- "type": "function"
897
- },
898
- {
899
- "inputs": [
900
569
  {
901
570
  "internalType": "address",
902
- "name": "_historyOwner",
903
- "type": "address"
904
- }
905
- ],
906
- "name": "newHistory",
907
- "outputs": [
908
- {
909
- "internalType": "contract History",
910
571
  "name": "",
911
572
  "type": "address"
912
573
  }
913
574
  ],
914
- "stateMutability": "nonpayable",
575
+ "stateMutability": "view",
915
576
  "type": "function"
916
- }
917
- ]
918
- },
919
- "AuthorityHistoryPairFactory": {
920
- "address": "0x3890A047Cf9Af60731E80B2105362BbDCD70142D",
921
- "abi": [
922
- {
923
- "inputs": [
924
- {
925
- "internalType": "contract IAuthorityFactory",
926
- "name": "_authorityFactory",
927
- "type": "address"
928
- },
929
- {
930
- "internalType": "contract IHistoryFactory",
931
- "name": "_historyFactory",
932
- "type": "address"
933
- }
934
- ],
935
- "stateMutability": "nonpayable",
936
- "type": "constructor"
937
577
  },
938
578
  {
939
- "anonymous": false,
940
579
  "inputs": [
941
580
  {
942
- "indexed": false,
943
- "internalType": "contract IAuthorityFactory",
944
- "name": "authorityFactory",
945
- "type": "address"
581
+ "internalType": "address[]",
582
+ "name": "validators",
583
+ "type": "address[]"
946
584
  },
947
585
  {
948
- "indexed": false,
949
- "internalType": "contract IHistoryFactory",
950
- "name": "historyFactory",
951
- "type": "address"
952
- }
953
- ],
954
- "name": "AuthorityHistoryPairFactoryCreated",
955
- "type": "event"
956
- },
957
- {
958
- "inputs": [
959
- {
960
- "internalType": "address",
961
- "name": "_authorityOwner",
962
- "type": "address"
586
+ "internalType": "uint256",
587
+ "name": "epochLength",
588
+ "type": "uint256"
963
589
  },
964
590
  {
965
591
  "internalType": "bytes32",
966
- "name": "_salt",
592
+ "name": "salt",
967
593
  "type": "bytes32"
968
594
  }
969
595
  ],
970
- "name": "calculateAuthorityHistoryAddressPair",
596
+ "name": "newQuorum",
971
597
  "outputs": [
972
598
  {
973
- "internalType": "address",
974
- "name": "authorityAddress_",
975
- "type": "address"
976
- },
977
- {
978
- "internalType": "address",
979
- "name": "historyAddress_",
980
- "type": "address"
981
- }
982
- ],
983
- "stateMutability": "view",
984
- "type": "function"
985
- },
986
- {
987
- "inputs": [],
988
- "name": "getAuthorityFactory",
989
- "outputs": [
990
- {
991
- "internalType": "contract IAuthorityFactory",
992
- "name": "",
993
- "type": "address"
994
- }
995
- ],
996
- "stateMutability": "view",
997
- "type": "function"
998
- },
999
- {
1000
- "inputs": [],
1001
- "name": "getHistoryFactory",
1002
- "outputs": [
1003
- {
1004
- "internalType": "contract IHistoryFactory",
599
+ "internalType": "contract IQuorum",
1005
600
  "name": "",
1006
601
  "type": "address"
1007
602
  }
1008
603
  ],
1009
- "stateMutability": "view",
1010
- "type": "function"
1011
- },
1012
- {
1013
- "inputs": [
1014
- {
1015
- "internalType": "address",
1016
- "name": "_authorityOwner",
1017
- "type": "address"
1018
- }
1019
- ],
1020
- "name": "newAuthorityHistoryPair",
1021
- "outputs": [
1022
- {
1023
- "internalType": "contract Authority",
1024
- "name": "authority_",
1025
- "type": "address"
1026
- },
1027
- {
1028
- "internalType": "contract History",
1029
- "name": "history_",
1030
- "type": "address"
1031
- }
1032
- ],
1033
604
  "stateMutability": "nonpayable",
1034
605
  "type": "function"
1035
606
  },
1036
607
  {
1037
608
  "inputs": [
1038
609
  {
1039
- "internalType": "address",
1040
- "name": "_authorityOwner",
1041
- "type": "address"
610
+ "internalType": "address[]",
611
+ "name": "validators",
612
+ "type": "address[]"
1042
613
  },
1043
614
  {
1044
- "internalType": "bytes32",
1045
- "name": "_salt",
1046
- "type": "bytes32"
615
+ "internalType": "uint256",
616
+ "name": "epochLength",
617
+ "type": "uint256"
1047
618
  }
1048
619
  ],
1049
- "name": "newAuthorityHistoryPair",
620
+ "name": "newQuorum",
1050
621
  "outputs": [
1051
622
  {
1052
- "internalType": "contract Authority",
1053
- "name": "authority_",
1054
- "type": "address"
1055
- },
1056
- {
1057
- "internalType": "contract History",
1058
- "name": "history_",
623
+ "internalType": "contract IQuorum",
624
+ "name": "",
1059
625
  "type": "address"
1060
626
  }
1061
627
  ],
@@ -1064,8 +630,8 @@
1064
630
  }
1065
631
  ]
1066
632
  },
1067
- "CartesiDAppFactory": {
1068
- "address": "0x7122cd1221C20892234186facfE8615e6743Ab02",
633
+ "ApplicationFactory": {
634
+ "address": "0x1d4CfBD2622d802A07CeB4C3401Bbb455c9dbdC3",
1069
635
  "abi": [
1070
636
  {
1071
637
  "anonymous": false,
@@ -1079,7 +645,7 @@
1079
645
  {
1080
646
  "indexed": false,
1081
647
  "internalType": "address",
1082
- "name": "dappOwner",
648
+ "name": "appOwner",
1083
649
  "type": "address"
1084
650
  },
1085
651
  {
@@ -1090,8 +656,8 @@
1090
656
  },
1091
657
  {
1092
658
  "indexed": false,
1093
- "internalType": "contract CartesiDApp",
1094
- "name": "application",
659
+ "internalType": "contract IApplication",
660
+ "name": "appContract",
1095
661
  "type": "address"
1096
662
  }
1097
663
  ],
@@ -1102,22 +668,22 @@
1102
668
  "inputs": [
1103
669
  {
1104
670
  "internalType": "contract IConsensus",
1105
- "name": "_consensus",
671
+ "name": "consensus",
1106
672
  "type": "address"
1107
673
  },
1108
674
  {
1109
675
  "internalType": "address",
1110
- "name": "_dappOwner",
676
+ "name": "appOwner",
1111
677
  "type": "address"
1112
678
  },
1113
679
  {
1114
680
  "internalType": "bytes32",
1115
- "name": "_templateHash",
681
+ "name": "templateHash",
1116
682
  "type": "bytes32"
1117
683
  },
1118
684
  {
1119
685
  "internalType": "bytes32",
1120
- "name": "_salt",
686
+ "name": "salt",
1121
687
  "type": "bytes32"
1122
688
  }
1123
689
  ],
@@ -1136,29 +702,29 @@
1136
702
  "inputs": [
1137
703
  {
1138
704
  "internalType": "contract IConsensus",
1139
- "name": "_consensus",
705
+ "name": "consensus",
1140
706
  "type": "address"
1141
707
  },
1142
708
  {
1143
709
  "internalType": "address",
1144
- "name": "_dappOwner",
710
+ "name": "appOwner",
1145
711
  "type": "address"
1146
712
  },
1147
713
  {
1148
714
  "internalType": "bytes32",
1149
- "name": "_templateHash",
715
+ "name": "templateHash",
1150
716
  "type": "bytes32"
1151
717
  },
1152
718
  {
1153
719
  "internalType": "bytes32",
1154
- "name": "_salt",
720
+ "name": "salt",
1155
721
  "type": "bytes32"
1156
722
  }
1157
723
  ],
1158
724
  "name": "newApplication",
1159
725
  "outputs": [
1160
726
  {
1161
- "internalType": "contract CartesiDApp",
727
+ "internalType": "contract IApplication",
1162
728
  "name": "",
1163
729
  "type": "address"
1164
730
  }
@@ -1170,24 +736,24 @@
1170
736
  "inputs": [
1171
737
  {
1172
738
  "internalType": "contract IConsensus",
1173
- "name": "_consensus",
739
+ "name": "consensus",
1174
740
  "type": "address"
1175
741
  },
1176
742
  {
1177
743
  "internalType": "address",
1178
- "name": "_dappOwner",
744
+ "name": "appOwner",
1179
745
  "type": "address"
1180
746
  },
1181
747
  {
1182
748
  "internalType": "bytes32",
1183
- "name": "_templateHash",
749
+ "name": "templateHash",
1184
750
  "type": "bytes32"
1185
751
  }
1186
752
  ],
1187
753
  "name": "newApplication",
1188
754
  "outputs": [
1189
755
  {
1190
- "internalType": "contract CartesiDApp",
756
+ "internalType": "contract IApplication",
1191
757
  "name": "",
1192
758
  "type": "address"
1193
759
  }
@@ -1198,18 +764,18 @@
1198
764
  ]
1199
765
  },
1200
766
  "SelfHostedApplicationFactory": {
1201
- "address": "0x9E32e06Fd23675b2DF8eA8e6b0A25c3DF6a60AbC",
767
+ "address": "0x4C11C7F82D6D56a726f9B53dd99af031AFd86BB6",
1202
768
  "abi": [
1203
769
  {
1204
770
  "inputs": [
1205
771
  {
1206
- "internalType": "contract IAuthorityHistoryPairFactory",
1207
- "name": "_authorityHistoryPairFactory",
772
+ "internalType": "contract IAuthorityFactory",
773
+ "name": "authorityFactory",
1208
774
  "type": "address"
1209
775
  },
1210
776
  {
1211
- "internalType": "contract ICartesiDAppFactory",
1212
- "name": "_applicationFactory",
777
+ "internalType": "contract IApplicationFactory",
778
+ "name": "applicationFactory",
1213
779
  "type": "address"
1214
780
  }
1215
781
  ],
@@ -1220,22 +786,27 @@
1220
786
  "inputs": [
1221
787
  {
1222
788
  "internalType": "address",
1223
- "name": "_authorityOwner",
789
+ "name": "authorityOwner",
1224
790
  "type": "address"
1225
791
  },
792
+ {
793
+ "internalType": "uint256",
794
+ "name": "epochLength",
795
+ "type": "uint256"
796
+ },
1226
797
  {
1227
798
  "internalType": "address",
1228
- "name": "_dappOwner",
799
+ "name": "appOwner",
1229
800
  "type": "address"
1230
801
  },
1231
802
  {
1232
803
  "internalType": "bytes32",
1233
- "name": "_templateHash",
804
+ "name": "templateHash",
1234
805
  "type": "bytes32"
1235
806
  },
1236
807
  {
1237
808
  "internalType": "bytes32",
1238
- "name": "_salt",
809
+ "name": "salt",
1239
810
  "type": "bytes32"
1240
811
  }
1241
812
  ],
@@ -1243,17 +814,12 @@
1243
814
  "outputs": [
1244
815
  {
1245
816
  "internalType": "address",
1246
- "name": "application_",
1247
- "type": "address"
1248
- },
1249
- {
1250
- "internalType": "address",
1251
- "name": "authority_",
817
+ "name": "application",
1252
818
  "type": "address"
1253
819
  },
1254
820
  {
1255
821
  "internalType": "address",
1256
- "name": "history_",
822
+ "name": "authority",
1257
823
  "type": "address"
1258
824
  }
1259
825
  ],
@@ -1264,40 +830,40 @@
1264
830
  "inputs": [
1265
831
  {
1266
832
  "internalType": "address",
1267
- "name": "_authorityOwner",
833
+ "name": "authorityOwner",
1268
834
  "type": "address"
1269
835
  },
836
+ {
837
+ "internalType": "uint256",
838
+ "name": "epochLength",
839
+ "type": "uint256"
840
+ },
1270
841
  {
1271
842
  "internalType": "address",
1272
- "name": "_dappOwner",
843
+ "name": "appOwner",
1273
844
  "type": "address"
1274
845
  },
1275
846
  {
1276
847
  "internalType": "bytes32",
1277
- "name": "_templateHash",
848
+ "name": "templateHash",
1278
849
  "type": "bytes32"
1279
850
  },
1280
851
  {
1281
852
  "internalType": "bytes32",
1282
- "name": "_salt",
853
+ "name": "salt",
1283
854
  "type": "bytes32"
1284
855
  }
1285
856
  ],
1286
857
  "name": "deployContracts",
1287
858
  "outputs": [
1288
859
  {
1289
- "internalType": "contract CartesiDApp",
1290
- "name": "application_",
1291
- "type": "address"
1292
- },
1293
- {
1294
- "internalType": "contract Authority",
1295
- "name": "authority_",
860
+ "internalType": "contract IApplication",
861
+ "name": "application",
1296
862
  "type": "address"
1297
863
  },
1298
864
  {
1299
- "internalType": "contract History",
1300
- "name": "history_",
865
+ "internalType": "contract IAuthority",
866
+ "name": "authority",
1301
867
  "type": "address"
1302
868
  }
1303
869
  ],
@@ -1309,7 +875,7 @@
1309
875
  "name": "getApplicationFactory",
1310
876
  "outputs": [
1311
877
  {
1312
- "internalType": "contract ICartesiDAppFactory",
878
+ "internalType": "contract IApplicationFactory",
1313
879
  "name": "",
1314
880
  "type": "address"
1315
881
  }
@@ -1319,10 +885,10 @@
1319
885
  },
1320
886
  {
1321
887
  "inputs": [],
1322
- "name": "getAuthorityHistoryPairFactory",
888
+ "name": "getAuthorityFactory",
1323
889
  "outputs": [
1324
890
  {
1325
- "internalType": "contract IAuthorityHistoryPairFactory",
891
+ "internalType": "contract IAuthorityFactory",
1326
892
  "name": "",
1327
893
  "type": "address"
1328
894
  }
@@ -1332,6 +898,72 @@
1332
898
  }
1333
899
  ]
1334
900
  },
901
+ "SafeERC20Transfer": {
902
+ "address": "0x817b126F242B5F184Fa685b4f2F91DC99D8115F9",
903
+ "abi": [
904
+ {
905
+ "inputs": [
906
+ {
907
+ "internalType": "address",
908
+ "name": "target",
909
+ "type": "address"
910
+ }
911
+ ],
912
+ "name": "AddressEmptyCode",
913
+ "type": "error"
914
+ },
915
+ {
916
+ "inputs": [
917
+ {
918
+ "internalType": "address",
919
+ "name": "account",
920
+ "type": "address"
921
+ }
922
+ ],
923
+ "name": "AddressInsufficientBalance",
924
+ "type": "error"
925
+ },
926
+ {
927
+ "inputs": [],
928
+ "name": "FailedInnerCall",
929
+ "type": "error"
930
+ },
931
+ {
932
+ "inputs": [
933
+ {
934
+ "internalType": "address",
935
+ "name": "token",
936
+ "type": "address"
937
+ }
938
+ ],
939
+ "name": "SafeERC20FailedOperation",
940
+ "type": "error"
941
+ },
942
+ {
943
+ "inputs": [
944
+ {
945
+ "internalType": "contract IERC20",
946
+ "name": "token",
947
+ "type": "address"
948
+ },
949
+ {
950
+ "internalType": "address",
951
+ "name": "to",
952
+ "type": "address"
953
+ },
954
+ {
955
+ "internalType": "uint256",
956
+ "name": "value",
957
+ "type": "uint256"
958
+ }
959
+ ],
960
+ "name": "safeTransfer",
961
+ "outputs": [],
962
+ "stateMutability": "nonpayable",
963
+ "type": "function"
964
+ }
965
+ ]
966
+ },
1335
967
  "TestToken": {
1336
968
  "address": "0x92C6bcA388E99d6B304f1Af3c3Cd749Ff0b591e2",
1337
969
  "abi": [