@cartesi/devnet 2.0.0-alpha.8 → 2.0.0-alpha.9

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/anvil_state.json +1 -1
  2. package/deployments/{cartesiDaveAppFactory.cartesiRollups.ApplicationFactory.json → ApplicationFactory.json} +2 -11
  3. package/deployments/{cartesiDaveAppFactory.cartesiRollups.AuthorityFactory.json → AuthorityFactory.json} +2 -11
  4. package/deployments/{cartesiDaveAppFactory.prtContracts.BottomTournament.json → BottomTournament.json} +2 -11
  5. package/deployments/{cartesiDaveAppFactory.prtContracts.BottomTournamentFactory.json → BottomTournamentFactory.json} +2 -13
  6. package/deployments/{cartesiDaveAppFactory.prtContracts.CanonicalTournamentParametersProvider.json → CanonicalTournamentParametersProvider.json} +2 -14
  7. package/deployments/{cartesiDaveAppFactory.prtContracts.CartesiStateTransition.json → CartesiStateTransition.json} +2 -14
  8. package/deployments/{cartesiDaveAppFactory.prtContracts.CmioStateTransition.json → CmioStateTransition.json} +2 -11
  9. package/deployments/{cartesiDaveAppFactory.DaveAppFactory.json → DaveAppFactory.json} +2 -15
  10. package/deployments/{cartesiDaveAppFactory.cartesiRollups.ERC1155BatchPortal.json → ERC1155BatchPortal.json} +2 -13
  11. package/deployments/{cartesiDaveAppFactory.cartesiRollups.ERC1155SinglePortal.json → ERC1155SinglePortal.json} +2 -13
  12. package/deployments/{cartesiDaveAppFactory.cartesiRollups.ERC20Portal.json → ERC20Portal.json} +2 -13
  13. package/deployments/{cartesiDaveAppFactory.cartesiRollups.ERC721Portal.json → ERC721Portal.json} +2 -13
  14. package/deployments/{cartesiDaveAppFactory.cartesiRollups.EtherPortal.json → EtherPortal.json} +2 -13
  15. package/deployments/{cartesiDaveAppFactory.cartesiRollups.InputBox.json → InputBox.json} +2 -11
  16. package/deployments/{cartesiDaveAppFactory.prtContracts.MiddleTournament.json → MiddleTournament.json} +2 -11
  17. package/deployments/{cartesiDaveAppFactory.prtContracts.MiddleTournamentFactory.json → MiddleTournamentFactory.json} +2 -13
  18. package/deployments/{cartesiDaveAppFactory.prtContracts.MultiLevelTournamentFactory.json → MultiLevelTournamentFactory.json} +2 -17
  19. package/deployments/{cartesiDaveAppFactory.cartesiRollups.QuorumFactory.json → QuorumFactory.json} +2 -11
  20. package/deployments/{cartesiDaveAppFactory.prtContracts.RiscVStateTransition.json → RiscVStateTransition.json} +2 -11
  21. package/deployments/{cartesiDaveAppFactory.cartesiRollups.SafeERC20Transfer.json → SafeERC20Transfer.json} +2 -11
  22. package/deployments/{cartesiDaveAppFactory.cartesiRollups.SelfHostedApplicationFactory.json → SelfHostedApplicationFactory.json} +2 -14
  23. package/deployments/TestFungibleToken.json +332 -0
  24. package/deployments/TestMultiToken.json +5 -147
  25. package/deployments/TestNFT.json +2 -13
  26. package/deployments/TestNonFungibleToken.json +457 -0
  27. package/deployments/TestToken.json +2 -13
  28. package/deployments/{cartesiDaveAppFactory.prtContracts.TopTournament.json → TopTournament.json} +2 -11
  29. package/deployments/{cartesiDaveAppFactory.prtContracts.TopTournamentFactory.json → TopTournamentFactory.json} +2 -13
  30. package/package.json +30 -25
  31. package/LICENSE +0 -202
@@ -0,0 +1,457 @@
1
+ {
2
+ "abi": [
3
+ {
4
+ "type": "constructor",
5
+ "inputs": [],
6
+ "stateMutability": "nonpayable"
7
+ },
8
+ {
9
+ "type": "function",
10
+ "name": "approve",
11
+ "inputs": [
12
+ {
13
+ "name": "to",
14
+ "type": "address",
15
+ "internalType": "address"
16
+ },
17
+ {
18
+ "name": "tokenId",
19
+ "type": "uint256",
20
+ "internalType": "uint256"
21
+ }
22
+ ],
23
+ "outputs": [],
24
+ "stateMutability": "nonpayable"
25
+ },
26
+ {
27
+ "type": "function",
28
+ "name": "balanceOf",
29
+ "inputs": [
30
+ {
31
+ "name": "owner",
32
+ "type": "address",
33
+ "internalType": "address"
34
+ }
35
+ ],
36
+ "outputs": [
37
+ {
38
+ "name": "",
39
+ "type": "uint256",
40
+ "internalType": "uint256"
41
+ }
42
+ ],
43
+ "stateMutability": "view"
44
+ },
45
+ {
46
+ "type": "function",
47
+ "name": "getApproved",
48
+ "inputs": [
49
+ {
50
+ "name": "tokenId",
51
+ "type": "uint256",
52
+ "internalType": "uint256"
53
+ }
54
+ ],
55
+ "outputs": [
56
+ {
57
+ "name": "",
58
+ "type": "address",
59
+ "internalType": "address"
60
+ }
61
+ ],
62
+ "stateMutability": "view"
63
+ },
64
+ {
65
+ "type": "function",
66
+ "name": "isApprovedForAll",
67
+ "inputs": [
68
+ {
69
+ "name": "owner",
70
+ "type": "address",
71
+ "internalType": "address"
72
+ },
73
+ {
74
+ "name": "operator",
75
+ "type": "address",
76
+ "internalType": "address"
77
+ }
78
+ ],
79
+ "outputs": [
80
+ {
81
+ "name": "",
82
+ "type": "bool",
83
+ "internalType": "bool"
84
+ }
85
+ ],
86
+ "stateMutability": "view"
87
+ },
88
+ {
89
+ "type": "function",
90
+ "name": "mint",
91
+ "inputs": [
92
+ {
93
+ "name": "tokenId",
94
+ "type": "uint256",
95
+ "internalType": "uint256"
96
+ }
97
+ ],
98
+ "outputs": [],
99
+ "stateMutability": "nonpayable"
100
+ },
101
+ {
102
+ "type": "function",
103
+ "name": "name",
104
+ "inputs": [],
105
+ "outputs": [
106
+ {
107
+ "name": "",
108
+ "type": "string",
109
+ "internalType": "string"
110
+ }
111
+ ],
112
+ "stateMutability": "view"
113
+ },
114
+ {
115
+ "type": "function",
116
+ "name": "ownerOf",
117
+ "inputs": [
118
+ {
119
+ "name": "tokenId",
120
+ "type": "uint256",
121
+ "internalType": "uint256"
122
+ }
123
+ ],
124
+ "outputs": [
125
+ {
126
+ "name": "",
127
+ "type": "address",
128
+ "internalType": "address"
129
+ }
130
+ ],
131
+ "stateMutability": "view"
132
+ },
133
+ {
134
+ "type": "function",
135
+ "name": "safeTransferFrom",
136
+ "inputs": [
137
+ {
138
+ "name": "from",
139
+ "type": "address",
140
+ "internalType": "address"
141
+ },
142
+ {
143
+ "name": "to",
144
+ "type": "address",
145
+ "internalType": "address"
146
+ },
147
+ {
148
+ "name": "tokenId",
149
+ "type": "uint256",
150
+ "internalType": "uint256"
151
+ }
152
+ ],
153
+ "outputs": [],
154
+ "stateMutability": "nonpayable"
155
+ },
156
+ {
157
+ "type": "function",
158
+ "name": "safeTransferFrom",
159
+ "inputs": [
160
+ {
161
+ "name": "from",
162
+ "type": "address",
163
+ "internalType": "address"
164
+ },
165
+ {
166
+ "name": "to",
167
+ "type": "address",
168
+ "internalType": "address"
169
+ },
170
+ {
171
+ "name": "tokenId",
172
+ "type": "uint256",
173
+ "internalType": "uint256"
174
+ },
175
+ {
176
+ "name": "data",
177
+ "type": "bytes",
178
+ "internalType": "bytes"
179
+ }
180
+ ],
181
+ "outputs": [],
182
+ "stateMutability": "nonpayable"
183
+ },
184
+ {
185
+ "type": "function",
186
+ "name": "setApprovalForAll",
187
+ "inputs": [
188
+ {
189
+ "name": "operator",
190
+ "type": "address",
191
+ "internalType": "address"
192
+ },
193
+ {
194
+ "name": "approved",
195
+ "type": "bool",
196
+ "internalType": "bool"
197
+ }
198
+ ],
199
+ "outputs": [],
200
+ "stateMutability": "nonpayable"
201
+ },
202
+ {
203
+ "type": "function",
204
+ "name": "supportsInterface",
205
+ "inputs": [
206
+ {
207
+ "name": "interfaceId",
208
+ "type": "bytes4",
209
+ "internalType": "bytes4"
210
+ }
211
+ ],
212
+ "outputs": [
213
+ {
214
+ "name": "",
215
+ "type": "bool",
216
+ "internalType": "bool"
217
+ }
218
+ ],
219
+ "stateMutability": "view"
220
+ },
221
+ {
222
+ "type": "function",
223
+ "name": "symbol",
224
+ "inputs": [],
225
+ "outputs": [
226
+ {
227
+ "name": "",
228
+ "type": "string",
229
+ "internalType": "string"
230
+ }
231
+ ],
232
+ "stateMutability": "view"
233
+ },
234
+ {
235
+ "type": "function",
236
+ "name": "tokenURI",
237
+ "inputs": [
238
+ {
239
+ "name": "tokenId",
240
+ "type": "uint256",
241
+ "internalType": "uint256"
242
+ }
243
+ ],
244
+ "outputs": [
245
+ {
246
+ "name": "",
247
+ "type": "string",
248
+ "internalType": "string"
249
+ }
250
+ ],
251
+ "stateMutability": "view"
252
+ },
253
+ {
254
+ "type": "function",
255
+ "name": "transferFrom",
256
+ "inputs": [
257
+ {
258
+ "name": "from",
259
+ "type": "address",
260
+ "internalType": "address"
261
+ },
262
+ {
263
+ "name": "to",
264
+ "type": "address",
265
+ "internalType": "address"
266
+ },
267
+ {
268
+ "name": "tokenId",
269
+ "type": "uint256",
270
+ "internalType": "uint256"
271
+ }
272
+ ],
273
+ "outputs": [],
274
+ "stateMutability": "nonpayable"
275
+ },
276
+ {
277
+ "type": "event",
278
+ "name": "Approval",
279
+ "inputs": [
280
+ {
281
+ "name": "owner",
282
+ "type": "address",
283
+ "indexed": true,
284
+ "internalType": "address"
285
+ },
286
+ {
287
+ "name": "approved",
288
+ "type": "address",
289
+ "indexed": true,
290
+ "internalType": "address"
291
+ },
292
+ {
293
+ "name": "tokenId",
294
+ "type": "uint256",
295
+ "indexed": true,
296
+ "internalType": "uint256"
297
+ }
298
+ ],
299
+ "anonymous": false
300
+ },
301
+ {
302
+ "type": "event",
303
+ "name": "ApprovalForAll",
304
+ "inputs": [
305
+ {
306
+ "name": "owner",
307
+ "type": "address",
308
+ "indexed": true,
309
+ "internalType": "address"
310
+ },
311
+ {
312
+ "name": "operator",
313
+ "type": "address",
314
+ "indexed": true,
315
+ "internalType": "address"
316
+ },
317
+ {
318
+ "name": "approved",
319
+ "type": "bool",
320
+ "indexed": false,
321
+ "internalType": "bool"
322
+ }
323
+ ],
324
+ "anonymous": false
325
+ },
326
+ {
327
+ "type": "event",
328
+ "name": "Transfer",
329
+ "inputs": [
330
+ {
331
+ "name": "from",
332
+ "type": "address",
333
+ "indexed": true,
334
+ "internalType": "address"
335
+ },
336
+ {
337
+ "name": "to",
338
+ "type": "address",
339
+ "indexed": true,
340
+ "internalType": "address"
341
+ },
342
+ {
343
+ "name": "tokenId",
344
+ "type": "uint256",
345
+ "indexed": true,
346
+ "internalType": "uint256"
347
+ }
348
+ ],
349
+ "anonymous": false
350
+ },
351
+ {
352
+ "type": "error",
353
+ "name": "ERC721IncorrectOwner",
354
+ "inputs": [
355
+ {
356
+ "name": "sender",
357
+ "type": "address",
358
+ "internalType": "address"
359
+ },
360
+ {
361
+ "name": "tokenId",
362
+ "type": "uint256",
363
+ "internalType": "uint256"
364
+ },
365
+ {
366
+ "name": "owner",
367
+ "type": "address",
368
+ "internalType": "address"
369
+ }
370
+ ]
371
+ },
372
+ {
373
+ "type": "error",
374
+ "name": "ERC721InsufficientApproval",
375
+ "inputs": [
376
+ {
377
+ "name": "operator",
378
+ "type": "address",
379
+ "internalType": "address"
380
+ },
381
+ {
382
+ "name": "tokenId",
383
+ "type": "uint256",
384
+ "internalType": "uint256"
385
+ }
386
+ ]
387
+ },
388
+ {
389
+ "type": "error",
390
+ "name": "ERC721InvalidApprover",
391
+ "inputs": [
392
+ {
393
+ "name": "approver",
394
+ "type": "address",
395
+ "internalType": "address"
396
+ }
397
+ ]
398
+ },
399
+ {
400
+ "type": "error",
401
+ "name": "ERC721InvalidOperator",
402
+ "inputs": [
403
+ {
404
+ "name": "operator",
405
+ "type": "address",
406
+ "internalType": "address"
407
+ }
408
+ ]
409
+ },
410
+ {
411
+ "type": "error",
412
+ "name": "ERC721InvalidOwner",
413
+ "inputs": [
414
+ {
415
+ "name": "owner",
416
+ "type": "address",
417
+ "internalType": "address"
418
+ }
419
+ ]
420
+ },
421
+ {
422
+ "type": "error",
423
+ "name": "ERC721InvalidReceiver",
424
+ "inputs": [
425
+ {
426
+ "name": "receiver",
427
+ "type": "address",
428
+ "internalType": "address"
429
+ }
430
+ ]
431
+ },
432
+ {
433
+ "type": "error",
434
+ "name": "ERC721InvalidSender",
435
+ "inputs": [
436
+ {
437
+ "name": "sender",
438
+ "type": "address",
439
+ "internalType": "address"
440
+ }
441
+ ]
442
+ },
443
+ {
444
+ "type": "error",
445
+ "name": "ERC721NonexistentToken",
446
+ "inputs": [
447
+ {
448
+ "name": "tokenId",
449
+ "type": "uint256",
450
+ "internalType": "uint256"
451
+ }
452
+ ]
453
+ }
454
+ ],
455
+ "address": "0x40e6ab72ff8E637971428826A35c80CBE93cdE87",
456
+ "contractName": "TestNonFungibleToken"
457
+ }
@@ -1,5 +1,4 @@
1
1
  {
2
- "address": "0xbE4Fe7d047600782e20251a9c33eA4DB652e4B36",
3
2
  "abi": [
4
3
  {
5
4
  "type": "constructor",
@@ -715,16 +714,6 @@
715
714
  ]
716
715
  }
717
716
  ],
