@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,332 @@
1
+ {
2
+ "abi": [
3
+ {
4
+ "type": "constructor",
5
+ "inputs": [],
6
+ "stateMutability": "nonpayable"
7
+ },
8
+ {
9
+ "type": "function",
10
+ "name": "allowance",
11
+ "inputs": [
12
+ {
13
+ "name": "owner",
14
+ "type": "address",
15
+ "internalType": "address"
16
+ },
17
+ {
18
+ "name": "spender",
19
+ "type": "address",
20
+ "internalType": "address"
21
+ }
22
+ ],
23
+ "outputs": [
24
+ {
25
+ "name": "",
26
+ "type": "uint256",
27
+ "internalType": "uint256"
28
+ }
29
+ ],
30
+ "stateMutability": "view"
31
+ },
32
+ {
33
+ "type": "function",
34
+ "name": "approve",
35
+ "inputs": [
36
+ {
37
+ "name": "spender",
38
+ "type": "address",
39
+ "internalType": "address"
40
+ },
41
+ {
42
+ "name": "value",
43
+ "type": "uint256",
44
+ "internalType": "uint256"
45
+ }
46
+ ],
47
+ "outputs": [
48
+ {
49
+ "name": "",
50
+ "type": "bool",
51
+ "internalType": "bool"
52
+ }
53
+ ],
54
+ "stateMutability": "nonpayable"
55
+ },
56
+ {
57
+ "type": "function",
58
+ "name": "balanceOf",
59
+ "inputs": [
60
+ {
61
+ "name": "account",
62
+ "type": "address",
63
+ "internalType": "address"
64
+ }
65
+ ],
66
+ "outputs": [
67
+ {
68
+ "name": "",
69
+ "type": "uint256",
70
+ "internalType": "uint256"
71
+ }
72
+ ],
73
+ "stateMutability": "view"
74
+ },
75
+ {
76
+ "type": "function",
77
+ "name": "decimals",
78
+ "inputs": [],
79
+ "outputs": [
80
+ {
81
+ "name": "",
82
+ "type": "uint8",
83
+ "internalType": "uint8"
84
+ }
85
+ ],
86
+ "stateMutability": "view"
87
+ },
88
+ {
89
+ "type": "function",
90
+ "name": "mint",
91
+ "inputs": [
92
+ {
93
+ "name": "value",
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": "symbol",
117
+ "inputs": [],
118
+ "outputs": [
119
+ {
120
+ "name": "",
121
+ "type": "string",
122
+ "internalType": "string"
123
+ }
124
+ ],
125
+ "stateMutability": "view"
126
+ },
127
+ {
128
+ "type": "function",
129
+ "name": "totalSupply",
130
+ "inputs": [],
131
+ "outputs": [
132
+ {
133
+ "name": "",
134
+ "type": "uint256",
135
+ "internalType": "uint256"
136
+ }
137
+ ],
138
+ "stateMutability": "view"
139
+ },
140
+ {
141
+ "type": "function",
142
+ "name": "transfer",
143
+ "inputs": [
144
+ {
145
+ "name": "to",
146
+ "type": "address",
147
+ "internalType": "address"
148
+ },
149
+ {
150
+ "name": "value",
151
+ "type": "uint256",
152
+ "internalType": "uint256"
153
+ }
154
+ ],
155
+ "outputs": [
156
+ {
157
+ "name": "",
158
+ "type": "bool",
159
+ "internalType": "bool"
160
+ }
161
+ ],
162
+ "stateMutability": "nonpayable"
163
+ },
164
+ {
165
+ "type": "function",
166
+ "name": "transferFrom",
167
+ "inputs": [
168
+ {
169
+ "name": "from",
170
+ "type": "address",
171
+ "internalType": "address"
172
+ },
173
+ {
174
+ "name": "to",
175
+ "type": "address",
176
+ "internalType": "address"
177
+ },
178
+ {
179
+ "name": "value",
180
+ "type": "uint256",
181
+ "internalType": "uint256"
182
+ }
183
+ ],
184
+ "outputs": [
185
+ {
186
+ "name": "",
187
+ "type": "bool",
188
+ "internalType": "bool"
189
+ }
190
+ ],
191
+ "stateMutability": "nonpayable"
192
+ },
193
+ {
194
+ "type": "event",
195
+ "name": "Approval",
196
+ "inputs": [
197
+ {
198
+ "name": "owner",
199
+ "type": "address",
200
+ "indexed": true,
201
+ "internalType": "address"
202
+ },
203
+ {
204
+ "name": "spender",
205
+ "type": "address",
206
+ "indexed": true,
207
+ "internalType": "address"
208
+ },
209
+ {
210
+ "name": "value",
211
+ "type": "uint256",
212
+ "indexed": false,
213
+ "internalType": "uint256"
214
+ }
215
+ ],
216
+ "anonymous": false
217
+ },
218
+ {
219
+ "type": "event",
220
+ "name": "Transfer",
221
+ "inputs": [
222
+ {
223
+ "name": "from",
224
+ "type": "address",
225
+ "indexed": true,
226
+ "internalType": "address"
227
+ },
228
+ {
229
+ "name": "to",
230
+ "type": "address",
231
+ "indexed": true,
232
+ "internalType": "address"
233
+ },
234
+ {
235
+ "name": "value",
236
+ "type": "uint256",
237
+ "indexed": false,
238
+ "internalType": "uint256"
239
+ }
240
+ ],
241
+ "anonymous": false
242
+ },
243
+ {
244
+ "type": "error",
245
+ "name": "ERC20InsufficientAllowance",
246
+ "inputs": [
247
+ {
248
+ "name": "spender",
249
+ "type": "address",
250
+ "internalType": "address"
251
+ },
252
+ {
253
+ "name": "allowance",
254
+ "type": "uint256",
255
+ "internalType": "uint256"
256
+ },
257
+ {
258
+ "name": "needed",
259
+ "type": "uint256",
260
+ "internalType": "uint256"
261
+ }
262
+ ]
263
+ },
264
+ {
265
+ "type": "error",
266
+ "name": "ERC20InsufficientBalance",
267
+ "inputs": [
268
+ {
269
+ "name": "sender",
270
+ "type": "address",
271
+ "internalType": "address"
272
+ },
273
+ {
274
+ "name": "balance",
275
+ "type": "uint256",
276
+ "internalType": "uint256"
277
+ },
278
+ {
279
+ "name": "needed",
280
+ "type": "uint256",
281
+ "internalType": "uint256"
282
+ }
283
+ ]
284
+ },
285
+ {
286
+ "type": "error",
287
+ "name": "ERC20InvalidApprover",
288
+ "inputs": [
289
+ {
290
+ "name": "approver",
291
+ "type": "address",
292
+ "internalType": "address"
293
+ }
294
+ ]
295
+ },
296
+ {
297
+ "type": "error",
298
+ "name": "ERC20InvalidReceiver",
299
+ "inputs": [
300
+ {
301
+ "name": "receiver",
302
+ "type": "address",
303
+ "internalType": "address"
304
+ }
305
+ ]
306
+ },
307
+ {
308
+ "type": "error",
309
+ "name": "ERC20InvalidSender",
310
+ "inputs": [
311
+ {
312
+ "name": "sender",
313
+ "type": "address",
314
+ "internalType": "address"
315
+ }
316
+ ]
317
+ },
318
+ {
319
+ "type": "error",
320
+ "name": "ERC20InvalidSpender",
321
+ "inputs": [
322
+ {
323
+ "name": "spender",
324
+ "type": "address",
325
+ "internalType": "address"
326
+ }
327
+ ]
328
+ }
329
+ ],
330
+ "address": "0x4CEB2126A79588d4dE5dF07EEcb8c421dC8533b7",
331
+ "contractName": "TestFungibleToken"
332
+ }
@@ -1,15 +1,8 @@
1
1
  {
2
- "address": "0xb038e6fD4A89c5f5654ED4d0589DA3f019d68f58",
3
2
  "abi": [
4
3
  {
5
4
  "type": "constructor",
6
- "inputs": [
7
- {
8
- "name": "initialOwner",
9
- "type": "address",
10
- "internalType": "address"
11
- }
12
- ],
5
+ "inputs": [],
13
6
  "stateMutability": "nonpayable"
14
7
  },
15
8
  {
@@ -89,77 +82,19 @@
89
82
  "name": "mint",
90
83
  "inputs": [
91
84
  {
92
- "name": "account",
93
- "type": "address",
94
- "internalType": "address"
95
- },
96
- {
97
- "name": "id",
85
+ "name": "tokenId",
98
86
  "type": "uint256",
99
87
  "internalType": "uint256"
100
88
  },
101
89
  {
102
- "name": "amount",
90
+ "name": "value",
103
91
  "type": "uint256",
104
92
  "internalType": "uint256"
105
- },
106
- {
107
- "name": "data",
108
- "type": "bytes",
109
- "internalType": "bytes"
110
- }
111
- ],
112
- "outputs": [],
113
- "stateMutability": "nonpayable"
114
- },
115
- {
116
- "type": "function",
117
- "name": "mintBatch",
118
- "inputs": [
119
- {
120
- "name": "to",
121
- "type": "address",
122
- "internalType": "address"
123
- },
124
- {
125
- "name": "ids",
126
- "type": "uint256[]",
127
- "internalType": "uint256[]"
128
- },
129
- {
130
- "name": "amounts",
131
- "type": "uint256[]",
132
- "internalType": "uint256[]"
133
- },
134
- {
135
- "name": "data",
136
- "type": "bytes",
137
- "internalType": "bytes"
138
93
  }
139
94
  ],
140
95
  "outputs": [],
141
96
  "stateMutability": "nonpayable"
142
97
  },
143
- {
144
- "type": "function",
145
- "name": "owner",
146
- "inputs": [],
147
- "outputs": [
148
- {
149
- "name": "",
150
- "type": "address",
151
- "internalType": "address"
152
- }
153
- ],
154
- "stateMutability": "view"
155
- },
156
- {
157
- "type": "function",
158
- "name": "renounceOwnership",
159
- "inputs": [],
160
- "outputs": [],
161
- "stateMutability": "nonpayable"
162
- },
163
98
  {
164
99
  "type": "function",
165
100
  "name": "safeBatchTransferFrom",
@@ -244,19 +179,6 @@
244
179
  "outputs": [],
245
180
  "stateMutability": "nonpayable"
246
181
  },
247
- {
248
- "type": "function",
249
- "name": "setURI",
250
- "inputs": [
251
- {
252
- "name": "newuri",
253
- "type": "string",
254
- "internalType": "string"
255
- }
256
- ],
257
- "outputs": [],
258
- "stateMutability": "nonpayable"
259
- },
260
182
  {
261
183
  "type": "function",
262
184
  "name": "supportsInterface",
@@ -276,19 +198,6 @@
276
198
  ],
277
199
  "stateMutability": "view"
278
200
  },
279
- {
280
- "type": "function",
281
- "name": "transferOwnership",
282
- "inputs": [
283
- {
284
- "name": "newOwner",
285
- "type": "address",
286
- "internalType": "address"
287
- }
288
- ],
289
- "outputs": [],
290
- "stateMutability": "nonpayable"
291
- },
292
201
  {
293
202
  "type": "function",
294
203
  "name": "uri",
@@ -333,25 +242,6 @@
333
242
  ],
334
243
  "anonymous": false
335
244
  },
336
- {
337
- "type": "event",
338
- "name": "OwnershipTransferred",
339
- "inputs": [
340
- {
341
- "name": "previousOwner",
342
- "type": "address",
343
- "indexed": true,
344
- "internalType": "address"
345
- },
346
- {
347
- "name": "newOwner",
348
- "type": "address",
349
- "indexed": true,
350
- "internalType": "address"
351
- }
352
- ],
353
- "anonymous": false
354
- },
355
245
  {
356
246
  "type": "event",
357
247
  "name": "TransferBatch",
@@ -546,40 +436,8 @@
546
436
  "internalType": "address"
547
437
  }
548
438
  ]
549
- },
550
- {
551
- "type": "error",
552
- "name": "OwnableInvalidOwner",
553
- "inputs": [
554
- {
555
- "name": "owner",
556
- "type": "address",
557
- "internalType": "address"
558
- }
559
- ]
560
- },
561
- {
562
- "type": "error",
563
- "name": "OwnableUnauthorizedAccount",
564
- "inputs": [
565
- {
566
- "name": "account",
567
- "type": "address",
568
- "internalType": "address"
569
- }
570
- ]
571
439
  }
