@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
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"address": "0x817b126F242B5F184Fa685b4f2F91DC99D8115F9",
|
|
3
|
+
"abi": [
|
|
4
|
+
{
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"internalType": "address",
|
|
8
|
+
"name": "target",
|
|
9
|
+
"type": "address"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"name": "AddressEmptyCode",
|
|
13
|
+
"type": "error"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"inputs": [
|
|
17
|
+
{
|
|
18
|
+
"internalType": "address",
|
|
19
|
+
"name": "account",
|
|
20
|
+
"type": "address"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"name": "AddressInsufficientBalance",
|
|
24
|
+
"type": "error"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"inputs": [],
|
|
28
|
+
"name": "FailedInnerCall",
|
|
29
|
+
"type": "error"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"inputs": [
|
|
33
|
+
{
|
|
34
|
+
"internalType": "address",
|
|
35
|
+
"name": "token",
|
|
36
|
+
"type": "address"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"name": "SafeERC20FailedOperation",
|
|
40
|
+
"type": "error"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"inputs": [
|
|
44
|
+
{
|
|
45
|
+
"internalType": "contract IERC20",
|
|
46
|
+
"name": "token",
|
|
47
|
+
"type": "address"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"internalType": "address",
|
|
51
|
+
"name": "to",
|
|
52
|
+
"type": "address"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"internalType": "uint256",
|
|
56
|
+
"name": "value",
|
|
57
|
+
"type": "uint256"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"name": "safeTransfer",
|
|
61
|
+
"outputs": [],
|
|
62
|
+
"stateMutability": "nonpayable",
|
|
63
|
+
"type": "function"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"transactionHash": "0x949eabb3a598f828db377f3189a988cae497639284bddfe1526c004bc15f3613",
|
|
67
|
+
"receipt": {
|
|
68
|
+
"to": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
|
|
69
|
+
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
|
70
|
+
"contractAddress": null,
|
|
71
|
+
"transactionIndex": 0,
|
|
72
|
+
"gasUsed": "227912",
|
|
73
|
+
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
74
|
+
"blockHash": "0x3ae6399db59624883d721dd54fbbcb283ca2d94205ab8e8a8fb20c4e222d7bb2",
|
|
75
|
+
"transactionHash": "0x949eabb3a598f828db377f3189a988cae497639284bddfe1526c004bc15f3613",
|
|
76
|
+
"logs": [],
|
|
77
|
+
"blockNumber": 13,
|
|
78
|
+
"cumulativeGasUsed": "227912",
|
|
79
|
+
"status": 1,
|
|
80
|
+
"byzantium": true
|
|
81
|
+
},
|
|
82
|
+
"args": [],
|
|
83
|
+
"numDeployments": 1,
|
|
84
|
+
"bytecode": "0x608060405234801561001057600080fd5b50610326806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063d1660f9914610030575b600080fd5b61004361003e36600461025e565b610045565b005b6100596001600160a01b038416838361005e565b505050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092019092526020810180516001600160e01b031663a9059cbb60e01b179052610059918591906000906100bc9084168361010f565b905080516000141580156100e15750808060200190518101906100df919061029f565b155b1561005957604051635274afe760e01b81526001600160a01b03841660048201526024015b60405180910390fd5b606061011d83836000610124565b9392505050565b6060814710156101495760405163cd78605960e01b8152306004820152602401610106565b600080856001600160a01b0316848660405161016591906102c1565b60006040518083038185875af1925050503d80600081146101a2576040519150601f19603f3d011682016040523d82523d6000602084013e6101a7565b606091505b50915091506101b78683836101c1565b9695505050505050565b6060826101d6576101d18261021d565b61011d565b81511580156101ed57506001600160a01b0384163b155b1561021657604051639996b31560e01b81526001600160a01b0385166004820152602401610106565b508061011d565b80511561022d5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b50565b6001600160a01b038116811461024657600080fd5b60008060006060848603121561027357600080fd5b833561027e81610249565b9250602084013561028e81610249565b929592945050506040919091013590565b6000602082840312156102b157600080fd5b8151801515811461011d57600080fd5b6000825160005b818110156102e257602081860181015185830152016102c8565b50600092019182525091905056fea2646970667358221220770726e7ad5dd1738ebf2b83baa38187dd37ed24d03d1b61c4ef95f8cde1b84c64736f6c63430008170033",
|
|
85
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063d1660f9914610030575b600080fd5b61004361003e36600461025e565b610045565b005b6100596001600160a01b038416838361005e565b505050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092019092526020810180516001600160e01b031663a9059cbb60e01b179052610059918591906000906100bc9084168361010f565b905080516000141580156100e15750808060200190518101906100df919061029f565b155b1561005957604051635274afe760e01b81526001600160a01b03841660048201526024015b60405180910390fd5b606061011d83836000610124565b9392505050565b6060814710156101495760405163cd78605960e01b8152306004820152602401610106565b600080856001600160a01b0316848660405161016591906102c1565b60006040518083038185875af1925050503d80600081146101a2576040519150601f19603f3d011682016040523d82523d6000602084013e6101a7565b606091505b50915091506101b78683836101c1565b9695505050505050565b6060826101d6576101d18261021d565b61011d565b81511580156101ed57506001600160a01b0384163b155b1561021657604051639996b31560e01b81526001600160a01b0385166004820152602401610106565b508061011d565b80511561022d5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b50565b6001600160a01b038116811461024657600080fd5b60008060006060848603121561027357600080fd5b833561027e81610249565b9250602084013561028e81610249565b929592945050506040919091013590565b6000602082840312156102b157600080fd5b8151801515811461011d57600080fd5b6000825160005b818110156102e257602081860181015185830152016102c8565b50600092019182525091905056fea2646970667358221220770726e7ad5dd1738ebf2b83baa38187dd37ed24d03d1b61c4ef95f8cde1b84c64736f6c63430008170033",
|
|
86
|
+
"devdoc": {
|
|
87
|
+
"errors": {
|
|
88
|
+
"AddressEmptyCode(address)": [
|
|
89
|
+
{
|
|
90
|
+
"details": "There's no code at `target` (it is not a contract)."
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"AddressInsufficientBalance(address)": [
|
|
94
|
+
{
|
|
95
|
+
"details": "The ETH balance of the account is not enough to perform the operation."
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"FailedInnerCall()": [
|
|
99
|
+
{
|
|
100
|
+
"details": "A call to an address target failed. The target may have reverted."
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"SafeERC20FailedOperation(address)": [
|
|
104
|
+
{
|
|
105
|
+
"details": "An operation with an ERC20 token failed."
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"kind": "dev",
|
|
110
|
+
"methods": {},
|
|
111
|
+
"version": 1
|
|
112
|
+
},
|
|
113
|
+
"userdoc": {
|
|
114
|
+
"kind": "user",
|
|
115
|
+
"methods": {},
|
|
116
|
+
"version": 1
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
"address": "
|
|
2
|
+
"address": "0x4C11C7F82D6D56a726f9B53dd99af031AFd86BB6",
|
|
3
3
|
"abi": [
|
|
4
4
|
{
|
|
5
5
|
"inputs": [
|
|
6
6
|
{
|
|
7
|
-
"internalType": "contract
|
|
8
|
-
"name": "
|
|
7
|
+
"internalType": "contract IAuthorityFactory",
|
|
8
|
+
"name": "authorityFactory",
|
|
9
9
|
"type": "address"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
|
-
"internalType": "contract
|
|
13
|
-
"name": "
|
|
12
|
+
"internalType": "contract IApplicationFactory",
|
|
13
|
+
"name": "applicationFactory",
|
|
14
14
|
"type": "address"
|
|
15
15
|
}
|
|
16
16
|
],
|
|
@@ -21,22 +21,27 @@
|
|
|
21
21
|
"inputs": [
|
|
22
22
|
{
|
|
23
23
|
"internalType": "address",
|
|
24
|
-
"name": "
|
|
24
|
+
"name": "authorityOwner",
|
|
25
25
|
"type": "address"
|
|
26
26
|
},
|
|
27
|
+
{
|
|
28
|
+
"internalType": "uint256",
|
|
29
|
+
"name": "epochLength",
|
|
30
|
+
"type": "uint256"
|
|
31
|
+
},
|
|
27
32
|
{
|
|
28
33
|
"internalType": "address",
|
|
29
|
-
"name": "
|
|
34
|
+
"name": "appOwner",
|
|
30
35
|
"type": "address"
|
|
31
36
|
},
|
|
32
37
|
{
|
|
33
38
|
"internalType": "bytes32",
|
|
34
|
-
"name": "
|
|
39
|
+
"name": "templateHash",
|
|
35
40
|
"type": "bytes32"
|
|
36
41
|
},
|
|
37
42
|
{
|
|
38
43
|
"internalType": "bytes32",
|
|
39
|
-
"name": "
|
|
44
|
+
"name": "salt",
|
|
40
45
|
"type": "bytes32"
|
|
41
46
|
}
|
|
42
47
|
],
|
|
@@ -44,17 +49,12 @@
|
|
|
44
49
|
"outputs": [
|
|
45
50
|
{
|
|
46
51
|
"internalType": "address",
|
|
47
|
-
"name": "
|
|
48
|
-
"type": "address"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"internalType": "address",
|
|
52
|
-
"name": "authority_",
|
|
52
|
+
"name": "application",
|
|
53
53
|
"type": "address"
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
"internalType": "address",
|
|
57
|
-
"name": "
|
|
57
|
+
"name": "authority",
|
|
58
58
|
"type": "address"
|
|
59
59
|
}
|
|
60
60
|
],
|
|
@@ -65,40 +65,40 @@
|
|
|
65
65
|
"inputs": [
|
|
66
66
|
{
|
|
67
67
|
"internalType": "address",
|
|
68
|
-
"name": "
|
|
68
|
+
"name": "authorityOwner",
|
|
69
69
|
"type": "address"
|
|
70
70
|
},
|
|
71
|
+
{
|
|
72
|
+
"internalType": "uint256",
|
|
73
|
+
"name": "epochLength",
|
|
74
|
+
"type": "uint256"
|
|
75
|
+
},
|
|
71
76
|
{
|
|
72
77
|
"internalType": "address",
|
|
73
|
-
"name": "
|
|
78
|
+
"name": "appOwner",
|
|
74
79
|
"type": "address"
|
|
75
80
|
},
|
|
76
81
|
{
|
|
77
82
|
"internalType": "bytes32",
|
|
78
|
-
"name": "
|
|
83
|
+
"name": "templateHash",
|
|
79
84
|
"type": "bytes32"
|
|
80
85
|
},
|
|
81
86
|
{
|
|
82
87
|
"internalType": "bytes32",
|
|
83
|
-
"name": "
|
|
88
|
+
"name": "salt",
|
|
84
89
|
"type": "bytes32"
|
|
85
90
|
}
|
|
86
91
|
],
|
|
87
92
|
"name": "deployContracts",
|
|
88
93
|
"outputs": [
|
|
89
94
|
{
|
|
90
|
-
"internalType": "contract
|
|
91
|
-
"name": "
|
|
92
|
-
"type": "address"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"internalType": "contract Authority",
|
|
96
|
-
"name": "authority_",
|
|
95
|
+
"internalType": "contract IApplication",
|
|
96
|
+
"name": "application",
|
|
97
97
|
"type": "address"
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
|
-
"internalType": "contract
|
|
101
|
-
"name": "
|
|
100
|
+
"internalType": "contract IAuthority",
|
|
101
|
+
"name": "authority",
|
|
102
102
|
"type": "address"
|
|
103
103
|
}
|
|
104
104
|
],
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"name": "getApplicationFactory",
|
|
111
111
|
"outputs": [
|
|
112
112
|
{
|
|
113
|
-
"internalType": "contract
|
|
113
|
+
"internalType": "contract IApplicationFactory",
|
|
114
114
|
"name": "",
|
|
115
115
|
"type": "address"
|
|
116
116
|
}
|
|
@@ -120,10 +120,10 @@
|
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
122
|
"inputs": [],
|
|
123
|
-
"name": "
|
|
123
|
+
"name": "getAuthorityFactory",
|
|
124
124
|
"outputs": [
|
|
125
125
|
{
|
|
126
|
-
"internalType": "contract
|
|
126
|
+
"internalType": "contract IAuthorityFactory",
|
|
127
127
|
"name": "",
|
|
128
128
|
"type": "address"
|
|
129
129
|
}
|
|
@@ -132,62 +132,63 @@
|
|
|
132
132
|
"type": "function"
|
|
133
133
|
}
|
|
134
134
|
],
|
|
135
|
-
"transactionHash": "
|
|
135
|
+
"transactionHash": "0x568515b70df1ca408ce9cfdc2c85c10e3dee2e1d9481e9500aac047db4e06ba5",
|
|
136
136
|
"receipt": {
|
|
137
137
|
"to": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
|
|
138
138
|
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
|
139
139
|
"contractAddress": null,
|
|
140
140
|
"transactionIndex": 0,
|
|
141
|
-
"gasUsed": "
|
|
141
|
+
"gasUsed": "287274",
|
|
142
142
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
143
|
-
"blockHash": "
|
|
144
|
-
"transactionHash": "
|
|
143
|
+
"blockHash": "0xca7077b70dbfd7cb547144125b75b3b352645e81b74de277eec8bad7795a751c",
|
|
144
|
+
"transactionHash": "0x568515b70df1ca408ce9cfdc2c85c10e3dee2e1d9481e9500aac047db4e06ba5",
|
|
145
145
|
"logs": [],
|
|
146
|
-
"blockNumber":
|
|
147
|
-
"cumulativeGasUsed": "
|
|
146
|
+
"blockNumber": 12,
|
|
147
|
+
"cumulativeGasUsed": "287274",
|
|
148
148
|
"status": 1,
|
|
149
149
|
"byzantium": true
|
|
150
150
|
},
|
|
151
151
|
"args": [
|
|
152
|
-
"
|
|
153
|
-
"
|
|
152
|
+
"0xB897F7Fe78f220aE34B7FA9493092701a873Ed45",
|
|
153
|
+
"0x1d4CfBD2622d802A07CeB4C3401Bbb455c9dbdC3"
|
|
154
154
|
],
|
|
155
155
|
"numDeployments": 1,
|
|
156
|
-
"bytecode": "
|
|
157
|
-
"deployedBytecode": "
|
|
156
|
+
"bytecode": "0x60c060405234801561001057600080fd5b5060405161050738038061050783398101604081905261002f9161005e565b6001600160a01b039182166080521660a052610098565b6001600160a01b038116811461005b57600080fd5b50565b6000806040838503121561007157600080fd5b825161007c81610046565b602084015190925061008d81610046565b809150509250929050565b60805160a0516104306100d76000396000818160c5015281816101d1015261032101526000818160530152818161012e015261027c01526104306000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806375689f8314610051578063de4d53fd14610090578063e63d50ff146100c3578063ffc643ca146100e9575b600080fd5b7f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b0390911681526020015b60405180910390f35b6100a361009e366004610384565b6100fc565b604080516001600160a01b03938416815292909116602083015201610087565b7f0000000000000000000000000000000000000000000000000000000000000000610073565b6100a36100f7366004610384565b61024a565b604051631442f7bb60e01b81526001600160a01b038681166004830152602482018690526044820183905260009182917f00000000000000000000000000000000000000000000000000000000000000001690631442f7bb90606401602060405180830381865afa158015610175573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019991906103d6565b60405163bd4f121960e01b81526001600160a01b038083166004830152878116602483015260448201879052606482018690529192507f00000000000000000000000000000000000000000000000000000000000000009091169063bd4f121990608401602060405180830381865afa15801561021a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023e91906103d6565b91509550959350505050565b604051631d9324cd60e31b81526001600160a01b038681166004830152602482018690526044820183905260009182917f0000000000000000000000000000000000000000000000000000000000000000169063ec992668906064016020604051808303816000875af11580156102c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e991906103d6565b604051630e1a07f560e01b81526001600160a01b038083166004830152878116602483015260448201879052606482018690529192507f000000000000000000000000000000000000000000000000000000000000000090911690630e1a07f5906084016020604051808303816000875af115801561021a573d6000803e3d6000fd5b6001600160a01b038116811461038157600080fd5b50565b600080600080600060a0868803121561039c57600080fd5b85356103a78161036c565b94506020860135935060408601356103be8161036c565b94979396509394606081013594506080013592915050565b6000602082840312156103e857600080fd5b81516103f38161036c565b939250505056fea264697066735822122020a143bc4274577e61018885b1497d3d548317895553ccc9ead215bc303b532364736f6c63430008170033",
|
|
157
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806375689f8314610051578063de4d53fd14610090578063e63d50ff146100c3578063ffc643ca146100e9575b600080fd5b7f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b0390911681526020015b60405180910390f35b6100a361009e366004610384565b6100fc565b604080516001600160a01b03938416815292909116602083015201610087565b7f0000000000000000000000000000000000000000000000000000000000000000610073565b6100a36100f7366004610384565b61024a565b604051631442f7bb60e01b81526001600160a01b038681166004830152602482018690526044820183905260009182917f00000000000000000000000000000000000000000000000000000000000000001690631442f7bb90606401602060405180830381865afa158015610175573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019991906103d6565b60405163bd4f121960e01b81526001600160a01b038083166004830152878116602483015260448201879052606482018690529192507f00000000000000000000000000000000000000000000000000000000000000009091169063bd4f121990608401602060405180830381865afa15801561021a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023e91906103d6565b91509550959350505050565b604051631d9324cd60e31b81526001600160a01b038681166004830152602482018690526044820183905260009182917f0000000000000000000000000000000000000000000000000000000000000000169063ec992668906064016020604051808303816000875af11580156102c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e991906103d6565b604051630e1a07f560e01b81526001600160a01b038083166004830152878116602483015260448201879052606482018690529192507f000000000000000000000000000000000000000000000000000000000000000090911690630e1a07f5906084016020604051808303816000875af115801561021a573d6000803e3d6000fd5b6001600160a01b038116811461038157600080fd5b50565b600080600080600060a0868803121561039c57600080fd5b85356103a78161036c565b94506020860135935060408601356103be8161036c565b94979396509394606081013594506080013592915050565b6000602082840312156103e857600080fd5b81516103f38161036c565b939250505056fea264697066735822122020a143bc4274577e61018885b1497d3d548317895553ccc9ead215bc303b532364736f6c63430008170033",
|
|
158
158
|
"devdoc": {
|
|
159
159
|
"kind": "dev",
|
|
160
160
|
"methods": {
|
|
161
|
-
"calculateAddresses(address,address,bytes32,bytes32)": {
|
|
161
|
+
"calculateAddresses(address,uint256,address,bytes32,bytes32)": {
|
|
162
162
|
"params": {
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"
|
|
163
|
+
"appOwner": "The initial application owner",
|
|
164
|
+
"authorityOwner": "The initial authority owner",
|
|
165
|
+
"epochLength": "The epoch length",
|
|
166
|
+
"salt": "The salt used to deterministically generate the addresses",
|
|
167
|
+
"templateHash": "The initial machine state hash"
|
|
167
168
|
},
|
|
168
169
|
"returns": {
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"history_": "The history address"
|
|
170
|
+
"application": "The application address",
|
|
171
|
+
"authority": "The authority address"
|
|
172
172
|
}
|
|
173
173
|
},
|
|
174
174
|
"constructor": {
|
|
175
175
|
"params": {
|
|
176
|
-
"
|
|
177
|
-
"
|
|
176
|
+
"applicationFactory": "The application factory",
|
|
177
|
+
"authorityFactory": "The authority factory"
|
|
178
178
|
}
|
|
179
179
|
},
|
|
180
|
-
"deployContracts(address,address,bytes32,bytes32)": {
|
|
180
|
+
"deployContracts(address,uint256,address,bytes32,bytes32)": {
|
|
181
|
+
"details": "Reverts if the authority owner address is zero.Reverts if the application owner address is zero.Reverts if the epoch length is zero.",
|
|
181
182
|
"params": {
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
"
|
|
183
|
+
"appOwner": "The initial application owner",
|
|
184
|
+
"authorityOwner": "The initial authority owner",
|
|
185
|
+
"epochLength": "The epoch length",
|
|
186
|
+
"salt": "The salt used to deterministically generate the addresses",
|
|
187
|
+
"templateHash": "The initial machine state hash"
|
|
186
188
|
},
|
|
187
189
|
"returns": {
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
"history_": "The history contract"
|
|
190
|
+
"application": "The application contract",
|
|
191
|
+
"authority": "The authority contract"
|
|
191
192
|
}
|
|
192
193
|
},
|
|
193
194
|
"getApplicationFactory()": {
|
|
@@ -195,9 +196,9 @@
|
|
|
195
196
|
"_0": "The application factory"
|
|
196
197
|
}
|
|
197
198
|
},
|
|
198
|
-
"
|
|
199
|
+
"getAuthorityFactory()": {
|
|
199
200
|
"returns": {
|
|
200
|
-
"_0": "The authority
|
|
201
|
+
"_0": "The authority factory"
|
|
201
202
|
}
|
|
202
203
|
}
|
|
203
204
|
},
|
|
@@ -207,20 +208,20 @@
|
|
|
207
208
|
"userdoc": {
|
|
208
209
|
"kind": "user",
|
|
209
210
|
"methods": {
|
|
210
|
-
"calculateAddresses(address,address,bytes32,bytes32)": {
|
|
211
|
-
"notice": "Calculate the addresses of the application
|
|
211
|
+
"calculateAddresses(address,uint256,address,bytes32,bytes32)": {
|
|
212
|
+
"notice": "Calculate the addresses of the application and authority contracts to be deployed deterministically."
|
|
212
213
|
},
|
|
213
|
-
"deployContracts(address,address,bytes32,bytes32)": {
|
|
214
|
-
"notice": "Deploy new application
|
|
214
|
+
"deployContracts(address,uint256,address,bytes32,bytes32)": {
|
|
215
|
+
"notice": "Deploy new application and authority contracts deterministically."
|
|
215
216
|
},
|
|
216
217
|
"getApplicationFactory()": {
|
|
217
|
-
"notice": "Get the factory used to deploy `
|
|
218
|
+
"notice": "Get the factory used to deploy `IApplication` contracts"
|
|
218
219
|
},
|
|
219
|
-
"
|
|
220
|
-
"notice": "Get the factory used to deploy `
|
|
220
|
+
"getAuthorityFactory()": {
|
|
221
|
+
"notice": "Get the factory used to deploy `IAuthority` contracts"
|
|
221
222
|
}
|
|
222
223
|
},
|
|
223
|
-
"notice": "Allows anyone to reliably deploy a new
|
|
224
|
+
"notice": "Allows anyone to reliably deploy a new IAuthority contract, along with an IApplication contract already linked to it.",
|
|
224
225
|
"version": 1
|
|
225
226
|
}
|
|
226
227
|
}
|
|
@@ -570,7 +570,7 @@
|
|
|
570
570
|
"type": "function"
|
|
571
571
|
}
|
|
572
572
|
],
|
|
573
|
-
"transactionHash": "
|
|
573
|
+
"transactionHash": "0x50319933aaa21f03a7429d26e4d03fc8df45fcfe867e2f95f6979e11a079fc0b",
|
|
574
574
|
"receipt": {
|
|
575
575
|
"to": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
|
|
576
576
|
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
|
@@ -578,13 +578,13 @@
|
|
|
578
578
|
"transactionIndex": 0,
|
|
579
579
|
"gasUsed": "2344092",
|
|
580
580
|
"logsBloom": "0x00000000000000000010000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000100000800000000000000000000008000000000400000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000002000000000000000000020000000000000000000000000000000000000000000000000000000000000000000",
|
|
581
|
-
"blockHash": "
|
|
582
|
-
"transactionHash": "
|
|
581
|
+
"blockHash": "0xc305a3e742c451e2d6e460db30cb405c9e15fd1e82fd6a0f6654a107e81304eb",
|
|
582
|
+
"transactionHash": "0x50319933aaa21f03a7429d26e4d03fc8df45fcfe867e2f95f6979e11a079fc0b",
|
|
583
583
|
"logs": [
|
|
584
584
|
{
|
|
585
585
|
"transactionIndex": 0,
|
|
586
|
-
"blockNumber":
|
|
587
|
-
"transactionHash": "
|
|
586
|
+
"blockNumber": 16,
|
|
587
|
+
"transactionHash": "0x50319933aaa21f03a7429d26e4d03fc8df45fcfe867e2f95f6979e11a079fc0b",
|
|
588
588
|
"address": "0x04d724738873CB6a86328D2EbAEb2079D715e61e",
|
|
589
589
|
"topics": [
|
|
590
590
|
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
|
|
@@ -593,10 +593,10 @@
|
|
|
593
593
|
],
|
|
594
594
|
"data": "0x",
|
|
595
595
|
"logIndex": 0,
|
|
596
|
-
"blockHash": "
|
|
596
|
+
"blockHash": "0xc305a3e742c451e2d6e460db30cb405c9e15fd1e82fd6a0f6654a107e81304eb"
|
|
597
597
|
}
|
|
598
598
|
],
|
|
599
|
-
"blockNumber":
|
|
599
|
+
"blockNumber": 16,
|
|
600
600
|
"cumulativeGasUsed": "2344092",
|
|
601
601
|
"status": 1,
|
|
602
602
|
"byzantium": true
|
|
@@ -575,7 +575,7 @@
|
|
|
575
575
|
"type": "function"
|
|
576
576
|
}
|
|
577
577
|
],
|
|
578
|
-
"transactionHash": "
|
|
578
|
+
"transactionHash": "0x1e09b49c85c390559fcd4155d18a0d5a8c59e1955d707c0e9673d80e0cac6f24",
|
|
579
579
|
"receipt": {
|
|
580
580
|
"to": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
|
|
581
581
|
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
|
@@ -583,13 +583,13 @@
|
|
|
583
583
|
"transactionIndex": 0,
|
|
584
584
|
"gasUsed": "2243901",
|
|
585
585
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000100000800000000800000000000000000000000400000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000080000000002000000000000000000020000000000000000000000000000000000000000000000000000000000000000000",
|
|
586
|
-
"blockHash": "
|
|
587
|
-
"transactionHash": "
|
|
586
|
+
"blockHash": "0xba29b6b3f78ec03dd2d9c3a124726a262d3ab0da84fdb1e8e599072e81a18008",
|
|
587
|
+
"transactionHash": "0x1e09b49c85c390559fcd4155d18a0d5a8c59e1955d707c0e9673d80e0cac6f24",
|
|
588
588
|
"logs": [
|
|
589
589
|
{
|
|
590
590
|
"transactionIndex": 0,
|
|
591
|
-
"blockNumber":
|
|
592
|
-
"transactionHash": "
|
|
591
|
+
"blockNumber": 15,
|
|
592
|
+
"transactionHash": "0x1e09b49c85c390559fcd4155d18a0d5a8c59e1955d707c0e9673d80e0cac6f24",
|
|
593
593
|
"address": "0xc6582A9b48F211Fa8c2B5b16CB615eC39bcA653B",
|
|
594
594
|
"topics": [
|
|
595
595
|
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
|
|
@@ -598,10 +598,10 @@
|
|
|
598
598
|
],
|
|
599
599
|
"data": "0x",
|
|
600
600
|
"logIndex": 0,
|
|
601
|
-
"blockHash": "
|
|
601
|
+
"blockHash": "0xba29b6b3f78ec03dd2d9c3a124726a262d3ab0da84fdb1e8e599072e81a18008"
|
|
602
602
|
}
|
|
603
603
|
],
|
|
604
|
-
"blockNumber":
|
|
604
|
+
"blockNumber": 15,
|
|
605
605
|
"cumulativeGasUsed": "2243901",
|
|
606
606
|
"status": 1,
|
|
607
607
|
"byzantium": true
|
|
@@ -715,7 +715,7 @@
|
|
|
715
715
|
"type": "function"
|
|
716
716
|
}
|
|
717
717
|
],
|
|
718
|
-
"transactionHash": "
|
|
718
|
+
"transactionHash": "0x1893b6a624f159c60a23b6a2d4d8ab4774f0e15f6f38cedb4e64b7ded1b778a3",
|
|
719
719
|
"receipt": {
|
|
720
720
|
"to": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
|
|
721
721
|
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
|
@@ -723,25 +723,25 @@
|
|
|
723
723
|
"transactionIndex": 0,
|
|
724
724
|
"gasUsed": "2390102",
|
|
725
725
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000020000000000200100000800000000000000000000000010000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000200000100000008000000000002000000000000000000020000000000000000000000008000000000000000000000000000000000000000000",
|
|
726
|
-
"blockHash": "
|
|
727
|
-
"transactionHash": "
|
|
726
|
+
"blockHash": "0x954f82f8f1dc09b7ef62e449488b3c858e6ecfe786fe3b1ffeeff693480a7289",
|
|
727
|
+
"transactionHash": "0x1893b6a624f159c60a23b6a2d4d8ab4774f0e15f6f38cedb4e64b7ded1b778a3",
|
|
728
728
|
"logs": [
|
|
729
729
|
{
|
|
730
730
|
"transactionIndex": 0,
|
|
731
|
-
"blockNumber":
|
|
732
|
-
"transactionHash": "
|
|
731
|
+
"blockNumber": 14,
|
|
732
|
+
"transactionHash": "0x1893b6a624f159c60a23b6a2d4d8ab4774f0e15f6f38cedb4e64b7ded1b778a3",
|
|
733
733
|
"address": "0x92C6bcA388E99d6B304f1Af3c3Cd749Ff0b591e2",
|
|
734
734
|
"topics": [
|
|
735
735
|
"0x2f658b440c35314f52658ea8a740e05b284cdc84dc9ae01e891f21b8933e7cad"
|
|
736
736
|
],
|
|
737
737
|
"data": "0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266",
|
|
738
738
|
"logIndex": 0,
|
|
739
|
-
"blockHash": "
|
|
739
|
+
"blockHash": "0x954f82f8f1dc09b7ef62e449488b3c858e6ecfe786fe3b1ffeeff693480a7289"
|
|
740
740
|
},
|
|
741
741
|
{
|
|
742
742
|
"transactionIndex": 0,
|
|
743
|
-
"blockNumber":
|
|
744
|
-
"transactionHash": "
|
|
743
|
+
"blockNumber": 14,
|
|
744
|
+
"transactionHash": "0x1893b6a624f159c60a23b6a2d4d8ab4774f0e15f6f38cedb4e64b7ded1b778a3",
|
|
745
745
|
"address": "0x92C6bcA388E99d6B304f1Af3c3Cd749Ff0b591e2",
|
|
746
746
|
"topics": [
|
|
747
747
|
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
|
|
@@ -750,10 +750,10 @@
|
|
|
750
750
|
],
|
|
751
751
|
"data": "0x0000000000000000000000000000000000000000033b2e3c9fd0803ce8000000",
|
|
752
752
|
"logIndex": 1,
|
|
753
|
-
"blockHash": "
|
|
753
|
+
"blockHash": "0x954f82f8f1dc09b7ef62e449488b3c858e6ecfe786fe3b1ffeeff693480a7289"
|
|
754
754
|
}
|
|
755
755
|
],
|
|
756
|
-
"blockNumber":
|
|
756
|
+
"blockNumber": 14,
|
|
757
757
|
"cumulativeGasUsed": "2390102",
|
|
758
758
|
"status": 1,
|
|
759
759
|
"byzantium": true
|