@cartesi/devnet 1.8.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.
- package/build/anvil_state.json +1 -1
- package/deployments/localhost/ApplicationFactory.json +227 -0
- package/deployments/localhost/AuthorityFactory.json +55 -44
- package/deployments/localhost/ERC1155BatchPortal.json +26 -26
- package/deployments/localhost/ERC1155SinglePortal.json +25 -25
- package/deployments/localhost/ERC20Portal.json +35 -23
- package/deployments/localhost/ERC721Portal.json +23 -23
- package/deployments/localhost/EtherPortal.json +21 -21
- package/deployments/localhost/InputBox.json +64 -58
- package/deployments/localhost/QuorumFactory.json +188 -0
- package/deployments/localhost/SafeERC20Transfer.json +118 -0
- package/deployments/localhost/SelfHostedApplicationFactory.json +71 -70
- package/deployments/localhost/TestMultiToken.json +7 -7
- package/deployments/localhost/TestNFT.json +7 -7
- package/deployments/localhost/TestToken.json +10 -10
- package/export/abi/localhost.json +231 -599
- package/package.json +9 -9
- package/deployments/localhost/AuthorityHistoryPairFactory.json +0 -276
- package/deployments/localhost/Bitmask.json +0 -44
- package/deployments/localhost/CartesiDAppFactory.json +0 -231
- package/deployments/localhost/CartesiMathV2.json +0 -213
- package/deployments/localhost/DAppAddressRelay.json +0 -102
- package/deployments/localhost/HistoryFactory.json +0 -177
- package/deployments/localhost/MerkleV2.json +0 -217
- package/deployments/localhost/UnrolledCordic.json +0 -54
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cartesi/devnet",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"devDependencies": {
|
|
6
|
-
"@cartesi/rollups": "
|
|
7
|
-
"@nomicfoundation/hardhat-viem": "^2.0.
|
|
8
|
-
"@safe-global/safe-singleton-factory": "^1.0.
|
|
9
|
-
"@types/node": "^
|
|
10
|
-
"hardhat": "^2.22.
|
|
6
|
+
"@cartesi/rollups": "2.0.0-rc.10",
|
|
7
|
+
"@nomicfoundation/hardhat-viem": "^2.0.5",
|
|
8
|
+
"@safe-global/safe-singleton-factory": "^1.0.35",
|
|
9
|
+
"@types/node": "^22.7.6",
|
|
10
|
+
"hardhat": "^2.22.13",
|
|
11
11
|
"hardhat-abi-exporter": "^2",
|
|
12
12
|
"hardhat-deploy": "^0.12.4",
|
|
13
13
|
"npm-run-all": "^4",
|
|
14
|
-
"rimraf": "^
|
|
15
|
-
"typescript": "^5.
|
|
16
|
-
"viem": "^2.
|
|
14
|
+
"rimraf": "^6.0.1",
|
|
15
|
+
"typescript": "^5.6.3",
|
|
16
|
+
"viem": "^2.21.28",
|
|
17
17
|
"tsconfig": "0.0.0"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"address": "0x3890A047Cf9Af60731E80B2105362BbDCD70142D",
|
|
3
|
-
"abi": [
|
|
4
|
-
{
|
|
5
|
-
"inputs": [
|
|
6
|
-
{
|
|
7
|
-
"internalType": "contract IAuthorityFactory",
|
|
8
|
-
"name": "_authorityFactory",
|
|
9
|
-
"type": "address"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"internalType": "contract IHistoryFactory",
|
|
13
|
-
"name": "_historyFactory",
|
|
14
|
-
"type": "address"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"stateMutability": "nonpayable",
|
|
18
|
-
"type": "constructor"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"anonymous": false,
|
|
22
|
-
"inputs": [
|
|
23
|
-
{
|
|
24
|
-
"indexed": false,
|
|
25
|
-
"internalType": "contract IAuthorityFactory",
|
|
26
|
-
"name": "authorityFactory",
|
|
27
|
-
"type": "address"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"indexed": false,
|
|
31
|
-
"internalType": "contract IHistoryFactory",
|
|
32
|
-
"name": "historyFactory",
|
|
33
|
-
"type": "address"
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
"name": "AuthorityHistoryPairFactoryCreated",
|
|
37
|
-
"type": "event"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"inputs": [
|
|
41
|
-
{
|
|
42
|
-
"internalType": "address",
|
|
43
|
-
"name": "_authorityOwner",
|
|
44
|
-
"type": "address"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"internalType": "bytes32",
|
|
48
|
-
"name": "_salt",
|
|
49
|
-
"type": "bytes32"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"name": "calculateAuthorityHistoryAddressPair",
|
|
53
|
-
"outputs": [
|
|
54
|
-
{
|
|
55
|
-
"internalType": "address",
|
|
56
|
-
"name": "authorityAddress_",
|
|
57
|
-
"type": "address"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"internalType": "address",
|
|
61
|
-
"name": "historyAddress_",
|
|
62
|
-
"type": "address"
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
"stateMutability": "view",
|
|
66
|
-
"type": "function"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"inputs": [],
|
|
70
|
-
"name": "getAuthorityFactory",
|
|
71
|
-
"outputs": [
|
|
72
|
-
{
|
|
73
|
-
"internalType": "contract IAuthorityFactory",
|
|
74
|
-
"name": "",
|
|
75
|
-
"type": "address"
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
"stateMutability": "view",
|
|
79
|
-
"type": "function"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"inputs": [],
|
|
83
|
-
"name": "getHistoryFactory",
|
|
84
|
-
"outputs": [
|
|
85
|
-
{
|
|
86
|
-
"internalType": "contract IHistoryFactory",
|
|
87
|
-
"name": "",
|
|
88
|
-
"type": "address"
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
"stateMutability": "view",
|
|
92
|
-
"type": "function"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"inputs": [
|
|
96
|
-
{
|
|
97
|
-
"internalType": "address",
|
|
98
|
-
"name": "_authorityOwner",
|
|
99
|
-
"type": "address"
|
|
100
|
-
}
|
|
101
|
-
],
|
|
102
|
-
"name": "newAuthorityHistoryPair",
|
|
103
|
-
"outputs": [
|
|
104
|
-
{
|
|
105
|
-
"internalType": "contract Authority",
|
|
106
|
-
"name": "authority_",
|
|
107
|
-
"type": "address"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"internalType": "contract History",
|
|
111
|
-
"name": "history_",
|
|
112
|
-
"type": "address"
|
|
113
|
-
}
|
|
114
|
-
],
|
|
115
|
-
"stateMutability": "nonpayable",
|
|
116
|
-
"type": "function"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"inputs": [
|
|
120
|
-
{
|
|
121
|
-
"internalType": "address",
|
|
122
|
-
"name": "_authorityOwner",
|
|
123
|
-
"type": "address"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"internalType": "bytes32",
|
|
127
|
-
"name": "_salt",
|
|
128
|
-
"type": "bytes32"
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
"name": "newAuthorityHistoryPair",
|
|
132
|
-
"outputs": [
|
|
133
|
-
{
|
|
134
|
-
"internalType": "contract Authority",
|
|
135
|
-
"name": "authority_",
|
|
136
|
-
"type": "address"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"internalType": "contract History",
|
|
140
|
-
"name": "history_",
|
|
141
|
-
"type": "address"
|
|
142
|
-
}
|
|
143
|
-
],
|
|
144
|
-
"stateMutability": "nonpayable",
|
|
145
|
-
"type": "function"
|
|
146
|
-
}
|
|
147
|
-
],
|
|
148
|
-
"transactionHash": "0x75c2f33a72b7612c3b4a9e08a8e9dc5c574ce4e87341b54756724fb89274e246",
|
|
149
|
-
"receipt": {
|
|
150
|
-
"to": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
|
|
151
|
-
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
|
152
|
-
"contractAddress": null,
|
|
153
|
-
"transactionIndex": 0,
|
|
154
|
-
"gasUsed": "460428",
|
|
155
|
-
"logsBloom": "0x00000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000004000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
156
|
-
"blockHash": "0xb598ee26ae0e679bc1e96dea4ffcdfe6f76c8e70a8ac11c1560514548c82e94c",
|
|
157
|
-
"transactionHash": "0x75c2f33a72b7612c3b4a9e08a8e9dc5c574ce4e87341b54756724fb89274e246",
|
|
158
|
-
"logs": [
|
|
159
|
-
{
|
|
160
|
-
"transactionIndex": 0,
|
|
161
|
-
"blockNumber": 16,
|
|
162
|
-
"transactionHash": "0x75c2f33a72b7612c3b4a9e08a8e9dc5c574ce4e87341b54756724fb89274e246",
|
|
163
|
-
"address": "0x3890A047Cf9Af60731E80B2105362BbDCD70142D",
|
|
164
|
-
"topics": [
|
|
165
|
-
"0x030bcdc35fc24f8a53829b016647c842a9d981d1fed3783a7e282b6e6c9ea4a9"
|
|
166
|
-
],
|
|
167
|
-
"data": "0x000000000000000000000000f26a5b278c25d8d41a136d22ad719eaced9c3e630000000000000000000000001f158b5320bbf677fda89f9a438df99bbe560a26",
|
|
168
|
-
"logIndex": 0,
|
|
169
|
-
"blockHash": "0xb598ee26ae0e679bc1e96dea4ffcdfe6f76c8e70a8ac11c1560514548c82e94c"
|
|
170
|
-
}
|
|
171
|
-
],
|
|
172
|
-
"blockNumber": 16,
|
|
173
|
-
"cumulativeGasUsed": "460428",
|
|
174
|
-
"status": 1,
|
|
175
|
-
"byzantium": true
|
|
176
|
-
},
|
|
177
|
-
"args": [
|
|
178
|
-
"0xf26a5b278C25D8D41A136d22Ad719EACEd9c3e63",
|
|
179
|
-
"0x1f158b5320BBf677FdA89F9a438df99BbE560A26"
|
|
180
|
-
],
|
|
181
|
-
"numDeployments": 1,
|
|
182
|
-
"bytecode": "0x60c060405234801561001057600080fd5b5060405161086f38038061086f83398101604081905261002f916100a0565b6001600160a01b03828116608081905290821660a08190526040805192835260208301919091527f030bcdc35fc24f8a53829b016647c842a9d981d1fed3783a7e282b6e6c9ea4a9910160405180910390a150506100da565b6001600160a01b038116811461009d57600080fd5b50565b600080604083850312156100b357600080fd5b82516100be81610088565b60208401519092506100cf81610088565b809150509250929050565b60805160a0516107486101276000396000818160f6015281816101ec01528181610313015261051601526000818160960152818161011f01528181610284015261044601526107486000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806339dcd4571461005c57806375689f8314610094578063b05cd1dc146100ce578063d73f347a146100e1578063f16b1a5c146100f4575b600080fd5b61006f61006a3660046106a5565b61011a565b604080516001600160a01b039384168152929091166020830152015b60405180910390f35b7f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b03909116815260200161008b565b61006f6100dc3660046106d1565b610262565b61006f6100ef3660046106a5565b610441565b7f00000000000000000000000000000000000000000000000000000000000000006100b6565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316629c5784306101568787610646565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381865afa15801561019f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101c391906106f5565b60405163287ce2dd60e11b81526001600160a01b038083166004830152602482018690529193507f0000000000000000000000000000000000000000000000000000000000000000909116906350f9c5ba90604401602060405180830381865afa158015610235573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025991906106f5565b90509250929050565b604051632ce946e160e21b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b3a51b84906024016020604051808303816000875af11580156102cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f191906106f5565b60405163446a4d3160e11b81526001600160a01b0380831660048301529193507f0000000000000000000000000000000000000000000000000000000000000000909116906388d49a62906024016020604051808303816000875af115801561035e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061038291906106f5565b60405163159c5ea160e01b81526001600160a01b0380831660048301529192509083169063159c5ea190602401600060405180830381600087803b1580156103c957600080fd5b505af11580156103dd573d6000803e3d6000fd5b505060405163f2fde38b60e01b81526001600160a01b0386811660048301528516925063f2fde38b9150602401600060405180830381600087803b15801561042457600080fd5b505af1158015610438573d6000803e3d6000fd5b50505050915091565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635a3f27d33061047e8787610646565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156104c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ed91906106f5565b604051632ab8b11560e01b81526001600160a01b038083166004830152602482018690529193507f000000000000000000000000000000000000000000000000000000000000000090911690632ab8b115906044016020604051808303816000875af1158015610561573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061058591906106f5565b60405163159c5ea160e01b81526001600160a01b0380831660048301529192509083169063159c5ea190602401600060405180830381600087803b1580156105cc57600080fd5b505af11580156105e0573d6000803e3d6000fd5b505060405163f2fde38b60e01b81526001600160a01b0387811660048301528516925063f2fde38b9150602401600060405180830381600087803b15801561062757600080fd5b505af115801561063b573d6000803e3d6000fd5b505050509250929050565b6040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6001600160a01b03811681146106a257600080fd5b50565b600080604083850312156106b857600080fd5b82356106c38161068d565b946020939093013593505050565b6000602082840312156106e357600080fd5b81356106ee8161068d565b9392505050565b60006020828403121561070757600080fd5b81516106ee8161068d56fea2646970667358221220c9ff4c136426d9ba4f5c3e496e98c529a164caa845ab19e63e0cbefb6f48838664736f6c63430008130033",
|
|
183
|
-
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c806339dcd4571461005c57806375689f8314610094578063b05cd1dc146100ce578063d73f347a146100e1578063f16b1a5c146100f4575b600080fd5b61006f61006a3660046106a5565b61011a565b604080516001600160a01b039384168152929091166020830152015b60405180910390f35b7f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b03909116815260200161008b565b61006f6100dc3660046106d1565b610262565b61006f6100ef3660046106a5565b610441565b7f00000000000000000000000000000000000000000000000000000000000000006100b6565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316629c5784306101568787610646565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381865afa15801561019f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101c391906106f5565b60405163287ce2dd60e11b81526001600160a01b038083166004830152602482018690529193507f0000000000000000000000000000000000000000000000000000000000000000909116906350f9c5ba90604401602060405180830381865afa158015610235573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025991906106f5565b90509250929050565b604051632ce946e160e21b815230600482015260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b3a51b84906024016020604051808303816000875af11580156102cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f191906106f5565b60405163446a4d3160e11b81526001600160a01b0380831660048301529193507f0000000000000000000000000000000000000000000000000000000000000000909116906388d49a62906024016020604051808303816000875af115801561035e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061038291906106f5565b60405163159c5ea160e01b81526001600160a01b0380831660048301529192509083169063159c5ea190602401600060405180830381600087803b1580156103c957600080fd5b505af11580156103dd573d6000803e3d6000fd5b505060405163f2fde38b60e01b81526001600160a01b0386811660048301528516925063f2fde38b9150602401600060405180830381600087803b15801561042457600080fd5b505af1158015610438573d6000803e3d6000fd5b50505050915091565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635a3f27d33061047e8787610646565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156104c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ed91906106f5565b604051632ab8b11560e01b81526001600160a01b038083166004830152602482018690529193507f000000000000000000000000000000000000000000000000000000000000000090911690632ab8b115906044016020604051808303816000875af1158015610561573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061058591906106f5565b60405163159c5ea160e01b81526001600160a01b0380831660048301529192509083169063159c5ea190602401600060405180830381600087803b1580156105cc57600080fd5b505af11580156105e0573d6000803e3d6000fd5b505060405163f2fde38b60e01b81526001600160a01b0387811660048301528516925063f2fde38b9150602401600060405180830381600087803b15801561062757600080fd5b505af115801561063b573d6000803e3d6000fd5b505050509250929050565b6040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6001600160a01b03811681146106a257600080fd5b50565b600080604083850312156106b857600080fd5b82356106c38161068d565b946020939093013593505050565b6000602082840312156106e357600080fd5b81356106ee8161068d565b9392505050565b60006020828403121561070757600080fd5b81516106ee8161068d56fea2646970667358221220c9ff4c136426d9ba4f5c3e496e98c529a164caa845ab19e63e0cbefb6f48838664736f6c63430008130033",
|
|
184
|
-
"devdoc": {
|
|
185
|
-
"events": {
|
|
186
|
-
"AuthorityHistoryPairFactoryCreated(address,address)": {
|
|
187
|
-
"details": "MUST be emitted on construction.",
|
|
188
|
-
"params": {
|
|
189
|
-
"authorityFactory": "The underlying `Authority` factory",
|
|
190
|
-
"historyFactory": "The underlying `History` factory"
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
"kind": "dev",
|
|
195
|
-
"methods": {
|
|
196
|
-
"calculateAuthorityHistoryAddressPair(address,bytes32)": {
|
|
197
|
-
"details": "Beware that only the `newAuthorityHistoryPair` function with the `_salt` parameter is able to deterministically deploy an authority-history pair.",
|
|
198
|
-
"params": {
|
|
199
|
-
"_authorityOwner": "The initial authority owner",
|
|
200
|
-
"_salt": "The salt used to deterministically generate the authority-history address pair"
|
|
201
|
-
},
|
|
202
|
-
"returns": {
|
|
203
|
-
"authorityAddress_": "The deterministic authority address",
|
|
204
|
-
"historyAddress_": "The deterministic history address"
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
"constructor": {
|
|
208
|
-
"params": {
|
|
209
|
-
"_authorityFactory": "The `Authority` factory",
|
|
210
|
-
"_historyFactory": "The `History` factory"
|
|
211
|
-
}
|
|
212
|
-
},
|
|
213
|
-
"getAuthorityFactory()": {
|
|
214
|
-
"returns": {
|
|
215
|
-
"_0": "The `Authority` factory"
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
"getHistoryFactory()": {
|
|
219
|
-
"returns": {
|
|
220
|
-
"_0": "The `History` factory"
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
"newAuthorityHistoryPair(address)": {
|
|
224
|
-
"params": {
|
|
225
|
-
"_authorityOwner": "The initial authority owner"
|
|
226
|
-
},
|
|
227
|
-
"returns": {
|
|
228
|
-
"authority_": "The authority",
|
|
229
|
-
"history_": "The history"
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
"newAuthorityHistoryPair(address,bytes32)": {
|
|
233
|
-
"params": {
|
|
234
|
-
"_authorityOwner": "The initial authority owner",
|
|
235
|
-
"_salt": "The salt used to deterministically generate the authority-history pair address"
|
|
236
|
-
},
|
|
237
|
-
"returns": {
|
|
238
|
-
"authority_": "The authority",
|
|
239
|
-
"history_": "The history"
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
},
|
|
243
|
-
"title": "Authority-History Pair Factory",
|
|
244
|
-
"version": 1
|
|
245
|
-
},
|
|
246
|
-
"userdoc": {
|
|
247
|
-
"events": {
|
|
248
|
-
"AuthorityHistoryPairFactoryCreated(address,address)": {
|
|
249
|
-
"notice": "The factory was created."
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
"kind": "user",
|
|
253
|
-
"methods": {
|
|
254
|
-
"calculateAuthorityHistoryAddressPair(address,bytes32)": {
|
|
255
|
-
"notice": "Calculate the address of an authority-history pair to be deployed deterministically."
|
|
256
|
-
},
|
|
257
|
-
"constructor": {
|
|
258
|
-
"notice": "Constructs the factory."
|
|
259
|
-
},
|
|
260
|
-
"getAuthorityFactory()": {
|
|
261
|
-
"notice": "Get the factory used to deploy `Authority` contracts"
|
|
262
|
-
},
|
|
263
|
-
"getHistoryFactory()": {
|
|
264
|
-
"notice": "Get the factory used to deploy `History` contracts"
|
|
265
|
-
},
|
|
266
|
-
"newAuthorityHistoryPair(address)": {
|
|
267
|
-
"notice": "Deploy a new authority-history pair."
|
|
268
|
-
},
|
|
269
|
-
"newAuthorityHistoryPair(address,bytes32)": {
|
|
270
|
-
"notice": "Deploy a new authority-history pair deterministically."
|
|
271
|
-
}
|
|
272
|
-
},
|
|
273
|
-
"notice": "Allows anyone to reliably deploy a new Authority-History pair.",
|
|
274
|
-
"version": 1
|
|
275
|
-
}
|
|
276
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"address": "0xF5B2d8c81cDE4D6238bBf20D3D77DB37df13f735",
|
|
3
|
-
"abi": [],
|
|
4
|
-
"transactionHash": "0x20d730ed9ecb6b1cfd1038e40afec0fa4578a607f7c402eeebc2793d7c2fd456",
|
|
5
|
-
"receipt": {
|
|
6
|
-
"to": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
|
|
7
|
-
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
|
8
|
-
"contractAddress": null,
|
|
9
|
-
"transactionIndex": 0,
|
|
10
|
-
"gasUsed": "165207",
|
|
11
|
-
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
12
|
-
"blockHash": "0x88a50b206539def50f0b64ed09428a0d002f081f61bf0342286595dd0a1ae9dd",
|
|
13
|
-
"transactionHash": "0x20d730ed9ecb6b1cfd1038e40afec0fa4578a607f7c402eeebc2793d7c2fd456",
|
|
14
|
-
"logs": [],
|
|
15
|
-
"blockNumber": 3,
|
|
16
|
-
"cumulativeGasUsed": "165207",
|
|
17
|
-
"status": 1,
|
|
18
|
-
"byzantium": true
|
|
19
|
-
},
|
|
20
|
-
"args": [],
|
|
21
|
-
"numDeployments": 1,
|
|
22
|
-
"bytecode": "0x61020461003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100405760003560e01c806303fbaf73146100455780636449da101461006c575b600080fd5b610058610053366004610130565b61008e565b604051901515815260200160405180910390f35b81801561007857600080fd5b5061008c610087366004610152565b6100ce565b005b60008061009d610100846101a6565b905060006100ad610100856101ba565b6000928352602095909552506040902054600190931b909216151592915050565b60006100dc610100846101a6565b905060006100ec610100856101ba565b9050821561011057600082815260208690526040902080546001831b179055610129565b600082815260208690526040902080546001831b191690555b5050505050565b6000806040838503121561014357600080fd5b50508035926020909101359150565b60008060006060848603121561016757600080fd5b83359250602084013591506040840135801515811461018557600080fd5b809150509250925092565b634e487b7160e01b600052601260045260246000fd5b6000826101b5576101b5610190565b500490565b6000826101c9576101c9610190565b50069056fea26469706673582212205733658d60667e5a9dc993e1c9ccf5fec105a4cfb880312e0e59e783894e9f8664736f6c63430008140033",
|
|
23
|
-
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600436106100405760003560e01c806303fbaf73146100455780636449da101461006c575b600080fd5b610058610053366004610130565b61008e565b604051901515815260200160405180910390f35b81801561007857600080fd5b5061008c610087366004610152565b6100ce565b005b60008061009d610100846101a6565b905060006100ad610100856101ba565b6000928352602095909552506040902054600190931b909216151592915050565b60006100dc610100846101a6565b905060006100ec610100856101ba565b9050821561011057600082815260208690526040902080546001831b179055610129565b600082815260208690526040902080546001831b191690555b5050505050565b6000806040838503121561014357600080fd5b50508035926020909101359150565b60008060006060848603121561016757600080fd5b83359250602084013591506040840135801515811461018557600080fd5b809150509250925092565b634e487b7160e01b600052601260045260246000fd5b6000826101b5576101b5610190565b500490565b6000826101c9576101c9610190565b50069056fea26469706673582212205733658d60667e5a9dc993e1c9ccf5fec105a4cfb880312e0e59e783894e9f8664736f6c63430008140033",
|
|
24
|
-
"devdoc": {
|
|
25
|
-
"author": "Stephen Chen",
|
|
26
|
-
"kind": "dev",
|
|
27
|
-
"methods": {},
|
|
28
|
-
"title": "Bit Mask Library",
|
|
29
|
-
"version": 1
|
|
30
|
-
},
|
|
31
|
-
"userdoc": {
|
|
32
|
-
"kind": "user",
|
|
33
|
-
"methods": {
|
|
34
|
-
"getBit(mapping(uint256 => uint256) storage,uint256)": {
|
|
35
|
-
"notice": "Get a bit in the bit mask"
|
|
36
|
-
},
|
|
37
|
-
"setBit(mapping(uint256 => uint256) storage,uint256,bool)": {
|
|
38
|
-
"notice": "Set a bit in the bit mask"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"notice": "Implements bit mask with dynamic array",
|
|
42
|
-
"version": 1
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"address": "0x7122cd1221C20892234186facfE8615e6743Ab02",
|
|
3
|
-
"abi": [
|
|
4
|
-
{
|
|
5
|
-
"anonymous": false,
|
|
6
|
-
"inputs": [
|
|
7
|
-
{
|
|
8
|
-
"indexed": true,
|
|
9
|
-
"internalType": "contract IConsensus",
|
|
10
|
-
"name": "consensus",
|
|
11
|
-
"type": "address"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"indexed": false,
|
|
15
|
-
"internalType": "address",
|
|
16
|
-
"name": "dappOwner",
|
|
17
|
-
"type": "address"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"indexed": false,
|
|
21
|
-
"internalType": "bytes32",
|
|
22
|
-
"name": "templateHash",
|
|
23
|
-
"type": "bytes32"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"indexed": false,
|
|
27
|
-
"internalType": "contract CartesiDApp",
|
|
28
|
-
"name": "application",
|
|
29
|
-
"type": "address"
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
"name": "ApplicationCreated",
|
|
33
|
-
"type": "event"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"inputs": [
|
|
37
|
-
{
|
|
38
|
-
"internalType": "contract IConsensus",
|
|
39
|
-
"name": "_consensus",
|
|
40
|
-
"type": "address"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"internalType": "address",
|
|
44
|
-
"name": "_dappOwner",
|
|
45
|
-
"type": "address"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"internalType": "bytes32",
|
|
49
|
-
"name": "_templateHash",
|
|
50
|
-
"type": "bytes32"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"internalType": "bytes32",
|
|
54
|
-
"name": "_salt",
|
|
55
|
-
"type": "bytes32"
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
"name": "calculateApplicationAddress",
|
|
59
|
-
"outputs": [
|
|
60
|
-
{
|
|
61
|
-
"internalType": "address",
|
|
62
|
-
"name": "",
|
|
63
|
-
"type": "address"
|
|
64
|
-
}
|
|
65
|
-
],
|
|
66
|
-
"stateMutability": "view",
|
|
67
|
-
"type": "function"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"inputs": [
|
|
71
|
-
{
|
|
72
|
-
"internalType": "contract IConsensus",
|
|
73
|
-
"name": "_consensus",
|
|
74
|
-
"type": "address"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"internalType": "address",
|
|
78
|
-
"name": "_dappOwner",
|
|
79
|
-
"type": "address"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"internalType": "bytes32",
|
|
83
|
-
"name": "_templateHash",
|
|
84
|
-
"type": "bytes32"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"internalType": "bytes32",
|
|
88
|
-
"name": "_salt",
|
|
89
|
-
"type": "bytes32"
|
|
90
|
-
}
|
|
91
|
-
],
|
|
92
|
-
"name": "newApplication",
|
|
93
|
-
"outputs": [
|
|
94
|
-
{
|
|
95
|
-
"internalType": "contract CartesiDApp",
|
|
96
|
-
"name": "",
|
|
97
|
-
"type": "address"
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
|
-
"stateMutability": "nonpayable",
|
|
101
|
-
"type": "function"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"inputs": [
|
|
105
|
-
{
|
|
106
|
-
"internalType": "contract IConsensus",
|
|
107
|
-
"name": "_consensus",
|
|
108
|
-
"type": "address"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"internalType": "address",
|
|
112
|
-
"name": "_dappOwner",
|
|
113
|
-
"type": "address"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"internalType": "bytes32",
|
|
117
|
-
"name": "_templateHash",
|
|
118
|
-
"type": "bytes32"
|
|
119
|
-
}
|
|
120
|
-
],
|
|
121
|
-
"name": "newApplication",
|
|
122
|
-
"outputs": [
|
|
123
|
-
{
|
|
124
|
-
"internalType": "contract CartesiDApp",
|
|
125
|
-
"name": "",
|
|
126
|
-
"type": "address"
|
|
127
|
-
}
|
|
128
|
-
],
|
|
129
|
-
"stateMutability": "nonpayable",
|
|
130
|
-
"type": "function"
|
|
131
|
-
}
|
|
132
|
-
],
|
|
133
|
-
"transactionHash": "0xb38f7ac561b24171c27ee3fcda415224d85cfb34d167a4488d105a6650ab4f7b",
|
|
134
|
-
"receipt": {
|
|
135
|
-
"to": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
|
|
136
|
-
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
|
137
|
-
"contractAddress": null,
|
|
138
|
-
"transactionIndex": 0,
|
|
139
|
-
"gasUsed": "1546312",
|
|
140
|
-
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
141
|
-
"blockHash": "0xa1348953f4ddc80f97b4f874652211eeb16f0222887f4135cdd29ad2dcd7e625",
|
|
142
|
-
"transactionHash": "0xb38f7ac561b24171c27ee3fcda415224d85cfb34d167a4488d105a6650ab4f7b",
|
|
143
|
-
"logs": [],
|
|
144
|
-
"blockNumber": 17,
|
|
145
|
-
"cumulativeGasUsed": "1546312",
|
|
146
|
-
"status": 1,
|
|
147
|
-
"byzantium": true
|
|
148
|
-
},
|
|
149
|
-
"args": [],
|
|
150
|
-
"numDeployments": 1,
|
|
151
|
-
"bytecode": "0x608060405234801561001057600080fd5b50611af9806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80630e1a07f5146100465780633648bfb514610075578063bd4f121914610088575b600080fd5b6100596100543660046102df565b61009b565b6040516001600160a01b03909116815260200160405180910390f35b610059610083366004610325565b610148565b6100596100963660046102df565b6101ef565b600080828686866040516100ae906102ba565b6001600160a01b03938416815292909116602083015260408201526060018190604051809103906000f59050801580156100ec573d6000803e3d6000fd5b50604080516001600160a01b03888116825260208201889052838116828401529151929350908816917fe73165c2d277daf8713fd08b40845cb6bb7a20b2b543f3d35324a475660fcebd9181900360600190a295945050505050565b60008084848460405161015a906102ba565b6001600160a01b0393841681529290911660208301526040820152606001604051809103906000f080158015610194573d6000803e3d6000fd5b50604080516001600160a01b03878116825260208201879052838116828401529151929350908716917fe73165c2d277daf8713fd08b40845cb6bb7a20b2b543f3d35324a475660fcebd9181900360600190a2949350505050565b60006102738260405180602001610205906102ba565b601f1982820381018352601f9091011660408181526001600160a01b038a811660208401528916908201526060810187905260800160408051601f19818403018152908290526102589291602001610396565b6040516020818303038152906040528051906020012061027c565b95945050505050565b6000610289838330610290565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b611710806103b483390190565b6001600160a01b03811681146102dc57600080fd5b50565b600080600080608085870312156102f557600080fd5b8435610300816102c7565b93506020850135610310816102c7565b93969395505050506040820135916060013590565b60008060006060848603121561033a57600080fd5b8335610345816102c7565b92506020840135610355816102c7565b929592945050506040919091013590565b6000815160005b81811015610387576020818501810151868301520161036d565b50600093019283525090919050565b60006103ab6103a58386610366565b84610366565b94935050505056fe60a06040523480156200001157600080fd5b506040516200171038038062001710833981016040819052620000349162000212565b6200003f33620000cb565b600180556200004e826200011b565b6080819052600380546001600160a01b0319166001600160a01b0385169081179091556040805163b688a36360e01b8152905163b688a3639160048082019260009290919082900301818387803b158015620000a957600080fd5b505af1158015620000be573d6000803e3d6000fd5b505050505050506200025a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620001256200019e565b6001600160a01b038116620001905760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6200019b81620000cb565b50565b6000546001600160a01b03163314620001fa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000187565b565b6001600160a01b03811681146200019b57600080fd5b6000806000606084860312156200022857600080fd5b83516200023581620001fc565b60208501519093506200024881620001fc565b80925050604084015190509250925092565b60805161149a6200027660003960006101ec015261149a6000f3fe6080604052600436106100e15760003560e01c80638da5cb5b1161007f578063bc197c8111610059578063bc197c8114610288578063f23a6e61146102b4578063f2fde38b146102e0578063fc4116831461030057600080fd5b80638da5cb5b1461022a57806396487d46146102485780639d9b11451461026857600080fd5b8063179e740b116100bb578063179e740b14610186578063522f6815146101b857806361b12c66146101da578063715018a61461021557600080fd5b806301ffc9a7146100ed5780631250482f14610122578063150b7a021461014257600080fd5b366100e857005b600080fd5b3480156100f957600080fd5b5061010d610108366004610d2a565b610320565b60405190151581526020015b60405180910390f35b34801561012e57600080fd5b5061010d61013d366004610dd0565b610357565b34801561014e57600080fd5b5061016d61015d366004610f00565b630a85bd0160e11b949350505050565b6040516001600160e01b03199091168152602001610119565b34801561019257600080fd5b506003546001600160a01b03165b6040516001600160a01b039091168152602001610119565b3480156101c457600080fd5b506101d86101d3366004610f5f565b61053c565b005b3480156101e657600080fd5b506040517f00000000000000000000000000000000000000000000000000000000000000008152602001610119565b34801561022157600080fd5b506101d86105d5565b34801561023657600080fd5b506000546001600160a01b03166101a0565b34801561025457600080fd5b5061010d610263366004610f8b565b6105e9565b34801561027457600080fd5b5061010d610283366004610ff3565b61063a565b34801561029457600080fd5b5061016d6102a3366004611094565b63bc197c8160e01b95945050505050565b3480156102c057600080fd5b5061016d6102cf366004611141565b63f23a6e6160e01b95945050505050565b3480156102ec57600080fd5b506101d86102fb3660046111a9565b61064c565b34801561030c57600080fd5b506101d861031b3660046111a9565b6106ca565b60006001600160e01b03198216630271189760e51b148061035157506301ffc9a760e01b6001600160e01b03198316145b92915050565b600061036161077f565b600080808061037b61037660208801886111c6565b6107d8565b919550935091506103988383610391898061120c565b919061085f565b90506103b4898989876103ab8b8061120c565b939291906108a5565b60006103e86103c3888061120c565b6103d490604081019060200161122c565b6001600160401b03168360809190911b1790565b90506103f3816108da565b15610411576040516370de22b760e01b815260040160405180910390fd5b60008a6001600160a01b03168a8a60405161042d929190611255565b6000604051808303816000865af19150503d806000811461046a576040519150601f19603f3d011682016040523d82523d6000602084013e61046f565b606091505b505090508015610524576040516306449da160e41b815260026004820152602481018390526001604482015273F5B2d8c81cDE4D6238bBf20D3D77DB37df13f73590636449da109060640160006040518083038186803b1580156104d257600080fd5b505af41580156104e6573d6000803e3d6000fd5b505050507f0eb7ee080f865f1cadc4f54daf58cc3b8879e888832867d13351edcec0fbdc548260405161051b91815260200190565b60405180910390a15b9550505050505061053460018055565b949350505050565b33301461055c5760405163a08d601d60e01b815260040160405180910390fd5b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146105a9576040519150601f19603f3d011682016040523d82523d6000602084013e6105ae565b606091505b50509050806105d057604051630ce8f45160e31b815260040160405180910390fd5b505050565b6105dd610958565b6105e760006109b2565b565b60008080806105fe61037660208701876111c6565b919450925090506106148282610391888061120c565b5061062d878785610625898061120c565b929190610a02565b5060019695505050505050565b6000608082901b8317610534816108da565b610654610958565b6001600160a01b0381166106be5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6106c7816109b2565b50565b6106d2610958565b600380546001600160a01b0319166001600160a01b0383169081179091556040805163b688a36360e01b8152905163b688a3639160048082019260009290919082900301818387803b15801561072757600080fd5b505af115801561073b573d6000803e3d6000fd5b50506040516001600160a01b03841681527f4991c6f37185659e276ff918a96f3e20e6c5abcd8c9aab450dc19c2f7ad35cb59250602001905060405180910390a150565b6002600154036107d15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106b5565b6002600155565b60035460405163035e6a0960e61b8152600091829182916001600160a01b03169063d79a8240906108119030908990899060040161128e565b606060405180830381865afa15801561082e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085291906112bc565b9250925092509250925092565b60008061086f602086018661122c565b610882906001600160401b0316856112ea565b9050828111156105345760405163fd9ae91f60e01b815260040160405180910390fd5b60006108b2858585610a29565b90506108d2868284606083013560255b6001600160401b03166015610a58565b505050505050565b6040516303fbaf7360e01b8152600260048201526024810182905260009073F5B2d8c81cDE4D6238bBf20D3D77DB37df13f735906303fbaf7390604401602060405180830381865af4158015610934573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610351919061130b565b6000546001600160a01b031633146105e75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106b5565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610a0e8484610cfe565b9050610a22858284608083013560256108c2565b5050505050565b6060838383604051602001610a409392919061128e565b60405160208183030381529060405290509392505050565b6040805160608089013560208301526080808a01359383019390935260a0890135908201528591016040516020818303038152906040528051906020012014610ab457604051636fbd3b7160e11b815260040160405180910390fd5b827333436035441927Df1a73FE3AAC5906854632e53d6379de4601610af0610adf60208b018b61122c565b60051b681fffffffffffffffe01690565b60058660408c0135610b0560e08e018e61132d565b6040518763ffffffff1660e01b8152600401610b2696959493929190611376565b602060405180830381865af4158015610b43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6791906113d9565b14610b8557604051634371daa160e11b815260040160405180910390fd5b60007333436035441927Df1a73FE3AAC5906854632e53d63c84583a18780519060200120604051602001610bbb91815260200190565b60408051601f19818403018152908290526001600160e01b031960e084901b168252610bec916005906004016113f2565b602060405180830381865af4158015610c09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2d91906113d9565b905086604001357333436035441927Df1a73FE3AAC5906854632e53d6379de4601610c648a6020016020810190610adf919061122c565b60058686610c7560c08f018f61132d565b6040518763ffffffff1660e01b8152600401610c9696959493929190611376565b602060405180830381865af4158015610cb3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd791906113d9565b14610cf55760405163017c689560e61b815260040160405180910390fd5b50505050505050565b60608282604051602001610d13929190611450565b604051602081830303815290604052905092915050565b600060208284031215610d3c57600080fd5b81356001600160e01b031981168114610d5457600080fd5b9392505050565b6001600160a01b03811681146106c757600080fd5b60008083601f840112610d8257600080fd5b5081356001600160401b03811115610d9957600080fd5b602083019150836020828501011115610db157600080fd5b9250929050565b600060408284031215610dca57600080fd5b50919050565b60008060008060608587031215610de657600080fd5b8435610df181610d5b565b935060208501356001600160401b0380821115610e0d57600080fd5b610e1988838901610d70565b90955093506040870135915080821115610e3257600080fd5b50610e3f87828801610db8565b91505092959194509250565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715610e8957610e89610e4b565b604052919050565b600082601f830112610ea257600080fd5b81356001600160401b03811115610ebb57610ebb610e4b565b610ece601f8201601f1916602001610e61565b818152846020838601011115610ee357600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060808587031215610f1657600080fd5b8435610f2181610d5b565b93506020850135610f3181610d5b565b92506040850135915060608501356001600160401b03811115610f5357600080fd5b610e3f87828801610e91565b60008060408385031215610f7257600080fd5b8235610f7d81610d5b565b946020939093013593505050565b600080600060408486031215610fa057600080fd5b83356001600160401b0380821115610fb757600080fd5b610fc387838801610d70565b90955093506020860135915080821115610fdc57600080fd5b50610fe986828701610db8565b9150509250925092565b6000806040838503121561100657600080fd5b50508035926020909101359150565b600082601f83011261102657600080fd5b813560206001600160401b0382111561104157611041610e4b565b8160051b611050828201610e61565b928352848101820192828101908785111561106a57600080fd5b83870192505b8483101561108957823582529183019190830190611070565b979650505050505050565b600080600080600060a086880312156110ac57600080fd5b85356110b781610d5b565b945060208601356110c781610d5b565b935060408601356001600160401b03808211156110e357600080fd5b6110ef89838a01611015565b9450606088013591508082111561110557600080fd5b61111189838a01611015565b9350608088013591508082111561112757600080fd5b5061113488828901610e91565b9150509295509295909350565b600080600080600060a0868803121561115957600080fd5b853561116481610d5b565b9450602086013561117481610d5b565b9350604086013592506060860135915060808601356001600160401b0381111561119d57600080fd5b61113488828901610e91565b6000602082840312156111bb57600080fd5b8135610d5481610d5b565b6000808335601e198436030181126111dd57600080fd5b8301803591506001600160401b038211156111f757600080fd5b602001915036819003821315610db157600080fd5b6000823560fe1983360301811261122257600080fd5b9190910192915050565b60006020828403121561123e57600080fd5b81356001600160401b0381168114610d5457600080fd5b8183823760009101908152919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b03841681526040602082018190526000906112b39083018486611265565b95945050505050565b6000806000606084860312156112d157600080fd5b8351925060208401519150604084015190509250925092565b8082018082111561035157634e487b7160e01b600052601160045260246000fd5b60006020828403121561131d57600080fd5b81518015158114610d5457600080fd5b6000808335601e1984360301811261134457600080fd5b8301803591506001600160401b0382111561135e57600080fd5b6020019150600581901b3603821315610db157600080fd5b6001600160401b03878116825286166020820152604081018590526060810184905260a060808201819052810182905260006001600160fb1b038311156113bc57600080fd5b8260051b808560c08501379190910160c001979650505050505050565b6000602082840312156113eb57600080fd5b5051919050565b604081526000835180604084015260005b818110156114205760208187018101516060868401015201611403565b506000606082850101526060601f19601f8301168401019150506001600160401b03831660208301529392505050565b60208152600061053460208301848661126556fea2646970667358221220981835fbbf44aedaeb41e0c0c9001ffe55187a0b5606db0cdbf7500fc7c5e30e64736f6c63430008130033a2646970667358221220a12c770ef21751c306949fd9ed57ed453446a67f2dfb1d63d08c918461eca99764736f6c63430008130033",
|
|
152
|
-
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c80630e1a07f5146100465780633648bfb514610075578063bd4f121914610088575b600080fd5b6100596100543660046102df565b61009b565b6040516001600160a01b03909116815260200160405180910390f35b610059610083366004610325565b610148565b6100596100963660046102df565b6101ef565b600080828686866040516100ae906102ba565b6001600160a01b03938416815292909116602083015260408201526060018190604051809103906000f59050801580156100ec573d6000803e3d6000fd5b50604080516001600160a01b03888116825260208201889052838116828401529151929350908816917fe73165c2d277daf8713fd08b40845cb6bb7a20b2b543f3d35324a475660fcebd9181900360600190a295945050505050565b60008084848460405161015a906102ba565b6001600160a01b0393841681529290911660208301526040820152606001604051809103906000f080158015610194573d6000803e3d6000fd5b50604080516001600160a01b03878116825260208201879052838116828401529151929350908716917fe73165c2d277daf8713fd08b40845cb6bb7a20b2b543f3d35324a475660fcebd9181900360600190a2949350505050565b60006102738260405180602001610205906102ba565b601f1982820381018352601f9091011660408181526001600160a01b038a811660208401528916908201526060810187905260800160408051601f19818403018152908290526102589291602001610396565b6040516020818303038152906040528051906020012061027c565b95945050505050565b6000610289838330610290565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b611710806103b483390190565b6001600160a01b03811681146102dc57600080fd5b50565b600080600080608085870312156102f557600080fd5b8435610300816102c7565b93506020850135610310816102c7565b93969395505050506040820135916060013590565b60008060006060848603121561033a57600080fd5b8335610345816102c7565b92506020840135610355816102c7565b929592945050506040919091013590565b6000815160005b81811015610387576020818501810151868301520161036d565b50600093019283525090919050565b60006103ab6103a58386610366565b84610366565b94935050505056fe60a06040523480156200001157600080fd5b506040516200171038038062001710833981016040819052620000349162000212565b6200003f33620000cb565b600180556200004e826200011b565b6080819052600380546001600160a01b0319166001600160a01b0385169081179091556040805163b688a36360e01b8152905163b688a3639160048082019260009290919082900301818387803b158015620000a957600080fd5b505af1158015620000be573d6000803e3d6000fd5b505050505050506200025a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b620001256200019e565b6001600160a01b038116620001905760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6200019b81620000cb565b50565b6000546001600160a01b03163314620001fa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000187565b565b6001600160a01b03811681146200019b57600080fd5b6000806000606084860312156200022857600080fd5b83516200023581620001fc565b60208501519093506200024881620001fc565b80925050604084015190509250925092565b60805161149a6200027660003960006101ec015261149a6000f3fe6080604052600436106100e15760003560e01c80638da5cb5b1161007f578063bc197c8111610059578063bc197c8114610288578063f23a6e61146102b4578063f2fde38b146102e0578063fc4116831461030057600080fd5b80638da5cb5b1461022a57806396487d46146102485780639d9b11451461026857600080fd5b8063179e740b116100bb578063179e740b14610186578063522f6815146101b857806361b12c66146101da578063715018a61461021557600080fd5b806301ffc9a7146100ed5780631250482f14610122578063150b7a021461014257600080fd5b366100e857005b600080fd5b3480156100f957600080fd5b5061010d610108366004610d2a565b610320565b60405190151581526020015b60405180910390f35b34801561012e57600080fd5b5061010d61013d366004610dd0565b610357565b34801561014e57600080fd5b5061016d61015d366004610f00565b630a85bd0160e11b949350505050565b6040516001600160e01b03199091168152602001610119565b34801561019257600080fd5b506003546001600160a01b03165b6040516001600160a01b039091168152602001610119565b3480156101c457600080fd5b506101d86101d3366004610f5f565b61053c565b005b3480156101e657600080fd5b506040517f00000000000000000000000000000000000000000000000000000000000000008152602001610119565b34801561022157600080fd5b506101d86105d5565b34801561023657600080fd5b506000546001600160a01b03166101a0565b34801561025457600080fd5b5061010d610263366004610f8b565b6105e9565b34801561027457600080fd5b5061010d610283366004610ff3565b61063a565b34801561029457600080fd5b5061016d6102a3366004611094565b63bc197c8160e01b95945050505050565b3480156102c057600080fd5b5061016d6102cf366004611141565b63f23a6e6160e01b95945050505050565b3480156102ec57600080fd5b506101d86102fb3660046111a9565b61064c565b34801561030c57600080fd5b506101d861031b3660046111a9565b6106ca565b60006001600160e01b03198216630271189760e51b148061035157506301ffc9a760e01b6001600160e01b03198316145b92915050565b600061036161077f565b600080808061037b61037660208801886111c6565b6107d8565b919550935091506103988383610391898061120c565b919061085f565b90506103b4898989876103ab8b8061120c565b939291906108a5565b60006103e86103c3888061120c565b6103d490604081019060200161122c565b6001600160401b03168360809190911b1790565b90506103f3816108da565b15610411576040516370de22b760e01b815260040160405180910390fd5b60008a6001600160a01b03168a8a60405161042d929190611255565b6000604051808303816000865af19150503d806000811461046a576040519150601f19603f3d011682016040523d82523d6000602084013e61046f565b606091505b505090508015610524576040516306449da160e41b815260026004820152602481018390526001604482015273__$f57eb21c11c6dae369da3ca36f4f48eb77$__90636449da109060640160006040518083038186803b1580156104d257600080fd5b505af41580156104e6573d6000803e3d6000fd5b505050507f0eb7ee080f865f1cadc4f54daf58cc3b8879e888832867d13351edcec0fbdc548260405161051b91815260200190565b60405180910390a15b9550505050505061053460018055565b949350505050565b33301461055c5760405163a08d601d60e01b815260040160405180910390fd5b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146105a9576040519150601f19603f3d011682016040523d82523d6000602084013e6105ae565b606091505b50509050806105d057604051630ce8f45160e31b815260040160405180910390fd5b505050565b6105dd610958565b6105e760006109b2565b565b60008080806105fe61037660208701876111c6565b919450925090506106148282610391888061120c565b5061062d878785610625898061120c565b929190610a02565b5060019695505050505050565b6000608082901b8317610534816108da565b610654610958565b6001600160a01b0381166106be5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b6106c7816109b2565b50565b6106d2610958565b600380546001600160a01b0319166001600160a01b0383169081179091556040805163b688a36360e01b8152905163b688a3639160048082019260009290919082900301818387803b15801561072757600080fd5b505af115801561073b573d6000803e3d6000fd5b50506040516001600160a01b03841681527f4991c6f37185659e276ff918a96f3e20e6c5abcd8c9aab450dc19c2f7ad35cb59250602001905060405180910390a150565b6002600154036107d15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106b5565b6002600155565b60035460405163035e6a0960e61b8152600091829182916001600160a01b03169063d79a8240906108119030908990899060040161128e565b606060405180830381865afa15801561082e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085291906112bc565b9250925092509250925092565b60008061086f602086018661122c565b610882906001600160401b0316856112ea565b9050828111156105345760405163fd9ae91f60e01b815260040160405180910390fd5b60006108b2858585610a29565b90506108d2868284606083013560255b6001600160401b03166015610a58565b505050505050565b6040516303fbaf7360e01b8152600260048201526024810182905260009073__$f57eb21c11c6dae369da3ca36f4f48eb77$__906303fbaf7390604401602060405180830381865af4158015610934573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610351919061130b565b6000546001600160a01b031633146105e75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106b5565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610a0e8484610cfe565b9050610a22858284608083013560256108c2565b5050505050565b6060838383604051602001610a409392919061128e565b60405160208183030381529060405290509392505050565b6040805160608089013560208301526080808a01359383019390935260a0890135908201528591016040516020818303038152906040528051906020012014610ab457604051636fbd3b7160e11b815260040160405180910390fd5b8273__$2a7ef22e717e9afc55afc95d018bf1a85b$__6379de4601610af0610adf60208b018b61122c565b60051b681fffffffffffffffe01690565b60058660408c0135610b0560e08e018e61132d565b6040518763ffffffff1660e01b8152600401610b2696959493929190611376565b602060405180830381865af4158015610b43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6791906113d9565b14610b8557604051634371daa160e11b815260040160405180910390fd5b600073__$2a7ef22e717e9afc55afc95d018bf1a85b$__63c84583a18780519060200120604051602001610bbb91815260200190565b60408051601f19818403018152908290526001600160e01b031960e084901b168252610bec916005906004016113f2565b602060405180830381865af4158015610c09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2d91906113d9565b9050866040013573__$2a7ef22e717e9afc55afc95d018bf1a85b$__6379de4601610c648a6020016020810190610adf919061122c565b60058686610c7560c08f018f61132d565b6040518763ffffffff1660e01b8152600401610c9696959493929190611376565b602060405180830381865af4158015610cb3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd791906113d9565b14610cf55760405163017c689560e61b815260040160405180910390fd5b50505050505050565b60608282604051602001610d13929190611450565b604051602081830303815290604052905092915050565b600060208284031215610d3c57600080fd5b81356001600160e01b031981168114610d5457600080fd5b9392505050565b6001600160a01b03811681146106c757600080fd5b60008083601f840112610d8257600080fd5b5081356001600160401b03811115610d9957600080fd5b602083019150836020828501011115610db157600080fd5b9250929050565b600060408284031215610dca57600080fd5b50919050565b60008060008060608587031215610de657600080fd5b8435610df181610d5b565b935060208501356001600160401b0380821115610e0d57600080fd5b610e1988838901610d70565b90955093506040870135915080821115610e3257600080fd5b50610e3f87828801610db8565b91505092959194509250565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715610e8957610e89610e4b565b604052919050565b600082601f830112610ea257600080fd5b81356001600160401b03811115610ebb57610ebb610e4b565b610ece601f8201601f1916602001610e61565b818152846020838601011115610ee357600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060808587031215610f1657600080fd5b8435610f2181610d5b565b93506020850135610f3181610d5b565b92506040850135915060608501356001600160401b03811115610f5357600080fd5b610e3f87828801610e91565b60008060408385031215610f7257600080fd5b8235610f7d81610d5b565b946020939093013593505050565b600080600060408486031215610fa057600080fd5b83356001600160401b0380821115610fb757600080fd5b610fc387838801610d70565b90955093506020860135915080821115610fdc57600080fd5b50610fe986828701610db8565b9150509250925092565b6000806040838503121561100657600080fd5b50508035926020909101359150565b600082601f83011261102657600080fd5b813560206001600160401b0382111561104157611041610e4b565b8160051b611050828201610e61565b928352848101820192828101908785111561106a57600080fd5b83870192505b8483101561108957823582529183019190830190611070565b979650505050505050565b600080600080600060a086880312156110ac57600080fd5b85356110b781610d5b565b945060208601356110c781610d5b565b935060408601356001600160401b03808211156110e357600080fd5b6110ef89838a01611015565b9450606088013591508082111561110557600080fd5b61111189838a01611015565b9350608088013591508082111561112757600080fd5b5061113488828901610e91565b9150509295509295909350565b600080600080600060a0868803121561115957600080fd5b853561116481610d5b565b9450602086013561117481610d5b565b9350604086013592506060860135915060808601356001600160401b0381111561119d57600080fd5b61113488828901610e91565b6000602082840312156111bb57600080fd5b8135610d5481610d5b565b6000808335601e198436030181126111dd57600080fd5b8301803591506001600160401b038211156111f757600080fd5b602001915036819003821315610db157600080fd5b6000823560fe1983360301811261122257600080fd5b9190910192915050565b60006020828403121561123e57600080fd5b81356001600160401b0381168114610d5457600080fd5b8183823760009101908152919050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b03841681526040602082018190526000906112b39083018486611265565b95945050505050565b6000806000606084860312156112d157600080fd5b8351925060208401519150604084015190509250925092565b8082018082111561035157634e487b7160e01b600052601160045260246000fd5b60006020828403121561131d57600080fd5b81518015158114610d5457600080fd5b6000808335601e1984360301811261134457600080fd5b8301803591506001600160401b0382111561135e57600080fd5b6020019150600581901b3603821315610db157600080fd5b6001600160401b03878116825286166020820152604081018590526060810184905260a060808201819052810182905260006001600160fb1b038311156113bc57600080fd5b8260051b808560c08501379190910160c001979650505050505050565b6000602082840312156113eb57600080fd5b5051919050565b604081526000835180604084015260005b818110156114205760208187018101516060868401015201611403565b506000606082850101526060601f19601f8301168401019150506001600160401b03831660208301529392505050565b60208152600061053460208301848661126556fea2646970667358221220981835fbbf44aedaeb41e0c0c9001ffe55187a0b5606db0cdbf7500fc7c5e30e64736f6c63430008130033a2646970667358221220a12c770ef21751c306949fd9ed57ed453446a67f2dfb1d63d08c918461eca99764736f6c63430008130033",
|
|
153
|
-
"libraries": {
|
|
154
|
-
"Bitmask": "0xF5B2d8c81cDE4D6238bBf20D3D77DB37df13f735",
|
|
155
|
-
"MerkleV2": "0x33436035441927Df1a73FE3AAC5906854632e53d"
|
|
156
|
-
},
|
|
157
|
-
"devdoc": {
|
|
158
|
-
"events": {
|
|
159
|
-
"ApplicationCreated(address,address,bytes32,address)": {
|
|
160
|
-
"details": "MUST be triggered on a successful call to `newApplication`.",
|
|
161
|
-
"params": {
|
|
162
|
-
"application": "The application",
|
|
163
|
-
"consensus": "The initial consensus contract",
|
|
164
|
-
"dappOwner": "The initial DApp owner",
|
|
165
|
-
"templateHash": "The initial machine state hash"
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
"kind": "dev",
|
|
170
|
-
"methods": {
|
|
171
|
-
"calculateApplicationAddress(address,address,bytes32,bytes32)": {
|
|
172
|
-
"details": "Beware that only the `newApplication` function with the `_salt` parameter is able to deterministically deploy an application.",
|
|
173
|
-
"params": {
|
|
174
|
-
"_consensus": "The initial consensus contract",
|
|
175
|
-
"_dappOwner": "The initial DApp owner",
|
|
176
|
-
"_salt": "The salt used to deterministically generate the DApp address",
|
|
177
|
-
"_templateHash": "The initial machine state hash"
|
|
178
|
-
},
|
|
179
|
-
"returns": {
|
|
180
|
-
"_0": "The deterministic application address"
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
"newApplication(address,address,bytes32)": {
|
|
184
|
-
"details": "On success, MUST emit an `ApplicationCreated` event.",
|
|
185
|
-
"params": {
|
|
186
|
-
"_consensus": "The initial consensus contract",
|
|
187
|
-
"_dappOwner": "The initial DApp owner",
|
|
188
|
-
"_templateHash": "The initial machine state hash"
|
|
189
|
-
},
|
|
190
|
-
"returns": {
|
|
191
|
-
"_0": "The application"
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
"newApplication(address,address,bytes32,bytes32)": {
|
|
195
|
-
"details": "On success, MUST emit an `ApplicationCreated` event.",
|
|
196
|
-
"params": {
|
|
197
|
-
"_consensus": "The initial consensus contract",
|
|
198
|
-
"_dappOwner": "The initial DApp owner",
|
|
199
|
-
"_salt": "The salt used to deterministically generate the DApp address",
|
|
200
|
-
"_templateHash": "The initial machine state hash"
|
|
201
|
-
},
|
|
202
|
-
"returns": {
|
|
203
|
-
"_0": "The application"
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
"title": "Cartesi DApp Factory",
|
|
208
|
-
"version": 1
|
|
209
|
-
},
|
|
210
|
-
"userdoc": {
|
|
211
|
-
"events": {
|
|
212
|
-
"ApplicationCreated(address,address,bytes32,address)": {
|
|
213
|
-
"notice": "A new application was deployed."
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
"kind": "user",
|
|
217
|
-
"methods": {
|
|
218
|
-
"calculateApplicationAddress(address,address,bytes32,bytes32)": {
|
|
219
|
-
"notice": "Calculate the address of an application to be deployed deterministically."
|
|
220
|
-
},
|
|
221
|
-
"newApplication(address,address,bytes32)": {
|
|
222
|
-
"notice": "Deploy a new application."
|
|
223
|
-
},
|
|
224
|
-
"newApplication(address,address,bytes32,bytes32)": {
|
|
225
|
-
"notice": "Deploy a new application deterministically."
|
|
226
|
-
}
|
|
227
|
-
},
|
|
228
|
-
"notice": "Allows anyone to reliably deploy a new `CartesiDApp` contract.",
|
|
229
|
-
"version": 1
|
|
230
|
-
}
|
|
231
|
-
}
|