IHomeGateway
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
Name | Type | Description |
---|---|---|
_params | RelayCreateDisputeParams | The 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
Name | Type | Description |
---|---|---|
_disputeHash | bytes32 | dispute hash |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | disputeID 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;
}