Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 421614-main #76

Merged
merged 1 commit into from
May 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions 421614-main/AllErrors.json
Original file line number Diff line number Diff line change
Expand Up @@ -1549,5 +1549,25 @@
"name": "shareRatioD18"
}
]
},
{
"type": "error",
"name": "FeeRequired",
"inputs": [
{
"type": "uint256",
"name": "amount"
}
]
},
{
"type": "error",
"name": "NotSupported",
"inputs": [
{
"type": "uint8",
"name": "updateType"
}
]
}
]
4 changes: 3 additions & 1 deletion 421614-main/AllErrors.readable.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,5 +145,7 @@
"error AcceptablePriceNotExceeded(uint256 fillPrice, uint256 acceptablePrice)",
"error NotEligibleForLiquidation(uint128 accountId)",
"error InvalidInterestRateParameters(uint128 lowUtilizationInterestRateGradient, uint128 highUtilizationInterestRateGradient)",
"error InvalidReferrerShareRatio(uint256 shareRatioD18)"
"error InvalidReferrerShareRatio(uint256 shareRatioD18)",
"error FeeRequired(uint256 amount)",
"error NotSupported(uint8 updateType)"
]
140 changes: 140 additions & 0 deletions 421614-main/PythERC7412Wrapper.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
[
{
"type": "constructor",
"payable": false,
"inputs": [
{
"type": "address",
"name": "_pythAddress"
}
]
},
{
"type": "error",
"name": "FeeRequired",
"inputs": [
{
"type": "uint256",
"name": "amount"
}
]
},
{
"type": "error",
"name": "NotSupported",
"inputs": [
{
"type": "uint8",
"name": "updateType"
}
]
},
{
"type": "error",
"name": "OracleDataRequired",
"inputs": [
{
"type": "address",
"name": "oracleContract"
},
{
"type": "bytes",
"name": "oracleQuery"
}
]
},
{
"type": "error",
"name": "OverflowInt256ToUint256",
"inputs": []
},
{
"type": "error",
"name": "OverflowUint256ToInt256",
"inputs": []
},
{
"type": "function",
"name": "fulfillOracleQuery",
"constant": false,
"stateMutability": "payable",
"payable": true,
"inputs": [
{
"type": "bytes",
"name": "signedOffchainData"
}
],
"outputs": []
},
{
"type": "function",
"name": "getBenchmarkPrice",
"constant": true,
"stateMutability": "view",
"payable": false,
"inputs": [
{
"type": "bytes32",
"name": "priceId"
},
{
"type": "uint64",
"name": "requestedTime"
}
],
"outputs": [
{
"type": "int256"
}
]
},
{
"type": "function",
"name": "getLatestPrice",
"constant": true,
"stateMutability": "view",
"payable": false,
"inputs": [
{
"type": "bytes32",
"name": "priceId"
},
{
"type": "uint256",
"name": "stalenessTolerance"
}
],
"outputs": [
{
"type": "int256"
}
]
},
{
"type": "function",
"name": "oracleId",
"constant": true,
"stateMutability": "pure",
"payable": false,
"inputs": [],
"outputs": [
{
"type": "bytes32"
}
]
},
{
"type": "function",
"name": "pythAddress",
"constant": true,
"stateMutability": "view",
"payable": false,
"inputs": [],
"outputs": [
{
"type": "address"
}
]
}
]
13 changes: 13 additions & 0 deletions 421614-main/PythERC7412Wrapper.readable.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
"constructor(address _pythAddress)",
"error FeeRequired(uint256 amount)",
"error NotSupported(uint8 updateType)",
"error OracleDataRequired(address oracleContract, bytes oracleQuery)",
"error OverflowInt256ToUint256()",
"error OverflowUint256ToInt256()",
"function fulfillOracleQuery(bytes signedOffchainData) payable",
"function getBenchmarkPrice(bytes32 priceId, uint64 requestedTime) view returns (int256)",
"function getLatestPrice(bytes32 priceId, uint256 stalenessTolerance) view returns (int256)",
"function oracleId() pure returns (bytes32)",
"function pythAddress() view returns (address)"
]
Loading