BaseDisputeKit

Git Source

Inherits: IDisputeKit

State Variables

governor

address public governor;

core

KlerosCore public core;

Functions

onlyByGovernor

modifier onlyByGovernor();

onlyByCore

modifier onlyByCore();

constructor

Constructor.

constructor(address _governor, KlerosCore _core);

Parameters

NameTypeDescription
_governoraddressThe governor's address.
_coreKlerosCoreThe KlerosCore arbitrator.

executeGovernorProposal

Allows the governor to call anything on behalf of the contract.

function executeGovernorProposal(address _destination, uint256 _amount, bytes memory _data) external onlyByGovernor;

Parameters

NameTypeDescription
_destinationaddressThe destination of the call.
_amountuint256The value sent with the call.
_databytesThe data sent with the call.

_postDrawCheck

Checks that the chosen address satisfies certain conditions for being drawn.

function _postDrawCheck(uint256 _coreDisputeID, address _juror) internal virtual returns (bool);

Parameters

NameTypeDescription
_coreDisputeIDuint256ID of the dispute in the core contract.
_juroraddressChosen address.

Returns

NameTypeDescription
<none>boolWhether the address can be drawn or not.