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 84532-andromeda #79

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 84532-andromeda/AllErrors.json
Original file line number Diff line number Diff line change
Expand Up @@ -1619,5 +1619,25 @@
"name": "addr"
}
]
},
{
"type": "error",
"name": "FeeRequired",
"inputs": [
{
"type": "uint256",
"name": "amount"
}
]
},
{
"type": "error",
"name": "NotSupported",
"inputs": [
{
"type": "uint8",
"name": "updateType"
}
]
}
]
4 changes: 3 additions & 1 deletion 84532-andromeda/AllErrors.readable.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,7 @@
"error InvalidParameter(string parameter, string reason)",
"error NotEnoughBalance(uint256 amountRequested, uint256 currentBalance)",
"error NotEnoughRewardsLeft(uint256 amountRequested, uint256 amountLeft)",
"error Unauthorized(address addr)"
"error Unauthorized(address addr)",
"error FeeRequired(uint256 amount)",
"error NotSupported(uint8 updateType)"
]
140 changes: 140 additions & 0 deletions 84532-andromeda/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 84532-andromeda/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