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
did:muport:QmS3RFQvU6xKyE4CQmYn7ExCYd3yvWxao9xs8zGwKmR8M9 |
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
/** | |
* @authors: [@n1c01a5] | |
* @reviewers: [] | |
* @auditors: [] | |
* @bounties: [] | |
* @deployments: [] | |
*/ | |
pragma solidity ^0.4.25; |
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
/** | |
* @authors: [@n1c01a5] | |
* @reviewers: [] | |
* @auditors: [] | |
* @bounties: [] | |
* @deployments: [] | |
*/ | |
pragma solidity ^0.4.25; |
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
pragma solidity ^0.4.25; | |
/** @title IArbitrable | |
* Arbitrable interface. | |
* When developing arbitrable contracts, we need to: | |
* -Define the action taken when a ruling is received by the contract. We should do so in executeRuling. | |
* -Allow dispute creation. For this a function must: | |
* -Call arbitrator.createDispute.value(_fee)(_choices,_extraData); | |
* -Create the event Dispute(_arbitrator,_disputeID,_rulingOptions); |
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
pragma solidity ^0.4.25; | |
/** @title IArbitrable | |
* Arbitrable interface. | |
* When developing arbitrable contracts, we need to: | |
* -Define the action taken when a ruling is received by the contract. We should do so in executeRuling. | |
* -Allow dispute creation. For this a function must: | |
* -Call arbitrator.createDispute.value(_fee)(_choices,_extraData); | |
* -Create the event Dispute(_arbitrator,_disputeID,_rulingOptions); |
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
pragma solidity >=0.4.22 <0.6.0; | |
contract Ballot { | |
struct Voter { | |
uint weight; | |
bool voted; | |
uint8 vote; | |
address delegate; | |
} | |
struct Proposal { |
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
// deploy on 0x8194c987cdc3e66d926b1f2f691b9d3ea93a3d7f | |
pragma solidity ^0.4.24; | |
interface IArbitrable { | |
event MetaEvidence(uint indexed _metaEvidenceID, string _evidence); | |
event Dispute(Arbitrator indexed _arbitrator, uint indexed _disputeID, uint _metaEvidenceID, uint _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
pragma solidity ^0.5.5; | |
contract Arbitrator { | |
enum DisputeStatus {Waiting, Appealable, Solved} | |
modifier requireArbitrationFee(bytes memory _extraData) { | |
require(msg.value >= arbitrationCost(_extraData), "Not enough ETH to cover arbitration costs."); | |
_; | |
} |
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
/* eslint-disable no-undef */ // Avoid the linter considering truffle elements as undef. | |
const { | |
expectThrow | |
} = require('openzeppelin-solidity/test/helpers/expectThrow') | |
const { | |
increaseTime | |
} = require('openzeppelin-solidity/test/helpers/increaseTime') | |
const ArbitrableTokenList = artifacts.require('./ArbitrableTokenList.sol') | |
const AppealableArbitrator = artifacts.require( |