718
- "constructorArgs": [
719
- "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
720
- ],
721
- "linkedLibraries": {},
722
- "deployTxnHash": "0x18b06115d17047cfe2ceaeda40d6e4a23efd401217bab3292f96011e9e781bc7",
723
- "deployTxnBlockNumber": "4",
724
- "deployTimestamp": "1765912377",
725
- "sourceName": "src/TestToken.sol",
726
- "contractName": "TestToken",
727
- "deployedOn": "deploy.TestToken",
728
- "gasUsed": 1327196,
729
- "gasCost": "1600006316"
717
+ "address": "0x5138f529B77B4e0a7c84B77E79c4335D31938fed",
718
+ "contractName": "TestToken"
730
719
  }
@@ -1,5 +1,4 @@
1
1
  {
2
- "address": "0x367Ff3c21E189645aaf17bDD41D4C186686CfE53",
3
2
  "abi": [
4
3
  {
5
4
  "type": "function",
@@ -1113,14 +1112,6 @@
1113
1112
  ]
1114
1113
  }
1115
1114
  ],
1116
- "constructorArgs": [],
1117
- "linkedLibraries": {},
1118
- "deployTxnHash": "0x8a76af66f48e6c60c8d8535a0d2cf2ea986b6df882fa83c9a3a4ef6aa3e4d399",
1119
- "deployTxnBlockNumber": "1",
1120
- "deployTimestamp": "1762445419",
1121
- "sourceName": "src/tournament/concretes/TopTournament.sol",
1122
- "contractName": "TopTournament",
1123
- "deployedOn": "deploy.TopTournament",
1124
- "gasUsed": 2516985,
1125
- "gasCost": "1348248260"
1115
+ "address": "0x367Ff3c21E189645aaf17bDD41D4C186686CfE53",
1116
+ "contractName": "TopTournament"
1126
1117
  }