572
440
  ],
573
- "constructorArgs": [
574
- "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
575
- ],
576
- "linkedLibraries": {},
577
- "deployTxnHash": "0xa1bdc47094cd709f4e4d9f2a1286370bb20aaebe5a770b943f3825dfe503c48c",
578
- "deployTxnBlockNumber": "2",
579
- "deployTimestamp": "1765912376",
580
- "sourceName": "src/TestMultiToken.sol",
581
- "contractName": "TestMultiToken",
582
- "deployedOn": "deploy.TestMultiToken",
583
- "gasUsed": 1252202,
584
- "gasCost": "1765625000"
441
+ "address": "0x684B8713722a2Dc82b983Ddd2177AA6F143F04B2",
442
+ "contractName": "TestMultiToken"
585
443
  }
@@ -1,5 +1,4 @@
1
1
  {
2
- "address": "0xA4a6E7c00Db61416577f5589693F67115069C9aA",
3
2
  "abi": [
4
3
  {
5
4
  "type": "constructor",
@@ -575,16 +574,6 @@
575
574
  ]
576
575
  }
577
576
  ],
578
- "constructorArgs": [
579
- "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
580
- ],
581
- "linkedLibraries": {},
582
- "deployTxnHash": "0x63dbe7836631e5061b7f99580c96b53c30605f739a2b732ba54ac7f3966837df",
583
- "deployTxnBlockNumber": "3",
584
- "deployTimestamp": "1765912377",
585
- "sourceName": "src/TestNFT.sol",
586
- "contractName": "TestNFT",
587
- "deployedOn": "deploy.TestNFT",
588
- "gasUsed": 1209721,
589
- "gasCost": "1677911185"
577
+ "address": "0x1c5AB37576Af4e6BEeCB66Fa6a9FdBc608F44B78",
578
+ "contractName": "TestNFT"
590
579
  }