Skip to content

Commit 7cf7420

Browse files
authored
[entropy] add entropy ABIs to solidity sdk (#1219)
1 parent 0eee513 commit 7cf7420

File tree

8 files changed

+830
-4
lines changed

8 files changed

+830
-4
lines changed

.github/workflows/ci-typescript.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ jobs:
3838
run: npx lerna run lint
3939
- name: Generate ABIs
4040
run: npx lerna run generate-abi
41-
- name: Check Solidity ABI
42-
run: git diff --exit-code target_chains/ethereum/sdk/solidity/abis/
41+
- name: Check ABIs
42+
run: npx lerna run check-abi
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
[
2+
{
3+
"inputs": [],
4+
"name": "AssertionFailure",
5+
"type": "error"
6+
},
7+
{
8+
"inputs": [],
9+
"name": "BlockhashUnavailable",
10+
"type": "error"
11+
},
12+
{
13+
"inputs": [],
14+
"name": "IncorrectRevelation",
15+
"type": "error"
16+
},
17+
{
18+
"inputs": [],
19+
"name": "InsufficientFee",
20+
"type": "error"
21+
},
22+
{
23+
"inputs": [],
24+
"name": "InvalidUpgradeMagic",
25+
"type": "error"
26+
},
27+
{
28+
"inputs": [],
29+
"name": "NoSuchProvider",
30+
"type": "error"
31+
},
32+
{
33+
"inputs": [],
34+
"name": "NoSuchRequest",
35+
"type": "error"
36+
},
37+
{
38+
"inputs": [],
39+
"name": "OutOfRandomness",
40+
"type": "error"
41+
},
42+
{
43+
"inputs": [],
44+
"name": "ProviderAlreadyRegistered",
45+
"type": "error"
46+
},
47+
{
48+
"inputs": [],
49+
"name": "Unauthorized",
50+
"type": "error"
51+
}
52+
]
Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
[
2+
{
3+
"anonymous": false,
4+
"inputs": [
5+
{
6+
"components": [
7+
{
8+
"internalType": "uint128",
9+
"name": "feeInWei",
10+
"type": "uint128"
11+
},
12+
{
13+
"internalType": "uint128",
14+
"name": "accruedFeesInWei",
15+
"type": "uint128"
16+
},
17+
{
18+
"internalType": "bytes32",
19+
"name": "originalCommitment",
20+
"type": "bytes32"
21+
},
22+
{
23+
"internalType": "uint64",
24+
"name": "originalCommitmentSequenceNumber",
25+
"type": "uint64"
26+
},
27+
{
28+
"internalType": "bytes",
29+
"name": "commitmentMetadata",
30+
"type": "bytes"
31+
},
32+
{
33+
"internalType": "bytes",
34+
"name": "uri",
35+
"type": "bytes"
36+
},
37+
{
38+
"internalType": "uint64",
39+
"name": "endSequenceNumber",
40+
"type": "uint64"
41+
},
42+
{
43+
"internalType": "uint64",
44+
"name": "sequenceNumber",
45+
"type": "uint64"
46+
},
47+
{
48+
"internalType": "bytes32",
49+
"name": "currentCommitment",
50+
"type": "bytes32"
51+
},
52+
{
53+
"internalType": "uint64",
54+
"name": "currentCommitmentSequenceNumber",
55+
"type": "uint64"
56+
}
57+
],
58+
"indexed": false,
59+
"internalType": "struct EntropyStructs.ProviderInfo",
60+
"name": "provider",
61+
"type": "tuple"
62+
}
63+
],
64+
"name": "Registered",
65+
"type": "event"
66+
},
67+
{
68+
"anonymous": false,
69+
"inputs": [
70+
{
71+
"components": [
72+
{
73+
"internalType": "address",
74+
"name": "provider",
75+
"type": "address"
76+
},
77+
{
78+
"internalType": "uint64",
79+
"name": "sequenceNumber",
80+
"type": "uint64"
81+
},
82+
{
83+
"internalType": "uint32",
84+
"name": "numHashes",
85+
"type": "uint32"
86+
},
87+
{
88+
"internalType": "bytes32",
89+
"name": "commitment",
90+
"type": "bytes32"
91+
},
92+
{
93+
"internalType": "uint64",
94+
"name": "blockNumber",
95+
"type": "uint64"
96+
},
97+
{
98+
"internalType": "address",
99+
"name": "requester",
100+
"type": "address"
101+
},
102+
{
103+
"internalType": "bool",
104+
"name": "useBlockhash",
105+
"type": "bool"
106+
}
107+
],
108+
"indexed": false,
109+
"internalType": "struct EntropyStructs.Request",
110+
"name": "request",
111+
"type": "tuple"
112+
}
113+
],
114+
"name": "Requested",
115+
"type": "event"
116+
},
117+
{
118+
"anonymous": false,
119+
"inputs": [
120+
{
121+
"components": [
122+
{
123+
"internalType": "address",
124+
"name": "provider",
125+
"type": "address"
126+
},
127+
{
128+
"internalType": "uint64",
129+
"name": "sequenceNumber",
130+
"type": "uint64"
131+
},
132+
{
133+
"internalType": "uint32",
134+
"name": "numHashes",
135+
"type": "uint32"
136+
},
137+
{
138+
"internalType": "bytes32",
139+
"name": "commitment",
140+
"type": "bytes32"
141+
},
142+
{
143+
"internalType": "uint64",
144+
"name": "blockNumber",
145+
"type": "uint64"
146+
},
147+
{
148+
"internalType": "address",
149+
"name": "requester",
150+
"type": "address"
151+
},
152+
{
153+
"internalType": "bool",
154+
"name": "useBlockhash",
155+
"type": "bool"
156+
}
157+
],
158+
"indexed": false,
159+
"internalType": "struct EntropyStructs.Request",
160+
"name": "request",
161+
"type": "tuple"
162+
},
163+
{
164+
"indexed": false,
165+
"internalType": "bytes32",
166+
"name": "userRevelation",
167+
"type": "bytes32"
168+
},
169+
{
170+
"indexed": false,
171+
"internalType": "bytes32",
172+
"name": "providerRevelation",
173+
"type": "bytes32"
174+
},
175+
{
176+
"indexed": false,
177+
"internalType": "bytes32",
178+
"name": "blockHash",
179+
"type": "bytes32"
180+
},
181+
{
182+
"indexed": false,
183+
"internalType": "bytes32",
184+
"name": "randomNumber",
185+
"type": "bytes32"
186+
}
187+
],
188+
"name": "Revealed",
189+
"type": "event"
190+
}
191+
]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]

0 commit comments

Comments
 (0)