@@ -1,5 +1,4 @@
1
1
  {
2
- "address": "0xfdF16a7D9143f5E3B7B056b761a7eF8Ce18dc6eF",
3
2
  "abi": [
4
3
  {
5
4
  "type": "constructor",
@@ -100,16 +99,6 @@
100
99
  ]
101
100
  }
102
101
  ],
103
- "constructorArgs": [
104
- "0x367Ff3c21E189645aaf17bDD41D4C186686CfE53"
105
- ],
106
- "linkedLibraries": {},
107
- "deployTxnHash": "0x8120b390b04dc6d3fb4b08857038bfb7dc964c10906970f5c59321165b732d04",
108
- "deployTxnBlockNumber": "3",
109
- "deployTimestamp": "1762445419",
110
- "sourceName": "src/tournament/factories/multilevel/TopTournamentFactory.sol",
111
- "contractName": "TopTournamentFactory",
112
- "deployedOn": "deploy.TopTournamentFactory",
113
- "gasUsed": 287912,
114
- "gasCost": "1396786380"
102
+ "address": "0xfdF16a7D9143f5E3B7B056b761a7eF8Ce18dc6eF",
103
+ "contractName": "TopTournamentFactory"
115
104
  }
package/package.json CHANGED
@@ -1,26 +1,31 @@
1
1
  {
2
- "name": "@cartesi/devnet",
3
- "version": "2.0.0-alpha.8",
4
- "license": "Apache-2.0",
5
- "repository": "cartesi/cli",
6
- "devDependencies": {
7
- "@usecannon/cli": "^2.25.1",
8
- "npm-run-all": "^4.1.5"
9
- },
10
- "files": [
11
- "anvil_state.json",
12
- "deployments"
13
- ],
14
- "scripts": {
15
- "build": "run-s build:soldeer build:forge build:cannon",
16
- "build:cannon": "cannon build --write-deployments deployments --anvil.dump-state anvil_state.json",
17
- "build:forge": "forge build",
18
- "build:soldeer": "forge soldeer install",
19
- "clean": "run-s clean:cannon clean:dump clean:forge",
20
- "clean:cannon": "cannon clean",
21
- "clean:dump": "rm -rf deployments anvil_state.json",
22
- "clean:forge": "forge clean",
23
- "fmt:check": "forge fmt --check",
24
- "fmt:write": "forge fmt"
25
- }
26
- }
2
+ "name": "@cartesi/devnet",
3
+ "version": "2.0.0-alpha.9",
4
+ "license": "Apache-2.0",
5
+ "repository": "cartesi/cli",
6
+ "scripts": {
7
+ "build": "run-s build:soldeer build:forge build:dump",
8
+ "build:dump": "bun build.ts",
9
+ "build:forge": "forge build",
10
+ "build:soldeer": "forge soldeer install",
11
+ "clean": "run-p clean:dump clean:forge",
12
+ "clean:dump": "rm -rf broadcast build deployments anvil_state.json",
13
+ "clean:forge": "forge clean",
14
+ "fmt:check": "forge fmt --check",
15
+ "fmt:write": "forge fmt"
16
+ },
17
+ "devDependencies": {
18
+ "@types/bun": "^1.3.5",
19
+ "@types/fs-extra": "^11.0.4",
20
+ "fs-extra": "^11.3.2",
21
+ "listr2": "^9.0.5",
22
+ "modern-tar": "^0.7.3",
23
+ "npm-run-all": "^4.1.5",
24
+ "p-retry": "^7.1.1",
25
+ "semver": "^7.7.3"
26
+ },
27
+ "files": [
28
+ "anvil_state.json",
29
+ "deployments"
30
+ ]
31
+ }