-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Evidence): evidence submission from the arbitration side
Required splitting the IEvidence interface into 2: the MetaEvidence and Dispute events have been moved to an IMetaEvidence interface which extends IEvidence. Because IMetaEvidence is relevant only to the Arbitrable side but not IEvidence.
- Loading branch information
Showing
7 changed files
with
59 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
pragma solidity ^0.8.0; | ||
|
||
import "../arbitration/IArbitrator.sol"; | ||
import "./IEvidence.sol"; | ||
|
||
/** @title IEvidence | ||
* ERC-1497: Evidence Standard | ||
*/ | ||
interface IMetaEvidence is IEvidence { | ||
/** | ||
* @dev To be emitted when meta-evidence is submitted. | ||
* @param _metaEvidenceID Unique identifier of meta-evidence. | ||
* @param _evidence IPFS path to metaevidence, example: '/ipfs/Qmarwkf7C9RuzDEJNnarT3WZ7kem5bk8DZAzx78acJjMFH/metaevidence.json' | ||
*/ | ||
event MetaEvidence(uint256 indexed _metaEvidenceID, string _evidence); | ||
|
||
/** | ||
* @dev To be emitted when a dispute is created to link the correct meta-evidence to the disputeID. | ||
* @param _arbitrator The arbitrator of the contract. | ||
* @param _disputeID ID of the dispute in the Arbitrator contract. | ||
* @param _metaEvidenceID Unique identifier of meta-evidence. | ||
* @param _evidenceGroupID Unique identifier of the evidence group that is linked to this dispute. | ||
*/ | ||
event Dispute( | ||
IArbitrator indexed _arbitrator, | ||
uint256 indexed _disputeID, | ||
uint256 _metaEvidenceID, | ||
uint256 _evidenceGroupID | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters