IHomeGateway

Git Source

Inherits: IArbitrableV2, ISenderGateway

Functions

relayCreateDispute

Provide the same parameters as on the foreignChain while creating a dispute. Providing incorrect parameters will create a different hash than on the foreignChain and will not affect the actual dispute/arbitrable's ruling.

function relayCreateDispute(RelayCreateDisputeParams memory _params) external payable;

Parameters

NameTypeDescription
_paramsRelayCreateDisputeParamsThe parameters of the dispute, see RelayCreateDisputeParams.

disputeHashToHomeID

Looks up the local home disputeID for a disputeHash.

function disputeHashToHomeID(bytes32 _disputeHash) external view returns (uint256);

Parameters

NameTypeDescription
_disputeHashbytes32dispute hash

Returns

NameTypeDescription
<none>uint256disputeID dispute identifier on the home chain

Events

CrossChainDisputeIncoming

To be emitted when a dispute is received from the IForeignGateway.

event CrossChainDisputeIncoming(
    IArbitratorV2 indexed _arbitrator,
    uint256 _arbitrableChainId,
    address indexed _arbitrable,
    uint256 indexed _arbitrableDisputeID,
    uint256 _externalDisputeID,
    uint256 _templateId,
    string _templateUri
);

Structs

RelayCreateDisputeParams

struct RelayCreateDisputeParams {
    bytes32 foreignBlockHash;
    uint256 foreignChainID;
    address foreignArbitrable;
    uint256 foreignDisputeID;
    uint256 externalDisputeID;
    uint256 templateId;
    string templateUri;
    uint256 choices;
    bytes extraData;
}