@opiumteam/opium-sdk-v2
Version:
one-stop-shop SDK to interact with the Opium-v2 protocol contracts, subgraphs and APIs
94 lines (93 loc) • 2.28 kB
JSON
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "_oracleId",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "_timestamp",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "_data",
"type": "uint256"
}
],
"name": "LogDataProvided",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "data",
"type": "uint256"
}
],
"name": "__callback",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "oracleId",
"type": "address"
},
{
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
}
],
"name": "getData",
"outputs": [
{
"internalType": "uint256",
"name": "dataResult",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "oracleId",
"type": "address"
},
{
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
}
],
"name": "hasData",
"outputs": [
{
"internalType": "bool",
"name": "result",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
]