@cartesi/devnet 2.0.0-alpha.2 → 2.0.0-alpha.4
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/anvil_state.json +1 -0
- package/deployments/TestMultiToken.json +585 -0
- package/deployments/TestNFT.json +590 -0
- package/deployments/TestToken.json +730 -0
- package/deployments/cartesiRollups.ApplicationFactory.json +164 -0
- package/deployments/cartesiRollups.AuthorityFactory.json +110 -0
- package/deployments/cartesiRollups.ERC1155BatchPortal.json +79 -0
- package/deployments/cartesiRollups.ERC1155SinglePortal.json +79 -0
- package/deployments/cartesiRollups.ERC20Portal.json +74 -0
- package/deployments/cartesiRollups.ERC721Portal.json +74 -0
- package/deployments/cartesiRollups.EtherPortal.json +64 -0
- package/deployments/cartesiRollups.InputBox.json +146 -0
- package/deployments/cartesiRollups.QuorumFactory.json +110 -0
- package/deployments/cartesiRollups.SafeERC20Transfer.json +49 -0
- package/deployments/cartesiRollups.SelfHostedApplicationFactory.json +158 -0
- package/package.json +10 -33
- package/build/anvil_state.json +0 -1
- package/deployments/localhost/.chainId +0 -1
- package/deployments/localhost/ApplicationFactory.json +0 -227
- package/deployments/localhost/AuthorityFactory.json +0 -188
- package/deployments/localhost/ERC1155BatchPortal.json +0 -133
- package/deployments/localhost/ERC1155SinglePortal.json +0 -132
- package/deployments/localhost/ERC20Portal.json +0 -132
- package/deployments/localhost/ERC721Portal.json +0 -126
- package/deployments/localhost/EtherPortal.json +0 -121
- package/deployments/localhost/InputBox.json +0 -213
- package/deployments/localhost/QuorumFactory.json +0 -188
- package/deployments/localhost/SafeERC20Transfer.json +0 -118
- package/deployments/localhost/SelfHostedApplicationFactory.json +0 -227
- package/deployments/localhost/TestMultiToken.json +0 -829
- package/deployments/localhost/TestNFT.json +0 -891
- package/deployments/localhost/TestToken.json +0 -1079
- package/dist/deploy/01_token.js +0 -15
- package/dist/deploy/02_nft.js +0 -15
- package/dist/deploy/03_multitoken.js +0 -15
- package/dist/deploy/04_4337.js +0 -342
- package/dist/src/aa/constants.d.ts +0 -31
- package/dist/src/aa/constants.d.ts.map +0 -1
- package/dist/src/aa/constants.js +0 -65
- package/dist/src/tasks/deploy-anvil.d.ts +0 -6
- package/dist/src/tasks/deploy-anvil.d.ts.map +0 -1
- package/dist/src/tasks/deploy-anvil.js +0 -40
- package/export/abi/localhost.json +0 -2837
- package/export/artifacts/@openzeppelin/contracts/access/Ownable.sol/Ownable.json +0 -128
- package/export/artifacts/@openzeppelin/contracts/access/manager/AccessManaged.sol/AccessManaged.json +0 -137
- package/export/artifacts/@openzeppelin/contracts/access/manager/AuthorityUtils.sol/AuthorityUtils.json +0 -32
- package/export/artifacts/@openzeppelin/contracts/access/manager/IAccessManaged.sol/IAccessManaged.json +0 -133
- package/export/artifacts/@openzeppelin/contracts/access/manager/IAccessManager.sol/IAccessManager.json +0 -1240
- package/export/artifacts/@openzeppelin/contracts/access/manager/IAuthority.sol/IAuthority.json +0 -60
- package/export/artifacts/@openzeppelin/contracts/interfaces/IERC4906.sol/IERC4906.json +0 -401
- package/export/artifacts/@openzeppelin/contracts/interfaces/IERC5267.sol/IERC5267.json +0 -84
- package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.json +0 -190
- package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.json +0 -165
- package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.json +0 -197
- package/export/artifacts/@openzeppelin/contracts/token/ERC1155/ERC1155.sol/ERC1155.json +0 -553
- package/export/artifacts/@openzeppelin/contracts/token/ERC1155/IERC1155.sol/IERC1155.json +0 -362
- package/export/artifacts/@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol/IERC1155Receiver.json +0 -156
- package/export/artifacts/@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol/IERC1155MetadataURI.json +0 -385
- package/export/artifacts/@openzeppelin/contracts/token/ERC1155/utils/ERC1155Utils.sol/ERC1155Utils.json +0 -34
- package/export/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json +0 -436
- package/export/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.json +0 -242
- package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol/ERC20Burnable.json +0 -472
- package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol/ERC20Pausable.json +0 -502
- package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol/ERC20Permit.json +0 -695
- package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.json +0 -293
- package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol/IERC20Permit.json +0 -114
- package/export/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json +0 -595
- package/export/artifacts/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.json +0 -363
- package/export/artifacts/@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol/IERC721Receiver.json +0 -66
- package/export/artifacts/@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol/ERC721URIStorage.json +0 -630
- package/export/artifacts/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol/IERC721Metadata.json +0 -421
- package/export/artifacts/@openzeppelin/contracts/token/ERC721/utils/ERC721Utils.sol/ERC721Utils.json +0 -33
- package/export/artifacts/@openzeppelin/contracts/utils/Arrays.sol/Arrays.json +0 -61
- package/export/artifacts/@openzeppelin/contracts/utils/Comparators.sol/Comparators.json +0 -34
- package/export/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.json +0 -24
- package/export/artifacts/@openzeppelin/contracts/utils/Nonces.sol/Nonces.json +0 -73
- package/export/artifacts/@openzeppelin/contracts/utils/Panic.sol/Panic.json +0 -65
- package/export/artifacts/@openzeppelin/contracts/utils/Pausable.sol/Pausable.json +0 -103
- package/export/artifacts/@openzeppelin/contracts/utils/ShortStrings.sol/ShortStrings.json +0 -55
- package/export/artifacts/@openzeppelin/contracts/utils/SlotDerivation.sol/SlotDerivation.json +0 -42
- package/export/artifacts/@openzeppelin/contracts/utils/StorageSlot.sol/StorageSlot.json +0 -41
- package/export/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.json +0 -63
- package/export/artifacts/@openzeppelin/contracts/utils/cryptography/ECDSA.sol/ECDSA.json +0 -84
- package/export/artifacts/@openzeppelin/contracts/utils/cryptography/EIP712.sol/EIP712.json +0 -105
- package/export/artifacts/@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol/MessageHashUtils.json +0 -36
- package/export/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.json +0 -50
- package/export/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.json +0 -50
- package/export/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.json +0 -60
- package/export/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.json +0 -174
- package/export/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.json +0 -37
- package/export/artifacts/@openzeppelin/contracts/utils/types/Time.sol/Time.json +0 -41
- package/export/artifacts/contracts/TestMultiToken.sol/TestMultiToken.json +0 -750
- package/export/artifacts/contracts/TestNFT.sol/TestNFT.json +0 -779
- package/export/artifacts/contracts/TestToken.sol/TestToken.json +0 -963
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"address": "0xBa3Cf8fB82E43D370117A0b7296f91ED674E94e3",
|
|
3
|
+
"abi": [
|
|
4
|
+
{
|
|
5
|
+
"type": "constructor",
|
|
6
|
+
"inputs": [],
|
|
7
|
+
"stateMutability": "nonpayable"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"type": "function",
|
|
11
|
+
"name": "addInput",
|
|
12
|
+
"inputs": [
|
|
13
|
+
{
|
|
14
|
+
"name": "appContract",
|
|
15
|
+
"type": "address",
|
|
16
|
+
"internalType": "address"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "payload",
|
|
20
|
+
"type": "bytes",
|
|
21
|
+
"internalType": "bytes"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"outputs": [
|
|
25
|
+
{
|
|
26
|
+
"name": "",
|
|
27
|
+
"type": "bytes32",
|
|
28
|
+
"internalType": "bytes32"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"stateMutability": "nonpayable"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "function",
|
|
35
|
+
"name": "getDeploymentBlockNumber",
|
|
36
|
+
"inputs": [],
|
|
37
|
+
"outputs": [
|
|
38
|
+
{
|
|
39
|
+
"name": "",
|
|
40
|
+
"type": "uint256",
|
|
41
|
+
"internalType": "uint256"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"stateMutability": "view"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "function",
|
|
48
|
+
"name": "getInputHash",
|
|
49
|
+
"inputs": [
|
|
50
|
+
{
|
|
51
|
+
"name": "appContract",
|
|
52
|
+
"type": "address",
|
|
53
|
+
"internalType": "address"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "index",
|
|
57
|
+
"type": "uint256",
|
|
58
|
+
"internalType": "uint256"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"outputs": [
|
|
62
|
+
{
|
|
63
|
+
"name": "",
|
|
64
|
+
"type": "bytes32",
|
|
65
|
+
"internalType": "bytes32"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"stateMutability": "view"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"type": "function",
|
|
72
|
+
"name": "getNumberOfInputs",
|
|
73
|
+
"inputs": [
|
|
74
|
+
{
|
|
75
|
+
"name": "appContract",
|
|
76
|
+
"type": "address",
|
|
77
|
+
"internalType": "address"
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"outputs": [
|
|
81
|
+
{
|
|
82
|
+
"name": "",
|
|
83
|
+
"type": "uint256",
|
|
84
|
+
"internalType": "uint256"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"stateMutability": "view"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"type": "event",
|
|
91
|
+
"name": "InputAdded",
|
|
92
|
+
"inputs": [
|
|
93
|
+
{
|
|
94
|
+
"name": "appContract",
|
|
95
|
+
"type": "address",
|
|
96
|
+
"indexed": true,
|
|
97
|
+
"internalType": "address"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "index",
|
|
101
|
+
"type": "uint256",
|
|
102
|
+
"indexed": true,
|
|
103
|
+
"internalType": "uint256"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "input",
|
|
107
|
+
"type": "bytes",
|
|
108
|
+
"indexed": false,
|
|
109
|
+
"internalType": "bytes"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"anonymous": false
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"type": "error",
|
|
116
|
+
"name": "InputTooLarge",
|
|
117
|
+
"inputs": [
|
|
118
|
+
{
|
|
119
|
+
"name": "appContract",
|
|
120
|
+
"type": "address",
|
|
121
|
+
"internalType": "address"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "inputLength",
|
|
125
|
+
"type": "uint256",
|
|
126
|
+
"internalType": "uint256"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "maxInputLength",
|
|
130
|
+
"type": "uint256",
|
|
131
|
+
"internalType": "uint256"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"constructorArgs": [],
|
|
137
|
+
"linkedLibraries": {},
|
|
138
|
+
"deployTxnHash": "0x2b24f254be70cb76d307ed54f6908f67fba24ca8f993ff82e9e4f547643a9c7e",
|
|
139
|
+
"deployTxnBlockNumber": "1",
|
|
140
|
+
"deployTimestamp": "1742420119",
|
|
141
|
+
"sourceName": "src/inputs/InputBox.sol",
|
|
142
|
+
"contractName": "InputBox",
|
|
143
|
+
"deployedOn": "deploy.InputBox",
|
|
144
|
+
"gasUsed": 242044,
|
|
145
|
+
"gasCost": "2000000000"
|
|
146
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"address": "0x2A792d97fEAC468b9de5cD14d053c9d9AC59a78f",
|
|
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": "0x6e0fb3f9b5b167df7b3ce92d4bf89dd67ce628ff16ceef958da983e14a4eb7b3",
|
|
103
|
+
"deployTxnBlockNumber": "1",
|
|
104
|
+
"deployTimestamp": "1742420099",
|
|
105
|
+
"sourceName": "src/consensus/quorum/QuorumFactory.sol",
|
|
106
|
+
"contractName": "QuorumFactory",
|
|
107
|
+
"deployedOn": "deploy.QuorumFactory",
|
|
108
|
+
"gasUsed": 625435,
|
|
109
|
+
"gasCost": "1398280227"
|
|
110
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"address": "0x25B5ed3Fb3388b737f2C5b8f5749ad431C20149F",
|
|
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": "0x96d29e76e9f44691e3ed3b000d0bc84d20a0fcbdeccf0e998911dc3bfe88ee86",
|
|
42
|
+
"deployTxnBlockNumber": "1",
|
|
43
|
+
"deployTimestamp": "1742420099",
|
|
44
|
+
"sourceName": "src/delegatecall/SafeERC20Transfer.sol",
|
|
45
|
+
"contractName": "SafeERC20Transfer",
|
|
46
|
+
"deployedOn": "deploy.SafeERC20Transfer",
|
|
47
|
+
"gasUsed": 116262,
|
|
48
|
+
"gasCost": "1350571019"
|
|
49
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
{
|
|
2
|
+
"address": "0xf02Fc4C62FEc0b9442C1312a53327FA852975f0e",
|
|
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
|
+
"0x175965d993BcaAFcdfB3699fdA04F15e6AD9B76B",
|
|
147
|
+
"0x536Cd5028b046a7809A946c76C84Fe08377afA16"
|
|
148
|
+
],
|
|
149
|
+
"linkedLibraries": {},
|
|
150
|
+
"deployTxnHash": "0xfb9dd5f02dd5411966c81a39d41afd5489b6fe6937ac23e5c833549393e805d7",
|
|
151
|
+
"deployTxnBlockNumber": "3",
|
|
152
|
+
"deployTimestamp": "1742420099",
|
|
153
|
+
"sourceName": "src/dapp/SelfHostedApplicationFactory.sol",
|
|
154
|
+
"contractName": "SelfHostedApplicationFactory",
|
|
155
|
+
"deployedOn": "deploy.SelfHostedApplicationFactory",
|
|
156
|
+
"gasUsed": 325530,
|
|
157
|
+
"gasCost": "1182956239"
|
|
158
|
+
}
|
package/package.json
CHANGED
|
@@ -1,43 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cartesi/devnet",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.4",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"devDependencies": {
|
|
6
|
-
"@
|
|
7
|
-
"
|
|
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
|
-
"
|
|
24
|
-
"deployments
|
|
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
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
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": "cannon clean"
|
|
42
19
|
}
|
|
43
20
|
}
|