ArbitrationPolicySP.sol

The Story Protocol arbitration policy is a simple policy that requires the dispute initiator to pay a fixed
amount of tokens to raise a dispute and refunds that amount if the dispute initiator wins the dispute.

DISPUTE_MODULE

address DISPUTE_MODULE

Returns the dispute module address

PAYMENT_TOKEN

address PAYMENT_TOKEN

Returns the payment token address

ARBITRATION_PRICE

uint256 ARBITRATION_PRICE

Returns the arbitration price

onlyDisputeModule

modifier onlyDisputeModule()

Restricts the calls to the DisputeModule

constructor

constructor(address _disputeModule, address _paymentToken, uint256 _arbitrationPrice, address _governable) public

onRaiseDispute

function onRaiseDispute(address caller, bytes data) external

Executes custom logic on raising dispute.

Enforced to be only callable by the DisputeModule.

Parameters

NameTypeDescription
calleraddressAddress of the caller
databytesThe arbitrary data used to raise the dispute

onDisputeJudgement

function onDisputeJudgement(uint256 disputeId, bool decision, bytes data) external

Executes custom logic on disputing judgement.

Enforced to be only callable by the DisputeModule.

Parameters

NameTypeDescription
disputeIduint256The dispute id
decisionboolThe decision of the dispute
databytesThe arbitrary data used to set the dispute judgement

onDisputeCancel

function onDisputeCancel(address caller, uint256 disputeId, bytes data) external

Executes custom logic on disputing cancel.

Enforced to be only callable by the DisputeModule.

Parameters

NameTypeDescription
calleraddressAddress of the caller
disputeIduint256The dispute id
databytesThe arbitrary data used to cancel the dispute

governanceWithdraw

function governanceWithdraw() external

Allows governance address to withdraw

Enforced to be only callable by the governance protocol admin.