@cartesi/devnet 2.0.0-alpha.3 → 2.0.0-alpha.5

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 (94) hide show
  1. package/anvil_state.json +1 -0
  2. package/deployments/TestMultiToken.json +585 -0
  3. package/deployments/TestNFT.json +590 -0
  4. package/deployments/TestToken.json +730 -0
  5. package/deployments/cartesiRollups.ApplicationFactory.json +164 -0
  6. package/deployments/cartesiRollups.AuthorityFactory.json +110 -0
  7. package/deployments/cartesiRollups.ERC1155BatchPortal.json +79 -0
  8. package/deployments/cartesiRollups.ERC1155SinglePortal.json +79 -0
  9. package/deployments/cartesiRollups.ERC20Portal.json +74 -0
  10. package/deployments/cartesiRollups.ERC721Portal.json +74 -0
  11. package/deployments/cartesiRollups.EtherPortal.json +64 -0
  12. package/deployments/cartesiRollups.InputBox.json +141 -0
  13. package/deployments/cartesiRollups.QuorumFactory.json +110 -0
  14. package/deployments/cartesiRollups.SafeERC20Transfer.json +49 -0
  15. package/deployments/cartesiRollups.SelfHostedApplicationFactory.json +158 -0
  16. package/package.json +15 -33
  17. package/build/anvil_state.json +0 -1
  18. package/deployments/localhost/.chainId +0 -1
  19. package/deployments/localhost/ApplicationFactory.json +0 -227
  20. package/deployments/localhost/AuthorityFactory.json +0 -188
  21. package/deployments/localhost/ERC1155BatchPortal.json +0 -133
  22. package/deployments/localhost/ERC1155SinglePortal.json +0 -132
  23. package/deployments/localhost/ERC20Portal.json +0 -132
  24. package/deployments/localhost/ERC721Portal.json +0 -126
  25. package/deployments/localhost/EtherPortal.json +0 -121
  26. package/deployments/localhost/InputBox.json +0 -213
  27. package/deployments/localhost/QuorumFactory.json +0 -188
  28. package/deployments/localhost/SafeERC20Transfer.json +0 -118
  29. package/deployments/localhost/SelfHostedApplicationFactory.json +0 -227
  30. package/deployments/localhost/TestMultiToken.json +0 -829
  31. package/deployments/localhost/TestNFT.json +0 -891
  32. package/deployments/localhost/TestToken.json +0 -1079
  33. package/dist/deploy/01_token.js +0 -15
  34. package/dist/deploy/02_nft.js +0 -15
  35. package/dist/deploy/03_multitoken.js +0 -15
  36. package/dist/deploy/04_4337.js +0 -342
  37. package/dist/src/aa/constants.d.ts +0 -31
  38. package/dist/src/aa/constants.d.ts.map +0 -1
  39. package/dist/src/aa/constants.js +0 -65
  40. package/dist/src/tasks/deploy-anvil.d.ts +0 -6
  41. package/dist/src/tasks/deploy-anvil.d.ts.map +0 -1
  42. package/dist/src/tasks/deploy-anvil.js +0 -40
  43. package/export/abi/localhost.json +0 -2837
  44. package/export/artifacts/@openzeppelin/contracts/access/Ownable.sol/Ownable.json +0 -128
  45. package/export/artifacts/@openzeppelin/contracts/access/manager/AccessManaged.sol/AccessManaged.json +0 -137
  46. package/export/artifacts/@openzeppelin/contracts/access/manager/AuthorityUtils.sol/AuthorityUtils.json +0 -32
  47. package/export/artifacts/@openzeppelin/contracts/access/manager/IAccessManaged.sol/IAccessManaged.json +0 -133
  48. package/export/artifacts/@openzeppelin/contracts/access/manager/IAccessManager.sol/IAccessManager.json +0 -1240
  49. package/export/artifacts/@openzeppelin/contracts/access/manager/IAuthority.sol/IAuthority.json +0 -60
  50. package/export/artifacts/@openzeppelin/contracts/interfaces/IERC4906.sol/IERC4906.json +0 -401
  51. package/export/artifacts/@openzeppelin/contracts/interfaces/IERC5267.sol/IERC5267.json +0 -84
  52. package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.json +0 -190
  53. package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.json +0 -165
  54. package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.json +0 -197
  55. package/export/artifacts/@openzeppelin/contracts/token/ERC1155/ERC1155.sol/ERC1155.json +0 -553
  56. package/export/artifacts/@openzeppelin/contracts/token/ERC1155/IERC1155.sol/IERC1155.json +0 -362
  57. package/export/artifacts/@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol/IERC1155Receiver.json +0 -156
  58. package/export/artifacts/@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol/IERC1155MetadataURI.json +0 -385
  59. package/export/artifacts/@openzeppelin/contracts/token/ERC1155/utils/ERC1155Utils.sol/ERC1155Utils.json +0 -34
  60. package/export/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json +0 -436
  61. package/export/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.json +0 -242
  62. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol/ERC20Burnable.json +0 -472
  63. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol/ERC20Pausable.json +0 -502
  64. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol/ERC20Permit.json +0 -695
  65. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.json +0 -293
  66. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol/IERC20Permit.json +0 -114
  67. package/export/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json +0 -595
  68. package/export/artifacts/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.json +0 -363
  69. package/export/artifacts/@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol/IERC721Receiver.json +0 -66
  70. package/export/artifacts/@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol/ERC721URIStorage.json +0 -630
  71. package/export/artifacts/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol/IERC721Metadata.json +0 -421
  72. package/export/artifacts/@openzeppelin/contracts/token/ERC721/utils/ERC721Utils.sol/ERC721Utils.json +0 -33
  73. package/export/artifacts/@openzeppelin/contracts/utils/Arrays.sol/Arrays.json +0 -61
  74. package/export/artifacts/@openzeppelin/contracts/utils/Comparators.sol/Comparators.json +0 -34
  75. package/export/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.json +0 -24
  76. package/export/artifacts/@openzeppelin/contracts/utils/Nonces.sol/Nonces.json +0 -73
  77. package/export/artifacts/@openzeppelin/contracts/utils/Panic.sol/Panic.json +0 -65
  78. package/export/artifacts/@openzeppelin/contracts/utils/Pausable.sol/Pausable.json +0 -103
  79. package/export/artifacts/@openzeppelin/contracts/utils/ShortStrings.sol/ShortStrings.json +0 -55
  80. package/export/artifacts/@openzeppelin/contracts/utils/SlotDerivation.sol/SlotDerivation.json +0 -42
  81. package/export/artifacts/@openzeppelin/contracts/utils/StorageSlot.sol/StorageSlot.json +0 -41
  82. package/export/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.json +0 -63
  83. package/export/artifacts/@openzeppelin/contracts/utils/cryptography/ECDSA.sol/ECDSA.json +0 -84
  84. package/export/artifacts/@openzeppelin/contracts/utils/cryptography/EIP712.sol/EIP712.json +0 -105
  85. package/export/artifacts/@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol/MessageHashUtils.json +0 -36
  86. package/export/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.json +0 -50
  87. package/export/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.json +0 -50
  88. package/export/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.json +0 -60
  89. package/export/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.json +0 -174
  90. package/export/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.json +0 -37
  91. package/export/artifacts/@openzeppelin/contracts/utils/types/Time.sol/Time.json +0 -41
  92. package/export/artifacts/contracts/TestMultiToken.sol/TestMultiToken.json +0 -750
  93. package/export/artifacts/contracts/TestNFT.sol/TestNFT.json +0 -779
  94. package/export/artifacts/contracts/TestToken.sol/TestToken.json +0 -963
