Skip to content

Commit 87b0129

Browse files
committed
refactor: Update configs, test cases and data-mock generation for new log-events.
1 parent da90983 commit 87b0129

8 files changed

Lines changed: 927 additions & 727 deletions

File tree

abi/CartesiApplication.json

Lines changed: 501 additions & 454 deletions
Large diffs are not rendered by default.

abi/CartesiApplicationFactory.json

Lines changed: 150 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -1,130 +1,151 @@
11
[
2-
{
3-
"anonymous": false,
4-
"inputs": [
5-
{
6-
"indexed": true,
7-
"internalType": "contract IConsensus",
8-
"name": "consensus",
9-
"type": "address"
10-
},
11-
{
12-
"indexed": false,
13-
"internalType": "address",
14-
"name": "appOwner",
15-
"type": "address"
16-
},
17-
{
18-
"indexed": false,
19-
"internalType": "bytes32",
20-
"name": "templateHash",
21-
"type": "bytes32"
22-
},
23-
{
24-
"indexed": false,
25-
"internalType": "contract IApplication",
26-
"name": "appContract",
27-
"type": "address"
28-
}
29-
],
30-
"name": "ApplicationCreated",
31-
"type": "event"
32-
},
33-
{
34-
"inputs": [
35-
{
36-
"internalType": "contract IConsensus",
37-
"name": "consensus",
38-
"type": "address"
39-
},
40-
{
41-
"internalType": "address",
42-
"name": "appOwner",
43-
"type": "address"
44-
},
45-
{
46-
"internalType": "bytes32",
47-
"name": "templateHash",
48-
"type": "bytes32"
49-
},
50-
{
51-
"internalType": "bytes32",
52-
"name": "salt",
53-
"type": "bytes32"
54-
}
55-
],
56-
"name": "calculateApplicationAddress",
57-
"outputs": [
58-
{
59-
"internalType": "address",
60-
"name": "",
61-
"type": "address"
62-
}
63-
],
64-
"stateMutability": "view",
65-
"type": "function"
66-
},
67-
{
68-
"inputs": [
69-
{
70-
"internalType": "contract IConsensus",
71-
"name": "consensus",
72-
"type": "address"
73-
},
74-
{
75-
"internalType": "address",
76-
"name": "appOwner",
77-
"type": "address"
78-
},
79-
{
80-
"internalType": "bytes32",
81-
"name": "templateHash",
82-
"type": "bytes32"
83-
},
84-
{
85-
"internalType": "bytes32",
86-
"name": "salt",
87-
"type": "bytes32"
88-
}
89-
],
90-
"name": "newApplication",
91-
"outputs": [
92-
{
93-
"internalType": "contract IApplication",
94-
"name": "",
95-
"type": "address"
96-
}
97-
],
98-
"stateMutability": "nonpayable",
99-
"type": "function"
100-
},
101-
{
102-
"inputs": [
103-
{
104-
"internalType": "contract IConsensus",
105-
"name": "consensus",
106-
"type": "address"
107-
},
108-
{
109-
"internalType": "address",
110-
"name": "appOwner",
111-
"type": "address"
112-
},
113-
{
114-
"internalType": "bytes32",
115-
"name": "templateHash",
116-
"type": "bytes32"
117-
}
118-
],
119-
"name": "newApplication",
120-
"outputs": [
121-
{
122-
"internalType": "contract IApplication",
123-
"name": "",
124-
"type": "address"
125-
}
126-
],
127-
"stateMutability": "nonpayable",
128-
"type": "function"
129-
}
130-
]
2+
{
3+
"type": "function",
4+
"name": "calculateApplicationAddress",
5+
"inputs": [
6+
{
7+
"name": "outputsMerkleRootValidator",
8+
"type": "address",
9+
"internalType": "contract IOutputsMerkleRootValidator"
10+
},
11+
{
12+
"name": "appOwner",
13+
"type": "address",
14+
"internalType": "address"
15+
},
16+
{
17+
"name": "templateHash",
18+
"type": "bytes32",
19+
"internalType": "bytes32"
20+
},
21+
{
22+
"name": "dataAvailability",
23+
"type": "bytes",
24+
"internalType": "bytes"
25+
},
26+
{
27+
"name": "salt",
28+
"type": "bytes32",
29+
"internalType": "bytes32"
30+
}
31+
],
32+
"outputs": [
33+
{
34+
"name": "",
35+
"type": "address",
36+
"internalType": "address"
37+
}
38+
],
39+
"stateMutability": "view"
40+
},
41+
{
42+
"type": "function",
43+
"name": "newApplication",
44+
"inputs": [
45+
{
46+
"name": "outputsMerkleRootValidator",
47+
"type": "address",
48+
"internalType": "contract IOutputsMerkleRootValidator"
49+
},
50+
{
51+
"name": "appOwner",
52+
"type": "address",
53+
"internalType": "address"
54+
},
55+
{
56+
"name": "templateHash",
57+
"type": "bytes32",
58+
"internalType": "bytes32"
59+
},
60+
{
61+
"name": "dataAvailability",
62+
"type": "bytes",
63+
"internalType": "bytes"
64+
},
65+
{
66+
"name": "salt",
67+
"type": "bytes32",
68+
"internalType": "bytes32"
69+
}
70+
],
71+
"outputs": [
72+
{
73+
"name": "",
74+
"type": "address",
75+
"internalType": "contract IApplication"
76+
}
77+
],
78+
"stateMutability": "nonpayable"
79+
},
80+
{
81+
"type": "function",
82+
"name": "newApplication",
83+
"inputs": [
84+
{
85+
"name": "outputsMerkleRootValidator",
86+
"type": "address",
87+
"internalType": "contract IOutputsMerkleRootValidator"
88+
},
89+
{
90+
"name": "appOwner",
91+
"type": "address",
92+
"internalType": "address"
93+
},
94+
{
95+
"name": "templateHash",
96+
"type": "bytes32",
97+
"internalType": "bytes32"
98+
},
99+
{
100+
"name": "dataAvailability",
101+
"type": "bytes",
102+
"internalType": "bytes"
103+
}
104+
],
105+
"outputs": [
106+
{
107+
"name": "",
108+
"type": "address",
109+
"internalType": "contract IApplication"
110+
}
111+
],
112+
"stateMutability": "nonpayable"
113+
},
114+
{
115+
"type": "event",
116+
"name": "ApplicationCreated",
117+
"inputs": [
118+
{
119+
"name": "outputsMerkleRootValidator",
120+
"type": "address",
121+
"indexed": true,
122+
"internalType": "contract IOutputsMerkleRootValidator"
123+
},
124+
{
125+
"name": "appOwner",
126+
"type": "address",
127+
"indexed": false,
128+
"internalType": "address"
129+
},
130+
{
131+
"name": "templateHash",
132+
"type": "bytes32",
133+
"indexed": false,
134+
"internalType": "bytes32"
135+
},
136+
{
137+
"name": "dataAvailability",
138+
"type": "bytes",
139+
"indexed": false,
140+
"internalType": "bytes"
141+
},
142+
{
143+
"name": "appContract",
144+
"type": "address",
145+
"indexed": false,
146+
"internalType": "contract IApplication"
147+
}
148+
],
149+
"anonymous": false
150+
}
151+
]

0 commit comments

Comments
 (0)