Add PythErrors abi (#827)

* add error abis

* add to script too
This commit is contained in:
Jayant Krishnamurthy 2023-05-23 07:13:01 -07:00 committed by GitHub
parent 5a75653969
commit 01b54d2c58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 74 additions and 1 deletions

View File

@ -0,0 +1,67 @@
[
{
"inputs": [],
"name": "InsufficientFee",
"type": "error"
},
{
"inputs": [],
"name": "InvalidArgument",
"type": "error"
},
{
"inputs": [],
"name": "InvalidGovernanceDataSource",
"type": "error"
},
{
"inputs": [],
"name": "InvalidGovernanceMessage",
"type": "error"
},
{
"inputs": [],
"name": "InvalidGovernanceTarget",
"type": "error"
},
{
"inputs": [],
"name": "InvalidUpdateData",
"type": "error"
},
{
"inputs": [],
"name": "InvalidUpdateDataSource",
"type": "error"
},
{
"inputs": [],
"name": "InvalidWormholeVaa",
"type": "error"
},
{
"inputs": [],
"name": "NoFreshUpdate",
"type": "error"
},
{
"inputs": [],
"name": "OldGovernanceMessage",
"type": "error"
},
{
"inputs": [],
"name": "PriceFeedNotFound",
"type": "error"
},
{
"inputs": [],
"name": "PriceFeedNotFoundWithinRange",
"type": "error"
},
{
"inputs": [],
"name": "StalePrice",
"type": "error"
}
]

View File

@ -2,7 +2,13 @@ const fs = require("fs");
const solc = require("solc");
// Assuming each contract is in the file with the same name.
var contracts = ["IPyth", "IPythEvents", "AbstractPyth", "MockPyth"];
var contracts = [
"IPyth",
"IPythEvents",
"AbstractPyth",
"MockPyth",
"PythErrors",
];
var sources = {};
var outputSelection = {};