Skip to content

Commit

Permalink
Oracle v2 (#150)
Browse files Browse the repository at this point in the history
* Add signcribe

* endline

* update oracle v2

* update network value

* update sspb

* test oracle

* update schema

* update block height

* Update oracle contract

* Update oracle contract

* Update start block for oracle

* update sart block for mainnets

* update address

* update index and code clean

* update chain name

* update start block

* update contract address

* update start block

* update oracle
  • Loading branch information
fewensa committed Feb 6, 2024
1 parent cb33e93 commit 117aed0
Show file tree
Hide file tree
Showing 26 changed files with 4,295 additions and 1,470 deletions.
94 changes: 66 additions & 28 deletions thegraph/packages/ormpipe/abis/OrmpOracle.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,50 @@
"name": "Assigned",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "blockHeight",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "messageRoot",
"type": "bytes32"
}
],
"name": "ImportedMessageRoot",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -56,31 +100,31 @@
},
{
"indexed": false,
"internalType": "address",
"name": "dapi",
"type": "address"
"internalType": "uint256",
"name": "fee",
"type": "uint256"
}
],
"name": "SetDapi",
"name": "SetFee",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "fee",
"name": "amt",
"type": "uint256"
}
],
"name": "SetFee",
"name": "Withdrawal",
"type": "event"
},
{
Expand Down Expand Up @@ -108,20 +152,13 @@
},
{
"inputs": [
{ "internalType": "address", "name": "owner_", "type": "address" }
{ "internalType": "address", "name": "newOwner", "type": "address" }
],
"name": "changeOwner",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"name": "dapiOf",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "toChainId", "type": "uint256" },
Expand All @@ -139,6 +176,17 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "chainId", "type": "uint256" },
{ "internalType": "uint256", "name": "blockNumber", "type": "uint256" },
{ "internalType": "bytes32", "name": "messageRoot", "type": "bytes32" }
],
"name": "importMessageRoot",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "operator", "type": "address" }
Expand All @@ -151,7 +199,7 @@
{
"inputs": [
{ "internalType": "uint256", "name": "chainId", "type": "uint256" },
{ "internalType": "uint256", "name": "", "type": "uint256" }
{ "internalType": "uint256", "name": "blockNumber", "type": "uint256" }
],
"name": "merkleRoot",
"outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
Expand All @@ -175,16 +223,6 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "chainId", "type": "uint256" },
{ "internalType": "address", "name": "dapi", "type": "address" }
],
"name": "setDapi",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "chainId", "type": "uint256" },
Expand Down
Loading

0 comments on commit 117aed0

Please sign in to comment.