diff --git a/abi/BlockSpecimenProofChainContractABI b/abi/BlockSpecimenProofChainContractABI index 8d12ac8..53c54a5 100644 --- a/abi/BlockSpecimenProofChainContractABI +++ b/abi/BlockSpecimenProofChainContractABI @@ -50,12 +50,6 @@ "internalType": "string", "name": "storageURL", "type": "string" - }, - { - "indexed": false, - "internalType": "uint128", - "name": "submittedStake", - "type": "uint128" } ], "name": "BlockSpecimenProductionProofSubmitted", @@ -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" }, { @@ -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", @@ -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" }, { @@ -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" @@ -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" @@ -572,7 +526,7 @@ "type": "uint64" } ], - "name": "finalizeAndRewardSpecimenSession", + "name": "finalizeResultSession", "outputs": [], "stateMutability": "nonpayable", "type": "function" @@ -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" }, { @@ -747,7 +720,7 @@ }, { "internalType": "address", - "name": "stakingContract", + "name": "stakingManager", "type": "address" } ], @@ -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": [ { @@ -882,19 +874,6 @@ "stateMutability": "nonpayable", "type": "function" }, - { - "inputs": [ - { - "internalType": "uint128", - "name": "newStakeAmount", - "type": "uint128" - } - ], - "name": "setBSPRequiredStake", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, { "inputs": [ { @@ -1046,11 +1025,11 @@ "inputs": [ { "internalType": "address", - "name": "stakingContractAddress", + "name": "stakingManagerAddress", "type": "address" } ], - "name": "setStakingInterface", + "name": "setStakingManagerAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" @@ -1120,4 +1099,4 @@ "stateMutability": "view", "type": "function" } -] \ No newline at end of file +]