Skip to content

Commit 01b54d2

Browse files
authored
Add PythErrors abi (#827)
* add error abis * add to script too
1 parent 5a75653 commit 01b54d2

File tree

2 files changed

+74
-1
lines changed

2 files changed

+74
-1
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
[
2+
{
3+
"inputs": [],
4+
"name": "InsufficientFee",
5+
"type": "error"
6+
},
7+
{
8+
"inputs": [],
9+
"name": "InvalidArgument",
10+
"type": "error"
11+
},
12+
{
13+
"inputs": [],
14+
"name": "InvalidGovernanceDataSource",
15+
"type": "error"
16+
},
17+
{
18+
"inputs": [],
19+
"name": "InvalidGovernanceMessage",
20+
"type": "error"
21+
},
22+
{
23+
"inputs": [],
24+
"name": "InvalidGovernanceTarget",
25+
"type": "error"
26+
},
27+
{
28+
"inputs": [],
29+
"name": "InvalidUpdateData",
30+
"type": "error"
31+
},
32+
{
33+
"inputs": [],
34+
"name": "InvalidUpdateDataSource",
35+
"type": "error"
36+
},
37+
{
38+
"inputs": [],
39+
"name": "InvalidWormholeVaa",
40+
"type": "error"
41+
},
42+
{
43+
"inputs": [],
44+
"name": "NoFreshUpdate",
45+
"type": "error"
46+
},
47+
{
48+
"inputs": [],
49+
"name": "OldGovernanceMessage",
50+
"type": "error"
51+
},
52+
{
53+
"inputs": [],
54+
"name": "PriceFeedNotFound",
55+
"type": "error"
56+
},
57+
{
58+
"inputs": [],
59+
"name": "PriceFeedNotFoundWithinRange",
60+
"type": "error"
61+
},
62+
{
63+
"inputs": [],
64+
"name": "StalePrice",
65+
"type": "error"
66+
}
67+
]

target_chains/ethereum/sdk/solidity/scripts/generateAbi.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ const fs = require("fs");
22
const solc = require("solc");
33

44
// Assuming each contract is in the file with the same name.
5-
var contracts = ["IPyth", "IPythEvents", "AbstractPyth", "MockPyth"];
5+
var contracts = [
6+
"IPyth",
7+
"IPythEvents",
8+
"AbstractPyth",
9+
"MockPyth",
10+
"PythErrors",
11+
];
612

713
var sources = {};
814
var outputSelection = {};

0 commit comments

Comments
 (0)