Skip to content

Commit

Permalink
Merge pull request #12 from halo3mic/oracle
Browse files Browse the repository at this point in the history
Oracle
  • Loading branch information
halo3mic authored Feb 25, 2024
2 parents ea86839 + f54d7d6 commit 3c06204
Show file tree
Hide file tree
Showing 32 changed files with 3,062 additions and 36 deletions.
56 changes: 54 additions & 2 deletions abi/contracts/libraries/Suave.sol/Suave.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
},
{
"inputs": [],
"name": "ETHCALL",
"name": "ETHstaticcall",
"outputs": [
{
"internalType": "address",
Expand Down Expand Up @@ -158,6 +158,19 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "NEW_BUILDER",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "NEW_DATA_RECORD",
Expand All @@ -171,6 +184,19 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "PRIVATE_KEY_GEN",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "SIGN_ETH_TRANSACTION",
Expand All @@ -184,6 +210,19 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "SIGN_MESSAGE",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "SIMULATE_BUNDLE",
Expand All @@ -197,6 +236,19 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "SIMULATE_TRANSACTION",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "SUBMIT_BUNDLE_JSON_RPC",
Expand All @@ -212,7 +264,7 @@
},
{
"inputs": [],
"name": "SUBMIT_ETH_BLOCK_BID_TO_RELAY",
"name": "SUBMIT_ETH_BLOCK_TO_RELAY",
"outputs": [
{
"internalType": "address",
Expand Down
31 changes: 31 additions & 0 deletions abi/contracts/libraries/Transactions.sol/Transactions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[
{
"inputs": [
{
"internalType": "bytes",
"name": "signature",
"type": "bytes"
}
],
"name": "decodeSignature",
"outputs": [
{
"internalType": "uint8",
"name": "v",
"type": "uint8"
},
{
"internalType": "bytes32",
"name": "r",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "s",
"type": "bytes32"
}
],
"stateMutability": "pure",
"type": "function"
}
]
269 changes: 269 additions & 0 deletions abi/contracts/oracle/BinanceOracle.sol/BinanceOracle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,269 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"name": "PeekerReverted",
"type": "error"
},
{
"inputs": [
{
"internalType": "string",
"name": "message",
"type": "string"
}
],
"name": "SuaveError",
"type": "error"
},
{
"inputs": [
{
"internalType": "string",
"name": "message",
"type": "string"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "SuaveErrorWithData",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "ticker",
"type": "string"
},
{
"indexed": false,
"internalType": "uint256",
"name": "price",
"type": "uint256"
}
],
"name": "PriceSubmission",
"type": "event"
},
{
"stateMutability": "payable",
"type": "fallback"
},
{
"inputs": [],
"name": "DECIMALS",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "GOERLI_BUNDLE_ENDPOINT",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "GOERLI_CHAINID",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "GOERLI_CHAINID_STR",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "S_NAMESPACE",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "URL_PARTIAL",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "confidentialConstructor",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "Suave.DataId",
"name": "_pkBidId",
"type": "bytes16"
},
{
"internalType": "address",
"name": "pkAddress",
"type": "address"
}
],
"name": "confidentialConstructorCallback",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "controller",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "pkBidId",
"outputs": [
{
"internalType": "Suave.DataId",
"name": "",
"type": "bytes16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "ticker",
"type": "string"
},
{
"internalType": "uint256",
"name": "nonce",
"type": "uint256"
},
{
"internalType": "uint64",
"name": "settlementBlockNum",
"type": "uint64"
}
],
"name": "queryAndSubmit",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "ticker",
"type": "string"
},
{
"internalType": "uint256",
"name": "price",
"type": "uint256"
}
],
"name": "queryAndSubmitCallback",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "ticker",
"type": "string"
}
],
"name": "queryLatestPrice",
"outputs": [
{
"internalType": "uint256",
"name": "price",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
]
Loading

0 comments on commit 3c06204

Please sign in to comment.