@@ -475,7 +475,7 @@ contract DisputeManager is Managed, IDisputeManager {
475
475
uint256 _deposit ,
476
476
Attestation memory _attestation ,
477
477
bytes memory _attestationData
478
- ) internal returns (bytes32 ) {
478
+ ) private returns (bytes32 ) {
479
479
// Get the indexer that signed the attestation
480
480
address indexer = getAttestationIndexer (_attestation);
481
481
@@ -547,7 +547,7 @@ contract DisputeManager is Managed, IDisputeManager {
547
547
address _fisherman ,
548
548
uint256 _deposit ,
549
549
address _allocationID
550
- ) internal returns (bytes32 ) {
550
+ ) private returns (bytes32 ) {
551
551
// Create a disputeID
552
552
bytes32 disputeID = keccak256 (abi.encodePacked (_allocationID));
553
553
@@ -664,7 +664,7 @@ contract DisputeManager is Managed, IDisputeManager {
664
664
* @param _dispute Dispute
665
665
* @return True conflicting attestation dispute
666
666
*/
667
- function _isDisputeInConflict (Dispute memory _dispute ) internal pure returns (bool ) {
667
+ function _isDisputeInConflict (Dispute memory _dispute ) private pure returns (bool ) {
668
668
return _dispute.relatedDisputeID != 0 ;
669
669
}
670
670
@@ -673,7 +673,7 @@ contract DisputeManager is Managed, IDisputeManager {
673
673
* @param _dispute Dispute
674
674
* @return True if resolved
675
675
*/
676
- function _resolveDisputeInConflict (Dispute memory _dispute ) internal returns (bool ) {
676
+ function _resolveDisputeInConflict (Dispute memory _dispute ) private returns (bool ) {
677
677
if (_isDisputeInConflict (_dispute)) {
678
678
bytes32 relatedDisputeID = _dispute.relatedDisputeID;
679
679
delete disputes[relatedDisputeID];
@@ -686,7 +686,7 @@ contract DisputeManager is Managed, IDisputeManager {
686
686
* @dev Pull deposit from submitter account.
687
687
* @param _deposit Amount of tokens to deposit
688
688
*/
689
- function _pullSubmitterDeposit (uint256 _deposit ) internal {
689
+ function _pullSubmitterDeposit (uint256 _deposit ) private {
690
690
// Ensure that fisherman has staked at least the minimum amount
691
691
require (_deposit >= minimumDeposit, "Dispute deposit is under minimum required " );
692
692
@@ -704,7 +704,7 @@ contract DisputeManager is Managed, IDisputeManager {
704
704
* @param _challenger Address of the challenger
705
705
* @return Dispute reward tokens
706
706
*/
707
- function _slashIndexer (address _indexer , address _challenger ) internal returns (uint256 ) {
707
+ function _slashIndexer (address _indexer , address _challenger ) private returns (uint256 ) {
708
708
// Have staking contract slash the indexer and reward the fisherman
709
709
// Give the fisherman a reward equal to the fishermanRewardPercentage of slashed amount
710
710
uint256 tokensToSlash = getTokensToSlash (_indexer);
@@ -722,7 +722,7 @@ contract DisputeManager is Managed, IDisputeManager {
722
722
* @return Signer address
723
723
*/
724
724
function _recoverAttestationSigner (Attestation memory _attestation )
725
- internal
725
+ private
726
726
view
727
727
returns (address )
728
728
{
@@ -747,7 +747,7 @@ contract DisputeManager is Managed, IDisputeManager {
747
747
* @dev Get the running network chain ID
748
748
* @return The chain ID
749
749
*/
750
- function _getChainID () internal pure returns (uint256 ) {
750
+ function _getChainID () private pure returns (uint256 ) {
751
751
uint256 id;
752
752
assembly {
753
753
id := chainid ()
@@ -759,7 +759,7 @@ contract DisputeManager is Managed, IDisputeManager {
759
759
* @dev Parse the bytes attestation into a struct from `_data`.
760
760
* @return Attestation struct
761
761
*/
762
- function _parseAttestation (bytes memory _data ) internal pure returns (Attestation memory ) {
762
+ function _parseAttestation (bytes memory _data ) private pure returns (Attestation memory ) {
763
763
// Check attestation data length
764
764
require (_data.length == ATTESTATION_SIZE_BYTES, "Attestation must be 161 bytes long " );
765
765
@@ -782,7 +782,7 @@ contract DisputeManager is Managed, IDisputeManager {
782
782
* @dev Parse a uint8 from `_bytes` starting at offset `_start`.
783
783
* @return uint8 value
784
784
*/
785
- function _toUint8 (bytes memory _bytes , uint256 _start ) internal pure returns (uint8 ) {
785
+ function _toUint8 (bytes memory _bytes , uint256 _start ) private pure returns (uint8 ) {
786
786
require (_bytes.length >= (_start + UINT8_BYTE_LENGTH), "Bytes: out of bounds " );
787
787
uint8 tempUint;
788
788
@@ -797,7 +797,7 @@ contract DisputeManager is Managed, IDisputeManager {
797
797
* @dev Parse a bytes32 from `_bytes` starting at offset `_start`.
798
798
* @return bytes32 value
799
799
*/
800
- function _toBytes32 (bytes memory _bytes , uint256 _start ) internal pure returns (bytes32 ) {
800
+ function _toBytes32 (bytes memory _bytes , uint256 _start ) private pure returns (bytes32 ) {
801
801
require (_bytes.length >= (_start + BYTES32_BYTE_LENGTH), "Bytes: out of bounds " );
802
802
bytes32 tempBytes32;
803
803
0 commit comments