@@ -0,0 +1,141 @@
1
+ {
2
+ "address": "0xB6b39Fb3dD926A9e3FBc7A129540eEbeA3016a6c",
3
+ "abi": [
4
+ {
5
+ "type": "function",
6
+ "name": "addInput",
7
+ "inputs": [
8
+ {
9
+ "name": "appContract",
10
+ "type": "address",
11
+ "internalType": "address"
12
+ },
13
+ {
14
+ "name": "payload",
15
+ "type": "bytes",
16
+ "internalType": "bytes"
17
+ }
18
+ ],
19
+ "outputs": [
20
+ {
21
+ "name": "",
22
+ "type": "bytes32",
23
+ "internalType": "bytes32"
24
+ }
25
+ ],
26
+ "stateMutability": "nonpayable"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "getDeploymentBlockNumber",
31
+ "inputs": [],
32
+ "outputs": [
33
+ {
34
+ "name": "",
35
+ "type": "uint256",
36
+ "internalType": "uint256"
37
+ }
38
+ ],
39
+ "stateMutability": "view"
40
+ },
41
+ {
42
+ "type": "function",
43
+ "name": "getInputHash",
44
+ "inputs": [
45
+ {
46
+ "name": "appContract",
47
+ "type": "address",
48
+ "internalType": "address"
49
+ },
50
+ {
51
+ "name": "index",
52
+ "type": "uint256",
53
+ "internalType": "uint256"
54
+ }
55
+ ],
56
+ "outputs": [
57
+ {
58
+ "name": "",
59
+ "type": "bytes32",
60
+ "internalType": "bytes32"
61
+ }
62
+ ],
63
+ "stateMutability": "view"
64
+ },
65
+ {
66
+ "type": "function",
67
+ "name": "getNumberOfInputs",
68
+ "inputs": [
69
+ {
70
+ "name": "appContract",
71
+ "type": "address",
72
+ "internalType": "address"
73
+ }
74
+ ],
75
+ "outputs": [
76
+ {
77
+ "name": "",
78
+ "type": "uint256",
79
+ "internalType": "uint256"
80
+ }
81
+ ],
82
+ "stateMutability": "view"
83
+ },
84
+ {
85
+ "type": "event",
86
+ "name": "InputAdded",
87
+ "inputs": [
88
+ {
89
+ "name": "appContract",
90
+ "type": "address",
91
+ "indexed": true,
92
+ "internalType": "address"
93
+ },
94
+ {
95
+ "name": "index",
96
+ "type": "uint256",
97
+ "indexed": true,
98
+ "internalType": "uint256"
99
+ },
100
+ {
101
+ "name": "input",
102
+ "type": "bytes",
103
+ "indexed": false,
104
+ "internalType": "bytes"
105
+ }
106
+ ],
107
+ "anonymous": false
108
+ },
109
+ {
110
+ "type": "error",
111
+ "name": "InputTooLarge",
112
+ "inputs": [
113
+ {
114
+ "name": "appContract",
115
+ "type": "address",
116
+ "internalType": "address"
117
+ },
118
+ {
119
+ "name": "inputLength",
120
+ "type": "uint256",
121
+ "internalType": "uint256"
122
+ },
123
+ {
124
+ "name": "maxInputLength",
125
+ "type": "uint256",
126
+ "internalType": "uint256"
127
+ }
128
+ ]
129
+ }
130
+ ],
131
+ "constructorArgs": [],
132
+ "linkedLibraries": {},
133
+ "deployTxnHash": "0x08152eb866e9611e4fb52f4c2b815f83d7d1d5358e8c3e348092b3f27f079709",
134
+ "deployTxnBlockNumber": "1",
135
+ "deployTimestamp": "1742931757",
136
+ "sourceName": "src/inputs/InputBox.sol",
137
+ "contractName": "InputBox",
138
+ "deployedOn": "deploy.InputBox",
139
+ "gasUsed": 242044,
140
+ "gasCost": "2000000000"
141
+ }
@@ -0,0 +1,110 @@
1
+ {
2
+ "address": "0xb85D3942e551E6E5f19AC2CCF8dAb195f5f0347E",
3
+ "abi": [
4
+ {
5
+ "type": "function",
6
+ "name": "calculateQuorumAddress",
7
+ "inputs": [
8
+ {
9
+ "name": "validators",
10
+ "type": "address[]",
11
+ "internalType": "address[]"
12
+ },
13
+ {
14
+ "name": "epochLength",
15
+ "type": "uint256",
16
+ "internalType": "uint256"
17
+ },
18
+ {
19
+ "name": "salt",
20
+ "type": "bytes32",
21
+ "internalType": "bytes32"
22
+ }
23
+ ],
24
+ "outputs": [
25
+ {
26
+ "name": "",
27
+ "type": "address",
28
+ "internalType": "address"
29
+ }
30
+ ],
31
+ "stateMutability": "view"
32
+ },
33
+ {
34
+ "type": "function",
35
+ "name": "newQuorum",
36
+ "inputs": [
37
+ {
38
+ "name": "validators",
39
+ "type": "address[]",
40
+ "internalType": "address[]"
41
+ },
42
+ {
43
+ "name": "epochLength",
44
+ "type": "uint256",
45
+ "internalType": "uint256"
46
+ },
47
+ {
48
+ "name": "salt",
49
+ "type": "bytes32",
50
+ "internalType": "bytes32"
51
+ }
52
+ ],
53
+ "outputs": [
54
+ {
55
+ "name": "",
56
+ "type": "address",
57
+ "internalType": "contract IQuorum"
58
+ }
59
+ ],
60
+ "stateMutability": "nonpayable"
61
+ },
62
+ {
63
+ "type": "function",
64
+ "name": "newQuorum",
65
+ "inputs": [
66
+ {
67
+ "name": "validators",
68
+ "type": "address[]",
69
+ "internalType": "address[]"
70
+ },
71
+ {
72
+ "name": "epochLength",
73
+ "type": "uint256",
74
+ "internalType": "uint256"
75
+ }
76
+ ],
77
+ "outputs": [
78
+ {
79
+ "name": "",
80
+ "type": "address",
81
+ "internalType": "contract IQuorum"
82
+ }
83
+ ],
84
+ "stateMutability": "nonpayable"
85
+ },
86
+ {
87
+ "type": "event",
88
+ "name": "QuorumCreated",
89
+ "inputs": [
90
+ {
91
+ "name": "quorum",
92
+ "type": "address",
93
+ "indexed": false,
94
+ "internalType": "contract IQuorum"
95
+ }
96
+ ],
97
+ "anonymous": false
98
+ }
99
+ ],
100
+ "constructorArgs": [],
101
+ "linkedLibraries": {},
102
+ "deployTxnHash": "0xfcb247d903064f7336c1aa5e54f33b467c010a0d05aacd58d37c8404d3a8c9d7",
103
+ "deployTxnBlockNumber": "1",
104
+ "deployTimestamp": "1742931756",
105
+ "sourceName": "src/consensus/quorum/QuorumFactory.sol",
106
+ "contractName": "QuorumFactory",
107
+ "deployedOn": "deploy.QuorumFactory",
108
+ "gasUsed": 625423,
109
+ "gasCost": "1398280091"
110
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "address": "0x35187C9f069D34aB73c02327ae155746a8274208",
3
+ "abi": [
4
+ {
5
+ "type": "function",
6
+ "name": "safeTransfer",
7
+ "inputs": [
8
+ {
9
+ "name": "token",
10
+ "type": "address",
11
+ "internalType": "contract IERC20"
12
+ },
13
+ {
14
+ "name": "to",
15
+ "type": "address",
16
+ "internalType": "address"
17
+ },
18
+ {
19
+ "name": "value",
20
+ "type": "uint256",
21
+ "internalType": "uint256"
22
+ }
23
+ ],
24
+ "outputs": [],
25
+ "stateMutability": "nonpayable"
26
+ },
27
+ {
28
+ "type": "error",
29
+ "name": "SafeERC20FailedOperation",
30
+ "inputs": [
31
+ {
32
+ "name": "token",
33
+ "type": "address",
34
+ "internalType": "address"
35
+ }
36
+ ]
37
+ }
38
+ ],
39
+ "constructorArgs": [],
40
+ "linkedLibraries": {},
41
+ "deployTxnHash": "0xe0eaefca9d4c789933a0c279b6fa3acd0d88108ee625a9ce39b3b3f15b2f4ab9",
42
+ "deployTxnBlockNumber": "1",
43
+ "deployTimestamp": "1742931756",
44
+ "sourceName": "src/delegatecall/SafeERC20Transfer.sol",
45
+ "contractName": "SafeERC20Transfer",
46
+ "deployedOn": "deploy.SafeERC20Transfer",
47
+ "gasUsed": 116262,
48
+ "gasCost": "1350570860"
49
+ }
@@ -0,0 +1,158 @@
1
+ {
2
+ "address": "0x4a409e1CaB9229711C4e1f68625DdbC75809e721",
3
+ "abi": [
4
+ {
5
+ "type": "constructor",
6
+ "inputs": [
7
+ {
8
+ "name": "authorityFactory",
9
+ "type": "address",
10
+ "internalType": "contract IAuthorityFactory"
11
+ },
12
+ {
13
+ "name": "applicationFactory",
14
+ "type": "address",
15
+ "internalType": "contract IApplicationFactory"
16
+ }
17
+ ],
18
+ "stateMutability": "nonpayable"
19
+ },
20
+ {
21
+ "type": "function",
22
+ "name": "calculateAddresses",
23
+ "inputs": [
24
+ {
25
+ "name": "authorityOwner",
26
+ "type": "address",
27
+ "internalType": "address"
28
+ },
29
+ {
30
+ "name": "epochLength",
31
+ "type": "uint256",
32
+ "internalType": "uint256"
33
+ },
34
+ {
35
+ "name": "appOwner",
36
+ "type": "address",
37
+ "internalType": "address"
38
+ },
39
+ {
40
+ "name": "templateHash",
41
+ "type": "bytes32",
42
+ "internalType": "bytes32"
43
+ },
44
+ {
45
+ "name": "dataAvailability",
46
+ "type": "bytes",
47
+ "internalType": "bytes"
48
+ },
49
+ {
50
+ "name": "salt",
51
+ "type": "bytes32",
52
+ "internalType": "bytes32"
53
+ }
54
+ ],
55
+ "outputs": [
56
+ {
57
+ "name": "application",
58
+ "type": "address",
59
+ "internalType": "address"
60
+ },
61
+ {
62
+ "name": "authority",
63
+ "type": "address",
64
+ "internalType": "address"
65
+ }
66
+ ],
67
+ "stateMutability": "view"
68
+ },
69
+ {
70
+ "type": "function",
71
+ "name": "deployContracts",
72
+ "inputs": [
73
+ {
74
+ "name": "authorityOwner",
75
+ "type": "address",
76
+ "internalType": "address"
77
+ },
78
+ {
79
+ "name": "epochLength",
80
+ "type": "uint256",
81
+ "internalType": "uint256"
82
+ },
83
+ {
84
+ "name": "appOwner",
85
+ "type": "address",
86
+ "internalType": "address"
87
+ },
88
+ {
89
+ "name": "templateHash",
90
+ "type": "bytes32",
91
+ "internalType": "bytes32"
92
+ },
93
+ {
94
+ "name": "dataAvailability",
95
+ "type": "bytes",
96
+ "internalType": "bytes"
97
+ },
98
+ {
99
+ "name": "salt",
100
+ "type": "bytes32",
101
+ "internalType": "bytes32"
102
+ }
103
+ ],
104
+ "outputs": [
105
+ {
106
+ "name": "application",
107
+ "type": "address",
108
+ "internalType": "contract IApplication"
109
+ },
110
+ {
111
+ "name": "authority",
112
+ "type": "address",
113
+ "internalType": "contract IAuthority"
114
+ }
115
+ ],
116
+ "stateMutability": "nonpayable"
117
+ },
118
+ {
119
+ "type": "function",
120
+ "name": "getApplicationFactory",
121
+ "inputs": [],
122
+ "outputs": [
123
+ {
124
+ "name": "",
125
+ "type": "address",
126
+ "internalType": "contract IApplicationFactory"
127
+ }
128
+ ],
129
+ "stateMutability": "view"
130
+ },
131
+ {
132
+ "type": "function",
133
+ "name": "getAuthorityFactory",
134
+ "inputs": [],
135
+ "outputs": [
136
+ {
137
+ "name": "",
138
+ "type": "address",
139
+ "internalType": "contract IAuthorityFactory"
140
+ }
141
+ ],
142
+ "stateMutability": "view"
143
+ }
144
+ ],
145
+ "constructorArgs": [
146
+ "0x451f57Ca716046D114Ab9ff23269a2F9F4a1bdaF",
147
+ "0x2210ad1d9B0bD2D470c2bfA4814ab6253BC421A0"
148
+ ],
149
+ "linkedLibraries": {},
150
+ "deployTxnHash": "0x2d4587e12f531e6bd8539ed26e52e40d5bd8f4d567b948cca027d83ef4d0b820",
151
+ "deployTxnBlockNumber": "3",
152
+ "deployTimestamp": "1742931756",
153
+ "sourceName": "src/dapp/SelfHostedApplicationFactory.sol",
154
+ "contractName": "SelfHostedApplicationFactory",
155
+ "deployedOn": "deploy.SelfHostedApplicationFactory",
156
+ "gasUsed": 325530,
157
+ "gasCost": "1182988001"
158
+ }
package/package.json CHANGED
@@ -1,43 +1,25 @@
1
1
  {
2
2
  "name": "@cartesi/devnet",
3
- "version": "2.0.0-alpha.3",
3
+ "version": "2.0.0-alpha.5",
4
4
  "license": "Apache-2.0",
5
5
  "devDependencies": {
6
- "@cartesi/rollups": "2.0.0-rc.12",
7
- "@nomicfoundation/hardhat-viem": "^2.0.5",
8
- "@safe-global/safe-singleton-factory": "^1.0.35",
9
- "@types/node": "^22.8.4",
10
- "hardhat": "^2.22.15",
11
- "hardhat-abi-exporter": "^2",
12
- "hardhat-deploy": "^0.14.0",
13
- "npm-run-all": "^4",
14
- "rimraf": "^6.0.1",
15
- "typescript": "^5.6.3",
16
- "viem": "^2.21.37",
17
- "tsconfig": "0.0.0"
18
- },
19
- "dependencies": {
20
- "@openzeppelin/contracts": "5.1.0"
6
+ "@usecannon/cli": "^2.21.5",
7
+ "npm-run-all": "^4.1.5"
21
8
  },
22
9
  "files": [
23
- "build",
24
- "deployments/*/*.json",
25
- "deployments/*/.chainid",
26
- "dist/src",
27
- "dist/deploy/*.js",
28
- "export"
10
+ "anvil_state.json",
11
+ "deployments"
29
12
  ],
30
13
  "scripts": {
31
- "build": "run-s compile export deploy:anvil",
32
- "clean:ignored": "rimraf artifacts build cache coverage deployments/localhost dist",
33
- "clean:hardhat": "hardhat clean",
34
- "clean": "run-s clean:hardhat clean:ignored",
35
- "compile": "hardhat compile",
36
- "deploy": "hardhat deploy",
37
- "deploy:anvil": "hardhat --network localhost deploy-anvil --dump-file build/anvil_state.json --silent",
38
- "deploy:localhost": "hardhat deploy --network localhost --export export/abi/localhost.json --reset",
39
- "dev": "hardhat node --export export/abi/localhost.json",
40
- "export": "hardhat export-artifacts export/artifacts --hide-sources --including-empty-bytecode --including-no-public-functions",
41
- "tsc": "tsc"
14
+ "build": "run-s build:soldeer build:forge build:cannon",
15
+ "build:cannon": "cannon build --write-deployments deployments --anvil.dump-state anvil_state.json",
16
+ "build:forge": "forge build",
17
+ "build:soldeer": "forge soldeer install",
18
+ "clean": "run-s clean:cannon clean:dump clean:forge",
19
+ "clean:cannon": "cannon clean",
20
+ "clean:dump": "rm -rf deployments anvil_state.json",
21
+ "clean:forge": "forge clean",
22
+ "fmt:check": "forge fmt --check",
23
+ "fmt:write": "forge fmt"
42
24
  }
43
25
  }