Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5 from covalenthq/network/moonbase-alpha
Browse files Browse the repository at this point in the history
Network/moonbase-alpha @noslav
  • Loading branch information
noslav authored Mar 15, 2023
2 parents 32abe1d + cf91411 commit 24617c8
Show file tree
Hide file tree
Showing 6 changed files with 252 additions and 112 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,4 @@ last_block_id
.envrc_cqt
.envrc_moonbeam
.envrc_moonbase

temp/
242 changes: 147 additions & 95 deletions abi/ProofChainContractABI
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,11 @@
{
"indexed": false,
"internalType": "uint64",
"name": "newMaxNumberOfHashesPer24H",
"name": "threshold",
"type": "uint64"
}
],
"name": "BlockSpecimenMaxNumberOfHashesPer24HChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint128",
"name": "newBlockSpecimenMinSubmissionsRequired",
"type": "uint128"
}
],
"name": "BlockSpecimenMinSubmissionRequiredChanged",
"name": "BlockHeightSubmissionThresholdChanged",
"type": "event"
},
{
Expand Down Expand Up @@ -118,6 +105,50 @@
"name": "BlockSpecimenRewardChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint64",
"name": "chainId",
"type": "uint64"
},
{
"indexed": false,
"internalType": "uint256",
"name": "blockOnTargetChain",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "blockOnCurrentChain",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "secondsPerBlock",
"type": "uint256"
}
],
"name": "ChainSyncDataChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint8",
"name": "version",
"type": "uint8"
}
],
"name": "Initialized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -163,19 +194,6 @@
"name": "NthBlockChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint64",
"name": "numberOfBlocks",
"type": "uint64"
}
],
"name": "NumberOfBlocksPer24HChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -278,6 +296,19 @@
"name": "QuorumNotReached",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint64",
"name": "secondsPerBlock",
"type": "uint64"
}
],
"name": "SecondsPerBlockChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -429,11 +460,11 @@
"inputs": [
{
"internalType": "address",
"name": "governer",
"name": "governor",
"type": "address"
}
],
"name": "addGoverner",
"name": "addGovernor",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand Down Expand Up @@ -557,7 +588,7 @@
},
{
"internalType": "address[]",
"name": "__governers",
"name": "__governors",
"type": "address[]"
},
{
Expand Down Expand Up @@ -588,23 +619,57 @@
"type": "function"
},
{
"inputs": [],
"name": "getMetadata",
"inputs": [
{
"internalType": "uint64",
"name": "chainId",
"type": "uint64"
}
],
"name": "getChainData",
"outputs": [
{
"internalType": "address",
"name": "stakingInterface",
"type": "address"
"internalType": "uint256",
"name": "blockOnTargetChain",
"type": "uint256"
},
{
"internalType": "uint64",
"name": "numberOfBlocksPer24H",
"type": "uint64"
"internalType": "uint256",
"name": "blockOnCurrentChain",
"type": "uint256"
},
{
"internalType": "uint64",
"internalType": "uint256",
"name": "secondsPerBlock",
"type": "uint256"
},
{
"internalType": "uint128",
"name": "allowedThreshold",
"type": "uint128"
},
{
"internalType": "uint128",
"name": "maxSubmissionsPerBlockHeight",
"type": "uint128"
},
{
"internalType": "uint64",
"name": "nthBlock",
"type": "uint64"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getMetadata",
"outputs": [
{
"internalType": "address",
"name": "stakingInterface",
"type": "address"
},
{
"internalType": "uint128",
Expand All @@ -625,6 +690,11 @@
"internalType": "uint256",
"name": "blockSpecimenQuorum",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "secondsPerBlock",
"type": "uint256"
}
],
"stateMutability": "view",
Expand Down Expand Up @@ -686,44 +756,6 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "",
"type": "uint64"
}
],
"name": "maxNumberOfHashesPer24H",
"outputs": [
{
"internalType": "uint64",
"name": "",
"type": "uint64"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "",
"type": "uint64"
}
],
"name": "nthBlock",
"outputs": [
{
"internalType": "uint64",
"name": "",
"type": "uint64"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -786,11 +818,11 @@
"inputs": [
{
"internalType": "address",
"name": "governer",
"name": "governor",
"type": "address"
}
],
"name": "removeGoverner",
"name": "removeGovernor",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand Down Expand Up @@ -819,11 +851,16 @@
"inputs": [
{
"internalType": "uint64",
"name": "minSubmissions",
"name": "chainId",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "threshold",
"type": "uint64"
}
],
"name": "setBlockSpecimenMinSubmissionRequired",
"name": "setBlockHeightSubmissionsThreshold",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand Down Expand Up @@ -862,18 +899,33 @@
"type": "uint64"
},
{
"internalType": "uint64",
"name": "maxSubmissions",
"type": "uint64"
"internalType": "uint256",
"name": "blockOnTargetChain",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "blockOnCurrentChain",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "secondsPerBlock",
"type": "uint256"
}
],
"name": "setMaxNumberOfHashesPer24H",
"name": "setChainSyncData",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "chainId",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "maxSubmissions",
Expand Down Expand Up @@ -919,25 +971,25 @@
{
"inputs": [
{
"internalType": "uint64",
"name": "numberOfBlocks",
"type": "uint64"
"internalType": "uint256",
"name": "quorum",
"type": "uint256"
}
],
"name": "setNumberOfBlocksPer24H",
"name": "setQuorumThreshold",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "quorum",
"type": "uint256"
"internalType": "uint64",
"name": "secondsPerBlock",
"type": "uint64"
}
],
"name": "setQuorumThreshold",
"name": "setSecondsPerBlock",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand Down Expand Up @@ -1020,4 +1072,4 @@
"stateMutability": "view",
"type": "function"
}
]
]
Loading

0 comments on commit 24617c8

Please sign in to comment.