Skip to content

Commit

Permalink
feat(relay): Add script that msgs a discord channel if a contract is …
Browse files Browse the repository at this point in the history
…not updating
  • Loading branch information
kkirkov committed Sep 11, 2024
1 parent 77b0bff commit 69234ee
Show file tree
Hide file tree
Showing 2 changed files with 495 additions and 180 deletions.
367 changes: 367 additions & 0 deletions relay/contractAbi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,367 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "dendrETHAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "sourceChainId",
"type": "uint256"
},
{
"internalType": "address",
"name": "sourceYaho",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "blockNumber",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "blockHash",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "storedBlockHash",
"type": "bytes32"
}
],
"name": "ConflictingBlockHeader",
"type": "error"
},
{
"inputs": [],
"name": "ErrorParseReceipt",
"type": "error"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "finalizedHeader",
"type": "bytes32"
}
],
"name": "FinalizedBlockHeaderNotAvailable",
"type": "error"
},
{
"inputs": [],
"name": "InvalidBlockHashProof",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "length",
"type": "uint256"
}
],
"name": "InvalidBlockHeaderLength",
"type": "error"
},
{
"inputs": [],
"name": "InvalidBlockHeaderRLP",
"type": "error"
},
{
"inputs": [],
"name": "InvalidBlockNumberProof",
"type": "error"
},
{
"inputs": [],
"name": "InvalidEventSignature",
"type": "error"
},
{
"inputs": [],
"name": "InvalidEventSource",
"type": "error"
},
{
"inputs": [],
"name": "InvalidReceiptsRoot",
"type": "error"
},
{
"inputs": [],
"name": "InvalidSlot",
"type": "error"
},
{
"inputs": [],
"name": "UnsupportedTxType",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "hash",
"type": "bytes32"
}
],
"name": "HashStored",
"type": "event"
},
{
"inputs": [],
"name": "DENDRETH_ADDRESS",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "SOURCE_CHAIN_ID",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "SOURCE_YAHO",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "domain",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
}
],
"name": "getHash",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
},
{
"internalType": "bytes[]",
"name": "blockHeaders",
"type": "bytes[]"
}
],
"name": "proveAncestralBlockHashes",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "finalizedBlockHeader",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "blockNumber",
"type": "uint256"
},
{
"internalType": "bytes32[]",
"name": "blockNumberProof",
"type": "bytes32[]"
},
{
"internalType": "bytes32",
"name": "blockHash",
"type": "bytes32"
},
{
"internalType": "bytes32[]",
"name": "blockHashProof",
"type": "bytes32[]"
}
],
"name": "storeBlockHeader",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "blockNumber",
"type": "uint256"
},
{
"internalType": "bytes32[]",
"name": "blockNumberProof",
"type": "bytes32[]"
},
{
"internalType": "bytes32",
"name": "blockHash",
"type": "bytes32"
},
{
"internalType": "bytes32[]",
"name": "blockHashProof",
"type": "bytes32[]"
},
{
"components": [
{
"internalType": "bytes32",
"name": "attestedHeaderRoot",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "attestedHeaderSlot",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "finalizedHeaderRoot",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "finalizedExecutionStateRoot",
"type": "bytes32"
},
{
"internalType": "uint256[2]",
"name": "a",
"type": "uint256[2]"
},
{
"internalType": "uint256[2][2]",
"name": "b",
"type": "uint256[2][2]"
},
{
"internalType": "uint256[2]",
"name": "c",
"type": "uint256[2]"
}
],
"internalType": "struct LightClientUpdate",
"name": "update",
"type": "tuple"
}
],
"name": "storeBlockHeader",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "srcFinalizedHeader",
"type": "bytes32"
},
{
"internalType": "uint64",
"name": "srcSlot",
"type": "uint64"
},
{
"internalType": "bytes32[]",
"name": "slotProof",
"type": "bytes32[]"
},
{
"internalType": "uint64",
"name": "txSlot",
"type": "uint64"
},
{
"internalType": "bytes32[]",
"name": "receiptsRootProof",
"type": "bytes32[]"
},
{
"internalType": "bytes32",
"name": "receiptsRoot",
"type": "bytes32"
},
{
"internalType": "bytes[]",
"name": "receiptProof",
"type": "bytes[]"
},
{
"internalType": "bytes",
"name": "txIndexRLPEncoded",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "logIndex",
"type": "uint256"
}
],
"name": "verifyAndStoreDispatchedMessage",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
Loading

0 comments on commit 69234ee

Please sign in to comment.