IForeignGateway
Inherits: IArbitrator, IReceiverGateway
Functions
createDisputeERC20
Create a dispute with the fees paid in the ERC20 token specified by feeToken()
. Must be called by the arbitrable contract.
Must pay at least arbitrationCost(_extraData).
function createDisputeERC20(uint256 _choices, bytes calldata _extraData, uint256 _amount)
external
returns (uint256 disputeID);
Parameters
Name | Type | Description |
---|---|---|
_choices | uint256 | Amount of choices the arbitrator can make in this dispute. |
_extraData | bytes | Can be used to give additional info on the dispute to be created. |
_amount | uint256 | Amount of ERC20 token that will be paid. |
Returns
Name | Type | Description |
---|---|---|
disputeID | uint256 | ID of the dispute created. |
relayRule
Relay the rule call from the home gateway to the arbitrable.
function relayRule(address _messageSender, bytes32 _disputeHash, uint256 _ruling, address _forwarder) external;
withdrawFees
Reimburses the dispute fees to the relayer who paid for these fees on the home chain.
function withdrawFees(bytes32 _disputeHash) external;
Parameters
Name | Type | Description |
---|---|---|
_disputeHash | bytes32 | The dispute hash for which to withdraw the fees. |
disputeHashToForeignID
Looks up the local foreign disputeID for a disputeHash
function disputeHashToForeignID(bytes32 _disputeHash) external view returns (uint256);
Parameters
Name | Type | Description |
---|---|---|
_disputeHash | bytes32 | dispute hash |
feeToken
function feeToken() external view returns (IERC20);
Returns
Name | Type | Description |
---|---|---|
<none> | IERC20 | The ERC20 token used for the fees. |
homeChainID
function homeChainID() external view returns (uint256);
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | The chain ID where the corresponding home gateway is deployed. |
homeGateway
function homeGateway() external view returns (address);
Returns
Name | Type | Description |
---|---|---|
<none> | address | The address of the corresponding home gateway. |