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
Name | Type | Description |
---|---|---|
caller | address | Address of the caller |
data | bytes | The 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
Name | Type | Description |
---|---|---|
disputeId | uint256 | The dispute id |
decision | bool | The decision of the dispute |
data | bytes | The 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
Name | Type | Description |
---|---|---|
caller | address | Address of the caller |
disputeId | uint256 | The dispute id |
data | bytes | The 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.
Updated 2 months ago