Skip to content

Commit

Permalink
Merge pull request #228 from covalenthq/abi_refresh
Browse files Browse the repository at this point in the history
update proofchain abi and bindings
  • Loading branch information
sudeepdino008 authored Jan 17, 2024
2 parents 1532c39 + 96a341a commit a61d251
Show file tree
Hide file tree
Showing 2 changed files with 744 additions and 670 deletions.
263 changes: 145 additions & 118 deletions internal/proof/proofchain.abi
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@
"internalType": "string",
"name": "storageURL",
"type": "string"
},
{
"indexed": false,
"internalType": "uint128",
"name": "submittedStake",
"type": "uint128"
}
],
"name": "BlockSpecimenProductionProofSubmitted",
Expand All @@ -76,20 +70,26 @@
"name": "blockHeight",
"type": "uint64"
},
{
"indexed": false,
"internalType": "uint256",
"name": "validatorBitMap",
"type": "uint256"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "blockhash",
"name": "blockHash",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "specimenhash",
"name": "specimenHash",
"type": "bytes32"
}
],
"name": "BlockSpecimenRewardAwarded",
"name": "BlockSpecimenQuorum",
"type": "event"
},
{
Expand Down Expand Up @@ -227,32 +227,24 @@
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "OperatorDisabled",
"type": "event"
},
{
"anonymous": false,
"inputs": [
},
{
"indexed": false,
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "OperatorEnabled",
"type": "event"
},
{
"anonymous": false,
"inputs": [
"internalType": "uint128",
"name": "validatorId",
"type": "uint128"
},
{
"indexed": false,
"internalType": "address",
"name": "operator",
"type": "address"
"internalType": "uint128",
"name": "activeOperatorCount",
"type": "uint128"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"name": "OperatorRemoved",
Expand Down Expand Up @@ -379,11 +371,37 @@
{
"indexed": false,
"internalType": "address",
"name": "newInterfaceAddress",
"name": "newStakingManager",
"type": "address"
}
],
"name": "StakingInterfaceChanged",
"name": "StakingManagerChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint128",
"name": "validatorId",
"type": "uint128"
}
],
"name": "ValidatorDisabled",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint128",
"name": "validatorId",
"type": "uint128"
}
],
"name": "ValidatorEnabled",
"type": "event"
},
{
Expand Down Expand Up @@ -471,59 +489,13 @@
},
{
"inputs": [
{
"internalType": "address",
"name": "validator",
"type": "address"
},
{
"internalType": "uint128",
"name": "commissionRate",
"name": "validatorId",
"type": "uint128"
}
],
"name": "addValidator",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "chainId",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "blockHeight",
"type": "uint64"
},
{
"internalType": "bytes32",
"name": "blockHash",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "definitiveSpecimenHash",
"type": "bytes32"
}
],
"name": "arbitrateBlockSpecimenSession",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "disableBSPOperator",
"name": "disableValidator",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand All @@ -534,27 +506,9 @@
"internalType": "uint128",
"name": "validatorId",
"type": "uint128"
},
{
"internalType": "uint256",
"name": "blockNumber",
"type": "uint256"
}
],
"name": "disableValidator",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "enableBSPOperator",
"name": "enableValidator",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand All @@ -572,7 +526,7 @@
"type": "uint64"
}
],
"name": "finalizeAndRewardSpecimenSession",
"name": "finalizeSpecimenSession",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand Down Expand Up @@ -662,13 +616,32 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint128",
"name": "validatorId",
"type": "uint128"
}
],
"name": "getEnabledOperatorCount",
"outputs": [
{
"internalType": "uint128",
"name": "",
"type": "uint128"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getMetadata",
"outputs": [
{
"internalType": "address",
"name": "stakingInterface",
"name": "stakingManager",
"type": "address"
},
{
Expand Down Expand Up @@ -719,6 +692,25 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "specimenhash",
"type": "bytes32"
}
],
"name": "getURLS",
"outputs": [
{
"internalType": "string[]",
"name": "",
"type": "string[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand All @@ -728,7 +720,7 @@
},
{
"internalType": "address",
"name": "stakingContract",
"name": "stakingManager",
"type": "address"
}
],
Expand Down Expand Up @@ -756,6 +748,54 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "chainId",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "blockHeight",
"type": "uint64"
},
{
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "isSessionOpen",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint128",
"name": "validatorId",
"type": "uint128"
}
],
"name": "isValidatorEnabled",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -834,19 +874,6 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint128",
"name": "newStakeAmount",
"type": "uint128"
}
],
"name": "setBSPRequiredStake",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -998,11 +1025,11 @@
"inputs": [
{
"internalType": "address",
"name": "stakingContractAddress",
"name": "stakingManagerAddress",
"type": "address"
}
],
"name": "setStakingInterface",
"name": "setStakingManagerAddress",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand Down
Loading

0 comments on commit a61d251

Please sign in to comment.