Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
noslav authored Apr 24, 2024
2 parents 37b007b + 42125e1 commit c93ae09
Show file tree
Hide file tree
Showing 5 changed files with 126 additions and 153 deletions.
265 changes: 119 additions & 146 deletions abi/ProofChainABI.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@
"internalType": "string",
"name": "storageURL",
"type": "string"
},
{
"indexed": false,
"internalType": "uint128",
"name": "submittedStake",
"type": "uint128"
}
],
"name": "BlockSpecimenProductionProofSubmitted",
Expand All @@ -70,26 +76,20 @@
"name": "blockHeight",
"type": "uint64"
},
{
"indexed": false,
"internalType": "uint256",
"name": "validatorBitMap",
"type": "uint256"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "blockSpecimenHash",
"name": "blockhash",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "resulthash",
"name": "specimenhash",
"type": "bytes32"
}
],
"name": "BlockSpecimenQuorum",
"name": "BlockSpecimenRewardAwarded",
"type": "event"
},
{
Expand Down Expand Up @@ -227,24 +227,32 @@
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"indexed": false,
"internalType": "uint128",
"name": "validatorId",
"type": "uint128"
},
}
],
"name": "OperatorDisabled",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint128",
"name": "activeOperatorCount",
"type": "uint128"
},
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "OperatorEnabled",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "OperatorRemoved",
Expand Down Expand Up @@ -371,37 +379,11 @@
{
"indexed": false,
"internalType": "address",
"name": "newStakingManager",
"name": "newInterfaceAddress",
"type": "address"
}
],
"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",
"name": "StakingInterfaceChanged",
"type": "event"
},
{
Expand Down Expand Up @@ -489,13 +471,59 @@
},
{
"inputs": [
{
"internalType": "address",
"name": "validator",
"type": "address"
},
{
"internalType": "uint128",
"name": "validatorId",
"name": "commissionRate",
"type": "uint128"
}
],
"name": "disableValidator",
"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",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand All @@ -506,9 +534,27 @@
"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": "enableValidator",
"name": "enableBSPOperator",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand All @@ -526,7 +572,7 @@
"type": "uint64"
}
],
"name": "finalizeResultSession",
"name": "finalizeAndRewardSpecimenSession",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand Down Expand Up @@ -616,32 +662,13 @@
"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": "stakingManager",
"name": "stakingInterface",
"type": "address"
},
{
Expand Down Expand Up @@ -692,25 +719,6 @@
"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 @@ -720,7 +728,7 @@
},
{
"internalType": "address",
"name": "stakingManager",
"name": "stakingContract",
"type": "address"
}
],
Expand Down Expand Up @@ -748,54 +756,6 @@
"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 @@ -874,6 +834,19 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint128",
"name": "newStakeAmount",
"type": "uint128"
}
],
"name": "setBSPRequiredStake",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -1025,11 +998,11 @@
"inputs": [
{
"internalType": "address",
"name": "stakingManagerAddress",
"name": "stakingContractAddress",
"type": "address"
}
],
"name": "setStakingManagerAddress",
"name": "setStakingInterface",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand Down Expand Up @@ -1099,4 +1072,4 @@
"stateMutability": "view",
"type": "function"
}
]
]
Loading

0 comments on commit c93ae09

Please sign in to comment.