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

Commit

Permalink
update bsp pc contract abi
Browse files Browse the repository at this point in the history
Signed-off-by: Pranay Valson <pranay.valson@gmail.com>
  • Loading branch information
noslav committed Dec 14, 2023
1 parent 93cf97b commit f37825f
Showing 1 changed file with 98 additions and 119 deletions.
217 changes: 98 additions & 119 deletions abi/BlockSpecimenProofChainContractABI
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": "blockSpecimenHash",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "specimenhash",
"name": "resulthash",
"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": "finalizeResultSession",
"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 @@ -747,7 +720,7 @@
},
{
"internalType": "address",
"name": "stakingContract",
"name": "stakingManager",
"type": "address"
}
],
Expand Down Expand Up @@ -804,6 +777,25 @@
"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 @@ -882,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 @@ -1046,11 +1025,11 @@
"inputs": [
{
"internalType": "address",
"name": "stakingContractAddress",
"name": "stakingManagerAddress",
"type": "address"
}
],
"name": "setStakingInterface",
"name": "setStakingManagerAddress",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand Down Expand Up @@ -1120,4 +1099,4 @@
"stateMutability": "view",
"type": "function"
}
]
]

0 comments on commit f37825f

Please sign in to comment.