IHomeGateway

Git Source

Inherits: IArbitrable, IMetaEvidence, 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(
    uint256 _foreignChainID,
    bytes32 _foreignBlockHash,
    uint256 _foreignDisputeID,
    uint256 _choices,
    bytes calldata _extraData,
    address _arbitrable
) external payable;

Parameters

NameTypeDescription
_foreignChainIDuint256foreignChainId
_foreignBlockHashbytes32foreignBlockHash
_foreignDisputeIDuint256foreignDisputeID
_choicesuint256number of ruling choices
_extraDatabytesextraData
_arbitrableaddressarbitrable

disputeHashToHomeID

Looks up the local home disputeID for a disputeHash

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

Parameters

NameTypeDescription
_disputeHashbytes32dispute hash

foreignChainID

function foreignChainID() external view returns (uint256);

Returns

NameTypeDescription
<none>uint256The chain ID where the corresponding foreign gateway is deployed.

foreignGateway

function foreignGateway() external view returns (address);

Returns

NameTypeDescription
<none>addressThe address of the corresponding foreign gateway.