diff --git a/.travis.yml b/.travis.yml
index 66fb85b7..e1d23750 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,27 +1,15 @@
-sudo: required
language: node_js
node_js:
- - "8"
+ - "v9.4.0"
cache:
directories:
- node_modules
-env:
- -
- - SOLIDITY_COVERAGE=true
- - SOLC_NIGHTLY=true
-matrix:
- fast_finish: true
- allow_failures:
- - env: SOLIDITY_COVERAGE=true
- - env: SOLC_NIGHTLY=true
-before_script:
- - truffle version
+ yarn: true
+install: yarn install --pure-lockfile
script:
- - npm test
-#notifications:
-# slack:
-# rooms:
-# - secure: uEhwUkuwJp5pBNh+VTEytPHz3FDKsnPrKO+8MTAKv5hKi4PCRoVhLv6pklr82HUpL6pvSvJbUPA0HVebOXA+MMSxdny/BHZTh2mtw5Y78l2Ad0svDTWuV2Lus2pmhYigRhT0Wo00/SRX9+pxm0kg4EIFJSTS+uR9G76x0l9NljpEGXrqxlDxjxoHBgk8Ciru2LHaLzX/utE3jlABts4Sb1F3wc2BwFkjd6BDCRTGAPhVJwwFk41ZfnmLVbgSNUyk46Cb38oG5oXHb0FI3d3jV/k1OUhRyFfmA2fLXRk0wavibW8TG1gGJJWZ7xTCKzw/Cvup6mpehSAeQef8eekMdjpWEhF9hYRq1BvOs0384UU8NQ0O+BtdXU+X3Nyr84TMJN/iIfgN7gYX7AsvXH3jC0JfNUcIkWlJvyXdE6l2GV1hMmhL09GFEBbSpuSXRIWlOXTcYBlp5NbvE8xO8PUW+T6N5RG2XXjv1g8wCpr6Wwk1+LmRkX5trv8MFBZ2pM8p4H5da5++Ov8egLonNGK2jbx6aBLBX3tPf+g70LZEkiQ4eBfZw8VIgXIvKreisicppNuCD27gNmSEPNt0NkwiEBcTCJ9GSVAO0CU2g4ggvHDX2A+RW5XPET9bGkBXKLfFyV7Qe+MSQjXkCnW3bIRh7Wo1V31XiUiYOLuZPIiH3EQ=
-# on_success: change
-# on_failure: always
-# on_pull_requests: false
+ - yarn run lint
+ - yarn test
+ - yarn run build
+notifications:
+ kleros:
+ slack: 'kleros:Ub8n81EgKJ3iRrMDyWyQIVJp'
diff --git a/README.md b/README.md
index 33897dd9..ff511db1 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,23 @@
# Kleros Interaction Smart Contracts
+
+ Kleros
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Smart contracts able to interact with Kleros and standard proposals.
-[](https://gitter.im/kleros/kleros?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
## Getting Started
@@ -21,6 +36,19 @@ Run tests
truffle test
```
+## Other Scripts
+
+- `yarn run prettify` - Apply prettier to the entire project.
+- `yarn run lint:sol` - Lint the entire project's .sol files.
+- `yarn run lint:js` - Lint the entire project's .js files.
+- `yarn run lint:sol --fix` - Fix fixable linting errors in .sol files.
+- `yarn run lint:js --fix` - Fix fixable linting errors in .js files.
+- `yarn run lint` - Lint the entire project's .sol and .js files.
+- `yarn test` - Run the truffle tests.
+- `yarn run cz` - Run commitizen.
+- `yarn run build` - Compile contracts.
+
+
## Troubleshooting
> Could not connect to your Ethereum client. Please check that your Ethereum client:
- is running
diff --git a/contracts/Migrations.sol b/contracts/Migrations.sol
index f1a3ea9d..90c641ba 100644
--- a/contracts/Migrations.sol
+++ b/contracts/Migrations.sol
@@ -1,23 +1,23 @@
pragma solidity ^0.4.4;
contract Migrations {
- address public owner;
- uint public last_completed_migration;
+ address public owner;
+ uint public last_completed_migration;
- modifier restricted() {
- if (msg.sender == owner) _;
- }
+ modifier restricted() {
+ if (msg.sender == owner) _;
+ }
- constructor() public {
- owner = msg.sender;
- }
+ constructor() public {
+ owner = msg.sender;
+ }
- function setCompleted(uint completed) public restricted {
- last_completed_migration = completed;
- }
+ function setCompleted(uint completed) public restricted {
+ last_completed_migration = completed;
+ }
- function upgrade(address new_address) public restricted {
- Migrations upgraded = Migrations(new_address);
- upgraded.setCompleted(last_completed_migration);
- }
+ function upgrade(address new_address) public restricted {
+ Migrations upgraded = Migrations(new_address);
+ upgraded.setCompleted(last_completed_migration);
+ }
}
diff --git a/contracts/standard/arbitration/ArbitrableTokens/FundingVault.sol b/contracts/standard/arbitration/ArbitrableTokens/FundingVault.sol
index 71265d5e..85ec89e5 100644
--- a/contracts/standard/arbitration/ArbitrableTokens/FundingVault.sol
+++ b/contracts/standard/arbitration/ArbitrableTokens/FundingVault.sol
@@ -1,8 +1,8 @@
- /**
- * @title Funding Vault
- * @author Clément Lesaege -
- * Bug Bounties: This code hasn't undertaken a bug bounty program yet.
- */
+/**
+* @title Funding Vault
+* @author Clément Lesaege -
+* Bug Bounties: This code hasn't undertaken a bug bounty program yet.
+*/
pragma solidity ^0.4.15;
@@ -10,15 +10,15 @@ import "../Arbitrable.sol";
import "minimetoken/contracts/MiniMeToken.sol";
/** @title Funding Vault
- * A contract storing the ETH raised in a crowdfunding event.
- * Funds are delivered when milestones are reached.
- * The team can claim a milestone is reached. Token holders will have some time to dispute that claim.
- * When some token holders vote to dispute the claim, extra time is given to other token holders to dispute that claim.
- * If a sufficient amount of token holders dispute it. A dispute is created and the arbitrator will decide if the milestone has been reached.
- * When there is a disagreement a vote token is created. Holders should send the voteToken to the Vault to disagree with the milestone.
- * Token holders can also claim that the team failed to deliver and ask for the remaining ETH to be given back to a different contract.
- * This contract can be the vault of another team, or a contract to reimburse.
- */
+* A contract storing the ETH raised in a crowdfunding event.
+* Funds are delivered when milestones are reached.
+* The team can claim a milestone is reached. Token holders will have some time to dispute that claim.
+* When some token holders vote to dispute the claim, extra time is given to other token holders to dispute that claim.
+* If a sufficient amount of token holders dispute it. A dispute is created and the arbitrator will decide if the milestone has been reached.
+* When there is a disagreement a vote token is created. Holders should send the voteToken to the Vault to disagree with the milestone.
+* Token holders can also claim that the team failed to deliver and ask for the remaining ETH to be given back to a different contract.
+* This contract can be the vault of another team, or a contract to reimburse.
+*/
contract FundingVault is Arbitrable {
address public team;
MiniMeToken public token;
@@ -50,15 +50,15 @@ contract FundingVault is Arbitrable {
uint8 constant HOLDERS_WINS = 2;
/** @dev Constructor. Choose the arbitrator.
- * @param _arbitrator The arbitrator of the contract.
- * @param _team The address of the team who will be able to claim milestone completion.
- * @param _token The token whose holders are able to dispute milestone claims.
- * @param _funder The party putting funds in the vault.
- * @param _disputeThreshold The ‱ of tokens required to dispute a milestone.
- * @param _claimToWithdrawTime The base time in seconds after a claim is considered non-disputed (i.e if no token holders dispute it).
- * @param _additionalTimeToWithdraw The time in seconds which is added per ‱ of tokens disputing the claim.
- * @param _timeout Maximum time to pay arbitration fees after the other side did.
- */
+ * @param _arbitrator The arbitrator of the contract.
+ * @param _team The address of the team who will be able to claim milestone completion.
+ * @param _token The token whose holders are able to dispute milestone claims.
+ * @param _funder The party putting funds in the vault.
+ * @param _disputeThreshold The ‱ of tokens required to dispute a milestone.
+ * @param _claimToWithdrawTime The base time in seconds after a claim is considered non-disputed (i.e if no token holders dispute it).
+ * @param _additionalTimeToWithdraw The time in seconds which is added per ‱ of tokens disputing the claim.
+ * @param _timeout Maximum time to pay arbitration fees after the other side did.
+ */
constructor(Arbitrator _arbitrator, bytes _arbitratorExtraData, address _team, address _token, address _funder, uint _disputeThreshold, uint _claimToWithdrawTime, uint _additionalTimeToWithdraw, uint _timeout) public Arbitrable(_arbitrator,_arbitratorExtraData) {
team=_team;
token=MiniMeToken(_token);
@@ -68,52 +68,52 @@ contract FundingVault is Arbitrable {
additionalTimeToWithdraw=_additionalTimeToWithdraw;
timeout=_timeout;
ousterID = milestones.push(Milestone({ //Create a base milestone to be disputed when the funders claim the team is not doing their job.
- amount:0,
- amountClaimed:0,
- claimTime:0,
- disputed:false,
- feeTeam:0,
- feeHolders:0,
- voteToken:MiniMeToken(0x0),
- disputeID:0,
- lastTotalFeePayment:0,
- lastTotalFeePaymentIsTeam:false,
- payerForHolders:0x0
- }))-1;
- canChangeTeam = false;
+ amount:0,
+ amountClaimed:0,
+ claimTime:0,
+ disputed:false,
+ feeTeam:0,
+ feeHolders:0,
+ voteToken:MiniMeToken(0x0),
+ disputeID:0,
+ lastTotalFeePayment:0,
+ lastTotalFeePaymentIsTeam:false,
+ payerForHolders:0x0
+ }))-1;
+ canChangeTeam = false;
}
/** @dev Give the funds for a milestone.
- * @return milestoneID The ID of the milestone which was created.
- */
+ * @return milestoneID The ID of the milestone which was created.
+ */
function fundMilestone() public payable returns(uint milestoneID) {
require(msg.sender==funder);
return milestones.push(Milestone({
- amount:msg.value,
- amountClaimed:0,
- claimTime:0,
- disputed:false,
- feeTeam:0,
- feeHolders:0,
- voteToken:MiniMeToken(0x0),
- disputeID:0,
- lastTotalFeePayment:0,
- lastTotalFeePaymentIsTeam:false,
- payerForHolders:0x0
+ amount:msg.value,
+ amountClaimed:0,
+ claimTime:0,
+ disputed:false,
+ feeTeam:0,
+ feeHolders:0,
+ voteToken:MiniMeToken(0x0),
+ disputeID:0,
+ lastTotalFeePayment:0,
+ lastTotalFeePaymentIsTeam:false,
+ payerForHolders:0x0
}))-1;
}
- //Restricts Milestone function with functionality not necessary for Ouster.
- modifier isNotOuster(uint _milestoneID) {
- require(ousterID != _milestoneID);
- _;
- }
+ //Restricts Milestone function with functionality not necessary for Ouster.
+ modifier isNotOuster(uint _milestoneID) {
+ require(ousterID != _milestoneID);
+ _;
+ }
/** @dev Claim funds of a milestone.
- * @param _milestoneID The ID of the milestone.
- * @param _amount The amount claim. Note that the team can claim less than the amount of a milestone. This allows partial completion claims.
- */
+ * @param _milestoneID The ID of the milestone.
+ * @param _amount The amount claim. Note that the team can claim less than the amount of a milestone. This allows partial completion claims.
+ */
function claimMilestone(uint _milestoneID, uint _amount) public isNotOuster(_milestoneID) {
Milestone storage milestone=milestones[_milestoneID];
require(msg.sender==team);
@@ -124,29 +124,23 @@ contract FundingVault is Arbitrable {
}
/** @dev Make a forked token to dispute a claim.
- * This avoid creating a token all the time, since most milestones should not be disputed.
- * @param _milestoneID The ID of the milestone.
- */
+ * This avoid creating a token all the time, since most milestones should not be disputed.
+ * @param _milestoneID The ID of the milestone.
+ */
function makeVoteToken(uint _milestoneID) public {
Milestone storage milestone=milestones[_milestoneID];
if( ousterID != _milestoneID ) { require(milestone.claimTime!=0); } // The milestone is currently claimed by the team, unless this is the ouster.
require(address(milestone.voteToken)==0x0); // Token has not already been made.
- milestone.voteToken=MiniMeToken(token.createCloneToken(
- "",
- token.decimals(),
- "",
- block.number,
- true
- ));
+ milestone.voteToken=MiniMeToken(token.createCloneToken("", token.decimals(), "", block.number, true));
}
/** @dev Pay fee to dispute a milestone. To be called by parties claiming the milestone was not completed.
- * The first party to pay the fee entirely will be reimbursed if the dispute is won.
- * Note that holders can make a smart contract to crowdfund the fee.
- * In the rare event the arbitrationCost is increased, anyone can pay the extra, but it is always the first payer who can be reimbursed.
- * @param _milestoneID The milestone which is disputed.
- */
+ * The first party to pay the fee entirely will be reimbursed if the dispute is won.
+ * Note that holders can make a smart contract to crowdfund the fee.
+ * In the rare event the arbitrationCost is increased, anyone can pay the extra, but it is always the first payer who can be reimbursed.
+ * @param _milestoneID The milestone which is disputed.
+ */
function payDisputeFeeByHolders(uint _milestoneID) public payable {
Milestone storage milestone=milestones[_milestoneID];
uint arbitrationCost = arbitrator.arbitrationCost(arbitratorExtraData);
@@ -158,21 +152,21 @@ contract FundingVault is Arbitrable {
milestone.feeHolders+=msg.value;
if (milestone.payerForHolders==0x0)
- milestone.payerForHolders=msg.sender;
+ milestone.payerForHolders=msg.sender;
if (milestone.feeTeam>=arbitrationCost) { // Enough has been paid by all sides.
createDispute(_milestoneID,arbitrationCost);
- } else if (milestone.lastTotalFeePayment==0) { // First time the fee is paid.
- milestone.lastTotalFeePayment=now;
- } else if(milestone.lastTotalFeePaymentIsTeam) { // The team was the last one who had paid entirely.
- milestone.lastTotalFeePaymentIsTeam=false;
- milestone.lastTotalFeePayment=now;
- }
+ } else if (milestone.lastTotalFeePayment==0) { // First time the fee is paid.
+ milestone.lastTotalFeePayment=now;
+ } else if(milestone.lastTotalFeePaymentIsTeam) { // The team was the last one who had paid entirely.
+ milestone.lastTotalFeePaymentIsTeam=false;
+ milestone.lastTotalFeePayment=now;
+ }
}
/** @dev Pay fee to for a milestone dispute. To be called by the team when the holders have enough votes and fee paid.
- * @param _milestoneID The milestone which is disputed.
- */
+ * @param _milestoneID The milestone which is disputed.
+ */
function payDisputeFeeByTeam(uint _milestoneID) public payable {
Milestone storage milestone=milestones[_milestoneID];
uint arbitrationCost = arbitrator.arbitrationCost(arbitratorExtraData);
@@ -184,21 +178,21 @@ contract FundingVault is Arbitrable {
milestone.feeTeam+=msg.value;
if (milestone.feeHolders>=arbitrationCost) { // Enough has been paid by all sides.
- createDispute(_milestoneID,arbitrationCost);
+ createDispute(_milestoneID,arbitrationCost);
}
else if (milestone.lastTotalFeePayment==0) { // First time the fee is paid.
milestone.lastTotalFeePayment=now;
milestone.lastTotalFeePaymentIsTeam=true;
- } else if(!milestone.lastTotalFeePaymentIsTeam) { // The holders were the last ones who had paid entirely.
- milestone.lastTotalFeePaymentIsTeam=true;
- milestone.lastTotalFeePayment=now;
- }
+ } else if(!milestone.lastTotalFeePaymentIsTeam) { // The holders were the last ones who had paid entirely.
+ milestone.lastTotalFeePaymentIsTeam=true;
+ milestone.lastTotalFeePayment=now;
+ }
}
/** @dev Create a dispute.
- * @param _milestoneID The milestone which is disputed.
- * @param _arbitrationCost The amount which should be paid to the arbitrator.
- */
+ * @param _milestoneID The milestone which is disputed.
+ * @param _arbitrationCost The amount which should be paid to the arbitrator.
+ */
function createDispute(uint _milestoneID, uint _arbitrationCost) internal {
Milestone storage milestone=milestones[_milestoneID];
milestone.disputed=true;
@@ -208,9 +202,9 @@ contract FundingVault is Arbitrable {
}
/** @dev Withdraw the money claimed in a milestone.
- * To be called when a dispute has not been created within the time limit.
- * @param _milestoneID The milestone which is disputed.
- */
+ * To be called when a dispute has not been created within the time limit.
+ * @param _milestoneID The milestone which is disputed.
+ */
function withdraw(uint _milestoneID) public isNotOuster(_milestoneID) {
Milestone storage milestone=milestones[_milestoneID];
require(msg.sender==team);
@@ -229,8 +223,8 @@ contract FundingVault is Arbitrable {
// TODO: Timeouts
/** @dev Timeout to use when the holders don't pay the fee.
- * @param _milestoneID The milestone which is disputed.
- */
+ * @param _milestoneID The milestone which is disputed.
+ */
function timeoutByTeam(uint _milestoneID) public {
Milestone storage milestone=milestones[_milestoneID];
require(msg.sender==team);
@@ -250,8 +244,8 @@ contract FundingVault is Arbitrable {
}
/** @dev Timeout to use whe the team don't pay the fee.
- * @param _milestoneID The milestone which is disputed.
- */
+ * @param _milestoneID The milestone which is disputed.
+ */
function timeoutByHolders(uint _milestoneID) public {
Milestone storage milestone=milestones[_milestoneID];
require(!milestone.lastTotalFeePaymentIsTeam);
@@ -271,18 +265,18 @@ contract FundingVault is Arbitrable {
}
/** @dev Appeal an appealable ruling.
- * Transfer the funds to the arbitrator.
- * @param _milestoneID The milestone which is disputed.
- */
+ * Transfer the funds to the arbitrator.
+ * @param _milestoneID The milestone which is disputed.
+ */
function appeal(uint _milestoneID) public payable {
Milestone storage milestone=milestones[_milestoneID];
arbitrator.appeal.value(msg.value)(milestone.disputeID,arbitratorExtraData);
}
/** @dev Execute a ruling of a dispute.
- * @param _disputeID ID of the dispute in the Arbitrator contract.
- * @param _ruling Ruling given by the arbitrator. Note that 0 is reserved for "Not able/wanting to make a decision".
- */
+ * @param _disputeID ID of the dispute in the Arbitrator contract.
+ * @param _ruling Ruling given by the arbitrator. Note that 0 is reserved for "Not able/wanting to make a decision".
+ */
function executeRuling(uint _disputeID, uint _ruling) internal{
Milestone storage milestone=milestones[disputeIDToMilstoneID[_disputeID]];
require(milestone.voteToken.balanceOf(this) >= (disputeThreshold*milestone.voteToken.totalSupply())/1000); // Make sure there is enough votes to protect against a malicious arbitrator.
@@ -301,22 +295,22 @@ contract FundingVault is Arbitrable {
milestone.lastTotalFeePayment=0;
milestone.lastTotalFeePaymentIsTeam=false;
milestone.payerForHolders=0x0;
- } else if (_ruling==HOLDERS_WINS) {
- milestone.payerForHolders.transfer(milestone.feeTeam+milestone.feeHolders); // Pay the unused fees to the payer for holders.
- milestone.amountClaimed=0;
- milestone.claimTime=0;
- milestone.disputed=false;
- milestone.feeTeam=0;
- milestone.feeHolders=0;
- milestone.voteToken=MiniMeToken(0x0);
- milestone.disputeID=0;
- milestone.lastTotalFeePayment=0;
- milestone.lastTotalFeePaymentIsTeam=false;
- milestone.payerForHolders=0x0;
- if( ousterID == _milestoneID ) { //if this is the ouster milestone
- canChangeTeam = true; //allow the funder to change the team
+ } else if (_ruling==HOLDERS_WINS) {
+ milestone.payerForHolders.transfer(milestone.feeTeam+milestone.feeHolders); // Pay the unused fees to the payer for holders.
+ milestone.amountClaimed=0;
+ milestone.claimTime=0;
+ milestone.disputed=false;
+ milestone.feeTeam=0;
+ milestone.feeHolders=0;
+ milestone.voteToken=MiniMeToken(0x0);
+ milestone.disputeID=0;
+ milestone.lastTotalFeePayment=0;
+ milestone.lastTotalFeePaymentIsTeam=false;
+ milestone.payerForHolders=0x0;
+ if( ousterID == _milestoneID ) { //if this is the ouster milestone
+ canChangeTeam = true; //allow the funder to change the team
+ }
}
- }
}
/** @dev Change the team. Note that the holders would have to make
@@ -324,10 +318,10 @@ contract FundingVault is Arbitrable {
* @param _newTeam the new team.
*/
function changeTeam(address _newTeam) public {
- require(msg.sender == funder); //The sender must be the funder.
- require(canChangeTeam);
- team = _newTeam;
- canChangeTeam = false; //This can only be called once.
+ require(msg.sender == funder); //The sender must be the funder.
+ require(canChangeTeam);
+ team = _newTeam;
+ canChangeTeam = false; //This can only be called once.
}
}
diff --git a/contracts/standard/arbitration/Arbitrator.sol b/contracts/standard/arbitration/Arbitrator.sol
index 4d9452e2..c5032457 100644
--- a/contracts/standard/arbitration/Arbitrator.sol
+++ b/contracts/standard/arbitration/Arbitrator.sol
@@ -51,7 +51,7 @@ contract Arbitrator{
* @param _extraData Can be used to give additional info on the dispute to be created.
* @return fee Amount to be paid.
*/
- function arbitrationCost(bytes _extraData) public constant returns(uint fee);
+ function arbitrationCost(bytes _extraData) public view returns(uint fee);
/** @dev Appeal a ruling. Note that it has to be called before the arbitrator contract calls rule.
* @param _disputeID ID of the dispute to be appealed.
@@ -66,18 +66,18 @@ contract Arbitrator{
* @param _extraData Can be used to give additional info on the dispute to be created.
* @return fee Amount to be paid.
*/
- function appealCost(uint _disputeID, bytes _extraData) public constant returns(uint fee);
+ function appealCost(uint _disputeID, bytes _extraData) public view returns(uint fee);
/** @dev Return the status of a dispute.
* @param _disputeID ID of the dispute to rule.
* @return status The status of the dispute.
*/
- function disputeStatus(uint _disputeID) public constant returns(DisputeStatus status);
+ function disputeStatus(uint _disputeID) public view returns(DisputeStatus status);
/** @dev Return the current ruling of a dispute. This is useful for parties to know if they should appeal.
* @param _disputeID ID of the dispute.
* @return ruling The ruling which has been given or the one which will be given if there is no appeal.
*/
- function currentRuling(uint _disputeID) public constant returns(uint ruling);
+ function currentRuling(uint _disputeID) public view returns(uint ruling);
}
diff --git a/contracts/standard/arbitration/CentralizedArbitrator.sol b/contracts/standard/arbitration/CentralizedArbitrator.sol
index 79c42b90..a73f387c 100644
--- a/contracts/standard/arbitration/CentralizedArbitrator.sol
+++ b/contracts/standard/arbitration/CentralizedArbitrator.sol
@@ -1,17 +1,17 @@
/**
- * @title Arbitration Standard
- * @author Clément Lesaege -
- * Bug Bounties: This code hasn't undertaken a bug bounty program yet.
- */
+* @title Arbitration Standard
+* @author Clément Lesaege -
+* Bug Bounties: This code hasn't undertaken a bug bounty program yet.
+*/
pragma solidity ^0.4.15;
import "./Arbitrator.sol";
/** @title Centralized Arbitrator
- * This is a centralized arbitrator deciding alone of the result of disputes.
- * No appeals are possible.
- */
+* This is a centralized arbitrator deciding alone of the result of disputes.
+* No appeals are possible.
+*/
contract CentralizedArbitrator is Arbitrator {
address public owner=msg.sender;
@@ -31,42 +31,42 @@ contract CentralizedArbitrator is Arbitrator {
DisputeStruct[] public disputes;
/** @dev Constructor. Set the initial arbitration price.
- * @param _arbitrationPrice Amount to be paid for arbitration.
- */
+ * @param _arbitrationPrice Amount to be paid for arbitration.
+ */
constructor(uint _arbitrationPrice) public {
arbitrationPrice = _arbitrationPrice;
}
/** @dev Set the arbitration price. Only callable by the owner.
- * @param _arbitrationPrice Amount to be paid for arbitration.
- */
+ * @param _arbitrationPrice Amount to be paid for arbitration.
+ */
function setArbitrationPrice(uint _arbitrationPrice) public onlyOwner {
arbitrationPrice = _arbitrationPrice;
}
/** @dev Cost of arbitration. Accessor to arbitrationPrice.
- * @param _extraData Not used by this contract.
- * @return fee Amount to be paid.
- */
- function arbitrationCost(bytes _extraData) public constant returns(uint fee) {
+ * @param _extraData Not used by this contract.
+ * @return fee Amount to be paid.
+ */
+ function arbitrationCost(bytes _extraData) public view returns(uint fee) {
return arbitrationPrice;
}
/** @dev Cost of appeal. Since it is not possible, it's a high value which can never be paid.
- * @param _disputeID ID of the dispute to be appealed. Not used by this contract.
- * @param _extraData Not used by this contract.
- * @return fee Amount to be paid.
- */
- function appealCost(uint _disputeID, bytes _extraData) public constant returns(uint fee) {
+ * @param _disputeID ID of the dispute to be appealed. Not used by this contract.
+ * @param _extraData Not used by this contract.
+ * @return fee Amount to be paid.
+ */
+ function appealCost(uint _disputeID, bytes _extraData) public view returns(uint fee) {
return NOT_PAYABLE_VALUE;
}
/** @dev Create a dispute. Must be called by the arbitrable contract.
- * Must be paid at least arbitrationCost().
- * @param _choices Amount of choices the arbitrator can make in this dispute. When ruling ruling<=choices.
- * @param _extraData Can be used to give additional info on the dispute to be created.
- * @return disputeID ID of the dispute created.
- */
+ * Must be paid at least arbitrationCost().
+ * @param _choices Amount of choices the arbitrator can make in this dispute. When ruling ruling<=choices.
+ * @param _extraData Can be used to give additional info on the dispute to be created.
+ * @return disputeID ID of the dispute created.
+ */
function createDispute(uint _choices, bytes _extraData) public payable returns(uint disputeID) {
super.createDispute(_choices,_extraData);
disputeID = disputes.push(DisputeStruct({
@@ -75,15 +75,15 @@ contract CentralizedArbitrator is Arbitrator {
fee: msg.value,
ruling: 0,
status: DisputeStatus.Waiting
- })) - 1; // Create the dispute and return its number.
- DisputeCreation(disputeID, Arbitrable(msg.sender));
- return disputeID;
+ })) - 1; // Create the dispute and return its number.
+ emit DisputeCreation(disputeID, Arbitrable(msg.sender));
+ return disputeID;
}
/** @dev Give a ruling. UNTRUSTED.
- * @param _disputeID ID of the dispute to rule.
- * @param _ruling Ruling given by the arbitrator. Note that 0 means "Not able/wanting to make a decision".
- */
+ * @param _disputeID ID of the dispute to rule.
+ * @param _ruling Ruling given by the arbitrator. Note that 0 means "Not able/wanting to make a decision".
+ */
function giveRuling(uint _disputeID, uint _ruling) public onlyOwner {
DisputeStruct dispute = disputes[_disputeID];
require(_ruling<=dispute.choices);
@@ -100,18 +100,18 @@ contract CentralizedArbitrator is Arbitrator {
}
/** @dev Return the status of a dispute.
- * @param _disputeID ID of the dispute to rule.
- * @return status The status of the dispute.
- */
- function disputeStatus(uint _disputeID) public constant returns(DisputeStatus status) {
+ * @param _disputeID ID of the dispute to rule.
+ * @return status The status of the dispute.
+ */
+ function disputeStatus(uint _disputeID) public view returns(DisputeStatus status) {
return disputes[_disputeID].status;
}
/** @dev Return the ruling of a dispute.
- * @param _disputeID ID of the dispute to rule.
- * @return ruling The ruling which would or has been given.
- */
- function currentRuling(uint _disputeID) public constant returns(uint ruling) {
+ * @param _disputeID ID of the dispute to rule.
+ * @return ruling The ruling which would or has been given.
+ */
+ function currentRuling(uint _disputeID) public view returns(uint ruling) {
return disputes[_disputeID].ruling;
}
}
diff --git a/contracts/standard/arbitration/CriptoKitties/Auction/ClockAuctionBase.sol b/contracts/standard/arbitration/CriptoKitties/Auction/ClockAuctionBase.sol
index 82888ba1..64439f65 100644
--- a/contracts/standard/arbitration/CriptoKitties/Auction/ClockAuctionBase.sol
+++ b/contracts/standard/arbitration/CriptoKitties/Auction/ClockAuctionBase.sol
@@ -92,7 +92,7 @@ contract ClockAuctionBase {
tokenIdToAuction[_tokenId] = _auction;
- AuctionCreated(
+ emit AuctionCreated(
uint256(_tokenId),
uint256(_auction.startingPrice),
uint256(_auction.endingPrice),
@@ -104,7 +104,7 @@ contract ClockAuctionBase {
function _cancelAuction(uint256 _tokenId, address _seller) internal {
_removeAuction(_tokenId);
_transfer(_seller, _tokenId);
- AuctionCancelled(_tokenId);
+ emit AuctionCancelled(_tokenId);
}
/// @dev Computes the price and transfers winnings.
@@ -155,7 +155,7 @@ contract ClockAuctionBase {
}
// Tell the world!
- AuctionSuccessful(_tokenId, price, msg.sender);
+ emit AuctionSuccessful(_tokenId, price, msg.sender);
return price;
}
diff --git a/contracts/standard/arbitration/CriptoKitties/Auction/SaleClockAuction.sol b/contracts/standard/arbitration/CriptoKitties/Auction/SaleClockAuction.sol
index 419914cd..ea61b2d9 100644
--- a/contracts/standard/arbitration/CriptoKitties/Auction/SaleClockAuction.sol
+++ b/contracts/standard/arbitration/CriptoKitties/Auction/SaleClockAuction.sol
@@ -1,7 +1,7 @@
/**
* @title Clock auction modified for sale of kitties
- * @author dapperlabs (https://github.com/dapperlabs)
- * This code was taken from https://github.com/dapperlabs at
+ * @author dapperlabs (https://github.com/dapperlabs)
+ * This code was taken from https://github.com/dapperlabs at
* https://github.com/dapperlabs/cryptokitties-bounty and is NOT kleros code.
*/
pragma solidity ^0.4.18;
@@ -14,14 +14,15 @@ contract SaleClockAuction is ClockAuction {
// @dev Sanity check that allows us to ensure that we are pointing to the
// right auction in our setSaleAuctionAddress() call.
bool public isSaleClockAuction = true;
-
+
// Tracks last 5 sale price of gen0 kitty sales
uint256 public gen0SaleCount;
uint256[5] public lastGen0SalePrices;
// Delegate constructor
- function SaleClockAuction(address _nftAddr, uint256 _cut) public
- ClockAuction(_nftAddr, _cut) {}
+ function SaleClockAuction(address _nftAddr, uint256 _cut) public ClockAuction(_nftAddr, _cut) {
+
+ }
/// @dev Creates and begins a new auction.
/// @param _tokenId - ID of token to auction, sender must be owner.
diff --git a/contracts/standard/arbitration/CriptoKitties/Auction/SiringClockAuction.sol b/contracts/standard/arbitration/CriptoKitties/Auction/SiringClockAuction.sol
index bb64d291..d4200be5 100644
--- a/contracts/standard/arbitration/CriptoKitties/Auction/SiringClockAuction.sol
+++ b/contracts/standard/arbitration/CriptoKitties/Auction/SiringClockAuction.sol
@@ -1,6 +1,6 @@
/**
* @title Reverse auction modified for siring
- * @author dapperlabs (https://github.com/dapperlabs)
+ * @author dapperlabs (https://github.com/dapperlabs)
* This code was taken from https://github.com/dapperlabs at
* https://github.com/dapperlabs/cryptokitties-bounty and is NOT kleros code.
*/
@@ -16,8 +16,9 @@ contract SiringClockAuction is ClockAuction {
bool public isSiringClockAuction = true;
// Delegate constructor
- function SiringClockAuction(address _nftAddr, uint256 _cut) public
- ClockAuction(_nftAddr, _cut) {}
+ function SiringClockAuction(address _nftAddr, uint256 _cut) public ClockAuction(_nftAddr, _cut) {
+
+ }
/// @dev Creates and begins a new auction. Since this function is wrapped,
/// require sender to be KittyCore contract.
diff --git a/contracts/standard/arbitration/CriptoKitties/KittyBase.sol b/contracts/standard/arbitration/CriptoKitties/KittyBase.sol
index c4e0d814..b91faeac 100644
--- a/contracts/standard/arbitration/CriptoKitties/KittyBase.sol
+++ b/contracts/standard/arbitration/CriptoKitties/KittyBase.sol
@@ -142,7 +142,7 @@ contract KittyBase is KittyAccessControl {
delete kittyIndexToApproved[_tokenId];
}
// Emit the transfer event.
- Transfer(_from, _to, _tokenId);
+ emit Transfer(_from, _to, _tokenId);
}
/// @dev An internal method that creates a new kitty and stores it. This
@@ -189,7 +189,7 @@ contract KittyBase is KittyAccessControl {
require(newKittenId <= 4294967295);
// emit the birth event
- Birth(
+ emit Birth(
_owner,
newKittenId,
uint256(_kitty.matronId),
diff --git a/contracts/standard/arbitration/CriptoKitties/KittyBreeding.sol b/contracts/standard/arbitration/CriptoKitties/KittyBreeding.sol
index 61728ac1..29e3e130 100644
--- a/contracts/standard/arbitration/CriptoKitties/KittyBreeding.sol
+++ b/contracts/standard/arbitration/CriptoKitties/KittyBreeding.sol
@@ -1,13 +1,13 @@
/**
- * @title Base contract for CryptoKitties. Holds all common structs, events and base variables.
- * @author Axiom Zen (https://www.axiomzen.co)
- * This code was taken from https://github.com/dapperlabs at
- * https://github.com/dapperlabs/cryptokitties-bounty and is NOT kleros code.
- */
+* @title Base contract for CryptoKitties. Holds all common structs, events and base variables.
+* @author Axiom Zen (https://www.axiomzen.co)
+* This code was taken from https://github.com/dapperlabs at
+* https://github.com/dapperlabs/cryptokitties-bounty and is NOT kleros code.
+*/
pragma solidity ^0.4.18;
-import './ExternalInterfaces/GeneScienceInterface.sol';
-import './KittyOwnership.sol';
+import "./ExternalInterfaces/GeneScienceInterface.sol";
+import "./KittyOwnership.sol";
/// @title A facet of KittyCore that manages Kitty siring, gestation, and birth.
@@ -87,8 +87,8 @@ contract KittyBreeding is KittyOwnership {
/// address(0) to clear all siring approvals for this Kitty.
/// @param _sireId A Kitty that you own that _addr will now be able to sire with.
function approveSiring(address _addr, uint256 _sireId)
- public
- whenNotPaused
+ public
+ whenNotPaused
{
require(_owns(msg.sender, _sireId));
sireAllowedToAddress[_sireId] = _addr;
@@ -111,9 +111,9 @@ contract KittyBreeding is KittyOwnership {
/// in the middle of a siring cooldown).
/// @param _kittyId reference the id of the kitten, any user can inquire about it
function isReadyToBreed(uint256 _kittyId)
- public
- view
- returns (bool)
+ public
+ view
+ returns (bool)
{
require(_kittyId > 0);
Kitty storage kit = kitties[_kittyId];
@@ -131,12 +131,11 @@ contract KittyBreeding is KittyOwnership {
uint256 _matronId,
Kitty storage _sire,
uint256 _sireId
- )
+ )
private
view
- returns(bool)
- {
- // A Kitty can't breed with itself!
+ returns(bool){
+ // A Kitty can't breed with itself!
if (_matronId == _sireId) {
return false;
}
@@ -170,9 +169,9 @@ contract KittyBreeding is KittyOwnership {
/// @dev Internal check to see if a given sire and matron are a valid mating pair for
/// breeding via auction (i.e. skips ownership and siring approval checks).
function _canBreedWithViaAuction(uint256 _matronId, uint256 _sireId)
- internal
- view
- returns (bool)
+ internal
+ view
+ returns (bool)
{
Kitty storage matron = kitties[_matronId];
Kitty storage sire = kitties[_sireId];
@@ -186,16 +185,16 @@ contract KittyBreeding is KittyOwnership {
/// @param _matronId The ID of the proposed matron.
/// @param _sireId The ID of the proposed sire.
function canBreedWith(uint256 _matronId, uint256 _sireId)
- public
- view
- returns(bool)
+ public
+ view
+ returns(bool)
{
require(_matronId > 0);
require(_sireId > 0);
Kitty storage matron = kitties[_matronId];
Kitty storage sire = kitties[_sireId];
return _isValidMatingPair(matron, _matronId, sire, _sireId) &&
- _isSiringPermitted(_sireId, _matronId);
+ _isSiringPermitted(_sireId, _matronId);
}
/// @notice Breed a Kitty you own (as matron) with a sire that you own, or for which you
@@ -236,12 +235,7 @@ contract KittyBreeding is KittyOwnership {
require(_isReadyToBreed(sire));
// Test that these cats are a valid mating pair.
- require(_isValidMatingPair(
- matron,
- _matronId,
- sire,
- _sireId
- ));
+ require(_isValidMatingPair(matron, _matronId, sire, _sireId));
// All checks passed, kitty gets pregnant!
_breedWith(_matronId, _sireId);
@@ -267,7 +261,7 @@ contract KittyBreeding is KittyOwnership {
delete sireAllowedToAddress[_sireId];
// Emit the pregnancy event.
- Pregnant(kittyIndexToOwner[_matronId], _matronId, _sireId);
+ emit Pregnant(kittyIndexToOwner[_matronId], _matronId, _sireId);
}
/// @notice Works like breedWith(), but includes a pre-payment of the gas required to call
@@ -277,9 +271,9 @@ contract KittyBreeding is KittyOwnership {
/// @param _matronId The ID of the Kitty acting as matron (will end up pregnant if successful)
/// @param _sireId The ID of the Kitty acting as sire (will begin its siring cooldown if successful)
function breedWithAuto(uint256 _matronId, uint256 _sireId)
- public
- payable
- whenNotPaused
+ public
+ payable
+ whenNotPaused
{
// Check for payment
require(msg.value >= autoBirthFee);
@@ -290,7 +284,7 @@ contract KittyBreeding is KittyOwnership {
// Emit an AutoBirth message so the autobirth daemon knows when and for what cat to call
// giveBirth().
Kitty storage matron = kitties[_matronId];
- AutoBirth(_matronId, matron.cooldownEndTime);
+ emit AutoBirth(_matronId, matron.cooldownEndTime);
}
/// @notice Have a pregnant Kitty give birth!
@@ -302,9 +296,9 @@ contract KittyBreeding is KittyOwnership {
/// new kitten will be ready to breed again. Note that anyone can call this function (if they
/// are willing to pay the gas!), but the new kitten always goes to the mother's owner.
function giveBirth(uint256 _matronId)
- public
- whenNotPaused
- returns(uint256)
+ public
+ whenNotPaused
+ returns(uint256)
{
// Grab a reference to the matron in storage.
Kitty storage matron = kitties[_matronId];
diff --git a/contracts/standard/arbitration/CriptoKitties/KittyMinting.sol b/contracts/standard/arbitration/CriptoKitties/KittyMinting.sol
index d15d40de..bb3ebed3 100644
--- a/contracts/standard/arbitration/CriptoKitties/KittyMinting.sol
+++ b/contracts/standard/arbitration/CriptoKitties/KittyMinting.sol
@@ -1,6 +1,6 @@
/**
* @title All functions related to creating kittens
- * @author dapperlabs (https://github.com/dapperlabs)
+ * @author dapperlabs (https://github.com/dapperlabs)
* This code was taken from https://github.com/dapperlabs at
* https://github.com/dapperlabs/cryptokitties-bounty and is NOT kleros code.
*/
@@ -28,15 +28,17 @@ contract KittyMinting is KittyAuction {
/// @param _genes the encoded genes of the kitten to be created, any value is accepted
/// @param _owner the future owner of the created kittens. Default to contract COO
function createPromoKitty(uint256 _genes, address _owner) public onlyCOO {
- if (_owner == address(0)) {
- _owner = cooAddress;
+ address owner = _owner;
+
+ if (owner == address(0)) {
+ owner = cooAddress;
}
require(promoCreatedCount < promoCreationLimit);
require(gen0CreatedCount < gen0CreationLimit);
promoCreatedCount++;
gen0CreatedCount++;
- _createKitty(0, 0, 0, _genes, _owner);
+ _createKitty(0, 0, 0, _genes, owner);
}
/// @dev Creates a new gen0 kitty with the given genes and
diff --git a/contracts/standard/arbitration/MultipleArbitrableTransaction.sol b/contracts/standard/arbitration/MultipleArbitrableTransaction.sol
index 9edd2f7a..0bdd8f87 100644
--- a/contracts/standard/arbitration/MultipleArbitrableTransaction.sol
+++ b/contracts/standard/arbitration/MultipleArbitrableTransaction.sol
@@ -339,9 +339,10 @@ contract MultipleArbitrableTransaction {
function getTransactionIDsByAddress(address _address) public view returns (uint[] transactionIDs) {
uint[] memory transactionIDsBigArr = new uint[](transactions.length);
uint count = 0;
- for (uint i = 0; i < transactions.length; i++)
+ for (uint i = 0; i < transactions.length; i++) {
if (transactions[i].seller == _address || transactions[i].buyer == _address)
transactionIDsBigArr[count++] = i;
+ }
transactionIDs = new uint[](count);
for (uint j = 0; j < count; j++) transactionIDs[j] = transactionIDsBigArr[j];
diff --git a/contracts/standard/proxy/ExperimentalProxy.sol b/contracts/standard/proxy/ExperimentalProxy.sol
index 52673f04..276e9be5 100644
--- a/contracts/standard/proxy/ExperimentalProxy.sol
+++ b/contracts/standard/proxy/ExperimentalProxy.sol
@@ -40,6 +40,7 @@ contract ExperimentalProxy {
// Return data
bytes memory _retData;
+ // solium-disable-next-line security/no-inline-assembly
assembly {
// Start of payload raw data (skip over size slot)
let _dataPtr := add(_data, 0x20)
@@ -80,6 +81,7 @@ contract ExperimentalProxy {
// Call on-chain handler
handleProxySuccess(msg.sig, _data, _retData);
+ // solium-disable-next-line security/no-inline-assembly
assembly {
return(add(_retData, 0x20), mload(_retData)) // Return returned data
}
diff --git a/contracts/standard/rng/ConstantNG.sol b/contracts/standard/rng/ConstantNG.sol
index 76c2ff2c..39535bc1 100644
--- a/contracts/standard/rng/ConstantNG.sol
+++ b/contracts/standard/rng/ConstantNG.sol
@@ -1,37 +1,35 @@
/**
- * @title Constant Number Generator
- * @author Clément Lesaege -
- * @dev A Random Number Generator which always return the same number. Usefull in order to make tests.
- */
-
-import "./RNG.sol";
+* @title Constant Number Generator
+* @author Clément Lesaege -
+* @dev A Random Number Generator which always return the same number. Usefull in order to make tests.
+*/
pragma solidity ^0.4.15;
+import "./RNG.sol";
- contract ConstantNG is RNG{
+contract ConstantNG is RNG {
uint public number;
/** @dev Constructor.
- * @param _number The number to always return.
- */
+ * @param _number The number to always return.
+ */
constructor(uint _number) public {
number = _number;
}
/** @dev Contribute to the reward of a random number. All the ETH will be lost forever.
- * @param _block Block the random number is linked to.
- */
+ * @param _block Block the random number is linked to.
+ */
function contribute(uint _block) public payable {}
/** @dev Get the "random number" (which is always the same).
- * @param _block Block the random number is linked to.
- * @return RN Random Number. If the number is not ready or has not been required 0 instead.
- */
+ * @param _block Block the random number is linked to.
+ * @return RN Random Number. If the number is not ready or has not been required 0 instead.
+ */
function getRN(uint _block) public returns (uint RN) {
return number;
}
-
- }
+}
diff --git a/contracts/standard/rng/RNG.sol b/contracts/standard/rng/RNG.sol
index 9114964b..2bf60be0 100644
--- a/contracts/standard/rng/RNG.sol
+++ b/contracts/standard/rng/RNG.sol
@@ -1,42 +1,42 @@
/**
- * @title Random Number Generator Standard
- * @author Clément Lesaege -
- *
- */
+* @title Random Number Generator Standard
+* @author Clément Lesaege -
+*
+*/
pragma solidity ^0.4.15;
- contract RNG{
+contract RNG{
/** @dev Contribute to the reward of a random number.
- * @param _block Block the random number is linked to.
- */
+ * @param _block Block the random number is linked to.
+ */
function contribute(uint _block) public payable;
/** @dev Request a random number.
- * @param _block Block linked to the request.
- */
+ * @param _block Block linked to the request.
+ */
function requestRN(uint _block) public payable {
contribute(_block);
}
/** @dev Get the random number.
- * @param _block Block the random number is linked to.
- * @return RN Random Number. If the number is not ready or has not been required 0 instead.
- */
+ * @param _block Block the random number is linked to.
+ * @return RN Random Number. If the number is not ready or has not been required 0 instead.
+ */
function getRN(uint _block) public returns (uint RN);
/** @dev Get a uncorrelated random number. Act like getRN but give a different number for each sender.
- * This is to prevent users from getting correlated numbers.
- * @param _block Block the random number is linked to.
- * @return RN Random Number. If the number is not ready or has not been required 0 instead.
- */
+ * This is to prevent users from getting correlated numbers.
+ * @param _block Block the random number is linked to.
+ * @return RN Random Number. If the number is not ready or has not been required 0 instead.
+ */
function getUncorrelatedRN(uint _block) public returns (uint RN) {
uint baseRN=getRN(_block);
if (baseRN==0)
- return 0;
+ return 0;
else
- return uint(keccak256(msg.sender,baseRN));
+ return uint(keccak256(msg.sender,baseRN));
}
- }
+}
diff --git a/package.json b/package.json
index 5ddb2021..725a25b7 100644
--- a/package.json
+++ b/package.json
@@ -9,8 +9,22 @@
"helpers"
],
"scripts": {
- "test": "scripts/test.sh",
- "coverage": "scripts/coverage.sh"
+ "prettify": "kleros-scripts prettify",
+ "lint:sol": "kleros-scripts lint:sol",
+ "lint:js": "kleros-scripts lint:js",
+ "lint": "yarn run lint:sol && yarn run lint:js",
+ "test:ganache": "ganache-cli &",
+ "test:truffle": "truffle test",
+ "test": "run-p test:*",
+ "precommit": "kleros-scripts precommit",
+ "commitmsg": "kleros-scripts commitmsg",
+ "cz": "kleros-scripts cz",
+ "build": "truffle compile"
+ },
+ "commitlint": {
+ "extends": [
+ "@commitlint/config-conventional"
+ ]
},
"repository": {
"type": "git",
@@ -31,6 +45,11 @@
},
"homepage": "https://github.com/kleros/kleros-interaction#readme",
"devDependencies": {
+ "eth-gas-reporter": "0.1.1",
+ "husky": "^0.14.3",
+ "kleros-scripts": "^0.10.0",
+ "npm-run-all": "^4.1.3",
+ "standard-version": "^4.4.0",
"coveralls": "^3.0.2",
"ganache-cli": "^6.1.6",
"solidity-coverage": "^0.5.7",
diff --git a/scripts/coverage.sh b/scripts/coverage.sh
deleted file mode 100644
index 8a50f77b..00000000
--- a/scripts/coverage.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/usr/bin/env bash
-
-SOLIDITY_COVERAGE=true scripts/test.sh
diff --git a/scripts/test.sh b/scripts/test.sh
deleted file mode 100755
index eabf2c34..00000000
--- a/scripts/test.sh
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/usr/bin/env bash
-
-# Exit script as soon as a command fails.
-set -o errexit
-
-# Executes cleanup function at script exit.
-trap cleanup EXIT
-
-cleanup() {
- # Kill the ganache instance that we started (if we started one and if it's still running).
- if [ -n "$ganache_pid" ] && ps -p $ganache_pid > /dev/null; then
- kill -9 $ganache_pid
- fi
-}
-
-if [ "$SOLIDITY_COVERAGE" = true ]; then
- ganache_port=8555
-else
- ganache_port=8545
-fi
-
-ganache_running() {
- nc -z localhost "$ganache_port"
-}
-
-start_ganache() {
- # We define 10 accounts with balance 1M ether, needed for high-value tests.
- local accounts=(
- --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501200,1000000000000000000000000"
- --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501201,1000000000000000000000000"
- --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501202,1000000000000000000000000"
- --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501203,1000000000000000000000000"
- --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501204,1000000000000000000000000"
- --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501205,1000000000000000000000000"
- --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501206,1000000000000000000000000"
- --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501207,1000000000000000000000000"
- --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501208,1000000000000000000000000"
- --account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501209,1000000000000000000000000"
- )
-
- if [ "$SOLIDITY_COVERAGE" = true ]; then
- node_modules/.bin/testrpc-sc --gasLimit 0xfffffffffff --port "$ganache_port" "${accounts[@]}" > /dev/null &
- else
- node_modules/.bin/ganache-cli --gasLimit 0xfffffffffff --gasPrice 1 "${accounts[@]}" > /dev/null &
- fi
-
- ganache_pid=$!
-}
-
-if ganache_running; then
- echo "Using existing ganache instance"
-else
- echo "Starting our own ganache instance"
- start_ganache
-fi
-
-if [ "$SOLC_NIGHTLY" = true ]; then
- echo "Downloading solc nightly"
- wget -q https://raw.githubusercontent.com/ethereum/solc-bin/gh-pages/bin/soljson-nightly.js -O /tmp/soljson.js && find . -name soljson.js -exec cp /tmp/soljson.js {} \;
-fi
-
-if [ "$SOLIDITY_COVERAGE" = true ]; then
- node_modules/.bin/solidity-coverage
-
- if [ "$CONTINUOUS_INTEGRATION" = true ]; then
- cat coverage/lcov.info | node_modules/.bin/coveralls
- fi
-else
- node_modules/.bin/truffle test "$@"
-fi
diff --git a/test/README.md b/test/README.md
index 165b8fc7..434e4d7c 100644
--- a/test/README.md
+++ b/test/README.md
@@ -2,4 +2,4 @@
The tests assumes you have at least the version 8.6 of node.js.
If it's not the case you can get it there: https://nodejs.org/en/
-Note that you'll have to reinstal ethereum js: npm install -g ethereumjs-testrpc
+Note that you'll have to reinstall ethereum js: npm install -g ethereumjs-testrpc
diff --git a/test/arbitrableKitty.js b/test/arbitrable-kitty.js
similarity index 55%
rename from test/arbitrableKitty.js
rename to test/arbitrable-kitty.js
index a76d7ec0..1e6a309f 100644
--- a/test/arbitrableKitty.js
+++ b/test/arbitrable-kitty.js
@@ -1,3 +1,5 @@
+/* eslint-disable no-undef */ // Avoid the linter considering truffle elements as undef.
+
const { expectThrow, increaseTime } = require('../helpers/utils')
const ArbitrableKitty = artifacts.require('ArbitrableKitty')
@@ -7,7 +9,7 @@ const SaleClockAuction = artifacts.require('SaleClockAuction')
const SiringClockAuction = artifacts.require('SiringClockAuction')
const CentralizedArbitrator = artifacts.require('CentralizedArbitrator')
-contract('ArbitrableKitty', (accounts) => {
+contract('ArbitrableKitty', accounts => {
let kittyCore
let arbitrator
let arbitrable
@@ -45,43 +47,38 @@ contract('ArbitrableKitty', (accounts) => {
arbitrable = await deployArbitrableKitty(params, arbitrator, kittyCore)
// Transfer kitty to contract
- await kittyCore.transfer(arbitrable.address, params.kittyId, { from: PARTY_A })
+ await kittyCore.transfer(arbitrable.address, params.kittyId, {
+ from: PARTY_A
+ })
}
- const deployArbitratorContracts = async ({ARBITRATOR, ARBITRATION_FEE}) => {
- return CentralizedArbitrator.new(ARBITRATION_FEE, { from: ARBITRATOR })
- }
+ const deployArbitratorContracts = async ({ ARBITRATOR, ARBITRATION_FEE }) =>
+ CentralizedArbitrator.new(ARBITRATION_FEE, { from: ARBITRATOR })
const deployKittyContracts = async ({ coo, ceo }) => {
const coreC = await KittyCore.new({ from: coo })
- await coreC.setCEO(ceo, {from: coo})
+ await coreC.setCEO(ceo, { from: coo })
- let geneScienceContract = await GeneScienceMock.new({ from: coo })
+ const geneScienceContract = await GeneScienceMock.new({ from: coo })
await coreC.setGeneScienceAddress(geneScienceContract.address, {
from: ceo
})
- siringAuction = await SiringClockAuction.new(
- coreC.address,
- 100,
- { from: coo }
- )
+ siringAuction = await SiringClockAuction.new(coreC.address, 100, {
+ from: coo
+ })
await coreC.setSiringAuctionAddress(siringAuction.address, {
from: ceo
})
- saleAuction = await SaleClockAuction.new(
- coreC.address,
- 100,
- { from: coo }
- )
+ saleAuction = await SaleClockAuction.new(coreC.address, 100, { from: coo })
await coreC.setSaleAuctionAddress(saleAuction.address, {
from: ceo
})
- coreC._getKittyHelper = async function (id) {
- let attrs = await this.getKitty(id)
+ coreC._getKittyHelper = async function(id) {
+ const attrs = await this.getKitty(id)
return {
isGestating: attrs[0],
isReady: attrs[1],
@@ -111,18 +108,12 @@ contract('ArbitrableKitty', (accounts) => {
TIMEOUT,
EXTRA_DATA,
META_EVIDENCE,
- {from: PARTY_A}
+ { from: PARTY_A }
)
}
const kittyToSiringAuction = async (kittyId, user) => {
- await kittyCore.createSiringAuction(
- kittyId,
- 100,
- 200,
- 60,
- { from: user }
- )
+ await kittyCore.createSiringAuction(kittyId, 100, 200, 60, { from: user })
return kittyId
}
@@ -138,20 +129,34 @@ contract('ArbitrableKitty', (accounts) => {
beforeEach(async () => {
await deployAndPrepare()
const status = (await arbitrable.status()).toNumber()
- assert.isAtMost(status, 0, 'should not have any pending or resolved disputes')
+ assert.isAtMost(
+ status,
+ 0,
+ 'should not have any pending or resolved disputes'
+ )
})
it('should allow any party to put kitty up for siring and cancel', async () => {
const { kittyId, PARTY_B, PARTY_A } = params
let kittyOwner
- await arbitrable.createSiringAuction(kittyId, 100, 200, 60, { from: PARTY_B })
+ await arbitrable.createSiringAuction(kittyId, 100, 200, 60, {
+ from: PARTY_B
+ })
kittyOwner = await kittyCore.ownerOf(kittyId)
- assert.equal(kittyOwner, siringAuction.address, 'Siring auction contract should own kitty')
+ assert.equal(
+ kittyOwner,
+ siringAuction.address,
+ 'Siring auction contract should own kitty'
+ )
await arbitrable.cancelSiringAuction(kittyId, { from: PARTY_A })
kittyOwner = await kittyCore.ownerOf(kittyId)
- assert.equal(kittyOwner, arbitrable.address, 'Arbitrable contract should own kitty')
+ assert.equal(
+ kittyOwner,
+ arbitrable.address,
+ 'Arbitrable contract should own kitty'
+ )
})
it('should allow any party to bid on siring auction and cancel', async () => {
@@ -169,7 +174,11 @@ contract('ArbitrableKitty', (accounts) => {
})
const kittyOwner = await kittyCore.ownerOf(kittyId)
- assert.equal(kittyOwner, arbitrable.address, 'contract should own the kitty')
+ assert.equal(
+ kittyOwner,
+ arbitrable.address,
+ 'contract should own the kitty'
+ )
let { isGestating } = await kittyCore._getKittyHelper(kittyId)
assert.isTrue(isGestating, 'kitty should be pregnant')
@@ -193,7 +202,7 @@ contract('ArbitrableKitty', (accounts) => {
value: await kittyCore.autoBirthFee()
})
- let { isGestating } = await kittyCore._getKittyHelper(kitty2Id)
+ const { isGestating } = await kittyCore._getKittyHelper(kitty2Id)
assert.isTrue(isGestating, 'kitty should be pregnant')
})
})
@@ -202,7 +211,11 @@ contract('ArbitrableKitty', (accounts) => {
beforeEach(async () => {
await deployAndPrepare()
const status = (await arbitrable.status()).toNumber()
- assert.isAtMost(status, 0, 'should not have any pending or resolved disputes')
+ assert.isAtMost(
+ status,
+ 0,
+ 'should not have any pending or resolved disputes'
+ )
})
it('should only allow party A to transfer kitty out of the contract if B consents', async () => {
@@ -212,12 +225,20 @@ contract('ArbitrableKitty', (accounts) => {
arbitrable.transfer(PARTY_A, kittyId, { from: PARTY_A })
)
- assert.equal((await kittyCore.ownerOf(kittyId)), arbitrable.address, 'arbitrable should still own kitty')
+ assert.equal(
+ await kittyCore.ownerOf(kittyId),
+ arbitrable.address,
+ 'arbitrable should still own kitty'
+ )
await arbitrable.consentToTransfer(kittyId, PARTY_A, { from: PARTY_B })
arbitrable.transfer(PARTY_A, kittyId, { from: PARTY_A })
- assert.equal((await kittyCore.ownerOf(kittyId)), PARTY_A, 'party B should own kitty')
+ assert.equal(
+ await kittyCore.ownerOf(kittyId),
+ PARTY_A,
+ 'party B should own kitty'
+ )
})
it('should only allow party B to transfer kitty out of the contract if A consents', async () => {
@@ -227,12 +248,20 @@ contract('ArbitrableKitty', (accounts) => {
arbitrable.transfer(OTHER_USER, kittyId, { from: PARTY_B })
)
- assert.equal((await kittyCore.ownerOf(kittyId)), arbitrable.address, 'arbitrable should still own kitty')
+ assert.equal(
+ await kittyCore.ownerOf(kittyId),
+ arbitrable.address,
+ 'arbitrable should still own kitty'
+ )
await arbitrable.consentToTransfer(kittyId, OTHER_USER, { from: PARTY_A })
arbitrable.transfer(OTHER_USER, kittyId, { from: PARTY_B })
- assert.equal((await kittyCore.ownerOf(kittyId)), OTHER_USER, 'other user should own kitty')
+ assert.equal(
+ await kittyCore.ownerOf(kittyId),
+ OTHER_USER,
+ 'other user should own kitty'
+ )
})
it('should only allow party B to sell kitty if A consents', async () => {
@@ -241,11 +270,21 @@ contract('ArbitrableKitty', (accounts) => {
await expectThrow(
arbitrable.createSaleAuction(kittyId, 100, 200, 60, { from: PARTY_B })
)
- assert.equal((await kittyCore.ownerOf(kittyId)), arbitrable.address, 'arbitrable should still own kitty')
+ assert.equal(
+ await kittyCore.ownerOf(kittyId),
+ arbitrable.address,
+ 'arbitrable should still own kitty'
+ )
await arbitrable.consentToSell(kittyId, 100, 200, 60, { from: PARTY_A })
- await arbitrable.createSaleAuction(kittyId, 100, 200, 60, { from: PARTY_B })
- assert.equal((await kittyCore.ownerOf(kittyId)), saleAuction.address, 'sale auction contract should own kitty')
+ await arbitrable.createSaleAuction(kittyId, 100, 200, 60, {
+ from: PARTY_B
+ })
+ assert.equal(
+ await kittyCore.ownerOf(kittyId),
+ saleAuction.address,
+ 'sale auction contract should own kitty'
+ )
})
it('should only allow party A to sell kitty if B consents', async () => {
@@ -255,29 +294,49 @@ contract('ArbitrableKitty', (accounts) => {
arbitrable.createSaleAuction(kittyId, 100, 200, 60, { from: PARTY_A })
)
- assert.equal((await kittyCore.ownerOf(kittyId)), arbitrable.address, 'arbitrable should still own kitty')
+ assert.equal(
+ await kittyCore.ownerOf(kittyId),
+ arbitrable.address,
+ 'arbitrable should still own kitty'
+ )
await arbitrable.consentToSell(kittyId, 100, 200, 60, { from: PARTY_B })
- await arbitrable.createSaleAuction(kittyId, 100, 200, 60, { from: PARTY_A })
- assert.equal((await kittyCore.ownerOf(kittyId)), saleAuction.address, 'sale auction contract should own kitty')
+ await arbitrable.createSaleAuction(kittyId, 100, 200, 60, {
+ from: PARTY_A
+ })
+ assert.equal(
+ await kittyCore.ownerOf(kittyId),
+ saleAuction.address,
+ 'sale auction contract should own kitty'
+ )
})
it('should allow party to revoke consent before other party takes action', async () => {
const { kittyId, PARTY_A, PARTY_B } = params
await arbitrable.consentToSell(kittyId, 150, 300, 20, { from: PARTY_B })
- assert.isTrue(await arbitrable.partyConsentsToSell(PARTY_B, kittyId, 150, 300, 20))
+ assert.isTrue(
+ await arbitrable.partyConsentsToSell(PARTY_B, kittyId, 150, 300, 20)
+ )
await expectThrow(
arbitrable.createSaleAuction(kittyId, 100, 200, 60, { from: PARTY_A })
)
await arbitrable.revokeConsentToSell(kittyId, { from: PARTY_B })
- assert.isFalse(await arbitrable.partyConsentsToSell(PARTY_B, kittyId, 150, 300, 20))
+ assert.isFalse(
+ await arbitrable.partyConsentsToSell(PARTY_B, kittyId, 150, 300, 20)
+ )
await arbitrable.consentToSell(kittyId, 100, 200, 60, { from: PARTY_B })
- await arbitrable.createSaleAuction(kittyId, 100, 200, 60, { from: PARTY_A })
- assert.equal((await kittyCore.ownerOf(kittyId)), saleAuction.address, 'sale auction contract should own kitty')
+ await arbitrable.createSaleAuction(kittyId, 100, 200, 60, {
+ from: PARTY_A
+ })
+ assert.equal(
+ await kittyCore.ownerOf(kittyId),
+ saleAuction.address,
+ 'sale auction contract should own kitty'
+ )
})
})
@@ -285,17 +344,36 @@ contract('ArbitrableKitty', (accounts) => {
beforeEach(deployAndPrepare)
it('should allow only party A to cancel siring auction', async () => {
- const { PARTY_A, PARTY_B, kittyId, ARBITRATION_FEE, PARTY_A_WINS, ARBITRATOR } = params
-
- await arbitrable.createSiringAuction(kittyId, 100, 200, 60, { from: PARTY_B })
- assert.equal(await kittyCore.ownerOf(kittyId), siringAuction.address, 'siring contract should own kitty')
+ const {
+ PARTY_A,
+ PARTY_B,
+ kittyId,
+ ARBITRATION_FEE,
+ PARTY_A_WINS,
+ ARBITRATOR
+ } = params
+
+ await arbitrable.createSiringAuction(kittyId, 100, 200, 60, {
+ from: PARTY_B
+ })
+ assert.equal(
+ await kittyCore.ownerOf(kittyId),
+ siringAuction.address,
+ 'siring contract should own kitty'
+ )
// Raise dispute
- await arbitrable.payArbitrationFeeByPartyA({from: PARTY_A, value: ARBITRATION_FEE})
- await arbitrable.payArbitrationFeeByPartyB({from: PARTY_B, value: ARBITRATION_FEE})
+ await arbitrable.payArbitrationFeeByPartyA({
+ from: PARTY_A,
+ value: ARBITRATION_FEE
+ })
+ await arbitrable.payArbitrationFeeByPartyB({
+ from: PARTY_B,
+ value: ARBITRATION_FEE
+ })
// Grant custody to party A
- await arbitrator.giveRuling(0, PARTY_A_WINS, {from: ARBITRATOR})
+ await arbitrator.giveRuling(0, PARTY_A_WINS, { from: ARBITRATOR })
// Party B should not be allowed to cancel siring auction
await expectThrow(
@@ -304,21 +382,44 @@ contract('ArbitrableKitty', (accounts) => {
await arbitrable.cancelSiringAuction(kittyId, { from: PARTY_A })
- assert.equal((await kittyCore.ownerOf(kittyId)), arbitrable.address, 'arbitrable contract should own kitty')
+ assert.equal(
+ await kittyCore.ownerOf(kittyId),
+ arbitrable.address,
+ 'arbitrable contract should own kitty'
+ )
})
it('should allow only party B to cancel siring auction', async () => {
- const { PARTY_A, PARTY_B, kittyId, ARBITRATION_FEE, PARTY_B_WINS, ARBITRATOR } = params
-
- await arbitrable.createSiringAuction(kittyId, 100, 200, 60, { from: PARTY_A })
- assert.equal(await kittyCore.ownerOf(kittyId), siringAuction.address, 'siring contract should own kitty')
+ const {
+ PARTY_A,
+ PARTY_B,
+ kittyId,
+ ARBITRATION_FEE,
+ PARTY_B_WINS,
+ ARBITRATOR
+ } = params
+
+ await arbitrable.createSiringAuction(kittyId, 100, 200, 60, {
+ from: PARTY_A
+ })
+ assert.equal(
+ await kittyCore.ownerOf(kittyId),
+ siringAuction.address,
+ 'siring contract should own kitty'
+ )
// Raise dispute
- await arbitrable.payArbitrationFeeByPartyA({from: PARTY_A, value: ARBITRATION_FEE})
- await arbitrable.payArbitrationFeeByPartyB({from: PARTY_B, value: ARBITRATION_FEE})
+ await arbitrable.payArbitrationFeeByPartyA({
+ from: PARTY_A,
+ value: ARBITRATION_FEE
+ })
+ await arbitrable.payArbitrationFeeByPartyB({
+ from: PARTY_B,
+ value: ARBITRATION_FEE
+ })
// Grant custody to party B
- await arbitrator.giveRuling(0, PARTY_B_WINS, {from: ARBITRATOR})
+ await arbitrator.giveRuling(0, PARTY_B_WINS, { from: ARBITRATOR })
// Party B should not be allowed to cancel siring auction
await expectThrow(
@@ -327,7 +428,11 @@ contract('ArbitrableKitty', (accounts) => {
await arbitrable.cancelSiringAuction(kittyId, { from: PARTY_B })
- assert.equal((await kittyCore.ownerOf(kittyId)), arbitrable.address, 'arbitrable contract should own kitty')
+ assert.equal(
+ await kittyCore.ownerOf(kittyId),
+ arbitrable.address,
+ 'arbitrable contract should own kitty'
+ )
})
})
@@ -335,18 +440,37 @@ contract('ArbitrableKitty', (accounts) => {
beforeEach(deployAndPrepare)
it('should allow only party A to cancel sale auction', async () => {
- const { PARTY_A, PARTY_B, kittyId, ARBITRATION_FEE, PARTY_A_WINS, ARBITRATOR } = params
+ const {
+ PARTY_A,
+ PARTY_B,
+ kittyId,
+ ARBITRATION_FEE,
+ PARTY_A_WINS,
+ ARBITRATOR
+ } = params
await arbitrable.consentToSell(kittyId, 100, 200, 60, { from: PARTY_A })
- await arbitrable.createSaleAuction(kittyId, 100, 200, 60, { from: PARTY_B })
- assert.equal(await kittyCore.ownerOf(kittyId), saleAuction.address, 'sale contract should own kitty')
+ await arbitrable.createSaleAuction(kittyId, 100, 200, 60, {
+ from: PARTY_B
+ })
+ assert.equal(
+ await kittyCore.ownerOf(kittyId),
+ saleAuction.address,
+ 'sale contract should own kitty'
+ )
// Raise dispute
- await arbitrable.payArbitrationFeeByPartyA({from: PARTY_A, value: ARBITRATION_FEE})
- await arbitrable.payArbitrationFeeByPartyB({from: PARTY_B, value: ARBITRATION_FEE})
+ await arbitrable.payArbitrationFeeByPartyA({
+ from: PARTY_A,
+ value: ARBITRATION_FEE
+ })
+ await arbitrable.payArbitrationFeeByPartyB({
+ from: PARTY_B,
+ value: ARBITRATION_FEE
+ })
// Grant custody to party A
- await arbitrator.giveRuling(0, PARTY_A_WINS, {from: ARBITRATOR})
+ await arbitrator.giveRuling(0, PARTY_A_WINS, { from: ARBITRATOR })
// Party B should not be allowed to cancel sale auction
await expectThrow(
@@ -354,22 +478,45 @@ contract('ArbitrableKitty', (accounts) => {
)
await arbitrable.cancelSaleAuction(kittyId, { from: PARTY_A })
- assert.equal((await kittyCore.ownerOf(kittyId)), arbitrable.address, 'arbitrable contract should own kitty')
+ assert.equal(
+ await kittyCore.ownerOf(kittyId),
+ arbitrable.address,
+ 'arbitrable contract should own kitty'
+ )
})
it('should allow only party B to cancel sale auction', async () => {
- const { PARTY_A, PARTY_B, kittyId, PARTY_B_WINS, ARBITRATION_FEE, ARBITRATOR } = params
+ const {
+ PARTY_A,
+ PARTY_B,
+ kittyId,
+ PARTY_B_WINS,
+ ARBITRATION_FEE,
+ ARBITRATOR
+ } = params
await arbitrable.consentToSell(kittyId, 100, 200, 60, { from: PARTY_B })
- await arbitrable.createSaleAuction(kittyId, 100, 200, 60, { from: PARTY_A })
- assert.equal(await kittyCore.ownerOf(kittyId), saleAuction.address, 'sale contract should own kitty')
+ await arbitrable.createSaleAuction(kittyId, 100, 200, 60, {
+ from: PARTY_A
+ })
+ assert.equal(
+ await kittyCore.ownerOf(kittyId),
+ saleAuction.address,
+ 'sale contract should own kitty'
+ )
// Raise dispute
- await arbitrable.payArbitrationFeeByPartyA({from: PARTY_A, value: ARBITRATION_FEE})
- await arbitrable.payArbitrationFeeByPartyB({from: PARTY_B, value: ARBITRATION_FEE})
+ await arbitrable.payArbitrationFeeByPartyA({
+ from: PARTY_A,
+ value: ARBITRATION_FEE
+ })
+ await arbitrable.payArbitrationFeeByPartyB({
+ from: PARTY_B,
+ value: ARBITRATION_FEE
+ })
// Grant custody to party B
- await arbitrator.giveRuling(0, PARTY_B_WINS, {from: ARBITRATOR})
+ await arbitrator.giveRuling(0, PARTY_B_WINS, { from: ARBITRATOR })
// Party B should not be allowed to cancel sale auction
await expectThrow(
@@ -378,7 +525,11 @@ contract('ArbitrableKitty', (accounts) => {
await arbitrable.cancelSaleAuction(kittyId, { from: PARTY_B })
- assert.equal((await kittyCore.ownerOf(kittyId)), arbitrable.address, 'arbitrable contract should own kitty')
+ assert.equal(
+ await kittyCore.ownerOf(kittyId),
+ arbitrable.address,
+ 'arbitrable contract should own kitty'
+ )
})
})
@@ -386,22 +537,46 @@ contract('ArbitrableKitty', (accounts) => {
beforeEach(async () => {
await deployAndPrepare()
- const { PARTY_A, PARTY_B, ARBITRATION_FEE, ARBITRATOR, PARTY_A_WINS } = params
- assert.isAtMost((await arbitrable.rulingResult()).toNumber(), 0, 'should not have a result yet')
+ const {
+ PARTY_A,
+ PARTY_B,
+ ARBITRATION_FEE,
+ ARBITRATOR,
+ PARTY_A_WINS
+ } = params
+ assert.isAtMost(
+ (await arbitrable.rulingResult()).toNumber(),
+ 0,
+ 'should not have a result yet'
+ )
// Raise dispute
- await arbitrable.payArbitrationFeeByPartyA({from: PARTY_A, value: ARBITRATION_FEE})
- await arbitrable.payArbitrationFeeByPartyB({from: PARTY_B, value: ARBITRATION_FEE})
+ await arbitrable.payArbitrationFeeByPartyA({
+ from: PARTY_A,
+ value: ARBITRATION_FEE
+ })
+ await arbitrable.payArbitrationFeeByPartyB({
+ from: PARTY_B,
+ value: ARBITRATION_FEE
+ })
// Grant custody to party A
- await arbitrator.giveRuling(0, PARTY_A_WINS, {from: ARBITRATOR})
+ await arbitrator.giveRuling(0, PARTY_A_WINS, { from: ARBITRATOR })
})
it('should grant custody to A if arbitrator ruled as such', async () => {
const { PARTY_A_WINS, PARTY_A } = params
- assert.equal((await arbitrable.rulingResult()).toNumber(), PARTY_A_WINS, 'party A should have won')
- assert.equal(await arbitrable.winner(), PARTY_A, 'Party A should be the winner')
+ assert.equal(
+ (await arbitrable.rulingResult()).toNumber(),
+ PARTY_A_WINS,
+ 'party A should have won'
+ )
+ assert.equal(
+ await arbitrable.winner(),
+ PARTY_A,
+ 'Party A should be the winner'
+ )
})
it('should allow only party A to transfer kitty if arbitrator ruled as such', async () => {
@@ -413,7 +588,11 @@ contract('ArbitrableKitty', (accounts) => {
await arbitrable.transfer(OTHER_USER, kittyId, { from: PARTY_A })
- assert.equal(await kittyCore.ownerOf(kittyId), OTHER_USER, 'other user should own kitty.')
+ assert.equal(
+ await kittyCore.ownerOf(kittyId),
+ OTHER_USER,
+ 'other user should own kitty.'
+ )
})
})
@@ -421,21 +600,45 @@ contract('ArbitrableKitty', (accounts) => {
beforeEach(async () => {
await deployAndPrepare()
- const { PARTY_A, PARTY_B, ARBITRATION_FEE, ARBITRATOR, PARTY_B_WINS } = params
- assert.isAtMost((await arbitrable.rulingResult()).toNumber(), 0, 'should not have a result yet')
+ const {
+ PARTY_A,
+ PARTY_B,
+ ARBITRATION_FEE,
+ ARBITRATOR,
+ PARTY_B_WINS
+ } = params
+ assert.isAtMost(
+ (await arbitrable.rulingResult()).toNumber(),
+ 0,
+ 'should not have a result yet'
+ )
// Raise dispute
- await arbitrable.payArbitrationFeeByPartyA({from: PARTY_A, value: ARBITRATION_FEE})
- await arbitrable.payArbitrationFeeByPartyB({from: PARTY_B, value: ARBITRATION_FEE})
+ await arbitrable.payArbitrationFeeByPartyA({
+ from: PARTY_A,
+ value: ARBITRATION_FEE
+ })
+ await arbitrable.payArbitrationFeeByPartyB({
+ from: PARTY_B,
+ value: ARBITRATION_FEE
+ })
// Grant custody to party B
- await arbitrator.giveRuling(0, PARTY_B_WINS, {from: ARBITRATOR})
+ await arbitrator.giveRuling(0, PARTY_B_WINS, { from: ARBITRATOR })
})
it('should grant custody to B if arbitrator ruled as such', async () => {
const { PARTY_B_WINS, PARTY_B } = params
- assert.equal((await arbitrable.rulingResult()).toNumber(), PARTY_B_WINS, 'party B should have won')
- assert.equal(await arbitrable.winner(), PARTY_B, 'Party B should be the winner')
+ assert.equal(
+ (await arbitrable.rulingResult()).toNumber(),
+ PARTY_B_WINS,
+ 'party B should have won'
+ )
+ assert.equal(
+ await arbitrable.winner(),
+ PARTY_B,
+ 'Party B should be the winner'
+ )
})
it('should allow only party B to transfer kitty if arbitrator ruled as such', async () => {
@@ -447,7 +650,11 @@ contract('ArbitrableKitty', (accounts) => {
await arbitrable.transfer(OTHER_USER, kittyId, { from: PARTY_B })
- assert.equal(await kittyCore.ownerOf(kittyId), OTHER_USER, 'other user should own kitty.')
+ assert.equal(
+ await kittyCore.ownerOf(kittyId),
+ OTHER_USER,
+ 'other user should own kitty.'
+ )
})
})
@@ -455,12 +662,28 @@ contract('ArbitrableKitty', (accounts) => {
beforeEach(async () => {
await deployAndPrepare()
- const { PARTY_A, PARTY_B, ARBITRATION_FEE, ARBITRATOR, SHARED_CUSTODY } = params
- assert.isAtMost((await arbitrable.rulingResult()).toNumber(), 0, 'should not have a result yet')
+ const {
+ PARTY_A,
+ PARTY_B,
+ ARBITRATION_FEE,
+ ARBITRATOR,
+ SHARED_CUSTODY
+ } = params
+ assert.isAtMost(
+ (await arbitrable.rulingResult()).toNumber(),
+ 0,
+ 'should not have a result yet'
+ )
// Raise dispute
- await arbitrable.payArbitrationFeeByPartyA({from: PARTY_A, value: ARBITRATION_FEE})
- await arbitrable.payArbitrationFeeByPartyB({from: PARTY_B, value: ARBITRATION_FEE})
+ await arbitrable.payArbitrationFeeByPartyA({
+ from: PARTY_A,
+ value: ARBITRATION_FEE
+ })
+ await arbitrable.payArbitrationFeeByPartyB({
+ from: PARTY_B,
+ value: ARBITRATION_FEE
+ })
// // Grant shared custody
await arbitrator.giveRuling(0, SHARED_CUSTODY, { from: ARBITRATOR })
@@ -469,24 +692,50 @@ contract('ArbitrableKitty', (accounts) => {
it('should have granted shared custody', async () => {
const { SHARED_CUSTODY } = params
const rulingResult = (await arbitrable.rulingResult()).toNumber()
- assert.equal(rulingResult, SHARED_CUSTODY, 'shared custody should have been granted')
- assert.equal((await web3.eth.getBalance(arbitrable.address)).toNumber(),0,'should have split fees')
+ assert.equal(
+ rulingResult,
+ SHARED_CUSTODY,
+ 'shared custody should have been granted'
+ )
+ assert.equal(
+ (await web3.eth.getBalance(arbitrable.address)).toNumber(),
+ 0,
+ 'should have split fees'
+ )
})
- it("should return correct custody information", async () => {
+ it('should return correct custody information', async () => {
const { PARTY_A, PARTY_B } = params
- assert.isFalse(await arbitrable.underSendersCustody({ from: PARTY_B }),"should not be available yet")
- assert.isFalse(await arbitrable.underSendersCustody({ from: PARTY_A }),"should not be available yet")
+ assert.isFalse(
+ await arbitrable.underSendersCustody({ from: PARTY_B }),
+ 'should not be available yet'
+ )
+ assert.isFalse(
+ await arbitrable.underSendersCustody({ from: PARTY_A }),
+ 'should not be available yet'
+ )
increaseTime(1)
- assert.isTrue(await arbitrable.underSendersCustody({ from: PARTY_A }),"should be under A's custody")
- assert.isFalse(await arbitrable.underSendersCustody({ from: PARTY_B }),"should be under A's custody")
+ assert.isTrue(
+ await arbitrable.underSendersCustody({ from: PARTY_A }),
+ "should be under A's custody"
+ )
+ assert.isFalse(
+ await arbitrable.underSendersCustody({ from: PARTY_B }),
+ "should be under A's custody"
+ )
increaseTime(60 * 60 * 24 * 7)
- assert.isTrue(await arbitrable.underSendersCustody({ from: PARTY_B }),"should be under B's custody")
- assert.isFalse(await arbitrable.underSendersCustody({ from: PARTY_A }),"should be under B's custody")
+ assert.isTrue(
+ await arbitrable.underSendersCustody({ from: PARTY_B }),
+ "should be under B's custody"
+ )
+ assert.isFalse(
+ await arbitrable.underSendersCustody({ from: PARTY_A }),
+ "should be under B's custody"
+ )
})
it("should allow only party A to take actions during A's custody", async () => {
@@ -497,7 +746,9 @@ contract('ArbitrableKitty', (accounts) => {
arbitrable.createSiringAuction(kittyId, 100, 200, 60, { from: PARTY_B })
)
- await arbitrable.createSiringAuction(kittyId, 100, 200, 60, { from: PARTY_A })
+ await arbitrable.createSiringAuction(kittyId, 100, 200, 60, {
+ from: PARTY_A
+ })
await expectThrow(
arbitrable.cancelSiringAuction(kittyId, { from: PARTY_B })
@@ -519,12 +770,11 @@ contract('ArbitrableKitty', (accounts) => {
from: PARTY_A,
value: autoBirthFee
})
-
})
it("should allow only party B to take actions during B's custody", async () => {
const { PARTY_A, PARTY_B, kittyId, OTHER_USER } = params
- increaseTime((60 * 60 * 24 * 7) + 1)
+ increaseTime(60 * 60 * 24 * 7 + 1)
const otherKittyId = await kittyToSiringAuction(
await mintKitty(2000, OTHER_USER),
@@ -532,39 +782,45 @@ contract('ArbitrableKitty', (accounts) => {
)
await expectThrow(
- arbitrable.bidOnSiringAuction(otherKittyId, kittyId, { from: PARTY_A, value: 200 })
+ arbitrable.bidOnSiringAuction(otherKittyId, kittyId, {
+ from: PARTY_A,
+ value: 200
+ })
)
- await arbitrable.bidOnSiringAuction(otherKittyId, kittyId, { from: PARTY_B, value: 200 })
+ await arbitrable.bidOnSiringAuction(otherKittyId, kittyId, {
+ from: PARTY_B,
+ value: 200
+ })
increaseTime(60 * 60)
- await expectThrow(
- arbitrable.giveBirth(kittyId, { from: PARTY_A })
- )
+ await expectThrow(arbitrable.giveBirth(kittyId, { from: PARTY_A }))
await arbitrable.giveBirth(kittyId, { from: PARTY_B })
})
-
})
describe('Custody math checker', () => {
beforeEach(deployAndPrepare)
it('should calculate modulus correctly', async () => {
- assert.equal((await arbitrable.modulus(21999,1661)).toNumber(),406)
- assert.equal((await arbitrable.modulus(2,4)).toNumber(),2)
- await expectThrow(
- arbitrable.modulus(2,0)
- )
+ assert.equal((await arbitrable.modulus(21999, 1661)).toNumber(), 406)
+ assert.equal((await arbitrable.modulus(2, 4)).toNumber(), 2)
+ await expectThrow(arbitrable.modulus(2, 0))
})
it('should return custody correctly for input', async () => {
const partyA = 1
const partyB = 2
- assert.equal((await arbitrable.custodyTurn(10000,10001,300)).toNumber(),partyA)
- assert.equal((await arbitrable.custodyTurn(10000,10300,300)).toNumber(),partyB)
+ assert.equal(
+ (await arbitrable.custodyTurn(10000, 10001, 300)).toNumber(),
+ partyA
+ )
+ assert.equal(
+ (await arbitrable.custodyTurn(10000, 10300, 300)).toNumber(),
+ partyB
+ )
})
})
-
})
diff --git a/test/arbitrable-permission-list.js b/test/arbitrable-permission-list.js
new file mode 100644
index 00000000..db74ffd7
--- /dev/null
+++ b/test/arbitrable-permission-list.js
@@ -0,0 +1,1965 @@
+/* eslint-disable no-undef */ // Avoid the linter considering truffle elements as undef.
+
+const BigNumber = web3.BigNumber
+const { expectThrow } = require('../helpers/utils')
+
+const ArbitrablePermissionList = artifacts.require(
+ './ArbitrablePermissionList.sol'
+)
+const CentralizedArbitrator = artifacts.require('./CentralizedArbitrator.sol')
+
+contract('ArbitrablePermissionList', function(accounts) {
+ const arbitrator = accounts[1]
+ const partyA = accounts[2]
+ const partyB = accounts[3]
+ const arbitratorExtraData = 0x08575
+ const arbitrationFee = 4
+ const stake = 10
+ const timeToChallenge = 0
+ const metaEvidence = 'evidence'
+
+ let centralizedArbitrator
+ let arbitrablePermissionList
+ let arbitrationCost
+
+ const ITEM_STATUS = {
+ ABSENT: 0,
+ CLEARED: 1,
+ RESUBMITTED: 2,
+ REGISTERED: 3,
+ SUBMITTED: 4,
+ CLEARING_REQUESTED: 5,
+ PREVENTIVE_CLEARING_REQUESTED: 6
+ }
+
+ const RULING = {
+ OTHER: 0,
+ REGISTER: 1,
+ CLEAR: 2
+ }
+
+ const ARBITRARY_STRING = 'abc'
+
+ describe('queryItems', function() {
+ before('setup contract for each test', async () => {
+ centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {
+ from: arbitrator
+ })
+
+ blacklist = true
+ appendOnly = false
+ rechallengePossible = false
+
+ arbitrablePermissionList = await ArbitrablePermissionList.new(
+ centralizedArbitrator.address,
+ arbitratorExtraData,
+ metaEvidence,
+ blacklist,
+ appendOnly,
+ rechallengePossible,
+ stake,
+ timeToChallenge,
+ {
+ from: arbitrator
+ }
+ )
+
+ arbitrationCost = (await centralizedArbitrator.arbitrationCost.call(
+ 'as',
+ {
+ from: arbitrator
+ }
+ )).toNumber()
+ })
+
+ before('populate the list', async function() {
+ await arbitrablePermissionList.requestRegistration(ARBITRARY_STRING, {
+ from: partyA,
+ value: stake + arbitrationCost
+ })
+ })
+
+ it('should succesfully retrieve mySubmissions', async function() {
+ const cursor = 0
+ const count = 1
+
+ const pending = false
+ const challenged = false
+ const accepted = false
+ const rejected = false
+ const mySubmissions = true
+ const myChallenges = false
+
+ const filter = [
+ pending,
+ challenged,
+ accepted,
+ rejected,
+ mySubmissions,
+ myChallenges
+ ]
+ const sort = true
+
+ const item = (await arbitrablePermissionList.queryItems(
+ cursor,
+ count,
+ filter,
+ sort,
+ {
+ from: partyA
+ }
+ ))[0]
+
+ assert.equal(web3.toUtf8(item[0]), ARBITRARY_STRING)
+ })
+
+ it('should succesfully retrieve pending', async function() {
+ const cursor = 0
+ const count = 1
+
+ const pending = true
+ const challenged = false
+ const accepted = false
+ const rejected = false
+ const mySubmissions = false
+ const myChallenges = false
+
+ const filter = [
+ pending,
+ challenged,
+ accepted,
+ rejected,
+ mySubmissions,
+ myChallenges
+ ]
+ const sort = true
+
+ const item = (await arbitrablePermissionList.queryItems(
+ cursor,
+ count,
+ filter,
+ sort,
+ {
+ from: partyA
+ }
+ ))[0]
+
+ assert.equal(web3.toUtf8(item[0]), ARBITRARY_STRING)
+ })
+
+ it('should revert when not cursor < itemsList.length', async function() {
+ const cursor = 1
+ const count = 1
+
+ const pending = true
+ const challenged = false
+ const accepted = false
+ const rejected = false
+ const mySubmissions = false
+ const myChallenges = false
+
+ const filter = [
+ pending,
+ challenged,
+ accepted,
+ rejected,
+ mySubmissions,
+ myChallenges
+ ]
+ const sort = true
+
+ await expectThrow(
+ arbitrablePermissionList.queryItems(cursor, count, filter, sort, {
+ from: partyA
+ })
+ )
+ })
+ })
+
+ for (const appendOnly of [true, false])
+ for (const blacklist of [true, false])
+ for (const rechallengePossible of [true, false])
+ describe(
+ 'When appendOnly=' +
+ appendOnly +
+ ', blacklist=' +
+ blacklist +
+ ', rechallengePossible=' +
+ rechallengePossible,
+ function() {
+ beforeEach('setup contract for each test', async () => {
+ centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ {
+ from: arbitrator
+ }
+ )
+
+ arbitrablePermissionList = await ArbitrablePermissionList.new(
+ centralizedArbitrator.address,
+ arbitratorExtraData,
+ metaEvidence,
+ blacklist,
+ appendOnly,
+ rechallengePossible,
+ stake,
+ timeToChallenge,
+ {
+ from: arbitrator
+ }
+ )
+
+ arbitrationCost = (await centralizedArbitrator.arbitrationCost.call(
+ 'as',
+ {
+ from: arbitrator
+ }
+ )).toNumber()
+ })
+
+ it('should be constructed correctly', async () => {
+ assert.equal(
+ await arbitrablePermissionList.arbitrator(),
+ centralizedArbitrator.address
+ )
+ assert.equal(
+ await arbitrablePermissionList.arbitratorExtraData(),
+ arbitratorExtraData
+ )
+ assert.equal(
+ await arbitrablePermissionList.blacklist(),
+ blacklist
+ )
+ assert.equal(
+ await arbitrablePermissionList.appendOnly(),
+ appendOnly
+ )
+ assert.equal(
+ await arbitrablePermissionList.rechallengePossible(),
+ rechallengePossible
+ )
+ assert.equal(await arbitrablePermissionList.stake(), stake)
+ assert.equal(
+ await arbitrablePermissionList.timeToChallenge(),
+ timeToChallenge
+ )
+ })
+
+ describe('msg.value restrictions', function() {
+ describe('Should revert when msg.value < stake+arbitratorCost', function() {
+ it('requestRegistration', async () => {
+ await expectThrow(
+ arbitrablePermissionList.requestRegistration(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost - 1
+ }
+ )
+ )
+ })
+
+ it('requestClearing', async () => {
+ await expectThrow(
+ arbitrablePermissionList.requestClearing(ARBITRARY_STRING, {
+ from: arbitrator,
+ value: stake + arbitrationCost - 1
+ })
+ )
+ })
+
+ it('challengeRegistration', async () => {
+ await expectThrow(
+ arbitrablePermissionList.challengeRegistration(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost - 1
+ }
+ )
+ )
+ })
+
+ it('challengeClearing', async () => {
+ await expectThrow(
+ arbitrablePermissionList.challengeRegistration(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost - 1
+ }
+ )
+ )
+ })
+ })
+ })
+
+ describe('When item.disputed', function() {
+ beforeEach(
+ 'prepare pre-conditions to satisfy other requirements',
+ async function() {
+ await arbitrablePermissionList.requestRegistration(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ ) // To satisfy `require(item.status==ItemStatus.Resubmitted || item.status==ItemStatus.Submitted)`
+
+ await arbitrablePermissionList.challengeRegistration(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ ) // To dissatisfy `require(!item.disputed)`
+ }
+ )
+
+ beforeEach('assert pre-conditions', async function() {
+ assert.ok(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber() === ITEM_STATUS.SUBMITTED ||
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber() === ITEM_STATUS.RESUBMITTED
+ )
+
+ assert.equal(
+ (await arbitrablePermissionList.items(ARBITRARY_STRING))[5],
+ true
+ )
+ })
+ it('challengeRegistration', async () => {
+ await expectThrow(
+ arbitrablePermissionList.challengeRegistration(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+ )
+ })
+
+ it('challengeClearing', async () => {
+ await expectThrow(
+ arbitrablePermissionList.challengeClearing(ARBITRARY_STRING, {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ })
+ )
+ })
+ })
+
+ describe('When !(item.status==ItemStatus.ClearingRequested || item.status==ItemStatus.PreventiveClearingRequested))', function() {
+ beforeEach('assert pre-conditions', async function() {
+ assert.ok(
+ (await arbitrablePermissionList.items(ARBITRARY_STRING))[0] <
+ ITEM_STATUS.CLEARING_REQUESTED
+ )
+ })
+
+ it('challengeRegistration', async function() {
+ await expectThrow(
+ arbitrablePermissionList.challengeRegistration(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+ )
+ })
+
+ it('challengeClearing', async function() {
+ await expectThrow(
+ arbitrablePermissionList.challengeClearing(ARBITRARY_STRING, {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ })
+ )
+ })
+ })
+
+ if (!rechallengePossible) {
+ describe('When item in absent state', function() {
+ beforeEach('assert pre-conditions', async function() {
+ assert.equal(
+ (await arbitrablePermissionList.items(ARBITRARY_STRING))[0],
+ ITEM_STATUS.ABSENT
+ )
+ })
+
+ it(
+ 'calling isPermitted should return ' + blacklist,
+ async () => {
+ assert.equal(
+ await arbitrablePermissionList.isPermitted(
+ ARBITRARY_STRING
+ ),
+ blacklist
+ )
+ }
+ )
+
+ it('calling requestRegistration should move item into the submitted state', async () => {
+ await arbitrablePermissionList.requestRegistration(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+
+ assert.equal(
+ (await arbitrablePermissionList.items(ARBITRARY_STRING))[0],
+ ITEM_STATUS.SUBMITTED
+ )
+ })
+
+ if (!appendOnly)
+ it('calling requestClearing should move item into the preventive clearing requested state', async () => {
+ await arbitrablePermissionList.requestClearing(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber(),
+ ITEM_STATUS.PREVENTIVE_CLEARING_REQUESTED
+ )
+ })
+ else
+ it('calling requestClearing should revert', async () => {
+ await expectThrow(
+ arbitrablePermissionList.requestClearing(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+ )
+ })
+
+ it('calling challangeBlacklisting should revert', async () => {
+ await expectThrow(
+ arbitrablePermissionList.challengeRegistration(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+ )
+ })
+
+ it('calling challangeClearing should revert', async () => {
+ await expectThrow(
+ arbitrablePermissionList.challengeClearing(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+ )
+ })
+
+ it('calling executeRequest should revert', async () => {
+ await expectThrow(
+ arbitrablePermissionList.executeRequest(ARBITRARY_STRING, {
+ from: arbitrator
+ })
+ )
+ })
+ })
+
+ if (!appendOnly)
+ describe('When item in cleared state', function() {
+ beforeEach('prepare pre-conditions', async function() {
+ await arbitrablePermissionList.requestRegistration(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+ await arbitrablePermissionList.executeRequest(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator
+ }
+ )
+ await arbitrablePermissionList.requestClearing(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+ await arbitrablePermissionList.executeRequest(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator
+ }
+ )
+ })
+
+ beforeEach('assert pre-conditions', async function() {
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0],
+ ITEM_STATUS.CLEARED
+ )
+ })
+
+ it(
+ 'calling isPermitted should return ' + blacklist,
+ async () => {
+ assert.equal(
+ await arbitrablePermissionList.isPermitted(
+ ARBITRARY_STRING
+ ),
+ blacklist
+ )
+ }
+ )
+
+ it('calling requestRegistration should move item into the resubmitted state', async () => {
+ await arbitrablePermissionList.requestRegistration(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber(),
+ ITEM_STATUS.RESUBMITTED
+ )
+ })
+
+ it('calling requestClearing should revert', async () => {
+ await expectThrow(
+ arbitrablePermissionList.requestClearing(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+ )
+ })
+
+ it('calling challangeBlacklisting should revert', async () => {
+ await expectThrow(
+ arbitrablePermissionList.challengeRegistration(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+ )
+ })
+
+ it('calling challangeClearing should revert', async () => {
+ await expectThrow(
+ arbitrablePermissionList.challengeClearing(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+ )
+ })
+
+ it('calling executeRequest should revert', async () => {
+ await expectThrow(
+ arbitrablePermissionList.executeRequest(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator
+ }
+ )
+ )
+ })
+ })
+
+ if (!appendOnly)
+ describe('When item in resubmitted state', function() {
+ beforeEach('prepare pre-conditions', async function() {
+ await arbitrablePermissionList.requestRegistration(
+ ARBITRARY_STRING,
+ {
+ from: partyA,
+ value: stake + arbitrationCost
+ }
+ )
+ await arbitrablePermissionList.executeRequest(
+ ARBITRARY_STRING,
+ {
+ from: partyA
+ }
+ )
+ await arbitrablePermissionList.requestClearing(
+ ARBITRARY_STRING,
+ {
+ from: partyB,
+ value: stake + arbitrationCost
+ }
+ )
+ await arbitrablePermissionList.executeRequest(
+ ARBITRARY_STRING,
+ {
+ from: partyB
+ }
+ )
+ await arbitrablePermissionList.requestRegistration(
+ ARBITRARY_STRING,
+ {
+ from: partyA,
+ value: stake + arbitrationCost
+ }
+ )
+ })
+
+ beforeEach('assert pre-conditions', async function() {
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber(),
+ ITEM_STATUS.RESUBMITTED
+ )
+ })
+
+ it(
+ 'calling isPermitted should return true ' + blacklist,
+ async () => {
+ assert.equal(
+ await arbitrablePermissionList.isPermitted(
+ ARBITRARY_STRING
+ ),
+ blacklist
+ )
+ }
+ )
+
+ it('calling requestRegistration should revert', async () => {
+ await expectThrow(
+ arbitrablePermissionList.requestRegistration(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+ )
+ })
+
+ it('calling requestClearing should revert', async function() {
+ await expectThrow(
+ arbitrablePermissionList.requestClearing(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+ )
+ })
+
+ it('calling challengeBlacklisting should create a dispute', async function() {
+ const itemBalance = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[4].toNumber()
+
+ await arbitrablePermissionList.challengeRegistration(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[3].toString(),
+ arbitrator
+ )
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[4].toNumber(),
+ itemBalance + stake
+ )
+ const disputeID = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[6].toNumber()
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[5],
+ true
+ )
+ assert.equal(
+ web3.toUtf8(
+ await arbitrablePermissionList.disputeIDToItem(
+ disputeID
+ )
+ ),
+ ARBITRARY_STRING
+ )
+ })
+
+ it('calling challengeClearing should revert', async () => {
+ await expectThrow(
+ arbitrablePermissionList.challengeClearing(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+ )
+ })
+
+ it('calling executeRequest should move item into the blacklisted state', async function() {
+ await arbitrablePermissionList.executeRequest(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator
+ }
+ )
+
+ assert(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber() === ITEM_STATUS.REGISTERED
+ )
+ })
+
+ describe('executeRuling', async function() {
+ let disputeID
+
+ beforeEach('create a dispute', async function() {
+ await arbitrablePermissionList.challengeRegistration(
+ ARBITRARY_STRING,
+ {
+ from: partyB,
+ value: stake + arbitrationCost
+ }
+ )
+
+ disputeID = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[6].toNumber()
+ })
+
+ it('calling executeRuling with REGISTER should send item.balance to submitter', async function() {
+ const submitter = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[2]
+ const submitterBalance = web3.eth.getBalance(submitter)
+ const itemBalance = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[4]
+
+ await centralizedArbitrator.giveRuling(
+ disputeID,
+ RULING.REGISTER,
+ {
+ from: arbitrator
+ }
+ )
+
+ const actualBalanceOfSubmitter = web3.eth.getBalance(
+ submitter
+ )
+ const expectedBalanceOfSubmitter = submitterBalance
+ .plus(itemBalance)
+ .minus(new BigNumber(stake).mul(4))
+ .minus(new BigNumber(arbitrationFee).mul(3))
+
+ assert(
+ actualBalanceOfSubmitter.equals(
+ expectedBalanceOfSubmitter
+ ),
+ 'Difference: ' +
+ actualBalanceOfSubmitter
+ .minus(expectedBalanceOfSubmitter)
+ .toNumber()
+ )
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber(),
+ ITEM_STATUS.REGISTERED
+ )
+ })
+
+ it('calling executeRuling with CLEAR should send item.balance to challenger', async function() {
+ const challenger = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[3]
+ const challengerBalance = web3.eth.getBalance(challenger)
+ const itemBalance = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[4]
+
+ await centralizedArbitrator.giveRuling(
+ disputeID,
+ RULING.CLEAR,
+ {
+ from: arbitrator
+ }
+ )
+
+ const actualBalanceOfChallenger = web3.eth.getBalance(
+ challenger
+ )
+ const expectedBalanceOfChallenger = itemBalance
+ .plus(challengerBalance)
+ .minus(new BigNumber(stake).mul(4))
+ .minus(new BigNumber(arbitrationFee).mul(3))
+
+ assert(
+ actualBalanceOfChallenger.equals(
+ expectedBalanceOfChallenger
+ ),
+ 'Difference: ' +
+ actualBalanceOfChallenger
+ .minus(expectedBalanceOfChallenger)
+ .toNumber()
+ )
+
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber(),
+ ITEM_STATUS.CLEARED
+ )
+ })
+
+ it('calling executeRuling with OTHER should split item.balance between challenger and submitter and move item into the cleared state', async function() {
+ const submitter = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[2]
+ const challenger = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[3]
+ const submitterBalance = web3.eth.getBalance(submitter)
+ const challengerBalance = web3.eth.getBalance(challenger)
+ const itemBalance = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[4]
+
+ await centralizedArbitrator.giveRuling(
+ disputeID,
+ RULING.OTHER,
+ {
+ from: arbitrator
+ }
+ )
+
+ const actualBalanceOfSubmitter = web3.eth.getBalance(
+ submitter
+ )
+ const actualBalanceOfChallenger = web3.eth.getBalance(
+ challenger
+ )
+ const expectedBalanceOfSubmitter = itemBalance
+ .dividedBy(new BigNumber(2))
+ .plus(submitterBalance)
+ const expectedBalanceOfChallenger = itemBalance
+ .dividedBy(new BigNumber(2))
+ .plus(challengerBalance)
+ .minus(new BigNumber(stake).mul(2))
+ .minus(
+ new BigNumber(arbitrationFee).mul(3).dividedBy(2)
+ )
+
+ assert(
+ actualBalanceOfSubmitter.equals(
+ expectedBalanceOfSubmitter
+ ),
+ 'Actual: ' +
+ actualBalanceOfSubmitter +
+ '\t0Expected: ' +
+ expectedBalanceOfSubmitter
+ )
+ assert(
+ actualBalanceOfChallenger.equals(
+ expectedBalanceOfChallenger
+ ),
+ '1Differece: ' +
+ actualBalanceOfChallenger.minus(
+ expectedBalanceOfChallenger
+ )
+ )
+
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber(),
+ ITEM_STATUS.CLEARED
+ )
+ })
+ })
+ })
+
+ describe('When item in registered state', function() {
+ beforeEach('prepare pre-conditions', async function() {
+ await arbitrablePermissionList.requestRegistration(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+ await arbitrablePermissionList.executeRequest(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator
+ }
+ )
+ })
+
+ beforeEach('assert pre-conditions', async function() {
+ assert.equal(
+ (await arbitrablePermissionList.items(ARBITRARY_STRING))[0],
+ ITEM_STATUS.REGISTERED
+ )
+ })
+
+ it(
+ 'calling isPermitted should return ' + !blacklist,
+ async () => {
+ assert.equal(
+ await arbitrablePermissionList.isPermitted(
+ ARBITRARY_STRING
+ ),
+ !blacklist
+ )
+ }
+ )
+
+ it('calling requestRegistration should revert', async () => {
+ await expectThrow(
+ arbitrablePermissionList.requestRegistration(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+ )
+ })
+
+ if (!appendOnly)
+ it('calling requestClearing should move item into the clearing requested state', async () => {
+ await arbitrablePermissionList.requestClearing(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber(),
+ ITEM_STATUS.CLEARING_REQUESTED
+ )
+ })
+ else
+ it('calling requestClearing should revert', async () => {
+ await expectThrow(
+ arbitrablePermissionList.requestClearing(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+ )
+ })
+
+ it('calling challengeRegistration should revert', async () => {
+ await expectThrow(
+ arbitrablePermissionList.challengeRegistration(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+ )
+ })
+
+ it('calling challengeClearing should revert', async () => {
+ await expectThrow(
+ arbitrablePermissionList.challengeClearing(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+ )
+ })
+
+ it('calling executeRequest should revert', async function() {
+ await expectThrow(
+ arbitrablePermissionList.executeRequest(ARBITRARY_STRING, {
+ from: arbitrator
+ })
+ )
+ })
+ })
+ }
+
+ describe('When item in submitted state', function() {
+ beforeEach('prepare pre-conditions', async function() {
+ await arbitrablePermissionList.requestRegistration(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+ })
+
+ beforeEach('assert pre-conditions', async function() {
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber(),
+ ITEM_STATUS.SUBMITTED
+ )
+ })
+
+ it(
+ 'calling isPermitted should return ' + !blacklist,
+ async () => {
+ assert.equal(
+ await arbitrablePermissionList.isPermitted(
+ ARBITRARY_STRING
+ ),
+ !blacklist
+ )
+ }
+ )
+
+ it('calling requestRegistration should revert', async () => {
+ await expectThrow(
+ arbitrablePermissionList.requestRegistration(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+ )
+ })
+
+ it('calling requestClearing should move item into the clearing requested state', async () => {
+ await expectThrow(
+ arbitrablePermissionList.requestClearing(ARBITRARY_STRING, {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ })
+ )
+ })
+
+ it('calling challangeBlacklisting should create a dispute', async function() {
+ const itemBalance = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[4].toNumber()
+
+ await arbitrablePermissionList.challengeRegistration(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ }
+ )
+
+ const disputeID = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[6].toNumber()
+
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[3].toString(),
+ arbitrator
+ )
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[4].toNumber(),
+ itemBalance + stake
+ )
+ assert.equal(
+ (await arbitrablePermissionList.items(ARBITRARY_STRING))[5],
+ true
+ )
+ assert.equal(
+ web3.toUtf8(
+ await arbitrablePermissionList.disputeIDToItem(disputeID)
+ ),
+ ARBITRARY_STRING
+ )
+ })
+
+ it('calling challengeClearing should revert', async () => {
+ await expectThrow(
+ arbitrablePermissionList.challengeClearing(ARBITRARY_STRING, {
+ from: arbitrator,
+ value: stake + arbitrationCost
+ })
+ )
+ })
+
+ it('calling executeRequest should move item into the blacklisted state', async function() {
+ await arbitrablePermissionList.executeRequest(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator
+ }
+ )
+
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber(),
+ ITEM_STATUS.REGISTERED
+ )
+ })
+
+ describe('executeRuling', async function() {
+ let disputeID
+
+ beforeEach('create a dispute', async function() {
+ await arbitrablePermissionList.challengeRegistration(
+ ARBITRARY_STRING,
+ {
+ from: partyB,
+ value: stake + arbitrationCost
+ }
+ )
+
+ disputeID = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[6].toNumber()
+ })
+
+ it('calling executeRuling with REGISTER should send item.balance to submitter', async function() {
+ const submitter = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[2]
+ const submitterBalance = web3.eth.getBalance(submitter)
+ const itemBalance = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[4]
+
+ const hash = await centralizedArbitrator.giveRuling(
+ disputeID,
+ RULING.REGISTER,
+ {
+ from: arbitrator
+ }
+ )
+ const gasUsed = hash.receipt.gasUsed
+ const gasCost = gasUsed * Math.pow(10, 11) // Test environment doesn't care what the gasPrice is, spent value is always gasUsed * 10^11
+
+ const actualBalanceOfSubmitter = web3.eth.getBalance(
+ submitter
+ )
+ let expectedBalanceOfSubmitter
+ let expectedItemStatus
+
+ if (!rechallengePossible) {
+ expectedBalanceOfSubmitter = submitterBalance
+ .plus(itemBalance)
+ .plus(arbitrationFee)
+ .minus(gasCost)
+ expectedItemStatus = ITEM_STATUS.REGISTERED
+ } else {
+ expectedBalanceOfSubmitter = submitterBalance
+ .plus(itemBalance)
+ .minus(stake)
+ .minus(gasCost)
+ expectedItemStatus = ITEM_STATUS.SUBMITTED
+ }
+
+ assert(
+ actualBalanceOfSubmitter.equals(expectedBalanceOfSubmitter),
+ 'Actual: ' +
+ actualBalanceOfSubmitter +
+ '\tExpected: ' +
+ expectedBalanceOfSubmitter
+ )
+
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber(),
+ expectedItemStatus
+ )
+ })
+
+ it('calling executeRuling with CLEAR should send item.balance to challenger', async function() {
+ const challenger = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[3]
+ const challengerBalance = web3.eth.getBalance(challenger)
+ const itemBalance = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[4]
+
+ await centralizedArbitrator.giveRuling(
+ disputeID,
+ RULING.CLEAR,
+ {
+ from: arbitrator
+ }
+ )
+
+ const actualBalanceOfChallenger = web3.eth.getBalance(
+ challenger
+ )
+ const expectedBalanceOfChallenger = challengerBalance.plus(
+ itemBalance
+ )
+
+ assert(
+ actualBalanceOfChallenger.equals(
+ expectedBalanceOfChallenger
+ ),
+ 'Actual: ' +
+ actualBalanceOfChallenger +
+ '\tExpected: ' +
+ expectedBalanceOfChallenger
+ )
+
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber(),
+ ITEM_STATUS.CLEARED
+ )
+ })
+
+ it('calling executeRuling with OTHER should split item.balance between challenger and submitter and move item into the absent state', async function() {
+ const submitter = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[2]
+ const challenger = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[3]
+ const submitterBalance = web3.eth.getBalance(submitter)
+ const challengerBalance = web3.eth.getBalance(challenger)
+ const itemBalance = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[4]
+ const disputeID = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[6]
+
+ const hash = await centralizedArbitrator.giveRuling(
+ disputeID,
+ RULING.OTHER,
+ {
+ from: arbitrator
+ }
+ )
+ const gasUsed = hash.receipt.gasUsed
+ const gasCost = gasUsed * Math.pow(10, 11) // Test environment doesn't care what the gasPrice is, spent value is always gasUsed * 10^11
+
+ const actualBalanceOfSubmitter = web3.eth.getBalance(
+ submitter
+ )
+ const actualBalanceOfChallenger = web3.eth.getBalance(
+ challenger
+ )
+ const expectedBalanceOfSubmitter = itemBalance
+ .dividedBy(new BigNumber(2))
+ .plus(submitterBalance)
+ .plus(arbitrationFee)
+ .minus(gasCost)
+ const expectedBalanceOfChallenger = itemBalance
+ .dividedBy(new BigNumber(2))
+ .plus(challengerBalance)
+
+ assert(
+ actualBalanceOfSubmitter.equals(expectedBalanceOfSubmitter),
+ 'Actual: ' +
+ actualBalanceOfSubmitter +
+ '\tExpected: ' +
+ expectedBalanceOfSubmitter
+ )
+ assert(
+ actualBalanceOfChallenger.equals(
+ expectedBalanceOfChallenger
+ ),
+ 'Actual: ' +
+ actualBalanceOfChallenger +
+ '\tExpected: ' +
+ expectedBalanceOfChallenger
+ )
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber(),
+ ITEM_STATUS.ABSENT
+ )
+ })
+ })
+ })
+
+ if (!rechallengePossible) {
+ if (!appendOnly)
+ describe('When item in clearing requested state', function() {
+ beforeEach('prepare pre-conditions', async function() {
+ await arbitrablePermissionList.requestRegistration(
+ ARBITRARY_STRING,
+ {
+ from: partyA,
+ value: stake + arbitrationCost
+ }
+ )
+ await arbitrablePermissionList.executeRequest(
+ ARBITRARY_STRING,
+ {
+ from: partyA
+ }
+ )
+ await arbitrablePermissionList.requestClearing(
+ ARBITRARY_STRING,
+ {
+ from: partyB,
+ value: stake + arbitrationCost
+ }
+ )
+ })
+
+ beforeEach('assert pre-conditions', async function() {
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber(),
+ ITEM_STATUS.CLEARING_REQUESTED
+ )
+ })
+
+ it(
+ 'calling isPermitted should return ' + !blacklist,
+ async () => {
+ assert.equal(
+ await arbitrablePermissionList.isPermitted(
+ ARBITRARY_STRING
+ ),
+ !blacklist
+ )
+ }
+ )
+
+ it('calling requestRegistration should revert', async () => {
+ await expectThrow(
+ arbitrablePermissionList.requestRegistration(
+ ARBITRARY_STRING,
+ {
+ from: partyA,
+ value: stake + arbitrationCost
+ }
+ )
+ )
+ })
+
+ it('calling requestClearing should revert', async function() {
+ await expectThrow(
+ arbitrablePermissionList.requestClearing(
+ ARBITRARY_STRING,
+ {
+ from: partyB,
+ value: stake + arbitrationCost
+ }
+ )
+ )
+ })
+
+ it('calling challengeRegistration should revert', async () => {
+ await expectThrow(
+ arbitrablePermissionList.challengeRegistration(
+ ARBITRARY_STRING,
+ {
+ from: partyB,
+ value: stake + arbitrationCost
+ }
+ )
+ )
+ })
+
+ it('calling challangeClearing should create a dispute', async function() {
+ const itemBalance = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[4].toNumber()
+
+ await arbitrablePermissionList.challengeClearing(
+ ARBITRARY_STRING,
+ {
+ from: partyA,
+ value: stake + arbitrationCost
+ }
+ )
+ const disputeID = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[6].toNumber()
+
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[3].toString(),
+ partyA
+ )
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[4].toNumber(),
+ itemBalance + stake
+ )
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[5],
+ true
+ )
+ assert.equal(
+ web3.toUtf8(
+ await arbitrablePermissionList.disputeIDToItem(
+ disputeID
+ )
+ ),
+ ARBITRARY_STRING
+ )
+ })
+
+ it('calling executeRequest should move item into the blacklisted state', async function() {
+ await arbitrablePermissionList.executeRequest(
+ ARBITRARY_STRING,
+ {
+ from: partyA
+ }
+ )
+
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber(),
+ ITEM_STATUS.CLEARED
+ )
+ })
+
+ describe('executeRuling', async function() {
+ let disputeID
+
+ beforeEach('create a dispute', async function() {
+ await arbitrablePermissionList.challengeClearing(
+ ARBITRARY_STRING,
+ {
+ from: partyB,
+ value: stake + arbitrationCost
+ }
+ )
+
+ disputeID = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[6].toNumber()
+ })
+
+ it('calling executeRuling with REGISTER should send item.balance to challenger', async function() {
+ const challenger = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[3]
+ const challengerBalance = web3.eth.getBalance(challenger)
+ const itemBalance = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[4]
+
+ await centralizedArbitrator.giveRuling(
+ disputeID,
+ RULING.REGISTER,
+ {
+ from: arbitrator
+ }
+ )
+
+ const actualBalanceOfChallenger = web3.eth.getBalance(
+ challenger
+ )
+ const expectedBalanceOfChallenger = challengerBalance
+ .plus(itemBalance)
+ .minus(new BigNumber(stake).mul(3))
+ .minus(new BigNumber(arbitrationFee).mul(2))
+
+ assert(
+ actualBalanceOfChallenger.equals(
+ expectedBalanceOfChallenger
+ ),
+ 'Difference: ' +
+ actualBalanceOfChallenger.minus(
+ expectedBalanceOfChallenger
+ )
+ )
+
+ // assert.equal(web3.eth.getBalance(challenger).toNumber(), challengerBalance + itemBalance);
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber(),
+ ITEM_STATUS.REGISTERED
+ )
+ })
+
+ it('calling executeRuling with CLEAR should send item.balance to submitter', async function() {
+ const submitter = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[2]
+ const submitterBalance = web3.eth.getBalance(submitter)
+ const itemBalance = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[4]
+
+ await centralizedArbitrator.giveRuling(
+ disputeID,
+ RULING.CLEAR,
+ {
+ from: arbitrator
+ }
+ )
+
+ const actualBalanceOfSubmitter = web3.eth.getBalance(
+ submitter
+ )
+ const expectedBalanceOfSubmitter = submitterBalance
+ .plus(itemBalance)
+ .minus(new BigNumber(stake).mul(3))
+ .minus(new BigNumber(arbitrationFee).mul(2))
+
+ assert(
+ actualBalanceOfSubmitter.equals(
+ expectedBalanceOfSubmitter
+ ),
+ 'Difference: ' +
+ actualBalanceOfSubmitter.minus(
+ expectedBalanceOfSubmitter
+ )
+ )
+
+ // assert.equal(web3.eth.getBalance(submitter).toNumber(), submitterBalance + itemBalance);
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber(),
+ ITEM_STATUS.CLEARED
+ )
+ })
+
+ it('calling executeRuling with OTHER should split item.balance between challenger and submitter and move item into the registered state', async function() {
+ const submitter = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[2]
+ const challenger = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[3]
+ const submitterBalance = web3.eth.getBalance(submitter)
+ const challengerBalance = web3.eth.getBalance(challenger)
+ const itemBalance = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[4]
+ const disputeID = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[6]
+
+ await centralizedArbitrator.giveRuling(
+ disputeID,
+ RULING.OTHER,
+ {
+ from: arbitrator
+ }
+ )
+
+ const actualBalanceOfSubmitter = web3.eth.getBalance(
+ submitter
+ )
+ const actualBalanceOfChallenger = web3.eth.getBalance(
+ challenger
+ )
+ const expectedBalanceOfSubmitter = itemBalance
+ .dividedBy(2)
+ .plus(submitterBalance)
+ const expectedBalanceOfChallenger = itemBalance
+ .dividedBy(2)
+ .plus(challengerBalance)
+
+ assert(
+ actualBalanceOfSubmitter.equals(
+ expectedBalanceOfSubmitter
+ ),
+ 'Difference: ' +
+ actualBalanceOfSubmitter.minus(
+ expectedBalanceOfSubmitter
+ )
+ )
+ assert(
+ actualBalanceOfChallenger.equals(
+ expectedBalanceOfChallenger
+ ),
+ 'Difference: ' +
+ actualBalanceOfChallenger.minus(
+ expectedBalanceOfChallenger
+ )
+ )
+
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber(),
+ ITEM_STATUS.REGISTERED
+ )
+ })
+ })
+ })
+
+ if (!appendOnly)
+ describe('When item in preventive clearing requested state', function() {
+ beforeEach('prepare pre-conditions', async function() {
+ await arbitrablePermissionList.requestClearing(
+ ARBITRARY_STRING,
+ {
+ from: partyB,
+ value: stake + arbitrationCost
+ }
+ )
+ })
+
+ beforeEach('assert pre-conditions', async function() {
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber(),
+ ITEM_STATUS.PREVENTIVE_CLEARING_REQUESTED
+ )
+ })
+
+ it(
+ 'calling isPermitted on a not-disputed item should return ' +
+ blacklist,
+ async () => {
+ assert.equal(
+ await arbitrablePermissionList.isPermitted(
+ ARBITRARY_STRING
+ ),
+ blacklist
+ )
+ }
+ )
+
+ it(
+ 'calling isPermitted on a disputed item should return ' +
+ blacklist,
+ async () => {
+ await arbitrablePermissionList.challengeClearing(
+ ARBITRARY_STRING,
+ {
+ from: partyA,
+ value: stake + arbitrationCost
+ }
+ ) // To satisfy disputed pre-condition
+
+ assert.equal(
+ await arbitrablePermissionList.isPermitted(
+ ARBITRARY_STRING
+ ),
+ !blacklist
+ )
+ }
+ )
+
+ it('calling requestRegistration should revert', async () => {
+ await expectThrow(
+ arbitrablePermissionList.requestRegistration(
+ ARBITRARY_STRING,
+ {
+ from: partyA,
+ value: stake + arbitrationCost
+ }
+ )
+ )
+ })
+
+ it('calling requestClearing should revert', async function() {
+ await expectThrow(
+ arbitrablePermissionList.requestClearing(
+ ARBITRARY_STRING,
+ {
+ from: partyB,
+ value: stake + arbitrationCost
+ }
+ )
+ )
+ })
+
+ it('calling challengeRegistration should revert', async () => {
+ await expectThrow(
+ arbitrablePermissionList.challengeRegistration(
+ ARBITRARY_STRING,
+ {
+ from: partyB,
+ value: stake + arbitrationCost
+ }
+ )
+ )
+ })
+
+ it('calling challangeClearing should create a dispute', async function() {
+ const itemBalance = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[4].toNumber()
+
+ await arbitrablePermissionList.challengeClearing(
+ ARBITRARY_STRING,
+ {
+ from: partyA,
+ value: stake + arbitrationCost
+ }
+ )
+
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[3].toString(),
+ partyA
+ )
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[4].toNumber(),
+ itemBalance + stake
+ )
+ const disputeID = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[6].toNumber()
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[5],
+ true
+ )
+ assert.equal(
+ web3.toUtf8(
+ await arbitrablePermissionList.disputeIDToItem(
+ disputeID
+ )
+ ),
+ ARBITRARY_STRING
+ )
+ })
+
+ it('calling executeRequest should move item into the blacklisted state', async function() {
+ await arbitrablePermissionList.executeRequest(
+ ARBITRARY_STRING,
+ {
+ from: arbitrator
+ }
+ )
+
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber(),
+ ITEM_STATUS.CLEARED
+ )
+ })
+
+ describe('executeRuling', async function() {
+ let disputeID
+
+ beforeEach('create a dispute', async function() {
+ await arbitrablePermissionList.challengeClearing(
+ ARBITRARY_STRING,
+ {
+ from: partyB,
+ value: stake + arbitrationCost
+ }
+ )
+
+ disputeID = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[6].toNumber()
+ })
+
+ it('calling executeRuling with REGISTER should send item.balance to challenger', async function() {
+ const challenger = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[3]
+ const challengerBalance = web3.eth.getBalance(challenger)
+ const itemBalance = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[4]
+
+ await centralizedArbitrator.giveRuling(
+ disputeID,
+ RULING.REGISTER,
+ {
+ from: arbitrator
+ }
+ )
+
+ const actualBalanceOfChallenger = web3.eth.getBalance(
+ challenger
+ )
+ const expectedBalanceOfChallenger = challengerBalance.plus(
+ itemBalance
+ )
+
+ assert(
+ actualBalanceOfChallenger.equals(
+ expectedBalanceOfChallenger
+ )
+ )
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber(),
+ ITEM_STATUS.REGISTERED
+ )
+ })
+
+ it('calling executeRuling with CLEAR should send item.balance to submitter', async function() {
+ const submitter = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[2]
+ const submitterBalance = web3.eth.getBalance(submitter)
+ const itemBalance = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[4]
+
+ await centralizedArbitrator.giveRuling(
+ disputeID,
+ RULING.CLEAR,
+ {
+ from: arbitrator
+ }
+ )
+
+ const actualBalanceOfSubmitter = web3.eth.getBalance(
+ submitter
+ )
+ const expectedBalanceOfSubmitter = itemBalance.plus(
+ submitterBalance
+ )
+
+ assert(
+ actualBalanceOfSubmitter.equals(
+ expectedBalanceOfSubmitter
+ )
+ )
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber(),
+ ITEM_STATUS.CLEARED
+ )
+ })
+
+ it('calling executeRuling with OTHER should split item.balance between challenger and submitter and move item into the absent state', async function() {
+ const submitter = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[2]
+ const challenger = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[3]
+ const submitterBalance = web3.eth.getBalance(submitter)
+ const challengerBalance = web3.eth.getBalance(challenger)
+ const itemBalance = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[4]
+ const disputeID = (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[6]
+
+ await centralizedArbitrator.giveRuling(
+ disputeID,
+ RULING.OTHER,
+ {
+ from: arbitrator
+ }
+ )
+
+ const actualBalanceOfSubmitter = web3.eth.getBalance(
+ submitter
+ )
+ const actualBalanceOfChallenger = web3.eth.getBalance(
+ challenger
+ )
+ const expectedBalanceOfSubmitter = itemBalance
+ .dividedBy(2)
+ .plus(submitterBalance)
+ .plus(new BigNumber(stake))
+ .plus(new BigNumber(arbitrationFee).dividedBy(2))
+ const expectedBalanceOfChallenger = itemBalance
+ .dividedBy(2)
+ .plus(challengerBalance)
+ .plus(new BigNumber(stake))
+ .plus(new BigNumber(arbitrationFee).dividedBy(2))
+
+ assert(
+ actualBalanceOfSubmitter.equals(
+ expectedBalanceOfSubmitter
+ ),
+ 'Difference: ' +
+ actualBalanceOfSubmitter.minus(
+ expectedBalanceOfSubmitter
+ )
+ )
+ assert(
+ actualBalanceOfChallenger.equals(
+ expectedBalanceOfChallenger
+ ),
+ 'Difference: ' +
+ actualBalanceOfChallenger.minus(
+ expectedBalanceOfChallenger
+ )
+ )
+
+ assert.equal(
+ (await arbitrablePermissionList.items(
+ ARBITRARY_STRING
+ ))[0].toNumber(),
+ ITEM_STATUS.ABSENT
+ )
+ })
+ })
+ })
+ }
+ }
+ )
+})
diff --git a/test/arbitrable-transaction.js b/test/arbitrable-transaction.js
new file mode 100644
index 00000000..fd366cd3
--- /dev/null
+++ b/test/arbitrable-transaction.js
@@ -0,0 +1,465 @@
+/* eslint-disable no-undef */ // Avoid the linter considering truffle elements as undef.
+const { expectThrow, increaseTime } = require('../helpers/utils')
+
+const ArbitrableTransaction = artifacts.require('./ArbitrableTransaction.sol')
+const CentralizedArbitrator = artifacts.require('./CentralizedArbitrator.sol')
+
+contract('ArbitrableTransaction', function(accounts) {
+ const payer = accounts[0]
+ const payee = accounts[1]
+ const arbitrator = accounts[2]
+ const other = accounts[3]
+ const amount = 1000
+ const timeout = 100
+ const arbitrationFee = 20
+ const gasPrice = 5000000000
+ const metaEvidenceUri = 'https://kleros.io'
+
+ // Constructor
+ it('Should put 1000 wei in the contract', async () => {
+ const arbitrableTransaction = await ArbitrableTransaction.new(
+ 0x0,
+ timeout,
+ payee,
+ 0x0,
+ metaEvidenceUri,
+ { from: payer, value: amount }
+ )
+ assert.equal(
+ web3.eth.getBalance(arbitrableTransaction.address),
+ 1000,
+ "The contract hasn't received the wei correctly."
+ )
+
+ const amountSending = await arbitrableTransaction.amount()
+ assert.equal(
+ amountSending.toNumber(),
+ 1000,
+ "The contract hasn't updated its amount correctly."
+ )
+ })
+
+ // Pay
+ it('Should pay the payee', async () => {
+ const initialPayeeBalance = web3.eth.getBalance(payee)
+ const arbitrableTransaction = await ArbitrableTransaction.new(
+ 0x0,
+ timeout,
+ payee,
+ 0x0,
+ metaEvidenceUri,
+ { from: payer, value: amount }
+ )
+ await arbitrableTransaction.pay({ from: payer })
+ const newPayeeBalance = web3.eth.getBalance(payee)
+ assert.equal(
+ newPayeeBalance.toString(),
+ initialPayeeBalance.plus(1000).toString(),
+ "The payee hasn't been paid properly"
+ )
+ })
+
+ it('Should not pay the payee', async () => {
+ const arbitrableTransaction = await ArbitrableTransaction.new(
+ 0x0,
+ timeout,
+ payee,
+ 0x0,
+ metaEvidenceUri,
+ { from: payer, value: amount }
+ )
+ await expectThrow(arbitrableTransaction.pay({ from: payee }))
+ })
+
+ // Reimburse
+ it('Should reimburse 507 to the payer', async () => {
+ const arbitrableTransaction = await ArbitrableTransaction.new(
+ 0x0,
+ timeout,
+ payee,
+ 0x0,
+ metaEvidenceUri,
+ { from: payer, value: amount }
+ )
+ const payerBalanceBeforeReimbursment = web3.eth.getBalance(payer)
+ await arbitrableTransaction.reimburse(507, { from: payee })
+ const newPayerBalance = web3.eth.getBalance(payer)
+ const newContractBalance = web3.eth.getBalance(
+ arbitrableTransaction.address
+ )
+ const newAmount = await arbitrableTransaction.amount()
+
+ assert.equal(
+ newPayerBalance.toString(),
+ payerBalanceBeforeReimbursment.plus(507).toString(),
+ 'The payer has not been reimbursed correctly'
+ )
+ assert.equal(
+ newContractBalance.toNumber(),
+ 493,
+ 'Bad amount in the contract'
+ )
+ assert.equal(newAmount.toNumber(), 493, 'Amount not updated correctly')
+ })
+
+ it('Should reimburse 1000 (all) to the payer', async () => {
+ const arbitrableTransaction = await ArbitrableTransaction.new(
+ 0x0,
+ timeout,
+ payee,
+ 0x0,
+ metaEvidenceUri,
+ { from: payer, value: amount }
+ )
+ const payerBalanceBeforeReimbursment = web3.eth.getBalance(payer)
+ await arbitrableTransaction.reimburse(1000, { from: payee })
+ const newPayerBalance = web3.eth.getBalance(payer)
+ const newContractBalance = web3.eth.getBalance(
+ arbitrableTransaction.address
+ )
+ const newAmount = await arbitrableTransaction.amount()
+
+ assert.equal(
+ newPayerBalance.toString(),
+ payerBalanceBeforeReimbursment.plus(1000).toString(),
+ 'The payer has not been reimbursed correctly'
+ )
+ assert.equal(newContractBalance.toNumber(), 0, 'Bad amount in the contract')
+ assert.equal(newAmount.toNumber(), 0, 'Amount not updated correctly')
+ })
+
+ it('Should fail if we try to reimburse more', async () => {
+ const arbitrableTransaction = await ArbitrableTransaction.new(
+ 0x0,
+ timeout,
+ payee,
+ 0x0,
+ metaEvidenceUri,
+ { from: payer, value: amount }
+ )
+ await expectThrow(arbitrableTransaction.reimburse(1003, { from: payee }))
+ })
+
+ it('Should fail if the payer to it', async () => {
+ const arbitrableTransaction = await ArbitrableTransaction.new(
+ 0x0,
+ timeout,
+ payee,
+ 0x0,
+ metaEvidenceUri,
+ { from: payer, value: amount }
+ )
+ await expectThrow(arbitrableTransaction.reimburse(1000, { from: payer }))
+ })
+
+ // executeRuling
+ it('Should reimburse the payer (including arbitration fee) when the arbitrator decides so', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrableTransaction = await ArbitrableTransaction.new(
+ centralizedArbitrator.address,
+ timeout,
+ payee,
+ 0x0,
+ metaEvidenceUri,
+ { from: payer, value: amount }
+ )
+ await arbitrableTransaction.payArbitrationFeeByPartyA({
+ from: payer,
+ value: arbitrationFee
+ })
+ await arbitrableTransaction.payArbitrationFeeByPartyB({
+ from: payee,
+ value: arbitrationFee
+ })
+ const payerBalanceBeforeReimbursment = web3.eth.getBalance(payer)
+ await centralizedArbitrator.giveRuling(0, 1, { from: arbitrator })
+ const newPayerBalance = web3.eth.getBalance(payer)
+ assert.equal(
+ newPayerBalance.toString(),
+ payerBalanceBeforeReimbursment.plus(1020).toString(),
+ 'The payer has not been reimbursed correctly'
+ )
+ })
+
+ it('Should pay the payee and reimburse him the arbitration fee when the arbitrator decides so', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrableTransaction = await ArbitrableTransaction.new(
+ centralizedArbitrator.address,
+ timeout,
+ payee,
+ 0x0,
+ metaEvidenceUri,
+ { from: payer, value: amount }
+ )
+
+ await arbitrableTransaction.payArbitrationFeeByPartyA({
+ from: payer,
+ value: arbitrationFee
+ })
+ await arbitrableTransaction.payArbitrationFeeByPartyB({
+ from: payee,
+ value: arbitrationFee
+ })
+ const payeeBalanceBeforePay = web3.eth.getBalance(payee)
+ await centralizedArbitrator.giveRuling(0, 2, { from: arbitrator })
+ const newPayeeBalance = web3.eth.getBalance(payee)
+ assert.equal(
+ newPayeeBalance.toString(),
+ payeeBalanceBeforePay.plus(1020).toString(),
+ 'The payee has not been paid properly'
+ )
+ })
+
+ it('It should do nothing if the arbitrator decides so', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrableTransaction = await ArbitrableTransaction.new(
+ centralizedArbitrator.address,
+ timeout,
+ payee,
+ 0x0,
+ metaEvidenceUri,
+ { from: payer, value: amount }
+ )
+ await arbitrableTransaction.payArbitrationFeeByPartyA({
+ from: payer,
+ value: arbitrationFee
+ })
+ await arbitrableTransaction.payArbitrationFeeByPartyB({
+ from: payee,
+ value: arbitrationFee
+ })
+ const payeeBalanceBeforePay = web3.eth.getBalance(payee)
+ const payerBalanceBeforeReimbursment = web3.eth.getBalance(payer)
+ await centralizedArbitrator.giveRuling(0, 0, { from: arbitrator })
+ const newPayeeBalance = web3.eth.getBalance(payee)
+ const newPayerBalance = web3.eth.getBalance(payer)
+ assert.equal(
+ newPayeeBalance.toString(),
+ payeeBalanceBeforePay.toString(),
+ "The payee got wei while it shouldn't"
+ )
+ assert.equal(
+ newPayerBalance.toString(),
+ payerBalanceBeforeReimbursment.toString(),
+ "The payer got wei while it shouldn't"
+ )
+ })
+
+ it('Should reimburse the payer in case of timeout of the payee', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrableTransaction = await ArbitrableTransaction.new(
+ centralizedArbitrator.address,
+ timeout,
+ payee,
+ 0x0,
+ metaEvidenceUri,
+ { from: payer, value: amount }
+ )
+ await arbitrableTransaction.payArbitrationFeeByPartyA({
+ from: payer,
+ value: arbitrationFee
+ })
+ increaseTime(timeout + 1)
+ const payerBalanceBeforeReimbursment = web3.eth.getBalance(payer)
+ const tx = await arbitrableTransaction.timeOutByPartyA({
+ from: payer,
+ gasPrice: gasPrice
+ })
+ const txFee = tx.receipt.gasUsed * gasPrice
+ const newPayerBalance = web3.eth.getBalance(payer)
+ assert.equal(
+ newPayerBalance.toString(),
+ payerBalanceBeforeReimbursment
+ .plus(1020)
+ .minus(txFee)
+ .toString(),
+ 'The payer has not been reimbursed correctly'
+ )
+ })
+
+ it("Shouldn't work before timeout for the payer", async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrableTransaction = await ArbitrableTransaction.new(
+ centralizedArbitrator.address,
+ timeout,
+ payee,
+ 0x0,
+ metaEvidenceUri,
+ { from: payer, value: amount }
+ )
+ await expectThrow(
+ arbitrableTransaction.timeOutByPartyA({ from: payer, gasPrice: gasPrice })
+ )
+ await arbitrableTransaction.payArbitrationFeeByPartyA({
+ from: payer,
+ value: arbitrationFee
+ })
+ increaseTime(1)
+ await expectThrow(
+ arbitrableTransaction.timeOutByPartyA({ from: payer, gasPrice: gasPrice })
+ )
+ })
+
+ it('Should pay and reimburse the payee in case of timeout of the payer', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrableTransaction = await ArbitrableTransaction.new(
+ centralizedArbitrator.address,
+ timeout,
+ payee,
+ 0x0,
+ metaEvidenceUri,
+ { from: payer, value: amount }
+ )
+ await arbitrableTransaction.payArbitrationFeeByPartyB({
+ from: payee,
+ value: arbitrationFee
+ })
+ increaseTime(timeout + 1)
+ const payeeBalanceBeforeReimbursment = web3.eth.getBalance(payee)
+ const tx = await arbitrableTransaction.timeOutByPartyB({
+ from: payee,
+ gasPrice: gasPrice
+ })
+ const txFee = tx.receipt.gasUsed * gasPrice
+ const newPayeeBalance = web3.eth.getBalance(payee)
+ assert.equal(
+ newPayeeBalance.toString(),
+ payeeBalanceBeforeReimbursment
+ .plus(1020)
+ .minus(txFee)
+ .toString(),
+ 'The payee has not been paid correctly'
+ )
+ })
+
+ it("Shouldn't work before timeout for the payee", async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrableTransaction = await ArbitrableTransaction.new(
+ centralizedArbitrator.address,
+ timeout,
+ payee,
+ 0x0,
+ metaEvidenceUri,
+ { from: payer, value: amount }
+ )
+ await expectThrow(
+ arbitrableTransaction.timeOutByPartyB({ from: payee, gasPrice: gasPrice })
+ )
+ await arbitrableTransaction.payArbitrationFeeByPartyB({
+ from: payee,
+ value: arbitrationFee
+ })
+ increaseTime(1)
+ await expectThrow(
+ arbitrableTransaction.timeOutByPartyB({ from: payee, gasPrice: gasPrice })
+ )
+ })
+
+ // submitEvidence
+ it('Should create events when evidence is submitted by the payer', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrableTransaction = await ArbitrableTransaction.new(
+ centralizedArbitrator.address,
+ timeout,
+ payee,
+ 0x0,
+ metaEvidenceUri,
+ { from: payer, value: amount }
+ )
+ await arbitrableTransaction.payArbitrationFeeByPartyA({
+ from: payer,
+ value: arbitrationFee
+ })
+ await arbitrableTransaction.payArbitrationFeeByPartyB({
+ from: payee,
+ value: arbitrationFee
+ })
+ const tx = await arbitrableTransaction.submitEvidence('ipfs:/X', {
+ from: payer
+ })
+ assert.equal(tx.logs[0].event, 'Evidence')
+ assert.equal(tx.logs[0].args._arbitrator, centralizedArbitrator.address)
+ assert.equal(tx.logs[0].args._party, payer)
+ assert.equal(tx.logs[0].args._evidence, 'ipfs:/X')
+ })
+
+ it('Should create events when evidence is submitted by the payee', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrableTransaction = await ArbitrableTransaction.new(
+ centralizedArbitrator.address,
+ timeout,
+ payee,
+ 0x0,
+ metaEvidenceUri,
+ { from: payer, value: amount }
+ )
+ await arbitrableTransaction.payArbitrationFeeByPartyA({
+ from: payer,
+ value: arbitrationFee
+ })
+ await arbitrableTransaction.payArbitrationFeeByPartyB({
+ from: payee,
+ value: arbitrationFee
+ })
+ const tx = await arbitrableTransaction.submitEvidence('ipfs:/X', {
+ from: payee
+ })
+ assert.equal(tx.logs[0].event, 'Evidence')
+ assert.equal(tx.logs[0].args._arbitrator, centralizedArbitrator.address)
+ assert.equal(tx.logs[0].args._party, payee)
+ assert.equal(tx.logs[0].args._evidence, 'ipfs:/X')
+ })
+
+ it('Should fail if someone else try to submit', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrableTransaction = await ArbitrableTransaction.new(
+ centralizedArbitrator.address,
+ timeout,
+ payee,
+ 0x0,
+ metaEvidenceUri,
+ { from: payer, value: amount }
+ )
+ await arbitrableTransaction.payArbitrationFeeByPartyA({
+ from: payer,
+ value: arbitrationFee
+ })
+ await arbitrableTransaction.payArbitrationFeeByPartyB({
+ from: payee,
+ value: arbitrationFee
+ })
+ await expectThrow(
+ arbitrableTransaction.submitEvidence('ipfs:/X', { from: other })
+ )
+ })
+})
diff --git a/test/arbitrablePermissionList.js b/test/arbitrablePermissionList.js
deleted file mode 100644
index ce69468a..00000000
--- a/test/arbitrablePermissionList.js
+++ /dev/null
@@ -1,1063 +0,0 @@
-/* eslint-disable no-undef */ // Avoid the linter considering truffle elements as undef.
-
-const BigNumber = web3.BigNumber;
-const {
- expectThrow
-} = require('../helpers/utils');
-const ArbitrablePermissionList = artifacts.require('./ArbitrablePermissionList.sol');
-const CentralizedArbitrator = artifacts.require('./CentralizedArbitrator.sol');
-
-
-contract('ArbitrablePermissionList', function(accounts) {
-
- const arbitrator = accounts[1];
- const partyA = accounts[2];
- const partyB = accounts[3];
- const arbitratorExtraData = 0x08575;
- const arbitrationFee = 4;
- const stake = 10;
- const timeToChallenge = 0;
- const metaEvidence = "evidence";
-
- let centralizedArbitrator;
- let arbitrablePermissionList;
- let arbitrationCost;
-
- const ITEM_STATUS = {
- ABSENT: 0,
- CLEARED: 1,
- RESUBMITTED: 2,
- REGISTERED: 3,
- SUBMITTED: 4,
- CLEARING_REQUESTED: 5,
- PREVENTIVE_CLEARING_REQUESTED: 6
- };
-
- const RULING = {
- OTHER: 0,
- REGISTER: 1,
- CLEAR: 2
- };
-
- const ARBITRARY_NUMBER = 123;
- const ARBITRARY_STRING = "abc";
-
- describe('queryItems', function() {
- before('setup contract for each test', async () => {
- centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {
- from: arbitrator
- });
-
- blacklist = true;
- appendOnly = false;
- rechallengePossible = false;
-
- arbitrablePermissionList = await ArbitrablePermissionList.new(
- centralizedArbitrator.address,
- arbitratorExtraData,
- metaEvidence,
- blacklist,
- appendOnly,
- rechallengePossible,
- stake,
- timeToChallenge, {
- from: arbitrator
- }
- );
-
- arbitrationCost = (await centralizedArbitrator.arbitrationCost.call("as", {
- from: arbitrator
- })).toNumber();
- });
-
- before('populate the list', async function() {
- await arbitrablePermissionList.requestRegistration(ARBITRARY_STRING, {
- from: partyA,
- value: stake + arbitrationCost
- })
- })
-
- it('should succesfully retrieve mySubmissions', async function() {
- const cursor = 0;
- const count = 1;
-
- const pending = false;
- const challenged = false;
- const accepted = false;
- const rejected = false;
- const mySubmissions = true;
- const myChallenges = false;
-
- const filter = [pending, challenged, accepted, rejected, mySubmissions, myChallenges];
- const sort = true;
-
- const item = (await arbitrablePermissionList.queryItems(cursor, count, filter, sort, {
- from: partyA
- }))[0];
-
- assert.equal(web3.toUtf8(item[0]), ARBITRARY_STRING);
- })
-
- it('should succesfully retrieve pending', async function() {
- const cursor = 0;
- const count = 1;
-
- const pending = true;
- const challenged = false;
- const accepted = false;
- const rejected = false;
- const mySubmissions = false;
- const myChallenges = false;
-
- const filter = [pending, challenged, accepted, rejected, mySubmissions, myChallenges];
- const sort = true;
-
- const item = (await arbitrablePermissionList.queryItems(cursor, count, filter, sort, {
- from: partyA
- }))[0];
-
- assert.equal(web3.toUtf8(item[0]), ARBITRARY_STRING);
- })
-
- it('should revert when not cursor < itemsList.length', async function() {
-
- const cursor = 1;
- const count = 1;
-
- const pending = true;
- const challenged = false;
- const accepted = false;
- const rejected = false;
- const mySubmissions = false;
- const myChallenges = false;
-
- const filter = [pending, challenged, accepted, rejected, mySubmissions, myChallenges];
- const sort = true;
-
- await expectThrow(arbitrablePermissionList.queryItems(cursor, count, filter, sort, {
- from: partyA
- }));
-
- })
-
- })
-
- for (const appendOnly of [true, false]) {
- for (const blacklist of [true, false]) {
- for (const rechallengePossible of [true, false]) {
- describe('When appendOnly=' + appendOnly + ', blacklist=' + blacklist + ', rechallengePossible=' + rechallengePossible, function() {
-
- beforeEach('setup contract for each test', async () => {
- centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {
- from: arbitrator
- });
-
- arbitrablePermissionList = await ArbitrablePermissionList.new(
- centralizedArbitrator.address,
- arbitratorExtraData,
- metaEvidence,
- blacklist,
- appendOnly,
- rechallengePossible,
- stake,
- timeToChallenge, {
- from: arbitrator
- }
- );
-
- arbitrationCost = (await centralizedArbitrator.arbitrationCost.call("as", {
- from: arbitrator
- })).toNumber();
- });
-
- it('should be constructed correctly', async () => {
- assert.equal(await arbitrablePermissionList.arbitrator(), centralizedArbitrator.address);
- assert.equal(await arbitrablePermissionList.arbitratorExtraData(), arbitratorExtraData)
- assert.equal(await arbitrablePermissionList.blacklist(), blacklist)
- assert.equal(await arbitrablePermissionList.appendOnly(), appendOnly)
- assert.equal(await arbitrablePermissionList.rechallengePossible(), rechallengePossible)
- assert.equal(await arbitrablePermissionList.stake(), stake);
- assert.equal(await arbitrablePermissionList.timeToChallenge(), timeToChallenge);
- });
-
- describe('msg.value restrictions', function() {
- describe('Should revert when msg.value < stake+arbitratorCost', function() {
-
- it('requestRegistration', async () => {
- await expectThrow(arbitrablePermissionList.requestRegistration(
- ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost - 1
- }))
- });
-
- it('requestClearing', async () => {
- await expectThrow(arbitrablePermissionList.requestClearing(
- ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost - 1
- }))
- });
-
- it('challengeRegistration', async () => {
- await expectThrow(arbitrablePermissionList.challengeRegistration(
- ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost - 1
- }))
- });
-
- it('challengeClearing', async () => {
- await expectThrow(arbitrablePermissionList.challengeRegistration(
- ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost - 1
- }))
- })
- })
- });
-
- describe('When item.disputed', function() {
-
- beforeEach('prepare pre-conditions to satisfy other requirements', async function() {
- await arbitrablePermissionList.requestRegistration(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- }); // To satisfy `require(item.status==ItemStatus.Resubmitted || item.status==ItemStatus.Submitted)`
-
- await arbitrablePermissionList.challengeRegistration(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- }) // To dissatisfy `require(!item.disputed)`
- });
-
- beforeEach('assert pre-conditions', async function() {
- assert.ok((await arbitrablePermissionList.items(ARBITRARY_STRING))[0] == ITEM_STATUS.SUBMITTED || (await arbitrablePermissionList.items(ARBITRARY_STRING))[0] == ITEM_STATUS.RESUBMITTED);
-
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[5], true)
- });
- it('challengeRegistration', async () => {
- await expectThrow(arbitrablePermissionList.challengeRegistration(
- ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- }))
- });
-
- it('challengeClearing', async () => {
- await expectThrow(arbitrablePermissionList.challengeClearing(
- ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- }))
- })
- });
-
- describe('When !(item.status==ItemStatus.ClearingRequested || item.status==ItemStatus.PreventiveClearingRequested))', function() {
-
- beforeEach('assert pre-conditions', async function() {
- assert.ok((await arbitrablePermissionList.items(ARBITRARY_STRING))[0] < ITEM_STATUS.CLEARING_REQUESTED)
- });
-
- it('challengeRegistration', async function() {
- await expectThrow(arbitrablePermissionList.challengeRegistration(
- ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- }))
- });
-
- it('challengeClearing', async function() {
- await expectThrow(arbitrablePermissionList.challengeClearing(
- ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- }))
- })
- });
-
- if (!rechallengePossible) {
-
-
- describe('When item in absent state', function() {
-
- beforeEach('assert pre-conditions', async function() {
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0], ITEM_STATUS.ABSENT)
-
- });
-
- it('calling isPermitted should return ' + (blacklist), async () => {
- assert.equal((await arbitrablePermissionList.isPermitted(ARBITRARY_STRING)), blacklist)
- });
-
- it('calling requestRegistration should move item into the submitted state', async () => {
- await arbitrablePermissionList.requestRegistration(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- });
-
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0], ITEM_STATUS.SUBMITTED);
- });
-
- if (!appendOnly) {
- it('calling requestClearing should move item into the preventive clearing requested state', async () => {
- await arbitrablePermissionList.requestClearing(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- });
-
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(), ITEM_STATUS.PREVENTIVE_CLEARING_REQUESTED)
- })
- } else {
- it('calling requestClearing should revert', async () => {
- await expectThrow(arbitrablePermissionList.requestClearing(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- }))
- })
- }
-
-
- it('calling challangeBlacklisting should revert', async () => {
- await expectThrow(arbitrablePermissionList.challengeRegistration(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- }))
- });
-
- it('calling challangeClearing should revert', async () => {
- await expectThrow(arbitrablePermissionList.challengeClearing(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- }))
- });
-
- it('calling executeRequest should revert', async () => {
- await expectThrow(arbitrablePermissionList.executeRequest(ARBITRARY_STRING, {
- from: arbitrator
- }))
- })
- });
-
- if (!appendOnly) {
- describe('When item in cleared state', function() {
-
- beforeEach('prepare pre-conditions', async function() {
- await arbitrablePermissionList.requestRegistration(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- });
- await arbitrablePermissionList.executeRequest(ARBITRARY_STRING, {
- from: arbitrator
- });
- await arbitrablePermissionList.requestClearing(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- });
- await arbitrablePermissionList.executeRequest(ARBITRARY_STRING, {
- from: arbitrator
- })
- });
-
- beforeEach('assert pre-conditions', async function() {
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0], ITEM_STATUS.CLEARED)
- });
-
- it('calling isPermitted should return ' + (blacklist), async () => {
- assert.equal((await arbitrablePermissionList.isPermitted(ARBITRARY_STRING)), blacklist)
- });
-
- it('calling requestRegistration should move item into the resubmitted state', async () => {
- await arbitrablePermissionList.requestRegistration(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- });
-
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(), ITEM_STATUS.RESUBMITTED)
- });
-
- it('calling requestClearing should revert', async () => {
- await expectThrow(arbitrablePermissionList.requestClearing(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- }))
- });
-
- it('calling challangeBlacklisting should revert', async () => {
- await expectThrow(arbitrablePermissionList.challengeRegistration(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- }))
- });
-
- it('calling challangeClearing should revert', async () => {
- await expectThrow(arbitrablePermissionList.challengeClearing(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- }))
- });
-
- it('calling executeRequest should revert', async () => {
- await expectThrow(arbitrablePermissionList.executeRequest(ARBITRARY_STRING, {
- from: arbitrator
- }))
- })
- });
- }
-
-
- if (!appendOnly) {
- describe('When item in resubmitted state', function() {
-
- beforeEach('prepare pre-conditions', async function() {
- await arbitrablePermissionList.requestRegistration(ARBITRARY_STRING, {
- from: partyA,
- value: stake + arbitrationCost
- });
- await arbitrablePermissionList.executeRequest(ARBITRARY_STRING, {
- from: partyA
- });
- await arbitrablePermissionList.requestClearing(ARBITRARY_STRING, {
- from: partyB,
- value: stake + arbitrationCost
- });
- await arbitrablePermissionList.executeRequest(ARBITRARY_STRING, {
- from: partyB
- });
- await arbitrablePermissionList.requestRegistration(ARBITRARY_STRING, {
- from: partyA,
- value: stake + arbitrationCost
- })
- });
-
- beforeEach('assert pre-conditions', async function() {
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(), ITEM_STATUS.RESUBMITTED)
-
- });
-
- it('calling isPermitted should return true ' + (blacklist), async () => {
- assert.equal((await arbitrablePermissionList.isPermitted(ARBITRARY_STRING)), blacklist)
- });
-
- it('calling requestRegistration should revert', async () => {
- await expectThrow(arbitrablePermissionList.requestRegistration(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- }))
- });
-
- it('calling requestClearing should revert', async function() {
- await expectThrow(arbitrablePermissionList.requestClearing(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- }))
- });
-
- it('calling challengeBlacklisting should create a dispute', async function() {
- let itemBalance = (await arbitrablePermissionList.items(ARBITRARY_STRING))[4].toNumber();
-
- await arbitrablePermissionList.challengeRegistration(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- });
-
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[3].toString(), arbitrator);
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[4].toNumber(), itemBalance + stake);
- let disputeID = (await arbitrablePermissionList.items(ARBITRARY_STRING))[6].toNumber();
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[5], true);
- assert.equal(web3.toUtf8(await arbitrablePermissionList.disputeIDToItem(disputeID)), ARBITRARY_STRING)
- });
-
- it('calling challengeClearing should revert', async () => {
- await expectThrow(arbitrablePermissionList.challengeClearing(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- }))
- });
-
- it('calling executeRequest should move item into the blacklisted state', async function() {
- await arbitrablePermissionList.executeRequest(ARBITRARY_STRING, {
- from: arbitrator
- });
-
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(), ITEM_STATUS.REGISTERED)
- });
-
- describe('executeRuling', async function() {
- let disputeID;
-
- beforeEach('create a dispute', async function() {
- await arbitrablePermissionList.challengeRegistration(ARBITRARY_STRING, {
- from: partyB,
- value: stake + arbitrationCost
- });
-
- disputeID = (await arbitrablePermissionList.items(ARBITRARY_STRING))[6].toNumber();
- });
-
- it('calling executeRuling with REGISTER should send item.balance to submitter', async function() {
- const submitter = (await arbitrablePermissionList.items(ARBITRARY_STRING))[2];
- const submitterBalance = web3.eth.getBalance(submitter);
- const itemBalance = (await arbitrablePermissionList.items(ARBITRARY_STRING))[4];
-
- const hash = await centralizedArbitrator.giveRuling(disputeID, RULING.REGISTER, {
- from: arbitrator
- });
-
-
- const actualBalanceOfSubmitter = web3.eth.getBalance(submitter);
- const expectedBalanceOfSubmitter = submitterBalance.plus(itemBalance).minus(new BigNumber(stake).mul(4)).minus(new BigNumber(arbitrationFee).mul(3));
-
- assert(actualBalanceOfSubmitter.equals(expectedBalanceOfSubmitter), "Difference: " + (actualBalanceOfSubmitter.minus(expectedBalanceOfSubmitter)).toNumber());
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(), ITEM_STATUS.REGISTERED)
- });
-
- it('calling executeRuling with CLEAR should send item.balance to challenger', async function() {
- const challenger = (await arbitrablePermissionList.items(ARBITRARY_STRING))[3];
- const challengerBalance = web3.eth.getBalance(challenger);
- const itemBalance = (await arbitrablePermissionList.items(ARBITRARY_STRING))[4];
-
- await centralizedArbitrator.giveRuling(disputeID, RULING.CLEAR, {
- from: arbitrator
- });
-
- const actualBalanceOfChallenger = web3.eth.getBalance(challenger);
- const expectedBalanceOfChallenger = itemBalance.plus(challengerBalance).minus(new BigNumber(stake).mul(4)).minus(new BigNumber(arbitrationFee).mul(3));
-
- assert(actualBalanceOfChallenger.equals(expectedBalanceOfChallenger), "Difference: " + (actualBalanceOfChallenger.minus(expectedBalanceOfChallenger)).toNumber());
-
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(), ITEM_STATUS.CLEARED)
- });
-
- it('calling executeRuling with OTHER should split item.balance between challenger and submitter and move item into the cleared state', async function() {
-
- const submitter = (await arbitrablePermissionList.items(ARBITRARY_STRING))[2];
- const challenger = (await arbitrablePermissionList.items(ARBITRARY_STRING))[3];
- const submitterBalance = web3.eth.getBalance(submitter);
- const challengerBalance = web3.eth.getBalance(challenger);
- const itemBalance = (await arbitrablePermissionList.items(ARBITRARY_STRING))[4];
-
- await centralizedArbitrator.giveRuling(disputeID, RULING.OTHER, {
- from: arbitrator
- });
-
- const actualBalanceOfSubmitter = web3.eth.getBalance(submitter);
- const actualBalanceOfChallenger = web3.eth.getBalance(challenger);
- const expectedBalanceOfSubmitter = itemBalance.dividedBy(new BigNumber(2)).plus(submitterBalance);
- const expectedBalanceOfChallenger = itemBalance.dividedBy(new BigNumber(2)).plus(challengerBalance).minus(new BigNumber(stake).mul(2)).minus(new BigNumber(arbitrationFee).mul(3).dividedBy(2));
-
- assert(actualBalanceOfSubmitter.equals(expectedBalanceOfSubmitter), "Actual: " + actualBalanceOfSubmitter + "\t0Expected: " + expectedBalanceOfSubmitter)
- assert(actualBalanceOfChallenger.equals(expectedBalanceOfChallenger), "1Differece: " + actualBalanceOfChallenger.minus(expectedBalanceOfChallenger))
-
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(), ITEM_STATUS.CLEARED)
-
- })
- })
- });
- }
-
- describe('When item in registered state', function() {
-
- beforeEach('prepare pre-conditions', async function() {
- await arbitrablePermissionList.requestRegistration(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- });
- await arbitrablePermissionList.executeRequest(ARBITRARY_STRING, {
- from: arbitrator
- })
- });
-
- beforeEach('assert pre-conditions', async function() {
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0], ITEM_STATUS.REGISTERED)
- });
-
- it('calling isPermitted should return ' + (!blacklist), async () => {
- assert.equal((await arbitrablePermissionList.isPermitted(ARBITRARY_STRING)), !blacklist)
- });
-
- it('calling requestRegistration should revert', async () => {
- await expectThrow(arbitrablePermissionList.requestRegistration(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- }))
- });
-
- if (!appendOnly) {
- it('calling requestClearing should move item into the clearing requested state', async () => {
- await arbitrablePermissionList.requestClearing(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- });
-
- assert.equal(
- (await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(),
- ITEM_STATUS.CLEARING_REQUESTED)
- })
- } else {
- it('calling requestClearing should revert', async () => {
- await expectThrow(arbitrablePermissionList.requestClearing(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- }))
- })
- }
-
- it('calling challengeRegistration should revert', async () => {
- await expectThrow(arbitrablePermissionList.challengeRegistration(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- }))
- });
-
- it('calling challengeClearing should revert', async () => {
- await expectThrow(arbitrablePermissionList.challengeClearing(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- }))
- });
-
- it('calling executeRequest should revert', async function() {
- await expectThrow(arbitrablePermissionList.executeRequest(ARBITRARY_STRING, {
- from: arbitrator
- }))
- })
- });
- }
-
- describe('When item in submitted state', function() {
-
- beforeEach('prepare pre-conditions', async function() {
- await arbitrablePermissionList.requestRegistration(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- })
- });
-
- beforeEach('assert pre-conditions', async function() {
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(), ITEM_STATUS.SUBMITTED)
- });
-
- it('calling isPermitted should return ' + (!blacklist), async () => {
- assert.equal((await arbitrablePermissionList.isPermitted(ARBITRARY_STRING)), !blacklist)
- });
-
- it('calling requestRegistration should revert', async () => {
- await expectThrow(arbitrablePermissionList.requestRegistration(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- }))
- });
-
- it('calling requestClearing should move item into the clearing requested state', async () => {
- await expectThrow(arbitrablePermissionList.requestClearing(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- }))
- });
-
- it('calling challangeBlacklisting should create a dispute', async function() {
- let itemBalance = (await arbitrablePermissionList.items(ARBITRARY_STRING))[4].toNumber();
-
- await arbitrablePermissionList.challengeRegistration(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- });
-
- let disputeID = (await arbitrablePermissionList.items(ARBITRARY_STRING))[6].toNumber();
-
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[3].toString(), arbitrator);
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[4].toNumber(), itemBalance + stake);
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[5], true);
- assert.equal(web3.toUtf8(await arbitrablePermissionList.disputeIDToItem(disputeID)), ARBITRARY_STRING)
- });
-
- it('calling challengeClearing should revert', async () => {
- await expectThrow(arbitrablePermissionList.challengeClearing(ARBITRARY_STRING, {
- from: arbitrator,
- value: stake + arbitrationCost
- }))
- });
-
- it('calling executeRequest should move item into the blacklisted state', async function() {
- await arbitrablePermissionList.executeRequest(ARBITRARY_STRING, {
- from: arbitrator
- });
-
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(), ITEM_STATUS.REGISTERED)
- });
-
- describe('executeRuling', async function() {
- let disputeID;
-
- beforeEach('create a dispute', async function() {
- await arbitrablePermissionList.challengeRegistration(ARBITRARY_STRING, {
- from: partyB,
- value: stake + arbitrationCost
- });
-
- disputeID = (await arbitrablePermissionList.items(ARBITRARY_STRING))[6].toNumber();
- });
-
- it('calling executeRuling with REGISTER should send item.balance to submitter', async function() {
- const submitter = (await arbitrablePermissionList.items(ARBITRARY_STRING))[2];
- const submitterBalance = web3.eth.getBalance(submitter);
- const itemBalance = (await arbitrablePermissionList.items(ARBITRARY_STRING))[4];
-
-
- const hash = await centralizedArbitrator.giveRuling(disputeID, RULING.REGISTER, {
- from: arbitrator
- });
- const gasUsed = hash.receipt.gasUsed;
- const gasCost = gasUsed * Math.pow(10, 11); // Test environment doesn't care what the gasPrice is, spent value is always gasUsed * 10^11
-
- const actualBalanceOfSubmitter = web3.eth.getBalance(submitter);
- let expectedBalanceOfSubmitter
- let expectedItemStatus
-
- if (!rechallengePossible) {
- expectedBalanceOfSubmitter = submitterBalance.plus(itemBalance).plus(arbitrationFee).minus(gasCost);
- expectedItemStatus = ITEM_STATUS.REGISTERED
- } else {
- expectedBalanceOfSubmitter = submitterBalance.plus(itemBalance).minus(stake).minus(gasCost);
- expectedItemStatus = ITEM_STATUS.SUBMITTED
- }
-
- assert(actualBalanceOfSubmitter.equals(expectedBalanceOfSubmitter), "Actual: " + actualBalanceOfSubmitter + "\tExpected: " + expectedBalanceOfSubmitter);
-
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(), expectedItemStatus)
- });
-
- it('calling executeRuling with CLEAR should send item.balance to challenger', async function() {
- const challenger = (await arbitrablePermissionList.items(ARBITRARY_STRING))[3];
- const challengerBalance = web3.eth.getBalance(challenger);
- const itemBalance = (await arbitrablePermissionList.items(ARBITRARY_STRING))[4];
-
- await centralizedArbitrator.giveRuling(disputeID, RULING.CLEAR, {
- from: arbitrator
- });
-
- const actualBalanceOfChallenger = web3.eth.getBalance(challenger);
- const expectedBalanceOfChallenger = challengerBalance.plus(itemBalance);
-
- assert(actualBalanceOfChallenger.equals(expectedBalanceOfChallenger), "Actual: " + actualBalanceOfChallenger + "\tExpected: " + expectedBalanceOfChallenger)
-
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(), ITEM_STATUS.CLEARED)
- });
-
- it('calling executeRuling with OTHER should split item.balance between challenger and submitter and move item into the absent state', async function() {
- const submitter = (await arbitrablePermissionList.items(ARBITRARY_STRING))[2];
- const challenger = (await arbitrablePermissionList.items(ARBITRARY_STRING))[3];
- const submitterBalance = web3.eth.getBalance(submitter);
- const challengerBalance = web3.eth.getBalance(challenger);
- const itemBalance = (await arbitrablePermissionList.items(ARBITRARY_STRING))[4];
- const disputeID = (await arbitrablePermissionList.items(ARBITRARY_STRING))[6];
-
- const hash = await centralizedArbitrator.giveRuling(disputeID, RULING.OTHER, {
- from: arbitrator
- });
- const gasUsed = hash.receipt.gasUsed;
- const gasCost = gasUsed * Math.pow(10, 11); // Test environment doesn't care what the gasPrice is, spent value is always gasUsed * 10^11
-
- const actualBalanceOfSubmitter = web3.eth.getBalance(submitter);
- const actualBalanceOfChallenger = web3.eth.getBalance(challenger);
- const expectedBalanceOfSubmitter = itemBalance.dividedBy(new BigNumber(2)).plus(submitterBalance).plus(arbitrationFee).minus(gasCost);
- const expectedBalanceOfChallenger = itemBalance.dividedBy(new BigNumber(2)).plus(challengerBalance);
-
- assert(actualBalanceOfSubmitter.equals(expectedBalanceOfSubmitter), "Actual: " + actualBalanceOfSubmitter + "\tExpected: " + expectedBalanceOfSubmitter)
- assert(actualBalanceOfChallenger.equals(expectedBalanceOfChallenger), "Actual: " + actualBalanceOfChallenger + "\tExpected: " + expectedBalanceOfChallenger)
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(), ITEM_STATUS.ABSENT)
- })
- })
- });
-
- if (!rechallengePossible) {
-
- if (!appendOnly) {
- describe('When item in clearing requested state', function() {
-
- beforeEach('prepare pre-conditions', async function() {
- await arbitrablePermissionList.requestRegistration(ARBITRARY_STRING, {
- from: partyA,
- value: stake + arbitrationCost
- });
- await arbitrablePermissionList.executeRequest(ARBITRARY_STRING, {
- from: partyA
- });
- await arbitrablePermissionList.requestClearing(ARBITRARY_STRING, {
- from: partyB,
- value: stake + arbitrationCost
- })
- });
-
- beforeEach('assert pre-conditions', async function() {
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(), ITEM_STATUS.CLEARING_REQUESTED)
- });
-
- it('calling isPermitted should return ' + (!blacklist), async () => {
- assert.equal((await arbitrablePermissionList.isPermitted(ARBITRARY_STRING)), !blacklist)
- });
-
- it('calling requestRegistration should revert', async () => {
- await expectThrow(arbitrablePermissionList.requestRegistration(ARBITRARY_STRING, {
- from: partyA,
- value: stake + arbitrationCost
- }))
- });
-
- it('calling requestClearing should revert', async function() {
- await expectThrow(arbitrablePermissionList.requestClearing(ARBITRARY_STRING, {
- from: partyB,
- value: stake + arbitrationCost
- }))
- });
-
- it('calling challengeRegistration should revert', async () => {
- await expectThrow(arbitrablePermissionList.challengeRegistration(ARBITRARY_STRING, {
- from: partyB,
- value: stake + arbitrationCost
- }))
- });
-
- it('calling challangeClearing should create a dispute', async function() {
- let itemBalance = (await arbitrablePermissionList.items(ARBITRARY_STRING))[4].toNumber();
-
- await arbitrablePermissionList.challengeClearing(ARBITRARY_STRING, {
- from: partyA,
- value: stake + arbitrationCost
- });
- let disputeID = (await arbitrablePermissionList.items(ARBITRARY_STRING))[6].toNumber();
-
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[3].toString(), partyA);
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[4].toNumber(), itemBalance + stake);
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[5], true);
- assert.equal(web3.toUtf8(await arbitrablePermissionList.disputeIDToItem(disputeID)), ARBITRARY_STRING)
- });
-
- it('calling executeRequest should move item into the blacklisted state', async function() {
- await arbitrablePermissionList.executeRequest(ARBITRARY_STRING, {
- from: partyA
- });
-
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(), ITEM_STATUS.CLEARED)
- });
-
- describe('executeRuling', async function() {
- let disputeID;
-
- beforeEach('create a dispute', async function() {
- await arbitrablePermissionList.challengeClearing(ARBITRARY_STRING, {
- from: partyB,
- value: stake + arbitrationCost
- });
-
- disputeID = (await arbitrablePermissionList.items(ARBITRARY_STRING))[6].toNumber();
- });
-
- it('calling executeRuling with REGISTER should send item.balance to challenger', async function() {
- const challenger = (await arbitrablePermissionList.items(ARBITRARY_STRING))[3];
- const challengerBalance = web3.eth.getBalance(challenger);
- const itemBalance = (await arbitrablePermissionList.items(ARBITRARY_STRING))[4];
-
- await centralizedArbitrator.giveRuling(disputeID, RULING.REGISTER, {
- from: arbitrator
- });
-
- const actualBalanceOfChallenger = web3.eth.getBalance(challenger);
- const expectedBalanceOfChallenger = challengerBalance.plus(itemBalance).minus(new BigNumber(stake).mul(3)).minus(new BigNumber(arbitrationFee).mul(2));
-
- assert(actualBalanceOfChallenger.equals(expectedBalanceOfChallenger), "Difference: " + actualBalanceOfChallenger.minus(expectedBalanceOfChallenger));
-
- // assert.equal(web3.eth.getBalance(challenger).toNumber(), challengerBalance + itemBalance);
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(), ITEM_STATUS.REGISTERED)
- });
-
- it('calling executeRuling with CLEAR should send item.balance to submitter', async function() {
- const submitter = (await arbitrablePermissionList.items(ARBITRARY_STRING))[2];
- const submitterBalance = web3.eth.getBalance(submitter);
- const itemBalance = (await arbitrablePermissionList.items(ARBITRARY_STRING))[4];
-
- await centralizedArbitrator.giveRuling(disputeID, RULING.CLEAR, {
- from: arbitrator
- });
-
- const actualBalanceOfSubmitter = web3.eth.getBalance(submitter);
- const expectedBalanceOfSubmitter = submitterBalance.plus(itemBalance).minus(new BigNumber(stake).mul(3)).minus(new BigNumber(arbitrationFee).mul(2));
-
- assert(actualBalanceOfSubmitter.equals(expectedBalanceOfSubmitter), "Difference: " + actualBalanceOfSubmitter.minus(expectedBalanceOfSubmitter));
-
- //assert.equal(web3.eth.getBalance(submitter).toNumber(), submitterBalance + itemBalance);
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(), ITEM_STATUS.CLEARED)
- });
-
- it('calling executeRuling with OTHER should split item.balance between challenger and submitter and move item into the registered state', async function() {
- const submitter = (await arbitrablePermissionList.items(ARBITRARY_STRING))[2];
- const challenger = (await arbitrablePermissionList.items(ARBITRARY_STRING))[3];
- const submitterBalance = web3.eth.getBalance(submitter);
- const challengerBalance = web3.eth.getBalance(challenger);
- const itemBalance = (await arbitrablePermissionList.items(ARBITRARY_STRING))[4];
- const disputeID = (await arbitrablePermissionList.items(ARBITRARY_STRING))[6];
-
- await centralizedArbitrator.giveRuling(disputeID, RULING.OTHER, {
- from: arbitrator
- });
-
- const actualBalanceOfSubmitter = web3.eth.getBalance(submitter);
- const actualBalanceOfChallenger = web3.eth.getBalance(challenger);
- const expectedBalanceOfSubmitter = itemBalance.dividedBy(2).plus(submitterBalance);
- const expectedBalanceOfChallenger = itemBalance.dividedBy(2).plus(challengerBalance);
-
- assert(actualBalanceOfSubmitter.equals(expectedBalanceOfSubmitter), "Difference: " + actualBalanceOfSubmitter.minus(expectedBalanceOfSubmitter));
- assert(actualBalanceOfChallenger.equals(expectedBalanceOfChallenger), "Difference: " + actualBalanceOfChallenger.minus(expectedBalanceOfChallenger));
-
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(), ITEM_STATUS.REGISTERED);
- })
- })
- });
- }
- if (!appendOnly) {
- describe('When item in preventive clearing requested state', function() {
-
- beforeEach('prepare pre-conditions', async function() {
- await arbitrablePermissionList.requestClearing(ARBITRARY_STRING, {
- from: partyB,
- value: stake + arbitrationCost
- })
- });
-
- beforeEach('assert pre-conditions', async function() {
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(), ITEM_STATUS.PREVENTIVE_CLEARING_REQUESTED)
- });
-
- it('calling isPermitted on a not-disputed item should return ' + (blacklist), async () => {
- assert.equal((await arbitrablePermissionList.isPermitted(ARBITRARY_STRING)), blacklist)
- });
-
- it('calling isPermitted on a disputed item should return ' + (blacklist), async () => {
- await arbitrablePermissionList.challengeClearing(ARBITRARY_STRING, {
- from: partyA,
- value: stake + arbitrationCost
- }); // To satisfy disputed pre-condition
-
- assert.equal((await arbitrablePermissionList.isPermitted(ARBITRARY_STRING)), !blacklist)
- });
-
- it('calling requestRegistration should revert', async () => {
- await expectThrow(arbitrablePermissionList.requestRegistration(ARBITRARY_STRING, {
- from: partyA,
- value: stake + arbitrationCost
- }))
- });
-
- it('calling requestClearing should revert', async function() {
- await expectThrow(arbitrablePermissionList.requestClearing(ARBITRARY_STRING, {
- from: partyB,
- value: stake + arbitrationCost
- }))
- });
-
- it('calling challengeRegistration should revert', async () => {
- await expectThrow(arbitrablePermissionList.challengeRegistration(ARBITRARY_STRING, {
- from: partyB,
- value: stake + arbitrationCost
- }))
- });
-
- it('calling challangeClearing should create a dispute', async function() {
- let itemBalance = (await arbitrablePermissionList.items(ARBITRARY_STRING))[4].toNumber();
-
- await arbitrablePermissionList.challengeClearing(ARBITRARY_STRING, {
- from: partyA,
- value: stake + arbitrationCost
- });
-
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[3].toString(), partyA);
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[4].toNumber(), itemBalance + stake);
- let disputeID = (await arbitrablePermissionList.items(ARBITRARY_STRING))[6].toNumber();
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[5], true);
- assert.equal(web3.toUtf8(await arbitrablePermissionList.disputeIDToItem(disputeID)), ARBITRARY_STRING)
- });
-
- it('calling executeRequest should move item into the blacklisted state', async function() {
- await arbitrablePermissionList.executeRequest(ARBITRARY_STRING, {
- from: arbitrator
- });
-
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(), ITEM_STATUS.CLEARED)
- });
-
- describe('executeRuling', async function() {
- let disputeID;
-
- beforeEach('create a dispute', async function() {
- await arbitrablePermissionList.challengeClearing(ARBITRARY_STRING, {
- from: partyB,
- value: stake + arbitrationCost
- });
-
- disputeID = (await arbitrablePermissionList.items(ARBITRARY_STRING))[6].toNumber();
- });
-
- it('calling executeRuling with REGISTER should send item.balance to challenger', async function() {
- const challenger = (await arbitrablePermissionList.items(ARBITRARY_STRING))[3];
- const challengerBalance = web3.eth.getBalance(challenger);
- const itemBalance = (await arbitrablePermissionList.items(ARBITRARY_STRING))[4];
-
- await centralizedArbitrator.giveRuling(disputeID, RULING.REGISTER, {
- from: arbitrator
- });
-
- const actualBalanceOfChallenger = web3.eth.getBalance(challenger);
- const expectedBalanceOfChallenger = challengerBalance.plus(itemBalance);
-
- assert(actualBalanceOfChallenger.equals(expectedBalanceOfChallenger));
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(), ITEM_STATUS.REGISTERED)
- });
-
- it('calling executeRuling with CLEAR should send item.balance to submitter', async function() {
- const submitter = (await arbitrablePermissionList.items(ARBITRARY_STRING))[2];
- const submitterBalance = web3.eth.getBalance(submitter);
- const itemBalance = (await arbitrablePermissionList.items(ARBITRARY_STRING))[4];
-
- await centralizedArbitrator.giveRuling(disputeID, RULING.CLEAR, {
- from: arbitrator
- });
-
- const actualBalanceOfSubmitter = web3.eth.getBalance(submitter);
- const expectedBalanceOfSubmitter = itemBalance.plus(submitterBalance);
-
- assert(actualBalanceOfSubmitter.equals(expectedBalanceOfSubmitter));
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(), ITEM_STATUS.CLEARED)
- });
-
- it('calling executeRuling with OTHER should split item.balance between challenger and submitter and move item into the absent state', async function() {
- const submitter = (await arbitrablePermissionList.items(ARBITRARY_STRING))[2];
- const challenger = (await arbitrablePermissionList.items(ARBITRARY_STRING))[3];
- const submitterBalance = web3.eth.getBalance(submitter);
- const challengerBalance = web3.eth.getBalance(challenger);
- const itemBalance = (await arbitrablePermissionList.items(ARBITRARY_STRING))[4];
- const disputeID = (await arbitrablePermissionList.items(ARBITRARY_STRING))[6];
-
- await centralizedArbitrator.giveRuling(disputeID, RULING.OTHER, {
- from: arbitrator
- });
-
- const actualBalanceOfSubmitter = web3.eth.getBalance(submitter);
- const actualBalanceOfChallenger = web3.eth.getBalance(challenger);
- const expectedBalanceOfSubmitter = itemBalance.dividedBy(2).plus(submitterBalance).plus(new BigNumber(stake)).plus(new BigNumber(arbitrationFee).dividedBy(2));
- const expectedBalanceOfChallenger = itemBalance.dividedBy(2).plus(challengerBalance).plus(new BigNumber(stake)).plus(new BigNumber(arbitrationFee).dividedBy(2));;
-
- assert(actualBalanceOfSubmitter.equals(expectedBalanceOfSubmitter), "Difference: " + actualBalanceOfSubmitter.minus(expectedBalanceOfSubmitter));
- assert(actualBalanceOfChallenger.equals(expectedBalanceOfChallenger), "Difference: " + actualBalanceOfChallenger.minus(expectedBalanceOfChallenger));
-
- assert.equal((await arbitrablePermissionList.items(ARBITRARY_STRING))[0].toNumber(), ITEM_STATUS.ABSENT);
- })
- })
- })
- }
- }
- })
- }
- }
- }
-});
diff --git a/test/arbitrableTransaction.js b/test/arbitrableTransaction.js
deleted file mode 100644
index 93d4b117..00000000
--- a/test/arbitrableTransaction.js
+++ /dev/null
@@ -1,189 +0,0 @@
-/* eslint-disable no-undef */ // Avoid the linter considering truffle elements as undef.
-const { expectThrow, increaseTime } = require('../helpers/utils')
-const ArbitrableTransaction = artifacts.require('./ArbitrableTransaction.sol')
-const CentralizedArbitrator = artifacts.require('./CentralizedArbitrator.sol')
-
-contract('ArbitrableTransaction', function (accounts) {
- const payer = accounts[0]
- const payee = accounts[1]
- const arbitrator = accounts[2]
- const other = accounts[3]
- const amount = 1000
- const timeout = 100
- const arbitrationFee = 20
- const gasPrice = 5000000000
- const metaEvidenceUri = 'https://kleros.io'
-
- // Constructor
- it('Should put 1000 wei in the contract', async () => {
- const arbitrableTransaction = await ArbitrableTransaction.new(0x0, timeout, payee, 0x0, metaEvidenceUri, {from: payer, value: amount})
- assert.equal(web3.eth.getBalance(arbitrableTransaction.address), 1000, "The contract hasn't received the wei correctly.")
-
- const amountSending = await arbitrableTransaction.amount()
- assert.equal(amountSending.toNumber(), 1000, "The contract hasn't updated its amount correctly.")
- })
-
- // Pay
- it('Should pay the payee', async () => {
- const initialPayeeBalance = web3.eth.getBalance(payee)
- const arbitrableTransaction = await ArbitrableTransaction.new(0x0, timeout, payee, 0x0, metaEvidenceUri, {from: payer, value: amount})
- await arbitrableTransaction.pay({from: payer})
- const newPayeeBalance = web3.eth.getBalance(payee)
- assert.equal(newPayeeBalance.toString(), initialPayeeBalance.plus(1000).toString(), "The payee hasn't been paid properly")
- })
-
- it('Should not pay the payee', async () => {
- const arbitrableTransaction = await ArbitrableTransaction.new(0x0, timeout, payee, 0x0, metaEvidenceUri, {from: payer, value: amount})
- await expectThrow(arbitrableTransaction.pay({from: payee}))
- })
-
- // Reimburse
- it('Should reimburse 507 to the payer', async () => {
- const arbitrableTransaction = await ArbitrableTransaction.new(0x0, timeout, payee, 0x0, metaEvidenceUri, {from: payer, value: amount})
- const payerBalanceBeforeReimbursment = web3.eth.getBalance(payer)
- await arbitrableTransaction.reimburse(507, {from: payee})
- const newPayerBalance = web3.eth.getBalance(payer)
- const newContractBalance = web3.eth.getBalance(arbitrableTransaction.address)
- const newAmount = await arbitrableTransaction.amount()
-
- assert.equal(newPayerBalance.toString(), payerBalanceBeforeReimbursment.plus(507).toString(), 'The payer has not been reimbursed correctly')
- assert.equal(newContractBalance.toNumber(), 493, 'Bad amount in the contract')
- assert.equal(newAmount.toNumber(), 493, 'Amount not updated correctly')
- })
-
- it('Should reimburse 1000 (all) to the payer', async () => {
- const arbitrableTransaction = await ArbitrableTransaction.new(0x0, timeout, payee, 0x0, metaEvidenceUri, {from: payer, value: amount})
- const payerBalanceBeforeReimbursment = web3.eth.getBalance(payer)
- await arbitrableTransaction.reimburse(1000, {from: payee})
- const newPayerBalance = web3.eth.getBalance(payer)
- const newContractBalance = web3.eth.getBalance(arbitrableTransaction.address)
- const newAmount = await arbitrableTransaction.amount()
-
- assert.equal(newPayerBalance.toString(), payerBalanceBeforeReimbursment.plus(1000).toString(), 'The payer has not been reimbursed correctly')
- assert.equal(newContractBalance.toNumber(), 0, 'Bad amount in the contract')
- assert.equal(newAmount.toNumber(), 0, 'Amount not updated correctly')
- })
-
- it('Should fail if we try to reimburse more', async () => {
- const arbitrableTransaction = await ArbitrableTransaction.new(0x0, timeout, payee, 0x0, metaEvidenceUri, {from: payer, value: amount})
- await expectThrow(arbitrableTransaction.reimburse(1003, {from: payee}))
- })
-
- it('Should fail if the payer to it', async () => {
- const arbitrableTransaction = await ArbitrableTransaction.new(0x0, timeout, payee, 0x0, metaEvidenceUri, {from: payer, value: amount})
- await expectThrow(arbitrableTransaction.reimburse(1000, {from: payer}))
- })
-
- // executeRuling
- it('Should reimburse the payer (including arbitration fee) when the arbitrator decides so', async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrableTransaction = await ArbitrableTransaction.new(centralizedArbitrator.address, timeout, payee, 0x0, metaEvidenceUri, {from: payer, value: amount})
- await arbitrableTransaction.payArbitrationFeeByPartyA({from: payer, value: arbitrationFee})
- await arbitrableTransaction.payArbitrationFeeByPartyB({from: payee, value: arbitrationFee})
- const payerBalanceBeforeReimbursment = web3.eth.getBalance(payer)
- await centralizedArbitrator.giveRuling(0, 1, {from: arbitrator})
- const newPayerBalance = web3.eth.getBalance(payer)
- assert.equal(newPayerBalance.toString(), payerBalanceBeforeReimbursment.plus(1020).toString(), 'The payer has not been reimbursed correctly')
- })
-
- it('Should pay the payee and reimburse him the arbitration fee when the arbitrator decides so', async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrableTransaction = await ArbitrableTransaction.new(centralizedArbitrator.address, timeout, payee, 0x0, metaEvidenceUri, {from: payer, value: amount})
-
- await arbitrableTransaction.payArbitrationFeeByPartyA({from: payer, value: arbitrationFee})
- await arbitrableTransaction.payArbitrationFeeByPartyB({from: payee, value: arbitrationFee})
- const payeeBalanceBeforePay = web3.eth.getBalance(payee)
- await centralizedArbitrator.giveRuling(0, 2, {from: arbitrator})
- const newPayeeBalance = web3.eth.getBalance(payee)
- assert.equal(newPayeeBalance.toString(), payeeBalanceBeforePay.plus(1020).toString(), 'The payee has not been paid properly')
- })
-
- it('It should do nothing if the arbitrator decides so', async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrableTransaction = await ArbitrableTransaction.new(centralizedArbitrator.address, timeout, payee, 0x0, metaEvidenceUri, {from: payer, value: amount})
- await arbitrableTransaction.payArbitrationFeeByPartyA({from: payer, value: arbitrationFee})
- await arbitrableTransaction.payArbitrationFeeByPartyB({from: payee, value: arbitrationFee})
- const payeeBalanceBeforePay = web3.eth.getBalance(payee)
- const payerBalanceBeforeReimbursment = web3.eth.getBalance(payer)
- await centralizedArbitrator.giveRuling(0, 0, {from: arbitrator})
- const newPayeeBalance = web3.eth.getBalance(payee)
- const newPayerBalance = web3.eth.getBalance(payer)
- assert.equal(newPayeeBalance.toString(), payeeBalanceBeforePay.toString(), "The payee got wei while it shouldn't")
- assert.equal(newPayerBalance.toString(), payerBalanceBeforeReimbursment.toString(), "The payer got wei while it shouldn't")
- })
-
- it('Should reimburse the payer in case of timeout of the payee', async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrableTransaction = await ArbitrableTransaction.new(centralizedArbitrator.address, timeout, payee, 0x0, metaEvidenceUri, {from: payer, value: amount})
- await arbitrableTransaction.payArbitrationFeeByPartyA({from: payer, value: arbitrationFee})
- increaseTime(timeout + 1)
- const payerBalanceBeforeReimbursment = web3.eth.getBalance(payer)
- const tx = await arbitrableTransaction.timeOutByPartyA({from: payer, gasPrice: gasPrice})
- const txFee = tx.receipt.gasUsed * gasPrice
- const newPayerBalance = web3.eth.getBalance(payer)
- assert.equal(newPayerBalance.toString(), payerBalanceBeforeReimbursment.plus(1020).minus(txFee).toString(), 'The payer has not been reimbursed correctly')
- })
-
- it("Shouldn't work before timeout for the payer", async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrableTransaction = await ArbitrableTransaction.new(centralizedArbitrator.address, timeout, payee, 0x0, metaEvidenceUri, {from: payer, value: amount})
- await expectThrow(arbitrableTransaction.timeOutByPartyA({from: payer, gasPrice: gasPrice}))
- await arbitrableTransaction.payArbitrationFeeByPartyA({from: payer, value: arbitrationFee})
- increaseTime(1)
- await expectThrow(arbitrableTransaction.timeOutByPartyA({from: payer, gasPrice: gasPrice}))
- })
-
- it('Should pay and reimburse the payee in case of timeout of the payer', async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrableTransaction = await ArbitrableTransaction.new(centralizedArbitrator.address, timeout, payee, 0x0, metaEvidenceUri, {from: payer, value: amount})
- await arbitrableTransaction.payArbitrationFeeByPartyB({from: payee, value: arbitrationFee})
- increaseTime(timeout + 1)
- const payeeBalanceBeforeReimbursment = web3.eth.getBalance(payee)
- const tx = await arbitrableTransaction.timeOutByPartyB({from: payee, gasPrice: gasPrice})
- const txFee = tx.receipt.gasUsed * gasPrice
- const newPayeeBalance = web3.eth.getBalance(payee)
- assert.equal(newPayeeBalance.toString(), payeeBalanceBeforeReimbursment.plus(1020).minus(txFee).toString(), 'The payee has not been paid correctly')
- })
-
- it("Shouldn't work before timeout for the payee", async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrableTransaction = await ArbitrableTransaction.new(centralizedArbitrator.address, timeout, payee, 0x0, metaEvidenceUri, {from: payer, value: amount})
- await expectThrow(arbitrableTransaction.timeOutByPartyB({from: payee, gasPrice: gasPrice}))
- await arbitrableTransaction.payArbitrationFeeByPartyB({from: payee, value: arbitrationFee})
- increaseTime(1)
- await expectThrow(arbitrableTransaction.timeOutByPartyB({from: payee, gasPrice: gasPrice}))
- })
-
- // submitEvidence
- it('Should create events when evidence is submitted by the payer', async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrableTransaction = await ArbitrableTransaction.new(centralizedArbitrator.address, timeout, payee, 0x0, metaEvidenceUri, {from: payer, value: amount})
- await arbitrableTransaction.payArbitrationFeeByPartyA({from: payer, value: arbitrationFee})
- await arbitrableTransaction.payArbitrationFeeByPartyB({from: payee, value: arbitrationFee})
- const tx = await arbitrableTransaction.submitEvidence('ipfs:/X', {from: payer})
- assert.equal(tx.logs[0].event, 'Evidence')
- assert.equal(tx.logs[0].args._arbitrator, centralizedArbitrator.address)
- assert.equal(tx.logs[0].args._party, payer)
- assert.equal(tx.logs[0].args._evidence, 'ipfs:/X')
- })
-
- it('Should create events when evidence is submitted by the payee', async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrableTransaction = await ArbitrableTransaction.new(centralizedArbitrator.address, timeout, payee, 0x0, metaEvidenceUri, {from: payer, value: amount})
- await arbitrableTransaction.payArbitrationFeeByPartyA({from: payer, value: arbitrationFee})
- await arbitrableTransaction.payArbitrationFeeByPartyB({from: payee, value: arbitrationFee})
- const tx = await arbitrableTransaction.submitEvidence('ipfs:/X', {from: payee})
- assert.equal(tx.logs[0].event, 'Evidence')
- assert.equal(tx.logs[0].args._arbitrator, centralizedArbitrator.address)
- assert.equal(tx.logs[0].args._party, payee)
- assert.equal(tx.logs[0].args._evidence, 'ipfs:/X')
- })
-
- it('Should fail if someone else try to submit', async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrableTransaction = await ArbitrableTransaction.new(centralizedArbitrator.address, timeout, payee, 0x0, metaEvidenceUri, {from: payer, value: amount})
- await arbitrableTransaction.payArbitrationFeeByPartyA({from: payer, value: arbitrationFee})
- await arbitrableTransaction.payArbitrationFeeByPartyB({from: payee, value: arbitrationFee})
- await expectThrow(arbitrableTransaction.submitEvidence('ipfs:/X', {from: other}))
- })
-})
diff --git a/test/blockhash-rng-fallback.js b/test/blockhash-rng-fallback.js
new file mode 100644
index 00000000..d3d8f6ac
--- /dev/null
+++ b/test/blockhash-rng-fallback.js
@@ -0,0 +1,86 @@
+/* eslint-disable no-undef */ // Avoid the linter considering truffle elements as undef.
+
+var BlockHashRNGFallback = artifacts.require('BlockHashRNGFallback')
+
+contract('BlockHashRNGFallback', async accounts => {
+ it('should save the random number trough time', async () => {
+ const blockHashRNGFallback = await BlockHashRNGFallback.new({
+ from: accounts[0]
+ })
+ const blockNum = web3.eth.blockNumber
+ const randomNumCall = await blockHashRNGFallback.getRN.call(blockNum)
+ const randomNum = randomNumCall.toNumber()
+
+ await blockHashRNGFallback.saveRN(blockNum)
+ // long time passes
+ for (i = 0; i < 257; i++)
+ await web3.currentProvider.sendAsync({ method: 'evm_mine' }, function(
+ _err,
+ _result
+ ) {})
+
+ const sameRandomNum = await blockHashRNGFallback.getRN.call(blockNum)
+ assert.equal(
+ sameRandomNum.toNumber(),
+ randomNum,
+ 'unsaved random number should be 0'
+ )
+ })
+
+ it('should fallback to a number different from zero', async () => {
+ const blockHashRNGFallback = await BlockHashRNGFallback.new({
+ from: accounts[0]
+ })
+ const blockNum = web3.eth.blockNumber
+
+ // long time passes
+ for (i = 0; i < 257; i++)
+ await web3.currentProvider.sendAsync({ method: 'evm_mine' }, function(
+ _err,
+ _result
+ ) {})
+
+ const randomNum = await blockHashRNGFallback.getRN.call(blockNum)
+ assert.notEqual(randomNum.toNumber(), 0)
+ })
+
+ it('should give out the reward for saving a number', async () => {
+ const blockHashRNGFallback = await BlockHashRNGFallback.new({
+ from: accounts[0]
+ })
+ const reimbursment = 1e18
+ const balanceBeforeReimbursment = web3.eth.getBalance(accounts[2])
+ const blockNum = web3.eth.blockNumber
+
+ await blockHashRNGFallback.contribute(blockNum, {
+ from: accounts[1],
+ value: reimbursment
+ })
+ await blockHashRNGFallback.saveRN(blockNum, { from: accounts[2] })
+
+ const balanceAfterReimbursment = web3.eth.getBalance(accounts[2])
+ assert.ok(
+ balanceAfterReimbursment.toNumber() > balanceBeforeReimbursment.toNumber()
+ )
+ })
+
+ it('should not give reward to a caller who provided invalid block number', async () => {
+ const blockHashRNGFallback = await BlockHashRNGFallback.new({
+ from: accounts[0]
+ })
+ const reimbursment = 1e18
+ const balanceBeforeReimbursment = web3.eth.getBalance(accounts[2])
+ const blockNum = web3.eth.blockNumber + 100
+
+ await blockHashRNGFallback.contribute(blockNum, {
+ from: accounts[1],
+ value: reimbursment
+ })
+ await blockHashRNGFallback.saveRN(blockNum, { from: accounts[2] })
+
+ const balanceAfterReimbursment = web3.eth.getBalance(accounts[2])
+ assert.ok(
+ balanceAfterReimbursment.toNumber() < balanceBeforeReimbursment.toNumber()
+ )
+ })
+})
diff --git a/test/blockhash-rng.js b/test/blockhash-rng.js
new file mode 100644
index 00000000..96a9a519
--- /dev/null
+++ b/test/blockhash-rng.js
@@ -0,0 +1,80 @@
+/* eslint-disable no-undef */ // Avoid the linter considering truffle elements as undef.
+
+var BlockHashRNG = artifacts.require('BlockHashRNG')
+
+contract('BlockhashRNG', async accounts => {
+ it('should increase the reward for a random number', async () => {
+ const blockHashRNG = await BlockHashRNG.new({ from: accounts[0] })
+ await blockHashRNG.contribute(10, { from: accounts[0], value: 1000 })
+ let balance = await blockHashRNG.reward(10)
+ assert.equal(balance.toNumber(), 1000)
+
+ await blockHashRNG.contribute(10, { from: accounts[1], value: 1000 })
+ balance = await blockHashRNG.reward(10)
+ assert.equal(balance.toNumber(), 2000)
+ })
+
+ it('should generate a random number different from zero', async () => {
+ const blockHashRNG = await BlockHashRNG.new({ from: accounts[0] })
+ const rn = await blockHashRNG.getRN(web3.eth.blockNumber)
+
+ assert.notEqual(rn, 0)
+ })
+
+ it('should mine dummy blocks', async () => {
+ const currentBlockNum = web3.eth.blockNumber
+
+ // mine nine empty blocks
+ for (i = 0; i < 9; i++)
+ await web3.currentProvider.sendAsync({ method: 'evm_mine' }, function(
+ _err,
+ _result
+ ) {})
+
+ // web3.eth.blockNumber is not going to return the correct value if there are no transactions in the block
+ // fake a single transaction
+ await BlockHashRNG.new({ from: accounts[0] })
+
+ assert.equal(currentBlockNum + 10, web3.eth.blockNumber)
+ })
+
+ it('should save the random number trough time', async () => {
+ const blockHashRNG = await BlockHashRNG.new({ from: accounts[0] })
+ const blockNum = web3.eth.blockNumber
+ const randomNumCall = await blockHashRNG.getRN.call(blockNum)
+ const randomNum = randomNumCall.toNumber()
+
+ await blockHashRNG.saveRN(blockNum)
+ // long time passes
+ for (i = 0; i < 257; i++)
+ await web3.currentProvider.sendAsync({ method: 'evm_mine' }, function(
+ _err,
+ _result
+ ) {})
+
+ const sameRandomNum = await blockHashRNG.getRN.call(blockNum)
+ assert.equal(
+ sameRandomNum.toNumber(),
+ randomNum,
+ 'unsaved random number should be 0'
+ )
+ })
+
+ it('should give out the reward for saving a number', async () => {
+ const blockHashRNG = await BlockHashRNG.new({ from: accounts[0] })
+ const reimbursment = 1e18
+ const balanceBeforeReimbursment = web3.eth.getBalance(accounts[2])
+ const blockNum = web3.eth.blockNumber
+
+ await blockHashRNG.contribute(blockNum, {
+ from: accounts[1],
+ value: reimbursment
+ })
+ await blockHashRNG.saveRN(blockNum, { from: accounts[2] })
+
+ const balanceAfterReimbursment = web3.eth.getBalance(accounts[2])
+ assert.ok(
+ balanceAfterReimbursment.toNumber() > balanceBeforeReimbursment.toNumber()
+ )
+ })
+})
diff --git a/test/blockhashRNG.js b/test/blockhashRNG.js
deleted file mode 100644
index cfff88b1..00000000
--- a/test/blockhashRNG.js
+++ /dev/null
@@ -1,69 +0,0 @@
-var BlockHashRNG = artifacts.require("BlockHashRNG");
-
-contract('BlockhashRNG', async (accounts) => {
-
- it("should increase the reward for a random number", async () => {
- let blockHashRNG = await BlockHashRNG.new({from: accounts[0]})
- await blockHashRNG.contribute(10, {from: accounts[0], value: 1000})
- let balance = await blockHashRNG.reward(10);
- assert.equal(balance.toNumber(), 1000);
-
- await blockHashRNG.contribute(10, {from: accounts[1], value: 1000})
- balance = await blockHashRNG.reward(10);
- assert.equal(balance.toNumber(), 2000)
- })
-
- it("should generate a random number different from zero", async () => {
- let blockHashRNG = await BlockHashRNG.new({from: accounts[0]})
- let rn = await blockHashRNG.getRN(web3.eth.blockNumber)
-
- assert.notEqual(rn, 0)
- })
-
- it("should mine dummy blocks", async () => {
- let currentBlockNum = web3.eth.blockNumber
-
- // mine nine empty blocks
- for (i =0; i < 9; i++){
- await web3.currentProvider.sendAsync({method: "evm_mine"}, function(err, result) {
- });
- }
-
- // web3.eth.blockNumber is not going to return the correct value if there are no transactions in the block
- // fake a single transaction
- await BlockHashRNG.new({from: accounts[0]})
-
- assert.equal(currentBlockNum + 10, web3.eth.blockNumber)
- })
-
- it("should save the random number trough time", async () => {
- let blockHashRNG = await BlockHashRNG.new({from: accounts[0]})
- let blockNum = web3.eth.blockNumber
- let randomNumCall = await blockHashRNG.getRN.call(blockNum)
- let randomNum = randomNumCall.toNumber()
-
- await blockHashRNG.saveRN(blockNum)
- // long time passes
- for (i = 0; i < 257; i++){
- await web3.currentProvider.sendAsync({method: "evm_mine"}, function(err, result) {
- });
- }
-
- let sameRandomNum = await blockHashRNG.getRN.call(blockNum)
- assert.equal(sameRandomNum.toNumber(), randomNum, "unsaved random number should be 0")
- })
-
- it("should give out the reward for saving a number", async () => {
- let blockHashRNG = await BlockHashRNG.new({from: accounts[0]})
- let reimbursment = 1e18
- let balanceBeforeReimbursment = web3.eth.getBalance(accounts[2])
- let blockNum = web3.eth.blockNumber
-
- await blockHashRNG.contribute(blockNum, {from: accounts[1], value: reimbursment})
- await blockHashRNG.saveRN(blockNum, {from: accounts[2]})
-
- let balanceAfterReimbursment = web3.eth.getBalance(accounts[2])
- assert.ok(balanceAfterReimbursment.toNumber() > balanceBeforeReimbursment.toNumber())
- })
-
-});
diff --git a/test/blockhashRNGFallback.js b/test/blockhashRNGFallback.js
deleted file mode 100644
index ad8759ae..00000000
--- a/test/blockhashRNGFallback.js
+++ /dev/null
@@ -1,62 +0,0 @@
-var BlockHashRNGFallback = artifacts.require("BlockHashRNGFallback");
-
-contract('BlockHashRNGFallback', async (accounts) => {
- it("should save the random number trough time", async () => {
- let blockHashRNGFallback = await BlockHashRNGFallback.new({from: accounts[0]})
- let blockNum = web3.eth.blockNumber
- let randomNumCall = await blockHashRNGFallback.getRN.call(blockNum)
- let randomNum = randomNumCall.toNumber()
-
- await blockHashRNGFallback.saveRN(blockNum)
- // long time passes
- for (i = 0; i < 257; i++){
- await web3.currentProvider.sendAsync({method: "evm_mine"}, function(err, result) {
- });
- }
-
- let sameRandomNum = await blockHashRNGFallback.getRN.call(blockNum)
- assert.equal(sameRandomNum.toNumber(), randomNum, "unsaved random number should be 0")
- })
-
- it("should fallback to a number different from zero", async () => {
- let blockHashRNGFallback = await BlockHashRNGFallback.new({from: accounts[0]})
- let blockNum = web3.eth.blockNumber
-
- // long time passes
- for (i = 0; i < 257; i++){
- await web3.currentProvider.sendAsync({method: "evm_mine"}, function(err, result) {
- });
- }
-
- let randomNum = await blockHashRNGFallback.getRN.call(blockNum)
- assert.notEqual(randomNum.toNumber(), 0)
-
- })
-
- it("should give out the reward for saving a number", async () => {
- let blockHashRNGFallback = await BlockHashRNGFallback.new({from: accounts[0]})
- let reimbursment = 1e18
- let balanceBeforeReimbursment = web3.eth.getBalance(accounts[2])
- let blockNum = web3.eth.blockNumber
-
- await blockHashRNGFallback.contribute(blockNum, {from: accounts[1], value: reimbursment})
- await blockHashRNGFallback.saveRN(blockNum, {from: accounts[2]})
-
- let balanceAfterReimbursment = web3.eth.getBalance(accounts[2])
- assert.ok(balanceAfterReimbursment.toNumber() > balanceBeforeReimbursment.toNumber())
- })
-
- it("should not give reward to a caller who provided invalid block number", async () => {
- let blockHashRNGFallback = await BlockHashRNGFallback.new({from: accounts[0]})
- let reimbursment = 1e18
- let balanceBeforeReimbursment = web3.eth.getBalance(accounts[2])
- let blockNum = web3.eth.blockNumber + 100
-
- await blockHashRNGFallback.contribute(blockNum, {from: accounts[1], value: reimbursment})
- await blockHashRNGFallback.saveRN(blockNum, {from: accounts[2]})
-
- let balanceAfterReimbursment = web3.eth.getBalance(accounts[2])
- assert.ok(balanceAfterReimbursment.toNumber() < balanceBeforeReimbursment.toNumber())
-
- })
-})
diff --git a/test/multipleArbitrableTransaction.js b/test/multiple-arbitrable-transaction.js
similarity index 54%
rename from test/multipleArbitrableTransaction.js
rename to test/multiple-arbitrable-transaction.js
index 8fd5420b..be30ba98 100644
--- a/test/multipleArbitrableTransaction.js
+++ b/test/multiple-arbitrable-transaction.js
@@ -1,41 +1,45 @@
/* eslint-disable no-undef */ // Avoid the linter considering truffle elements as undef.
-const { expectThrow, increaseTime } = require("../helpers/utils");
+const { expectThrow, increaseTime } = require('../helpers/utils')
+
const MultipleArbitrableTransaction = artifacts.require(
- "./MultipleArbitrableTransaction.sol"
-);
-const CentralizedArbitrator = artifacts.require("./CentralizedArbitrator.sol");
-
-contract("MultipleArbitrableTransaction", function(accounts) {
- let payer = accounts[0]
- let payee = accounts[1]
- let arbitrator = accounts[2]
- let other = accounts[3]
- let amount = 1000
- let timeout = 100
- let arbitrationFee = 20
- let gasPrice = 5000000000
+ './MultipleArbitrableTransaction.sol'
+)
+const CentralizedArbitrator = artifacts.require('./CentralizedArbitrator.sol')
+
+contract('MultipleArbitrableTransaction', function(accounts) {
+ const payer = accounts[0]
+ const payee = accounts[1]
+ const arbitrator = accounts[2]
+ const other = accounts[3]
+ const amount = 1000
+ const timeout = 100
+ const arbitrationFee = 20
+ const gasPrice = 5000000000
const metaEvidenceUri = 'https://kleros.io'
+ /**
+ * Getter for the last transaction
+ * @param {MultipleArbitrableTransaction} multipleContract Multiple arbitrable transaction instance.
+ * @param {function} callback The callback.
+ * @returns {function} The last transaction.
+ */
async function getLastTransaction(multipleContract, callback) {
- const metaEvidenceEvent = multipleContract.MetaEvidence();
+ const metaEvidenceEvent = multipleContract.MetaEvidence()
const awaitable = new Promise((resolve, reject) => {
- const handler = metaEvidenceEvent.watch((error, result) => {
- metaEvidenceEvent.stopWatching();
- if (!error) {
- resolve(result);
- } else {
- reject(error);
- }
- });
- });
- await callback();
- return await awaitable;
+ const _handler = metaEvidenceEvent.watch((error, result) => {
+ metaEvidenceEvent.stopWatching()
+ if (!error) resolve(result)
+ else reject(error)
+ })
+ })
+ await callback()
+ return awaitable
}
- it("Should handle 1 transaction", async () => {
- let multipleContract = await MultipleArbitrableTransaction.new({
+ it('Should handle 1 transaction', async () => {
+ const multipleContract = await MultipleArbitrableTransaction.new({
from: payer
- });
+ })
const lastTransaction = await getLastTransaction(
multipleContract,
async () => {
@@ -46,38 +50,34 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
+ )
}
- );
+ )
- let arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber();
- let payerBalanceBeforeReimbursment = web3.eth.getBalance(payer);
+ const arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber()
+ const payerBalanceBeforeReimbursment = web3.eth.getBalance(payer)
await multipleContract.reimburse(arbitrableTransactionId, 1000, {
from: payee
- });
- let newPayerBalance = web3.eth.getBalance(payer);
- let newContractBalance = web3.eth.getBalance(multipleContract.address);
- let newAmount = (await multipleContract.transactions(
+ })
+ const newPayerBalance = web3.eth.getBalance(payer)
+ const newContractBalance = web3.eth.getBalance(multipleContract.address)
+ const newAmount = (await multipleContract.transactions(
arbitrableTransactionId
- ))[2];
+ ))[2]
assert.equal(
newPayerBalance.toString(),
payerBalanceBeforeReimbursment.plus(1000).toString(),
- "The payer has not been reimbursed correctly"
- );
- assert.equal(
- newContractBalance.toNumber(),
- 0,
- "Bad amount in the contract"
- );
- assert.equal(newAmount.toNumber(), 0, "Amount not updated correctly");
- });
-
- it("Should handle 3 transaction", async () => {
- let multipleContract = await MultipleArbitrableTransaction.new({
+ 'The payer has not been reimbursed correctly'
+ )
+ assert.equal(newContractBalance.toNumber(), 0, 'Bad amount in the contract')
+ assert.equal(newAmount.toNumber(), 0, 'Amount not updated correctly')
+ })
+
+ it('Should handle 3 transaction', async () => {
+ const multipleContract = await MultipleArbitrableTransaction.new({
from: payer
- });
+ })
for (var cnt = 0; cnt < 3; cnt += 1) {
const lastTransaction = await getLastTransaction(
multipleContract,
@@ -89,40 +89,40 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
+ )
}
- );
+ )
- let arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber();
+ const arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber()
- let payerBalanceBeforeReimbursment = web3.eth.getBalance(payer);
+ const payerBalanceBeforeReimbursment = web3.eth.getBalance(payer)
await multipleContract.reimburse(arbitrableTransactionId, 1000, {
from: payee
- });
- let newPayerBalance = web3.eth.getBalance(payer);
- let newContractBalance = web3.eth.getBalance(multipleContract.address);
- let newAmount = (await multipleContract.transactions(
+ })
+ const newPayerBalance = web3.eth.getBalance(payer)
+ const newContractBalance = web3.eth.getBalance(multipleContract.address)
+ const newAmount = (await multipleContract.transactions(
arbitrableTransactionId
- ))[2];
+ ))[2]
assert.equal(
newPayerBalance.toString(),
payerBalanceBeforeReimbursment.plus(1000).toString(),
- "The payer has not been reimbursed correctly"
- );
+ 'The payer has not been reimbursed correctly'
+ )
assert.equal(
newContractBalance.toNumber(),
0,
- "Bad amount in the contract"
- );
- assert.equal(newAmount.toNumber(), 0, "Amount not updated correctly");
+ 'Bad amount in the contract'
+ )
+ assert.equal(newAmount.toNumber(), 0, 'Amount not updated correctly')
}
- });
+ })
- it("Should put 1000 wei in the contract", async () => {
- let multipleContract = await MultipleArbitrableTransaction.new({
+ it('Should put 1000 wei in the contract', async () => {
+ const multipleContract = await MultipleArbitrableTransaction.new({
from: payer
- });
+ })
const lastTransaction = await getLastTransaction(
multipleContract,
async () => {
@@ -133,34 +133,34 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
+ )
}
- );
+ )
- let arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber();
+ const arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber()
assert.equal(
web3.eth.getBalance(multipleContract.address),
1000,
"The contract hasn't received the wei correctly."
- );
- let amountSending = (await multipleContract.transactions(
+ )
+ const amountSending = (await multipleContract.transactions(
arbitrableTransactionId
- ))[2];
+ ))[2]
assert.equal(
amountSending.toNumber(),
1000,
"The contract hasn't updated its amount correctly."
- );
- });
+ )
+ })
// Pay
- it("The payee should withdraw", async () => {
- let initialPayeeBalance = web3.eth.getBalance(payee);
- let multipleContract = await MultipleArbitrableTransaction.new({
+ it('The payee should withdraw', async () => {
+ const initialPayeeBalance = web3.eth.getBalance(payee)
+ const multipleContract = await MultipleArbitrableTransaction.new({
from: payer
- });
+ })
const lastTransaction = await getLastTransaction(
multipleContract,
async () => {
@@ -171,29 +171,29 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
+ )
}
- );
+ )
- let arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber();
+ const arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber()
- increaseTime(timeout + 1);
- let tx = await multipleContract.withdraw(arbitrableTransactionId, {
+ increaseTime(timeout + 1)
+ const tx = await multipleContract.withdraw(arbitrableTransactionId, {
from: payee
- });
- let consumed = tx.receipt.gasUsed * 100000000000;
- let newPayeeBalance = web3.eth.getBalance(payee);
+ })
+ const consumed = tx.receipt.gasUsed * 100000000000
+ const newPayeeBalance = web3.eth.getBalance(payee)
assert.equal(
newPayeeBalance.toString(),
initialPayeeBalance.plus(1000 - consumed).toString(),
"The payee hasn't been paid properly"
- );
- });
+ )
+ })
- it("The payer should not withdraw", async () => {
- let multipleContract = await MultipleArbitrableTransaction.new({
+ it('The payer should not withdraw', async () => {
+ const multipleContract = await MultipleArbitrableTransaction.new({
from: payer
- });
+ })
const lastTransaction = await getLastTransaction(
multipleContract,
async () => {
@@ -204,20 +204,20 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
+ )
}
- );
- let arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber();
+ )
+ const arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber()
await expectThrow(
multipleContract.withdraw(arbitrableTransactionId, { from: payer })
- );
- });
+ )
+ })
// Reimburse
- it("Should reimburse 507 to the payer", async () => {
- let multipleContract = await MultipleArbitrableTransaction.new({
+ it('Should reimburse 507 to the payer', async () => {
+ const multipleContract = await MultipleArbitrableTransaction.new({
from: payer
- });
+ })
const lastTransaction = await getLastTransaction(
multipleContract,
async () => {
@@ -228,38 +228,38 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
+ )
}
- );
- let arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber();
+ )
+ const arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber()
- let payerBalanceBeforeReimbursment = web3.eth.getBalance(payer);
+ const payerBalanceBeforeReimbursment = web3.eth.getBalance(payer)
await multipleContract.reimburse(arbitrableTransactionId, 507, {
from: payee
- });
- let newPayerBalance = web3.eth.getBalance(payer);
- let newContractBalance = web3.eth.getBalance(multipleContract.address);
- let newAmount = (await multipleContract.transactions(
+ })
+ const newPayerBalance = web3.eth.getBalance(payer)
+ const newContractBalance = web3.eth.getBalance(multipleContract.address)
+ const newAmount = (await multipleContract.transactions(
arbitrableTransactionId
- ))[2];
+ ))[2]
assert.equal(
newPayerBalance.toString(),
payerBalanceBeforeReimbursment.plus(507).toString(),
- "The payer has not been reimbursed correctly"
- );
+ 'The payer has not been reimbursed correctly'
+ )
assert.equal(
newContractBalance.toNumber(),
493,
- "Bad amount in the contract"
- );
- assert.equal(newAmount.toNumber(), 493, "Amount not updated correctly");
- });
+ 'Bad amount in the contract'
+ )
+ assert.equal(newAmount.toNumber(), 493, 'Amount not updated correctly')
+ })
- it("Should reimburse 1000 (all) to the payer", async () => {
- let multipleContract = await MultipleArbitrableTransaction.new({
+ it('Should reimburse 1000 (all) to the payer', async () => {
+ const multipleContract = await MultipleArbitrableTransaction.new({
from: payer
- });
+ })
const lastTransaction = await getLastTransaction(
multipleContract,
@@ -271,38 +271,34 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
+ )
}
- );
- let arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber();
+ )
+ const arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber()
- let payerBalanceBeforeReimbursment = web3.eth.getBalance(payer);
+ const payerBalanceBeforeReimbursment = web3.eth.getBalance(payer)
await multipleContract.reimburse(arbitrableTransactionId, 1000, {
from: payee
- });
- let newPayerBalance = web3.eth.getBalance(payer);
- let newContractBalance = web3.eth.getBalance(multipleContract.address);
- let newAmount = (await multipleContract.transactions(
+ })
+ const newPayerBalance = web3.eth.getBalance(payer)
+ const newContractBalance = web3.eth.getBalance(multipleContract.address)
+ const newAmount = (await multipleContract.transactions(
arbitrableTransactionId
- ))[2];
+ ))[2]
assert.equal(
newPayerBalance.toString(),
payerBalanceBeforeReimbursment.plus(1000).toString(),
- "The payer has not been reimbursed correctly"
- );
- assert.equal(
- newContractBalance.toNumber(),
- 0,
- "Bad amount in the contract"
- );
- assert.equal(newAmount.toNumber(), 0, "Amount not updated correctly");
- });
-
- it("Should fail if we try to reimburse more", async () => {
- let multipleContract = await MultipleArbitrableTransaction.new({
+ 'The payer has not been reimbursed correctly'
+ )
+ assert.equal(newContractBalance.toNumber(), 0, 'Bad amount in the contract')
+ assert.equal(newAmount.toNumber(), 0, 'Amount not updated correctly')
+ })
+
+ it('Should fail if we try to reimburse more', async () => {
+ const multipleContract = await MultipleArbitrableTransaction.new({
from: payer
- });
+ })
const lastTransaction = await getLastTransaction(
multipleContract,
@@ -314,20 +310,20 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
+ )
}
- );
- let arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber();
+ )
+ const arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber()
await expectThrow(
multipleContract.reimburse(arbitrableTransactionId, 1003, { from: payee })
- );
- });
+ )
+ })
- it("Should fail if the payer to tries to reimburse it", async () => {
- let multipleContract = await MultipleArbitrableTransaction.new({
+ it('Should fail if the payer to tries to reimburse it', async () => {
+ const multipleContract = await MultipleArbitrableTransaction.new({
from: payer
- });
+ })
const lastTransaction = await getLastTransaction(
multipleContract,
@@ -339,26 +335,26 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
+ )
}
- );
- let arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber();
+ )
+ const arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber()
await expectThrow(
multipleContract.reimburse(arbitrableTransactionId, 1000, { from: payer })
- );
- });
+ )
+ })
// executeRuling
- it("Should reimburse the payer (including arbitration fee) when the arbitrator decides so", async () => {
- let centralizedArbitrator = await CentralizedArbitrator.new(
+ it('Should reimburse the payer (including arbitration fee) when the arbitrator decides so', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
arbitrationFee,
{ from: arbitrator }
- );
+ )
- let multipleContract = await MultipleArbitrableTransaction.new({
+ const multipleContract = await MultipleArbitrableTransaction.new({
from: payer
- });
+ })
const lastTransaction = await getLastTransaction(
multipleContract,
@@ -370,37 +366,37 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
+ )
}
- );
- let arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber();
+ )
+ const arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber()
await multipleContract.payArbitrationFeeBySeller(arbitrableTransactionId, {
from: payee,
value: arbitrationFee
- });
+ })
await multipleContract.payArbitrationFeeByBuyer(arbitrableTransactionId, {
from: payer,
value: arbitrationFee
- });
- let payerBalanceBeforeReimbursment = web3.eth.getBalance(payer);
- await centralizedArbitrator.giveRuling(0, 1, { from: arbitrator });
- let newPayerBalance = web3.eth.getBalance(payer);
+ })
+ const payerBalanceBeforeReimbursment = web3.eth.getBalance(payer)
+ await centralizedArbitrator.giveRuling(0, 1, { from: arbitrator })
+ const newPayerBalance = web3.eth.getBalance(payer)
assert.equal(
newPayerBalance.toString(),
payerBalanceBeforeReimbursment.plus(1020).toString(),
- "The payer has not been reimbursed correctly"
- );
- });
+ 'The payer has not been reimbursed correctly'
+ )
+ })
- it("Should pay the payee and reimburse him the arbitration fee when the arbitrator decides so", async () => {
- let centralizedArbitrator = await CentralizedArbitrator.new(
+ it('Should pay the payee and reimburse him the arbitration fee when the arbitrator decides so', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
arbitrationFee,
{ from: arbitrator }
- );
- let multipleContract = await MultipleArbitrableTransaction.new({
+ )
+ const multipleContract = await MultipleArbitrableTransaction.new({
from: payer
- });
+ })
const lastTransaction = await getLastTransaction(
multipleContract,
@@ -412,37 +408,37 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
+ )
}
- );
- let arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber();
+ )
+ const arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber()
await multipleContract.payArbitrationFeeByBuyer(arbitrableTransactionId, {
from: payer,
value: arbitrationFee
- });
+ })
await multipleContract.payArbitrationFeeBySeller(arbitrableTransactionId, {
from: payee,
value: arbitrationFee
- });
- let payeeBalanceBeforePay = web3.eth.getBalance(payee);
- await centralizedArbitrator.giveRuling(0, 2, { from: arbitrator });
- let newPayeeBalance = web3.eth.getBalance(payee);
+ })
+ const payeeBalanceBeforePay = web3.eth.getBalance(payee)
+ await centralizedArbitrator.giveRuling(0, 2, { from: arbitrator })
+ const newPayeeBalance = web3.eth.getBalance(payee)
assert.equal(
newPayeeBalance.toString(),
payeeBalanceBeforePay.plus(1020).toString(),
- "The payee has not been paid properly"
- );
- });
+ 'The payee has not been paid properly'
+ )
+ })
- it("It should do nothing if the arbitrator decides so", async () => {
- let centralizedArbitrator = await CentralizedArbitrator.new(
+ it('It should do nothing if the arbitrator decides so', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
arbitrationFee,
{ from: arbitrator }
- );
- let multipleContract = await MultipleArbitrableTransaction.new({
+ )
+ const multipleContract = await MultipleArbitrableTransaction.new({
from: payer
- });
+ })
const lastTransaction = await getLastTransaction(
multipleContract,
@@ -454,45 +450,45 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
+ )
}
- );
- let arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber();
+ )
+ const arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber()
await multipleContract.payArbitrationFeeByBuyer(arbitrableTransactionId, {
from: payer,
value: arbitrationFee
- });
+ })
await multipleContract.payArbitrationFeeBySeller(arbitrableTransactionId, {
from: payee,
value: arbitrationFee
- });
- let payeeBalanceBeforePay = web3.eth.getBalance(payee);
- let payerBalanceBeforeReimbursment = web3.eth.getBalance(payer);
- await centralizedArbitrator.giveRuling(0, 0, { from: arbitrator });
- let newPayeeBalance = web3.eth.getBalance(payee);
- let newPayerBalance = web3.eth.getBalance(payer);
+ })
+ const payeeBalanceBeforePay = web3.eth.getBalance(payee)
+ const payerBalanceBeforeReimbursment = web3.eth.getBalance(payer)
+ await centralizedArbitrator.giveRuling(0, 0, { from: arbitrator })
+ const newPayeeBalance = web3.eth.getBalance(payee)
+ const newPayerBalance = web3.eth.getBalance(payer)
assert.equal(
newPayeeBalance.toString(),
payeeBalanceBeforePay.toString(),
"The payee got wei while it shouldn't"
- );
+ )
assert.equal(
newPayerBalance.toString(),
payerBalanceBeforeReimbursment.toString(),
"The payer got wei while it shouldn't"
- );
- });
+ )
+ })
- it("Should reimburse the payer in case of timeout of the payee", async () => {
- let centralizedArbitrator = await CentralizedArbitrator.new(
+ it('Should reimburse the payer in case of timeout of the payee', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
arbitrationFee,
{ from: arbitrator }
- );
+ )
- let multipleContract = await MultipleArbitrableTransaction.new({
+ const multipleContract = await MultipleArbitrableTransaction.new({
from: payer
- });
+ })
const lastTransaction = await getLastTransaction(
multipleContract,
@@ -504,42 +500,42 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
+ )
}
- );
- let arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber();
+ )
+ const arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber()
await multipleContract.payArbitrationFeeByBuyer(arbitrableTransactionId, {
from: payer,
value: arbitrationFee
- });
- increaseTime(timeout + 1);
- let payerBalanceBeforeReimbursment = web3.eth.getBalance(payer);
- let tx = await multipleContract.timeOutByBuyer(arbitrableTransactionId, {
+ })
+ increaseTime(timeout + 1)
+ const payerBalanceBeforeReimbursment = web3.eth.getBalance(payer)
+ const tx = await multipleContract.timeOutByBuyer(arbitrableTransactionId, {
from: payer,
gasPrice: gasPrice
- });
- let txFee = tx.receipt.gasUsed * gasPrice;
- let newPayerBalance = web3.eth.getBalance(payer);
+ })
+ const txFee = tx.receipt.gasUsed * gasPrice
+ const newPayerBalance = web3.eth.getBalance(payer)
assert.equal(
newPayerBalance.toString(),
payerBalanceBeforeReimbursment
.plus(1020)
.minus(txFee)
.toString(),
- "The payer has not been reimbursed correctly"
- );
- });
+ 'The payer has not been reimbursed correctly'
+ )
+ })
it("Shouldn't work before timeout for the payer", async () => {
- let centralizedArbitrator = await CentralizedArbitrator.new(
+ const centralizedArbitrator = await CentralizedArbitrator.new(
arbitrationFee,
{ from: arbitrator }
- );
+ )
- let multipleContract = await MultipleArbitrableTransaction.new({
+ const multipleContract = await MultipleArbitrableTransaction.new({
from: payer
- });
+ })
const lastTransaction = await getLastTransaction(
multipleContract,
@@ -551,39 +547,39 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
+ )
}
- );
- let arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber();
+ )
+ const arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber()
await expectThrow(
multipleContract.timeOutByBuyer(arbitrableTransactionId, {
from: payer,
gasPrice: gasPrice
})
- );
+ )
await multipleContract.payArbitrationFeeByBuyer(arbitrableTransactionId, {
from: payer,
value: arbitrationFee
- });
- increaseTime(1);
+ })
+ increaseTime(1)
await expectThrow(
multipleContract.timeOutByBuyer(arbitrableTransactionId, {
from: payer,
gasPrice: gasPrice
})
- );
- });
+ )
+ })
- it("Should pay and reimburse the payee in case of timeout of the payer", async () => {
- let centralizedArbitrator = await CentralizedArbitrator.new(
+ it('Should pay and reimburse the payee in case of timeout of the payer', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
arbitrationFee,
{ from: arbitrator }
- );
+ )
- let multipleContract = await MultipleArbitrableTransaction.new({
+ const multipleContract = await MultipleArbitrableTransaction.new({
from: payer
- });
+ })
const lastTransaction = await getLastTransaction(
multipleContract,
@@ -595,42 +591,42 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
+ )
}
- );
- let arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber();
+ )
+ const arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber()
await multipleContract.payArbitrationFeeBySeller(arbitrableTransactionId, {
from: payee,
value: arbitrationFee
- });
- increaseTime(timeout + 1);
- let payeeBalanceBeforeReimbursment = web3.eth.getBalance(payee);
- let tx = await multipleContract.timeOutBySeller(arbitrableTransactionId, {
+ })
+ increaseTime(timeout + 1)
+ const payeeBalanceBeforeReimbursment = web3.eth.getBalance(payee)
+ const tx = await multipleContract.timeOutBySeller(arbitrableTransactionId, {
from: payee,
gasPrice: gasPrice
- });
- let txFee = tx.receipt.gasUsed * gasPrice;
- let newPayeeBalance = web3.eth.getBalance(payee);
+ })
+ const txFee = tx.receipt.gasUsed * gasPrice
+ const newPayeeBalance = web3.eth.getBalance(payee)
assert.equal(
newPayeeBalance.toString(),
payeeBalanceBeforeReimbursment
.plus(1020)
.minus(txFee)
.toString(),
- "The payee has not been paid correctly"
- );
- });
+ 'The payee has not been paid correctly'
+ )
+ })
it("Shouldn't work before timeout for the payee", async () => {
- let centralizedArbitrator = await CentralizedArbitrator.new(
+ const centralizedArbitrator = await CentralizedArbitrator.new(
arbitrationFee,
{ from: arbitrator }
- );
+ )
- let multipleContract = await MultipleArbitrableTransaction.new({
+ const multipleContract = await MultipleArbitrableTransaction.new({
from: payer
- });
+ })
const lastTransaction = await getLastTransaction(
multipleContract,
@@ -642,40 +638,40 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
+ )
}
- );
- let arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber();
+ )
+ const arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber()
await expectThrow(
multipleContract.timeOutBySeller(arbitrableTransactionId, {
from: payee,
gasPrice: gasPrice
})
- );
+ )
await multipleContract.payArbitrationFeeBySeller(arbitrableTransactionId, {
from: payee,
value: arbitrationFee
- });
- increaseTime(1);
+ })
+ increaseTime(1)
await expectThrow(
multipleContract.timeOutBySeller(arbitrableTransactionId, {
from: payee,
gasPrice: gasPrice
})
- );
- });
+ )
+ })
// submitEvidence
- it("Should create events when evidence is submitted by the payer", async () => {
- let centralizedArbitrator = await CentralizedArbitrator.new(
+ it('Should create events when evidence is submitted by the payer', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
arbitrationFee,
{ from: arbitrator }
- );
+ )
- let multipleContract = await MultipleArbitrableTransaction.new({
+ const multipleContract = await MultipleArbitrableTransaction.new({
from: payer
- });
+ })
const lastTransaction = await getLastTransaction(
multipleContract,
@@ -687,39 +683,39 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
+ )
}
- );
- let arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber();
+ )
+ const arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber()
await multipleContract.payArbitrationFeeByBuyer(arbitrableTransactionId, {
from: payer,
value: arbitrationFee
- });
+ })
await multipleContract.payArbitrationFeeBySeller(arbitrableTransactionId, {
from: payee,
value: arbitrationFee
- });
- let tx = await multipleContract.submitEvidence(
+ })
+ const tx = await multipleContract.submitEvidence(
arbitrableTransactionId,
- "ipfs:/X",
+ 'ipfs:/X',
{ from: payer }
- );
- assert.equal(tx.logs[0].event, "Evidence");
- assert.equal(tx.logs[0].args._arbitrator, centralizedArbitrator.address);
- assert.equal(tx.logs[0].args._party, payer);
- assert.equal(tx.logs[0].args._evidence, "ipfs:/X");
- });
-
- it("Should create events when evidence is submitted by the payee", async () => {
- let centralizedArbitrator = await CentralizedArbitrator.new(
+ )
+ assert.equal(tx.logs[0].event, 'Evidence')
+ assert.equal(tx.logs[0].args._arbitrator, centralizedArbitrator.address)
+ assert.equal(tx.logs[0].args._party, payer)
+ assert.equal(tx.logs[0].args._evidence, 'ipfs:/X')
+ })
+
+ it('Should create events when evidence is submitted by the payee', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
arbitrationFee,
{ from: arbitrator }
- );
+ )
- let multipleContract = await MultipleArbitrableTransaction.new({
+ const multipleContract = await MultipleArbitrableTransaction.new({
from: payer
- });
+ })
const lastTransaction = await getLastTransaction(
multipleContract,
@@ -731,39 +727,39 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
+ )
}
- );
- let arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber();
+ )
+ const arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber()
await multipleContract.payArbitrationFeeByBuyer(arbitrableTransactionId, {
from: payer,
value: arbitrationFee
- });
+ })
await multipleContract.payArbitrationFeeBySeller(arbitrableTransactionId, {
from: payee,
value: arbitrationFee
- });
- let tx = await multipleContract.submitEvidence(
+ })
+ const tx = await multipleContract.submitEvidence(
arbitrableTransactionId,
- "ipfs:/X",
+ 'ipfs:/X',
{ from: payee }
- );
- assert.equal(tx.logs[0].event, "Evidence");
- assert.equal(tx.logs[0].args._arbitrator, centralizedArbitrator.address);
- assert.equal(tx.logs[0].args._party, payee);
- assert.equal(tx.logs[0].args._evidence, "ipfs:/X");
- });
-
- it("Should fail if someone else try to submit", async () => {
- let centralizedArbitrator = await CentralizedArbitrator.new(
+ )
+ assert.equal(tx.logs[0].event, 'Evidence')
+ assert.equal(tx.logs[0].args._arbitrator, centralizedArbitrator.address)
+ assert.equal(tx.logs[0].args._party, payee)
+ assert.equal(tx.logs[0].args._evidence, 'ipfs:/X')
+ })
+
+ it('Should fail if someone else try to submit', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
arbitrationFee,
{ from: arbitrator }
- );
+ )
- let multipleContract = await MultipleArbitrableTransaction.new({
+ const multipleContract = await MultipleArbitrableTransaction.new({
from: payer
- });
+ })
const lastTransaction = await getLastTransaction(
multipleContract,
@@ -775,50 +771,50 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
+ )
}
- );
- let arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber();
+ )
+ const arbitrableTransactionId = lastTransaction.args._metaEvidenceID.toNumber()
await multipleContract.payArbitrationFeeByBuyer(arbitrableTransactionId, {
from: payer,
value: arbitrationFee
- });
+ })
await multipleContract.payArbitrationFeeBySeller(arbitrableTransactionId, {
from: payee,
value: arbitrationFee
- });
+ })
await expectThrow(
- multipleContract.submitEvidence(arbitrableTransactionId, "ipfs:/X", {
+ multipleContract.submitEvidence(arbitrableTransactionId, 'ipfs:/X', {
from: other
})
- );
- });
+ )
+ })
- it("Should handle multiple transactions concurrently", async () => {
- let centralizedArbitrator = await CentralizedArbitrator.new(
+ it('Should handle multiple transactions concurrently', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
arbitrationFee,
{ from: arbitrator }
- );
+ )
- let multipleContract = await MultipleArbitrableTransaction.new({
+ const multipleContract = await MultipleArbitrableTransaction.new({
from: payer
- });
+ })
- const metaEvidenceEvent = multipleContract.MetaEvidence();
+ const metaEvidenceEvent = multipleContract.MetaEvidence()
- let currentResolve;
- let lastTransactionEvent = -1;
- const handler = metaEvidenceEvent.watch((error, result) => {
- const eventTransaction = result.args._metaEvidenceID.toNumber();
+ let currentResolve
+ let lastTransactionEvent = -1
+ const _handler = metaEvidenceEvent.watch((_error, result) => {
+ const eventTransaction = result.args._metaEvidenceID.toNumber()
if (eventTransaction > lastTransactionEvent) {
- lastTransactionEvent = eventTransaction;
- currentResolve(result);
+ lastTransactionEvent = eventTransaction
+ currentResolve(result)
}
- });
+ })
const transaction1Promise = new Promise(resolve => {
- currentResolve = resolve;
+ currentResolve = resolve
multipleContract.createTransaction(
centralizedArbitrator.address,
@@ -827,15 +823,15 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
- });
+ )
+ })
- const lastTransaction = await transaction1Promise;
+ const lastTransaction = await transaction1Promise
- let arbitrableTransactionId1 = lastTransaction.args._metaEvidenceID.toNumber();
+ const arbitrableTransactionId1 = lastTransaction.args._metaEvidenceID.toNumber()
const transaction2Promise = new Promise(resolve => {
- currentResolve = resolve;
+ currentResolve = resolve
multipleContract.createTransaction(
centralizedArbitrator.address,
@@ -844,83 +840,83 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
- });
+ )
+ })
- const lastTransaction2 = await transaction2Promise;
+ const lastTransaction2 = await transaction2Promise
- let arbitrableTransactionId2 = lastTransaction2.args._metaEvidenceID.toNumber();
+ const arbitrableTransactionId2 = lastTransaction2.args._metaEvidenceID.toNumber()
- metaEvidenceEvent.stopWatching();
+ metaEvidenceEvent.stopWatching()
await multipleContract.payArbitrationFeeByBuyer(arbitrableTransactionId2, {
from: payer,
value: arbitrationFee
- });
+ })
await multipleContract.payArbitrationFeeBySeller(arbitrableTransactionId1, {
from: payee,
value: arbitrationFee
- });
- //This generates transaction 1 dispute 0
+ })
+ // This generates transaction 1 dispute 0
await multipleContract.payArbitrationFeeByBuyer(arbitrableTransactionId1, {
from: payer,
value: arbitrationFee
- });
- //This generates transaction 2 dispute 1
+ })
+ // This generates transaction 2 dispute 1
await multipleContract.payArbitrationFeeBySeller(arbitrableTransactionId2, {
from: payee,
value: arbitrationFee
- });
+ })
- let payerBalanceBeforeReimbursment = web3.eth.getBalance(payer);
- //Ruling for transaction 1
- await centralizedArbitrator.giveRuling(0, 1, { from: arbitrator });
- let newPayerBalance = web3.eth.getBalance(payer);
+ const payerBalanceBeforeReimbursment = web3.eth.getBalance(payer)
+ // Ruling for transaction 1
+ await centralizedArbitrator.giveRuling(0, 1, { from: arbitrator })
+ const newPayerBalance = web3.eth.getBalance(payer)
assert.equal(
newPayerBalance.toString(),
payerBalanceBeforeReimbursment.plus(1020).toString(),
- "The payer has not been reimbursed correctly"
- );
+ 'The payer has not been reimbursed correctly'
+ )
- let payeeBalanceBeforePay = web3.eth.getBalance(payee);
- //ruling for transaction 2
- await centralizedArbitrator.giveRuling(1, 2, { from: arbitrator });
- let newPayeeBalance = web3.eth.getBalance(payee);
+ const payeeBalanceBeforePay = web3.eth.getBalance(payee)
+ // ruling for transaction 2
+ await centralizedArbitrator.giveRuling(1, 2, { from: arbitrator })
+ const newPayeeBalance = web3.eth.getBalance(payee)
assert.equal(
newPayeeBalance.toString(),
payeeBalanceBeforePay.plus(1020).toString(),
- "The payee has not been paid properly"
- );
- });
+ 'The payee has not been paid properly'
+ )
+ })
- it("Should handle multiple transactions and arbitrators concurrently", async () => {
- let centralizedArbitrator1 = await CentralizedArbitrator.new(
+ it('Should handle multiple transactions and arbitrators concurrently', async () => {
+ const centralizedArbitrator1 = await CentralizedArbitrator.new(
arbitrationFee,
{ from: arbitrator }
- );
- let centralizedArbitrator2 = await CentralizedArbitrator.new(
+ )
+ const centralizedArbitrator2 = await CentralizedArbitrator.new(
arbitrationFee,
{ from: other }
- );
+ )
- let multipleContract = await MultipleArbitrableTransaction.new({
+ const multipleContract = await MultipleArbitrableTransaction.new({
from: payer
- });
+ })
- const metaEvidenceEvent = multipleContract.MetaEvidence();
+ const metaEvidenceEvent = multipleContract.MetaEvidence()
- let currentResolve;
- let lastTransactionEvent = -1;
- const handler = metaEvidenceEvent.watch((error, result) => {
- const eventTransaction = result.args._metaEvidenceID.toNumber();
+ let currentResolve
+ let lastTransactionEvent = -1
+ const _handler = metaEvidenceEvent.watch((_error, result) => {
+ const eventTransaction = result.args._metaEvidenceID.toNumber()
if (eventTransaction > lastTransactionEvent) {
- lastTransactionEvent = eventTransaction;
- currentResolve(result);
+ lastTransactionEvent = eventTransaction
+ currentResolve(result)
}
- });
+ })
const transaction1Promise = new Promise(resolve => {
- currentResolve = resolve;
+ currentResolve = resolve
multipleContract.createTransaction(
centralizedArbitrator1.address,
@@ -929,15 +925,15 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
- });
+ )
+ })
- const lastTransaction = await transaction1Promise;
+ const lastTransaction = await transaction1Promise
- let arbitrableTransactionId1 = lastTransaction.args._metaEvidenceID.toNumber();
+ const arbitrableTransactionId1 = lastTransaction.args._metaEvidenceID.toNumber()
const transaction2Promise = new Promise(resolve => {
- currentResolve = resolve;
+ currentResolve = resolve
multipleContract.createTransaction(
centralizedArbitrator2.address,
@@ -946,52 +942,52 @@ contract("MultipleArbitrableTransaction", function(accounts) {
0x0,
metaEvidenceUri,
{ from: payer, value: amount }
- );
- });
+ )
+ })
- const lastTransaction2 = await transaction2Promise;
+ const lastTransaction2 = await transaction2Promise
- let arbitrableTransactionId2 = lastTransaction2.args._metaEvidenceID.toNumber();
+ const arbitrableTransactionId2 = lastTransaction2.args._metaEvidenceID.toNumber()
- metaEvidenceEvent.stopWatching();
+ metaEvidenceEvent.stopWatching()
await multipleContract.payArbitrationFeeByBuyer(arbitrableTransactionId2, {
from: payer,
value: arbitrationFee
- });
+ })
await multipleContract.payArbitrationFeeBySeller(arbitrableTransactionId1, {
from: payee,
value: arbitrationFee
- });
- //This generates transaction 1 dispute 0 from arbitrator 1
+ })
+ // This generates transaction 1 dispute 0 from arbitrator 1
await multipleContract.payArbitrationFeeByBuyer(arbitrableTransactionId1, {
from: payer,
value: arbitrationFee
- });
- //This generates transaction 2 dispute 0 from arbitrator 2
+ })
+ // This generates transaction 2 dispute 0 from arbitrator 2
await multipleContract.payArbitrationFeeBySeller(arbitrableTransactionId2, {
from: payee,
value: arbitrationFee
- });
+ })
- let payerBalanceBeforeReimbursment = web3.eth.getBalance(payer);
- //Ruling for transaction 1
- await centralizedArbitrator1.giveRuling(0, 1, { from: arbitrator });
- let newPayerBalance = web3.eth.getBalance(payer);
+ const payerBalanceBeforeReimbursment = web3.eth.getBalance(payer)
+ // Ruling for transaction 1
+ await centralizedArbitrator1.giveRuling(0, 1, { from: arbitrator })
+ const newPayerBalance = web3.eth.getBalance(payer)
assert.equal(
newPayerBalance.toString(),
payerBalanceBeforeReimbursment.plus(1020).toString(),
- "The payer has not been reimbursed correctly"
- );
+ 'The payer has not been reimbursed correctly'
+ )
- let payeeBalanceBeforePay = web3.eth.getBalance(payee);
- //ruling for transaction 2
- await centralizedArbitrator2.giveRuling(0, 2, { from: other });
- let newPayeeBalance = web3.eth.getBalance(payee);
+ const payeeBalanceBeforePay = web3.eth.getBalance(payee)
+ // ruling for transaction 2
+ await centralizedArbitrator2.giveRuling(0, 2, { from: other })
+ const newPayeeBalance = web3.eth.getBalance(payee)
assert.equal(
newPayeeBalance.toString(),
payeeBalanceBeforePay.plus(1020).toString(),
- "The payee has not been paid properly"
- );
- });
-});
+ 'The payee has not been paid properly'
+ )
+ })
+})
diff --git a/test/two-party-arbitrable.js b/test/two-party-arbitrable.js
new file mode 100644
index 00000000..e1ae9306
--- /dev/null
+++ b/test/two-party-arbitrable.js
@@ -0,0 +1,588 @@
+/* eslint-disable no-undef */ // Avoid the linter considering truffle elements as undef.
+const { expectThrow, increaseTime } = require('../helpers/utils')
+
+const TwoPartyArbitrable = artifacts.require('./TwoPartyArbitrable.sol')
+const CentralizedArbitrator = artifacts.require('./CentralizedArbitrator.sol')
+
+contract('TwoPartyArbitrable', function(accounts) {
+ const partyA = accounts[0]
+ const partyB = accounts[1]
+ const arbitrator = accounts[2]
+ const other = accounts[3]
+ const timeout = 100
+ const arbitrationFee = 20
+ const gasPrice = 5000000000
+ const metaEvidenceUri = 'https://kleros.io'
+ const amountOfChoices = 2
+
+ // Constructor
+ it('Should set the correct values', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrable = await TwoPartyArbitrable.new(
+ centralizedArbitrator.address,
+ timeout,
+ partyB,
+ amountOfChoices,
+ 0x08575,
+ metaEvidenceUri,
+ { from: partyA }
+ )
+ assert.equal(await arbitrable.timeout(), timeout)
+ assert.equal(await arbitrable.partyA(), partyA)
+ assert.equal(await arbitrable.partyB(), partyB)
+ assert.equal(await arbitrable.arbitratorExtraData(), 0x08575)
+ })
+
+ // payArbitrationFeeByPartyA and payArbitrationFeeByPartyB
+ it('Should create a dispute when A and B pay', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrable = await TwoPartyArbitrable.new(
+ centralizedArbitrator.address,
+ timeout,
+ partyB,
+ amountOfChoices,
+ 0x08575,
+ metaEvidenceUri,
+ { from: partyA }
+ )
+ await arbitrable.payArbitrationFeeByPartyA({
+ from: partyA,
+ value: arbitrationFee
+ })
+ await arbitrable.payArbitrationFeeByPartyB({
+ from: partyB,
+ value: arbitrationFee
+ })
+ const dispute = await centralizedArbitrator.disputes(0)
+ assert.equal(
+ dispute[0],
+ arbitrable.address,
+ 'Arbitrable not set up properly'
+ )
+ assert.equal(
+ dispute[1].toNumber(),
+ 2,
+ 'Number of choices not set up properly'
+ )
+ assert.equal(dispute[2].toNumber(), 20, 'Fee not set up properly')
+ })
+
+ it('Should create a dispute when B and A pay', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrable = await TwoPartyArbitrable.new(
+ centralizedArbitrator.address,
+ timeout,
+ partyB,
+ amountOfChoices,
+ 0x08575,
+ metaEvidenceUri,
+ { from: partyA }
+ )
+ await arbitrable.payArbitrationFeeByPartyB({
+ from: partyB,
+ value: arbitrationFee
+ })
+ await arbitrable.payArbitrationFeeByPartyA({
+ from: partyA,
+ value: arbitrationFee
+ })
+ const dispute = await centralizedArbitrator.disputes(0)
+ assert.equal(
+ dispute[0],
+ arbitrable.address,
+ 'Arbitrable not set up properly'
+ )
+ assert.equal(
+ dispute[1].toNumber(),
+ 2,
+ 'Number of choices not set up properly'
+ )
+ assert.equal(dispute[2].toNumber(), 20, 'Fee not set up properly')
+ })
+
+ it('Should not be possible to pay less', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrable = await TwoPartyArbitrable.new(
+ centralizedArbitrator.address,
+ timeout,
+ partyB,
+ amountOfChoices,
+ 0x08575,
+ metaEvidenceUri,
+ { from: partyA }
+ )
+ await expectThrow(
+ arbitrable.payArbitrationFeeByPartyB({
+ from: partyB,
+ value: arbitrationFee - 1
+ })
+ )
+ await expectThrow(
+ arbitrable.payArbitrationFeeByPartyA({
+ from: partyA,
+ value: arbitrationFee - 1
+ })
+ )
+ await arbitrable.payArbitrationFeeByPartyB({
+ from: partyB,
+ value: arbitrationFee
+ })
+ await expectThrow(
+ arbitrable.payArbitrationFeeByPartyA({
+ from: partyA,
+ value: arbitrationFee - 1
+ })
+ )
+ await arbitrable.payArbitrationFeeByPartyA({
+ from: partyA,
+ value: arbitrationFee
+ })
+ })
+
+ // meta-evidence
+ it('Should create MetaEvidence event on contract creation', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrable = await TwoPartyArbitrable.new(
+ centralizedArbitrator.address,
+ timeout,
+ partyB,
+ amountOfChoices,
+ 0x0,
+ metaEvidenceUri,
+ { from: partyA }
+ )
+ const metaEvidenceEvents = await new Promise((resolve, reject) => {
+ arbitrable
+ .MetaEvidence(
+ {},
+ {
+ fromBlock: 0,
+ toBlock: 'latest'
+ }
+ )
+ .get((error, result) => {
+ if (error) reject(error)
+
+ resolve(result)
+ })
+ })
+
+ assert.equal(
+ metaEvidenceEvents.length,
+ 1,
+ 'Meta Evidence event was not created'
+ )
+ assert.equal(metaEvidenceEvents[0].args._evidence, metaEvidenceUri)
+ })
+
+ it('Should link MetaEvidence event on dispute creation', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrable = await TwoPartyArbitrable.new(
+ centralizedArbitrator.address,
+ timeout,
+ partyB,
+ amountOfChoices,
+ 0x0,
+ metaEvidenceUri,
+ { from: partyA }
+ )
+ const metaEvidenceEvents = await new Promise((resolve, reject) => {
+ arbitrable
+ .MetaEvidence(
+ {},
+ {
+ fromBlock: 0,
+ toBlock: 'latest'
+ }
+ )
+ .get((error, result) => {
+ if (error) reject(error)
+
+ resolve(result)
+ })
+ })
+ assert.equal(
+ metaEvidenceEvents.length,
+ 1,
+ 'Meta Evidence event was not created'
+ )
+ const metaEvidenceId = metaEvidenceEvents[0].args._metaEvidenceID.toNumber()
+
+ await arbitrable.payArbitrationFeeByPartyB({
+ from: partyB,
+ value: arbitrationFee
+ })
+ await arbitrable.payArbitrationFeeByPartyA({
+ from: partyA,
+ value: arbitrationFee
+ })
+ const dispute = await centralizedArbitrator.disputes(0)
+ assert.equal(dispute[0], arbitrable.address, 'No dispute created')
+ const metaEvidenceLinkEvents = await new Promise((resolve, reject) => {
+ arbitrable
+ .Dispute(
+ {},
+ {
+ fromBlock: 0,
+ toBlock: 'latest'
+ }
+ )
+ .get((error, result) => {
+ if (error) reject(error)
+
+ resolve(result)
+ })
+ })
+
+ assert.equal(
+ metaEvidenceLinkEvents.length,
+ 1,
+ 'Meta Evidence event was not created'
+ )
+ assert.equal(
+ metaEvidenceLinkEvents[0].args._arbitrator,
+ centralizedArbitrator.address
+ )
+ assert.equal(metaEvidenceLinkEvents[0].args._disputeID.toNumber(), 0)
+ assert.equal(
+ metaEvidenceLinkEvents[0].args._metaEvidenceID.toNumber(),
+ metaEvidenceId
+ )
+ })
+
+ // timeOutByPartyA and timeOutByPartyB
+ it('Should reimburse partyA in case of timeout of partyB', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrable = await TwoPartyArbitrable.new(
+ centralizedArbitrator.address,
+ timeout,
+ partyB,
+ amountOfChoices,
+ 0x0,
+ metaEvidenceUri,
+ { from: partyA }
+ )
+ await arbitrable.payArbitrationFeeByPartyA({
+ from: partyA,
+ value: arbitrationFee
+ })
+ increaseTime(timeout + 1)
+ const partyABalanceBeforeReimbursment = web3.eth.getBalance(partyA)
+ const tx = await arbitrable.timeOutByPartyA({
+ from: partyA,
+ gasPrice: gasPrice
+ })
+ const txFee = tx.receipt.gasUsed * gasPrice
+ const newpartyABalance = web3.eth.getBalance(partyA)
+ assert.equal(
+ newpartyABalance.toString(),
+ partyABalanceBeforeReimbursment
+ .plus(20)
+ .minus(txFee)
+ .toString(),
+ 'partyA has not been reimbursed correctly'
+ )
+ })
+
+ it("Shouldn't work before timeout for partyA", async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrable = await TwoPartyArbitrable.new(
+ centralizedArbitrator.address,
+ timeout,
+ partyB,
+ amountOfChoices,
+ 0x0,
+ metaEvidenceUri,
+ { from: partyA }
+ )
+ await expectThrow(
+ arbitrable.timeOutByPartyA({ from: partyA, gasPrice: gasPrice })
+ )
+ await arbitrable.payArbitrationFeeByPartyA({
+ from: partyA,
+ value: arbitrationFee
+ })
+ increaseTime(1)
+ await expectThrow(
+ arbitrable.timeOutByPartyA({ from: partyA, gasPrice: gasPrice })
+ )
+ })
+
+ it('Should reimburse partyB in case of timeout of partyA', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrable = await TwoPartyArbitrable.new(
+ centralizedArbitrator.address,
+ timeout,
+ partyB,
+ amountOfChoices,
+ 0x0,
+ metaEvidenceUri,
+ { from: partyA }
+ )
+ await arbitrable.payArbitrationFeeByPartyB({
+ from: partyB,
+ value: arbitrationFee
+ })
+ increaseTime(timeout + 1)
+ const partyBBalanceBeforeReimbursment = web3.eth.getBalance(partyB)
+ const tx = await arbitrable.timeOutByPartyB({
+ from: partyB,
+ gasPrice: gasPrice
+ })
+ const txFee = tx.receipt.gasUsed * gasPrice
+ const newpartyBBalance = web3.eth.getBalance(partyB)
+ assert.equal(
+ newpartyBBalance.toString(),
+ partyBBalanceBeforeReimbursment
+ .plus(20)
+ .minus(txFee)
+ .toString(),
+ 'partyB has not been reimbursed correctly'
+ )
+ })
+
+ it("Shouldn't work before timeout for partyB", async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrable = await TwoPartyArbitrable.new(
+ centralizedArbitrator.address,
+ timeout,
+ partyB,
+ amountOfChoices,
+ 0x0,
+ metaEvidenceUri,
+ { from: partyA }
+ )
+ await expectThrow(
+ arbitrable.timeOutByPartyB({ from: partyB, gasPrice: gasPrice })
+ )
+ await arbitrable.payArbitrationFeeByPartyB({
+ from: partyB,
+ value: arbitrationFee
+ })
+ increaseTime(1)
+ await expectThrow(
+ arbitrable.timeOutByPartyB({ from: partyB, gasPrice: gasPrice })
+ )
+ })
+
+ // submitEvidence
+ it('Should create events when evidence is submitted by partyA', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrable = await TwoPartyArbitrable.new(
+ centralizedArbitrator.address,
+ timeout,
+ partyB,
+ amountOfChoices,
+ 0x0,
+ metaEvidenceUri,
+ { from: partyA }
+ )
+ await arbitrable.payArbitrationFeeByPartyA({
+ from: partyA,
+ value: arbitrationFee
+ })
+ await arbitrable.payArbitrationFeeByPartyB({
+ from: partyB,
+ value: arbitrationFee
+ })
+ const tx = await arbitrable.submitEvidence('ipfs:/X', { from: partyA })
+ assert.equal(tx.logs[0].event, 'Evidence')
+ assert.equal(tx.logs[0].args._arbitrator, centralizedArbitrator.address)
+ assert.equal(tx.logs[0].args._party, partyA)
+ assert.equal(tx.logs[0].args._evidence, 'ipfs:/X')
+ })
+
+ it('Should create events when evidence is submitted by partyB', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrable = await TwoPartyArbitrable.new(
+ centralizedArbitrator.address,
+ timeout,
+ partyB,
+ amountOfChoices,
+ 0x0,
+ metaEvidenceUri,
+ { from: partyA }
+ )
+ await arbitrable.payArbitrationFeeByPartyA({
+ from: partyA,
+ value: arbitrationFee
+ })
+ await arbitrable.payArbitrationFeeByPartyB({
+ from: partyB,
+ value: arbitrationFee
+ })
+ const tx = await arbitrable.submitEvidence('ipfs:/X', { from: partyB })
+ assert.equal(tx.logs[0].event, 'Evidence')
+ assert.equal(tx.logs[0].args._arbitrator, centralizedArbitrator.address)
+ assert.equal(tx.logs[0].args._party, partyB)
+ assert.equal(tx.logs[0].args._evidence, 'ipfs:/X')
+ })
+
+ it('Should fail if someone else tries to submit', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrable = await TwoPartyArbitrable.new(
+ centralizedArbitrator.address,
+ timeout,
+ partyB,
+ amountOfChoices,
+ 0x0,
+ metaEvidenceUri,
+ { from: partyA }
+ )
+ await arbitrable.payArbitrationFeeByPartyA({
+ from: partyA,
+ value: arbitrationFee
+ })
+ await arbitrable.payArbitrationFeeByPartyB({
+ from: partyB,
+ value: arbitrationFee
+ })
+ await expectThrow(arbitrable.submitEvidence('ipfs:/X', { from: other }))
+ })
+
+ // appeal
+ // TODO: When we'll have a contract using appeal.
+
+ // executeRuling
+ it('Should reimburse the partyA (including arbitration fee) when the arbitrator decides so', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrable = await TwoPartyArbitrable.new(
+ centralizedArbitrator.address,
+ timeout,
+ partyB,
+ amountOfChoices,
+ 0x0,
+ metaEvidenceUri,
+ { from: partyA }
+ )
+ await arbitrable.payArbitrationFeeByPartyA({
+ from: partyA,
+ value: arbitrationFee
+ })
+ await arbitrable.payArbitrationFeeByPartyB({
+ from: partyB,
+ value: arbitrationFee
+ })
+ const partyABalanceBeforeReimbursment = web3.eth.getBalance(partyA)
+ await centralizedArbitrator.giveRuling(0, 1, { from: arbitrator })
+ const newPartyABalance = web3.eth.getBalance(partyA)
+ assert.equal(
+ newPartyABalance.toString(),
+ partyABalanceBeforeReimbursment.plus(20).toString(),
+ 'partyA has not been reimbursed correctly'
+ )
+ })
+
+ it('Should pay the partyB and reimburse him the arbitration fee when the arbitrator decides so', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrable = await TwoPartyArbitrable.new(
+ centralizedArbitrator.address,
+ timeout,
+ partyB,
+ amountOfChoices,
+ 0x0,
+ metaEvidenceUri,
+ { from: partyA }
+ )
+ await arbitrable.payArbitrationFeeByPartyA({
+ from: partyA,
+ value: arbitrationFee
+ })
+ await arbitrable.payArbitrationFeeByPartyB({
+ from: partyB,
+ value: arbitrationFee
+ })
+ const partyBBalanceBeforePay = web3.eth.getBalance(partyB)
+ await centralizedArbitrator.giveRuling(0, 2, { from: arbitrator })
+ const newPartyBBalance = web3.eth.getBalance(partyB)
+ assert.equal(
+ newPartyBBalance.toString(),
+ partyBBalanceBeforePay.plus(20).toString(),
+ 'partyB has not been reimbursed correctly'
+ )
+ })
+
+ it('It should do nothing if the arbitrator decides so', async () => {
+ const centralizedArbitrator = await CentralizedArbitrator.new(
+ arbitrationFee,
+ { from: arbitrator }
+ )
+ const arbitrable = await TwoPartyArbitrable.new(
+ centralizedArbitrator.address,
+ timeout,
+ partyB,
+ amountOfChoices,
+ 0x0,
+ metaEvidenceUri,
+ { from: partyA }
+ )
+ await arbitrable.payArbitrationFeeByPartyA({
+ from: partyA,
+ value: arbitrationFee
+ })
+ await arbitrable.payArbitrationFeeByPartyB({
+ from: partyB,
+ value: arbitrationFee
+ })
+ const partyBBalanceBeforePay = web3.eth.getBalance(partyB)
+ const partyABalanceBeforeReimbursment = web3.eth.getBalance(partyA)
+ await centralizedArbitrator.giveRuling(0, 0, { from: arbitrator })
+ const newPartyBBalance = web3.eth.getBalance(partyB)
+ const newPartyABalance = web3.eth.getBalance(partyA)
+ assert.equal(
+ newPartyBBalance.toString(),
+ partyBBalanceBeforePay.toString(),
+ "partyB got wei while it shouldn't"
+ )
+ assert.equal(
+ newPartyABalance.toString(),
+ partyABalanceBeforeReimbursment.toString(),
+ "partyA got wei while it shouldn't"
+ )
+ })
+})
diff --git a/test/twoPartyArbitrable.js b/test/twoPartyArbitrable.js
deleted file mode 100644
index a809bb29..00000000
--- a/test/twoPartyArbitrable.js
+++ /dev/null
@@ -1,235 +0,0 @@
-/* eslint-disable no-undef */ // Avoid the linter considering truffle elements as undef.
-const { expectThrow, increaseTime } = require('../helpers/utils')
-const TwoPartyArbitrable = artifacts.require('./TwoPartyArbitrable.sol')
-const CentralizedArbitrator = artifacts.require('./CentralizedArbitrator.sol')
-
-contract('TwoPartyArbitrable', function (accounts) {
- const partyA = accounts[0]
- const partyB = accounts[1]
- const arbitrator = accounts[2]
- const other = accounts[3]
- const timeout = 100
- const arbitrationFee = 20
- const gasPrice = 5000000000
- const metaEvidenceUri = 'https://kleros.io'
- const amountOfChoices = 2
-
-
- // Constructor
- it('Should set the correct values', async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrable = await TwoPartyArbitrable.new(centralizedArbitrator.address, timeout, partyB, amountOfChoices, 0x08575, metaEvidenceUri, {from: partyA})
- assert.equal(await arbitrable.timeout(), timeout)
- assert.equal(await arbitrable.partyA(), partyA)
- assert.equal(await arbitrable.partyB(), partyB)
- assert.equal(await arbitrable.arbitratorExtraData(), 0x08575)
- })
-
- // payArbitrationFeeByPartyA and payArbitrationFeeByPartyB
- it('Should create a dispute when A and B pay', async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrable = await TwoPartyArbitrable.new(centralizedArbitrator.address, timeout, partyB, amountOfChoices, 0x08575, metaEvidenceUri, {from: partyA})
- await arbitrable.payArbitrationFeeByPartyA({from: partyA, value: arbitrationFee})
- await arbitrable.payArbitrationFeeByPartyB({from: partyB, value: arbitrationFee})
- const dispute = await centralizedArbitrator.disputes(0)
- assert.equal(dispute[0], arbitrable.address, 'Arbitrable not set up properly')
- assert.equal(dispute[1].toNumber(), 2, 'Number of choices not set up properly')
- assert.equal(dispute[2].toNumber(), 20, 'Fee not set up properly')
- })
-
- it('Should create a dispute when B and A pay', async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrable = await TwoPartyArbitrable.new(centralizedArbitrator.address, timeout, partyB, amountOfChoices, 0x08575, metaEvidenceUri, {from: partyA})
- await arbitrable.payArbitrationFeeByPartyB({from: partyB, value: arbitrationFee})
- await arbitrable.payArbitrationFeeByPartyA({from: partyA, value: arbitrationFee})
- const dispute = await centralizedArbitrator.disputes(0)
- assert.equal(dispute[0], arbitrable.address, 'Arbitrable not set up properly')
- assert.equal(dispute[1].toNumber(), 2, 'Number of choices not set up properly')
- assert.equal(dispute[2].toNumber(), 20, 'Fee not set up properly')
- })
-
- it('Should not be possible to pay less', async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrable = await TwoPartyArbitrable.new(centralizedArbitrator.address, timeout, partyB, amountOfChoices, 0x08575, metaEvidenceUri, {from: partyA})
- await expectThrow(arbitrable.payArbitrationFeeByPartyB({from: partyB, value: arbitrationFee - 1}))
- await expectThrow(arbitrable.payArbitrationFeeByPartyA({from: partyA, value: arbitrationFee - 1}))
- await arbitrable.payArbitrationFeeByPartyB({from: partyB, value: arbitrationFee})
- await expectThrow(arbitrable.payArbitrationFeeByPartyA({from: partyA, value: arbitrationFee - 1}))
- await arbitrable.payArbitrationFeeByPartyA({from: partyA, value: arbitrationFee})
- })
-
- // meta-evidence
- it('Should create MetaEvidence event on contract creation', async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrable = await TwoPartyArbitrable.new(centralizedArbitrator.address, timeout, partyB, amountOfChoices, 0x0, metaEvidenceUri, {from: partyA})
- const metaEvidenceEvents = await new Promise((resolve, reject) => {
- arbitrable.MetaEvidence({}, {
- fromBlock: 0,
- toBlock: 'latest'
- })
- .get((error, result) => {
- if (error) reject()
-
- resolve(result)
- })
- })
-
- assert.equal(metaEvidenceEvents.length, 1, 'Meta Evidence event was not created')
- assert.equal(metaEvidenceEvents[0].args._evidence, metaEvidenceUri)
- })
-
- it('Should link MetaEvidence event on dispute creation', async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrable = await TwoPartyArbitrable.new(centralizedArbitrator.address, timeout, partyB, amountOfChoices, 0x0, metaEvidenceUri, {from: partyA})
- const metaEvidenceEvents = await new Promise((resolve, reject) => {
- arbitrable.MetaEvidence({}, {
- fromBlock: 0,
- toBlock: 'latest'
- })
- .get((error, result) => {
- if (error) reject()
-
- resolve(result)
- })
- })
- assert.equal(metaEvidenceEvents.length, 1, 'Meta Evidence event was not created')
- const metaEvidenceId = metaEvidenceEvents[0].args._metaEvidenceID.toNumber()
-
- await arbitrable.payArbitrationFeeByPartyB({from: partyB, value: arbitrationFee})
- await arbitrable.payArbitrationFeeByPartyA({from: partyA, value: arbitrationFee})
- const dispute = await centralizedArbitrator.disputes(0)
- assert.equal(dispute[0], arbitrable.address, 'No dispute created')
- const metaEvidenceLinkEvents = await new Promise((resolve, reject) => {
- arbitrable.Dispute({}, {
- fromBlock: 0,
- toBlock: 'latest'
- })
- .get((error, result) => {
- if (error) reject()
-
- resolve(result)
- })
- })
-
- assert.equal(metaEvidenceLinkEvents.length, 1, 'Meta Evidence event was not created')
- assert.equal(metaEvidenceLinkEvents[0].args._arbitrator, centralizedArbitrator.address)
- assert.equal(metaEvidenceLinkEvents[0].args._disputeID.toNumber(), 0)
- assert.equal(metaEvidenceLinkEvents[0].args._metaEvidenceID.toNumber(), metaEvidenceId)
- })
-
- // timeOutByPartyA and timeOutByPartyB
- it('Should reimburse partyA in case of timeout of partyB', async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrable = await TwoPartyArbitrable.new(centralizedArbitrator.address, timeout, partyB, amountOfChoices, 0x0, metaEvidenceUri, {from: partyA})
- await arbitrable.payArbitrationFeeByPartyA({from: partyA, value: arbitrationFee})
- increaseTime(timeout + 1)
- const partyABalanceBeforeReimbursment = web3.eth.getBalance(partyA)
- const tx = await arbitrable.timeOutByPartyA({from: partyA, gasPrice: gasPrice})
- const txFee = tx.receipt.gasUsed * gasPrice
- const newpartyABalance = web3.eth.getBalance(partyA)
- assert.equal(newpartyABalance.toString(), partyABalanceBeforeReimbursment.plus(20).minus(txFee).toString(), 'partyA has not been reimbursed correctly')
- })
-
- it("Shouldn't work before timeout for partyA", async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrable = await TwoPartyArbitrable.new(centralizedArbitrator.address, timeout, partyB, amountOfChoices, 0x0, metaEvidenceUri, {from: partyA})
- await expectThrow(arbitrable.timeOutByPartyA({from: partyA, gasPrice: gasPrice}))
- await arbitrable.payArbitrationFeeByPartyA({from: partyA, value: arbitrationFee})
- increaseTime(1)
- await expectThrow(arbitrable.timeOutByPartyA({from: partyA, gasPrice: gasPrice}))
- })
-
- it('Should reimburse partyB in case of timeout of partyA', async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrable = await TwoPartyArbitrable.new(centralizedArbitrator.address, timeout, partyB, amountOfChoices, 0x0, metaEvidenceUri, {from: partyA})
- await arbitrable.payArbitrationFeeByPartyB({from: partyB, value: arbitrationFee})
- increaseTime(timeout + 1)
- const partyBBalanceBeforeReimbursment = web3.eth.getBalance(partyB)
- const tx = await arbitrable.timeOutByPartyB({from: partyB, gasPrice: gasPrice})
- const txFee = tx.receipt.gasUsed * gasPrice
- const newpartyBBalance = web3.eth.getBalance(partyB)
- assert.equal(newpartyBBalance.toString(), partyBBalanceBeforeReimbursment.plus(20).minus(txFee).toString(), 'partyB has not been reimbursed correctly')
- })
-
- it("Shouldn't work before timeout for partyB", async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrable = await TwoPartyArbitrable.new(centralizedArbitrator.address, timeout, partyB, amountOfChoices, 0x0, metaEvidenceUri, {from: partyA})
- await expectThrow(arbitrable.timeOutByPartyB({from: partyB, gasPrice: gasPrice}))
- await arbitrable.payArbitrationFeeByPartyB({from: partyB, value: arbitrationFee})
- increaseTime(1)
- await expectThrow(arbitrable.timeOutByPartyB({from: partyB, gasPrice: gasPrice}))
- })
-
- // submitEvidence
- it('Should create events when evidence is submitted by partyA', async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrable = await TwoPartyArbitrable.new(centralizedArbitrator.address, timeout, partyB, amountOfChoices, 0x0, metaEvidenceUri, {from: partyA})
- await arbitrable.payArbitrationFeeByPartyA({from: partyA, value: arbitrationFee})
- await arbitrable.payArbitrationFeeByPartyB({from: partyB, value: arbitrationFee})
- const tx = await arbitrable.submitEvidence('ipfs:/X', {from: partyA})
- assert.equal(tx.logs[0].event, 'Evidence')
- assert.equal(tx.logs[0].args._arbitrator, centralizedArbitrator.address)
- assert.equal(tx.logs[0].args._party, partyA)
- assert.equal(tx.logs[0].args._evidence, 'ipfs:/X')
- })
-
- it('Should create events when evidence is submitted by partyB', async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrable = await TwoPartyArbitrable.new(centralizedArbitrator.address, timeout, partyB, amountOfChoices, 0x0, metaEvidenceUri, {from: partyA})
- await arbitrable.payArbitrationFeeByPartyA({from: partyA, value: arbitrationFee})
- await arbitrable.payArbitrationFeeByPartyB({from: partyB, value: arbitrationFee})
- const tx = await arbitrable.submitEvidence('ipfs:/X', {from: partyB})
- assert.equal(tx.logs[0].event, 'Evidence')
- assert.equal(tx.logs[0].args._arbitrator, centralizedArbitrator.address)
- assert.equal(tx.logs[0].args._party, partyB)
- assert.equal(tx.logs[0].args._evidence, 'ipfs:/X')
- })
-
- it('Should fail if someone else tries to submit', async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrable = await TwoPartyArbitrable.new(centralizedArbitrator.address, timeout, partyB, amountOfChoices, 0x0, metaEvidenceUri, {from: partyA})
- await arbitrable.payArbitrationFeeByPartyA({from: partyA, value: arbitrationFee})
- await arbitrable.payArbitrationFeeByPartyB({from: partyB, value: arbitrationFee})
- await expectThrow(arbitrable.submitEvidence('ipfs:/X', {from: other}))
- })
-
- // appeal
- // TODO: When we'll have a contract using appeal.
-
- // executeRuling
- it('Should reimburse the partyA (including arbitration fee) when the arbitrator decides so', async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrable = await TwoPartyArbitrable.new(centralizedArbitrator.address, timeout, partyB, amountOfChoices, 0x0, metaEvidenceUri, {from: partyA})
- await arbitrable.payArbitrationFeeByPartyA({from: partyA, value: arbitrationFee})
- await arbitrable.payArbitrationFeeByPartyB({from: partyB, value: arbitrationFee})
- const partyABalanceBeforeReimbursment = web3.eth.getBalance(partyA)
- await centralizedArbitrator.giveRuling(0, 1, {from: arbitrator})
- const newPartyABalance = web3.eth.getBalance(partyA)
- assert.equal(newPartyABalance.toString(), partyABalanceBeforeReimbursment.plus(20).toString(), 'partyA has not been reimbursed correctly')
- })
-
- it('Should pay the partyB and reimburse him the arbitration fee when the arbitrator decides so', async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrable = await TwoPartyArbitrable.new(centralizedArbitrator.address, timeout, partyB, amountOfChoices, 0x0, metaEvidenceUri, {from: partyA})
- await arbitrable.payArbitrationFeeByPartyA({from: partyA, value: arbitrationFee})
- await arbitrable.payArbitrationFeeByPartyB({from: partyB, value: arbitrationFee})
- const partyBBalanceBeforePay = web3.eth.getBalance(partyB)
- await centralizedArbitrator.giveRuling(0, 2, {from: arbitrator})
- const newPartyBBalance = web3.eth.getBalance(partyB)
- assert.equal(newPartyBBalance.toString(), partyBBalanceBeforePay.plus(20).toString(), 'partyB has not been reimbursed correctly')
- })
-
- it('It should do nothing if the arbitrator decides so', async () => {
- const centralizedArbitrator = await CentralizedArbitrator.new(arbitrationFee, {from: arbitrator})
- const arbitrable = await TwoPartyArbitrable.new(centralizedArbitrator.address, timeout, partyB, amountOfChoices, 0x0, metaEvidenceUri, {from: partyA})
- await arbitrable.payArbitrationFeeByPartyA({from: partyA, value: arbitrationFee})
- await arbitrable.payArbitrationFeeByPartyB({from: partyB, value: arbitrationFee})
- const partyBBalanceBeforePay = web3.eth.getBalance(partyB)
- const partyABalanceBeforeReimbursment = web3.eth.getBalance(partyA)
- await centralizedArbitrator.giveRuling(0, 0, {from: arbitrator})
- const newPartyBBalance = web3.eth.getBalance(partyB)
- const newPartyABalance = web3.eth.getBalance(partyA)
- assert.equal(newPartyBBalance.toString(), partyBBalanceBeforePay.toString(), "partyB got wei while it shouldn't")
- assert.equal(newPartyABalance.toString(), partyABalanceBeforeReimbursment.toString(), "partyA got wei while it shouldn't")
- })
-})
\ No newline at end of file
diff --git a/truffle.js b/truffle.js
index a85e09b0..19956bb6 100644
--- a/truffle.js
+++ b/truffle.js
@@ -1,9 +1,9 @@
module.exports = {
networks: {
development: {
- host: "localhost",
+ host: 'localhost',
port: 8545,
- network_id: "*" // Match any network id
+ network_id: '*' // Match any network id
}
},
solc: {
@@ -12,4 +12,4 @@ module.exports = {
runs: 200
}
}
-};
+}
diff --git a/yarn.lock b/yarn.lock
index 83eb7b66..baeca3b3 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2,6 +2,351 @@
# yarn lockfile v1
+"@babel/code-frame@7.0.0-beta.44":
+ version "7.0.0-beta.44"
+ resolved "http://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.44.tgz#2a02643368de80916162be70865c97774f3adbd9"
+ dependencies:
+ "@babel/highlight" "7.0.0-beta.44"
+
+"@babel/code-frame@^7.0.0":
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0.tgz#06e2ab19bdb535385559aabb5ba59729482800f8"
+ dependencies:
+ "@babel/highlight" "^7.0.0"
+
+"@babel/core@^7.0.0-rc.1":
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.0.0.tgz#0cb0c0fd2e78a0a2bec97698f549ae9ce0b99515"
+ dependencies:
+ "@babel/code-frame" "^7.0.0"
+ "@babel/generator" "^7.0.0"
+ "@babel/helpers" "^7.0.0"
+ "@babel/parser" "^7.0.0"
+ "@babel/template" "^7.0.0"
+ "@babel/traverse" "^7.0.0"
+ "@babel/types" "^7.0.0"
+ convert-source-map "^1.1.0"
+ debug "^3.1.0"
+ json5 "^0.5.0"
+ lodash "^4.17.10"
+ resolve "^1.3.2"
+ semver "^5.4.1"
+ source-map "^0.5.0"
+
+"@babel/generator@7.0.0-beta.44":
+ version "7.0.0-beta.44"
+ resolved "http://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.44.tgz#c7e67b9b5284afcf69b309b50d7d37f3e5033d42"
+ dependencies:
+ "@babel/types" "7.0.0-beta.44"
+ jsesc "^2.5.1"
+ lodash "^4.2.0"
+ source-map "^0.5.0"
+ trim-right "^1.0.1"
+
+"@babel/generator@^7.0.0":
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.0.0.tgz#1efd58bffa951dc846449e58ce3a1d7f02d393aa"
+ dependencies:
+ "@babel/types" "^7.0.0"
+ jsesc "^2.5.1"
+ lodash "^4.17.10"
+ source-map "^0.5.0"
+ trim-right "^1.0.1"
+
+"@babel/helper-function-name@7.0.0-beta.44":
+ version "7.0.0-beta.44"
+ resolved "http://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.44.tgz#e18552aaae2231100a6e485e03854bc3532d44dd"
+ dependencies:
+ "@babel/helper-get-function-arity" "7.0.0-beta.44"
+ "@babel/template" "7.0.0-beta.44"
+ "@babel/types" "7.0.0-beta.44"
+
+"@babel/helper-function-name@^7.0.0":
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.0.0.tgz#a68cc8d04420ccc663dd258f9cc41b8261efa2d4"
+ dependencies:
+ "@babel/helper-get-function-arity" "^7.0.0"
+ "@babel/template" "^7.0.0"
+ "@babel/types" "^7.0.0"
+
+"@babel/helper-get-function-arity@7.0.0-beta.44":
+ version "7.0.0-beta.44"
+ resolved "http://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.44.tgz#d03ca6dd2b9f7b0b1e6b32c56c72836140db3a15"
+ dependencies:
+ "@babel/types" "7.0.0-beta.44"
+
+"@babel/helper-get-function-arity@^7.0.0":
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0.tgz#83572d4320e2a4657263734113c42868b64e49c3"
+ dependencies:
+ "@babel/types" "^7.0.0"
+
+"@babel/helper-split-export-declaration@7.0.0-beta.44":
+ version "7.0.0-beta.44"
+ resolved "http://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.44.tgz#c0b351735e0fbcb3822c8ad8db4e583b05ebd9dc"
+ dependencies:
+ "@babel/types" "7.0.0-beta.44"
+
+"@babel/helper-split-export-declaration@^7.0.0":
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0.tgz#3aae285c0311c2ab095d997b8c9a94cad547d813"
+ dependencies:
+ "@babel/types" "^7.0.0"
+
+"@babel/helpers@^7.0.0":
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.0.0.tgz#7213388341eeb07417f44710fd7e1d00acfa6ac0"
+ dependencies:
+ "@babel/template" "^7.0.0"
+ "@babel/traverse" "^7.0.0"
+ "@babel/types" "^7.0.0"
+
+"@babel/highlight@7.0.0-beta.44":
+ version "7.0.0-beta.44"
+ resolved "http://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.44.tgz#18c94ce543916a80553edcdcf681890b200747d5"
+ dependencies:
+ chalk "^2.0.0"
+ esutils "^2.0.2"
+ js-tokens "^3.0.0"
+
+"@babel/highlight@^7.0.0":
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.0.0.tgz#f710c38c8d458e6dd9a201afb637fcb781ce99e4"
+ dependencies:
+ chalk "^2.0.0"
+ esutils "^2.0.2"
+ js-tokens "^4.0.0"
+
+"@babel/parser@^7.0.0":
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.0.0.tgz#697655183394facffb063437ddf52c0277698775"
+
+"@babel/template@7.0.0-beta.44":
+ version "7.0.0-beta.44"
+ resolved "http://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.44.tgz#f8832f4fdcee5d59bf515e595fc5106c529b394f"
+ dependencies:
+ "@babel/code-frame" "7.0.0-beta.44"
+ "@babel/types" "7.0.0-beta.44"
+ babylon "7.0.0-beta.44"
+ lodash "^4.2.0"
+
+"@babel/template@^7.0.0":
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.0.0.tgz#c2bc9870405959c89a9c814376a2ecb247838c80"
+ dependencies:
+ "@babel/code-frame" "^7.0.0"
+ "@babel/parser" "^7.0.0"
+ "@babel/types" "^7.0.0"
+
+"@babel/traverse@7.0.0-beta.44":
+ version "7.0.0-beta.44"
+ resolved "http://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.44.tgz#a970a2c45477ad18017e2e465a0606feee0d2966"
+ dependencies:
+ "@babel/code-frame" "7.0.0-beta.44"
+ "@babel/generator" "7.0.0-beta.44"
+ "@babel/helper-function-name" "7.0.0-beta.44"
+ "@babel/helper-split-export-declaration" "7.0.0-beta.44"
+ "@babel/types" "7.0.0-beta.44"
+ babylon "7.0.0-beta.44"
+ debug "^3.1.0"
+ globals "^11.1.0"
+ invariant "^2.2.0"
+ lodash "^4.2.0"
+
+"@babel/traverse@^7.0.0":
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.0.0.tgz#b1fe9b6567fdf3ab542cfad6f3b31f854d799a61"
+ dependencies:
+ "@babel/code-frame" "^7.0.0"
+ "@babel/generator" "^7.0.0"
+ "@babel/helper-function-name" "^7.0.0"
+ "@babel/helper-split-export-declaration" "^7.0.0"
+ "@babel/parser" "^7.0.0"
+ "@babel/types" "^7.0.0"
+ debug "^3.1.0"
+ globals "^11.1.0"
+ lodash "^4.17.10"
+
+"@babel/types@7.0.0-beta.44":
+ version "7.0.0-beta.44"
+ resolved "http://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.44.tgz#6b1b164591f77dec0a0342aca995f2d046b3a757"
+ dependencies:
+ esutils "^2.0.2"
+ lodash "^4.2.0"
+ to-fast-properties "^2.0.0"
+
+"@babel/types@^7.0.0":
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.0.0.tgz#6e191793d3c854d19c6749989e3bc55f0e962118"
+ dependencies:
+ esutils "^2.0.2"
+ lodash "^4.17.10"
+ to-fast-properties "^2.0.0"
+
+"@commitlint/cli@^6.1.0":
+ version "6.2.0"
+ resolved "https://registry.yarnpkg.com/@commitlint/cli/-/cli-6.2.0.tgz#b2f8190eb08ccd78eea65114b864f3c65eca466a"
+ dependencies:
+ "@commitlint/format" "^6.1.3"
+ "@commitlint/lint" "^6.2.0"
+ "@commitlint/load" "^6.1.3"
+ "@commitlint/read" "^6.1.3"
+ babel-polyfill "6.26.0"
+ chalk "2.3.1"
+ get-stdin "5.0.1"
+ lodash.merge "4.6.1"
+ lodash.pick "4.4.0"
+ meow "4.0.0"
+
+"@commitlint/config-conventional@^6.1.0":
+ version "6.1.3"
+ resolved "http://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-6.1.3.tgz#6c06eeae04c5ac789c3618df4d52aeda89ffb810"
+
+"@commitlint/ensure@^6.1.3":
+ version "6.1.3"
+ resolved "http://registry.npmjs.org/@commitlint/ensure/-/ensure-6.1.3.tgz#813b58c9fdfae15351b72fe646a162ebdb71ea2a"
+ dependencies:
+ lodash.camelcase "4.3.0"
+ lodash.kebabcase "4.1.1"
+ lodash.snakecase "4.1.1"
+ lodash.startcase "4.4.0"
+ lodash.upperfirst "4.3.1"
+
+"@commitlint/execute-rule@^6.1.3":
+ version "6.1.3"
+ resolved "http://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-6.1.3.tgz#48928e736ef15e8710d332a15c7c899555e4e10b"
+ dependencies:
+ babel-runtime "6.26.0"
+
+"@commitlint/format@^6.1.3":
+ version "6.1.3"
+ resolved "http://registry.npmjs.org/@commitlint/format/-/format-6.1.3.tgz#414b9048a9af54587da96222717ba332347abde3"
+ dependencies:
+ babel-runtime "^6.23.0"
+ chalk "^2.0.1"
+
+"@commitlint/is-ignored@^6.1.3":
+ version "6.1.3"
+ resolved "http://registry.npmjs.org/@commitlint/is-ignored/-/is-ignored-6.1.3.tgz#89c9b964a4d6228875a579c2bf552d003734b7e8"
+ dependencies:
+ semver "5.5.0"
+
+"@commitlint/lint@^6.2.0":
+ version "6.2.0"
+ resolved "https://registry.yarnpkg.com/@commitlint/lint/-/lint-6.2.0.tgz#d78f219745b77362e1b814d5f4cec2ecc3266619"
+ dependencies:
+ "@commitlint/is-ignored" "^6.1.3"
+ "@commitlint/parse" "^6.1.3"
+ "@commitlint/rules" "^6.2.0"
+ babel-runtime "^6.23.0"
+ lodash.topairs "4.3.0"
+
+"@commitlint/load@^6.1.3":
+ version "6.1.3"
+ resolved "http://registry.npmjs.org/@commitlint/load/-/load-6.1.3.tgz#1be40711397958f316cf40577a9c879a16f00a54"
+ dependencies:
+ "@commitlint/execute-rule" "^6.1.3"
+ "@commitlint/resolve-extends" "^6.1.3"
+ babel-runtime "^6.23.0"
+ cosmiconfig "^4.0.0"
+ lodash.merge "4.6.1"
+ lodash.mergewith "4.6.1"
+ lodash.pick "4.4.0"
+ lodash.topairs "4.3.0"
+ resolve-from "4.0.0"
+
+"@commitlint/message@^6.1.3":
+ version "6.1.3"
+ resolved "http://registry.npmjs.org/@commitlint/message/-/message-6.1.3.tgz#5e0473330c887016010c4c56270723b8001145d2"
+
+"@commitlint/parse@^6.1.3":
+ version "6.1.3"
+ resolved "http://registry.npmjs.org/@commitlint/parse/-/parse-6.1.3.tgz#ff1e4d92c27cd676812bb6b9d76cd8853c0d9407"
+ dependencies:
+ conventional-changelog-angular "^1.3.3"
+ conventional-commits-parser "^2.1.0"
+
+"@commitlint/prompt@^6.1.0":
+ version "6.1.3"
+ resolved "http://registry.npmjs.org/@commitlint/prompt/-/prompt-6.1.3.tgz#ca4dee582a1c24297266d6bb6f5eb0ed45a1db46"
+ dependencies:
+ "@commitlint/load" "^6.1.3"
+ babel-runtime "^6.23.0"
+ chalk "^2.0.0"
+ lodash.camelcase "4.3.0"
+ lodash.kebabcase "4.1.1"
+ lodash.snakecase "4.1.1"
+ lodash.startcase "4.4.0"
+ lodash.topairs "4.3.0"
+ lodash.upperfirst "4.3.1"
+ throat "^4.1.0"
+ vorpal "^1.10.0"
+
+"@commitlint/read@^6.1.3":
+ version "6.1.3"
+ resolved "http://registry.npmjs.org/@commitlint/read/-/read-6.1.3.tgz#9f9d8db50fbf67f3000921657ed6efadb8cf9f1a"
+ dependencies:
+ "@commitlint/top-level" "^6.1.3"
+ "@marionebl/sander" "^0.6.0"
+ babel-runtime "^6.23.0"
+ git-raw-commits "^1.3.0"
+
+"@commitlint/resolve-extends@^6.1.3":
+ version "6.1.3"
+ resolved "http://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-6.1.3.tgz#f45fcfe43860e05e38f3d94d54caed7ddaa41e25"
+ dependencies:
+ babel-runtime "6.26.0"
+ lodash.merge "4.6.1"
+ lodash.omit "4.5.0"
+ require-uncached "^1.0.3"
+ resolve-from "^4.0.0"
+ resolve-global "^0.1.0"
+
+"@commitlint/rules@^6.2.0":
+ version "6.2.0"
+ resolved "https://registry.yarnpkg.com/@commitlint/rules/-/rules-6.2.0.tgz#9391f65a16552822048d45a33ab6ce374686e06b"
+ dependencies:
+ "@commitlint/ensure" "^6.1.3"
+ "@commitlint/message" "^6.1.3"
+ "@commitlint/to-lines" "^6.1.3"
+ babel-runtime "^6.23.0"
+
+"@commitlint/to-lines@^6.1.3":
+ version "6.1.3"
+ resolved "http://registry.npmjs.org/@commitlint/to-lines/-/to-lines-6.1.3.tgz#7ab16a02caed8daa47e959269b96164610a29d0c"
+
+"@commitlint/top-level@^6.1.3":
+ version "6.1.3"
+ resolved "http://registry.npmjs.org/@commitlint/top-level/-/top-level-6.1.3.tgz#126dcb6de1676342c69cd42261483f4478547299"
+ dependencies:
+ find-up "^2.1.0"
+
+"@marionebl/sander@^0.6.0":
+ version "0.6.1"
+ resolved "https://registry.yarnpkg.com/@marionebl/sander/-/sander-0.6.1.tgz#1958965874f24bc51be48875feb50d642fc41f7b"
+ dependencies:
+ graceful-fs "^4.1.3"
+ mkdirp "^0.5.1"
+ rimraf "^2.5.2"
+
+"@mrmlnc/readdir-enhanced@^2.2.1":
+ version "2.2.1"
+ resolved "https://registry.yarnpkg.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde"
+ dependencies:
+ call-me-maybe "^1.0.1"
+ glob-to-regexp "^0.3.0"
+
+"@nodelib/fs.stat@^1.0.1":
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.2.tgz#54c5a964462be3d4d78af631363c18d6fa91ac26"
+
+JSONStream@^1.0.4:
+ version "1.3.4"
+ resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.4.tgz#615bb2adb0cd34c8f4c447b5f6512fa1d8f16a2e"
+ dependencies:
+ jsonparse "^1.2.0"
+ through ">=2.2.7 <3"
+
abbrev@1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8"
@@ -10,6 +355,12 @@ abbrev@1.0.x:
version "1.0.9"
resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.0.9.tgz#91b4792588a7738c25f35dd6f63752a2f8776135"
+abi-decoder@^1.0.8:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/abi-decoder/-/abi-decoder-1.2.0.tgz#c42882dbb91b444805f0cd203a87a5cc3c22f4a8"
+ dependencies:
+ web3 "^0.18.4"
+
accepts@~1.3.5:
version "1.3.5"
resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.5.tgz#eb777df6011723a3b14e8a72c0805c8e86746bd2"
@@ -17,7 +368,29 @@ accepts@~1.3.5:
mime-types "~2.1.18"
negotiator "0.6.1"
-ajv@^5.1.0, ajv@^5.3.0:
+acorn-jsx@^3.0.0:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-3.0.1.tgz#afdf9488fb1ecefc8348f6fb22f464e32a58b36b"
+ dependencies:
+ acorn "^3.0.4"
+
+acorn@^3.0.4:
+ version "3.3.0"
+ resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a"
+
+acorn@^5.5.0:
+ version "5.7.2"
+ resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.2.tgz#91fa871883485d06708800318404e72bfb26dcc5"
+
+ajv-keywords@^2.1.0:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-2.1.1.tgz#617997fc5f60576894c435f940d819e135b80762"
+
+ajv-keywords@^3.0.0:
+ version "3.2.0"
+ resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.2.0.tgz#e86b819c602cf8821ad637413698f1dec021847a"
+
+ajv@^5.1.0, ajv@^5.2.2, ajv@^5.2.3, ajv@^5.3.0:
version "5.5.2"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.5.2.tgz#73b5eeca3fab653e3d3f9422b341ad42205dc965"
dependencies:
@@ -26,28 +399,159 @@ ajv@^5.1.0, ajv@^5.3.0:
fast-json-stable-stringify "^2.0.0"
json-schema-traverse "^0.3.0"
+ajv@^6.0.1:
+ version "6.5.3"
+ resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.5.3.tgz#71a569d189ecf4f4f321224fecb166f071dd90f9"
+ dependencies:
+ fast-deep-equal "^2.0.1"
+ fast-json-stable-stringify "^2.0.0"
+ json-schema-traverse "^0.4.1"
+ uri-js "^4.2.2"
+
amdefine@>=0.0.4:
version "1.0.1"
resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5"
+ansi-escapes@^1.0.0, ansi-escapes@^1.1.0:
+ version "1.4.0"
+ resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e"
+
+ansi-escapes@^3.0.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.1.0.tgz#f73207bb81207d75fd6c83f125af26eea378ca30"
+
ansi-regex@^2.0.0:
version "2.1.1"
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
+ansi-regex@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998"
+
+ansi-styles@^2.2.1:
+ version "2.2.1"
+ resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
+
+ansi-styles@^3.2.0, ansi-styles@^3.2.1:
+ version "3.2.1"
+ resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d"
+ dependencies:
+ color-convert "^1.9.0"
+
+any-observable@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/any-observable/-/any-observable-0.2.0.tgz#c67870058003579009083f54ac0abafb5c33d242"
+
any-promise@1.3.0, any-promise@^1.0.0, any-promise@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/any-promise/-/any-promise-1.3.0.tgz#abc6afeedcea52e809cdc0376aed3ce39635d17f"
+anymatch@^1.3.0:
+ version "1.3.2"
+ resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a"
+ dependencies:
+ micromatch "^2.1.5"
+ normalize-path "^2.0.0"
+
+app-root-path@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/app-root-path/-/app-root-path-2.1.0.tgz#98bf6599327ecea199309866e8140368fd2e646a"
+
+aproba@^1.0.3:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a"
+
+are-we-there-yet@~1.1.2:
+ version "1.1.5"
+ resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz#4b35c2944f062a8bfcda66410760350fe9ddfc21"
+ dependencies:
+ delegates "^1.0.0"
+ readable-stream "^2.0.6"
+
argparse@^1.0.7:
version "1.0.10"
resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911"
dependencies:
sprintf-js "~1.0.2"
+aria-query@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-3.0.0.tgz#65b3fcc1ca1155a8c9ae64d6eee297f15d5133cc"
+ dependencies:
+ ast-types-flow "0.0.7"
+ commander "^2.11.0"
+
+arr-diff@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf"
+ dependencies:
+ arr-flatten "^1.0.1"
+
+arr-diff@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520"
+
+arr-flatten@^1.0.1, arr-flatten@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1"
+
+arr-union@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4"
+
+array-filter@~0.0.0:
+ version "0.0.1"
+ resolved "https://registry.yarnpkg.com/array-filter/-/array-filter-0.0.1.tgz#7da8cf2e26628ed732803581fd21f67cacd2eeec"
+
+array-find-index@^1.0.1:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1"
+
array-flatten@1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2"
+array-ify@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/array-ify/-/array-ify-1.0.0.tgz#9e528762b4a9066ad163a6962a364418e9626ece"
+
+array-includes@^3.0.3:
+ version "3.0.3"
+ resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.0.3.tgz#184b48f62d92d7452bb31b323165c7f8bd02266d"
+ dependencies:
+ define-properties "^1.1.2"
+ es-abstract "^1.7.0"
+
+array-map@~0.0.0:
+ version "0.0.0"
+ resolved "https://registry.yarnpkg.com/array-map/-/array-map-0.0.0.tgz#88a2bab73d1cf7bcd5c1b118a003f66f665fa662"
+
+array-reduce@~0.0.0:
+ version "0.0.0"
+ resolved "https://registry.yarnpkg.com/array-reduce/-/array-reduce-0.0.0.tgz#173899d3ffd1c7d9383e4479525dbe278cab5f2b"
+
+array-union@^1.0.1:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39"
+ dependencies:
+ array-uniq "^1.0.1"
+
+array-uniq@^1.0.1:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6"
+
+array-unique@^0.2.1:
+ version "0.2.1"
+ resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53"
+
+array-unique@^0.3.2:
+ version "0.3.2"
+ resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428"
+
+arrify@^1.0.0, arrify@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d"
+
asn1.js@^4.0.0:
version "4.10.1"
resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-4.10.1.tgz#b9c2bf5805f1e64aadeed6df3a2bfafb5a73f5a0"
@@ -64,6 +568,18 @@ assert-plus@1.0.0, assert-plus@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525"
+assign-symbols@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367"
+
+ast-types-flow@0.0.7, ast-types-flow@^0.0.7:
+ version "0.0.7"
+ resolved "https://registry.yarnpkg.com/ast-types-flow/-/ast-types-flow-0.0.7.tgz#f70b735c6bca1a5c9c22d982c3e39e7feba3bdad"
+
+async-each@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d"
+
async-limiter@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.0.tgz#78faed8c3d074ab81f22b4e985d79e8738f720f8"
@@ -82,6 +598,32 @@ asynckit@^0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
+atob@^2.1.1:
+ version "2.1.2"
+ resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9"
+
+autoprefixer@^7.1.2:
+ version "7.2.6"
+ resolved "http://registry.npmjs.org/autoprefixer/-/autoprefixer-7.2.6.tgz#256672f86f7c735da849c4f07d008abb056067dc"
+ dependencies:
+ browserslist "^2.11.3"
+ caniuse-lite "^1.0.30000805"
+ normalize-range "^0.1.2"
+ num2fraction "^1.2.2"
+ postcss "^6.0.17"
+ postcss-value-parser "^3.2.3"
+
+autoprefixer@^9.0.0:
+ version "9.1.5"
+ resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-9.1.5.tgz#8675fd8d1c0d43069f3b19a2c316f3524e4f6671"
+ dependencies:
+ browserslist "^4.1.0"
+ caniuse-lite "^1.0.30000884"
+ normalize-range "^0.1.2"
+ num2fraction "^1.2.2"
+ postcss "^7.0.2"
+ postcss-value-parser "^3.2.3"
+
aws-sign2@~0.7.0:
version "0.7.0"
resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8"
@@ -94,6 +636,62 @@ aws4@^1.8.0:
version "1.8.0"
resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.8.0.tgz#f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f"
+axobject-query@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-2.0.1.tgz#05dfa705ada8ad9db993fa6896f22d395b0b0a07"
+ dependencies:
+ ast-types-flow "0.0.7"
+
+babel-code-frame@^6.22.0:
+ version "6.26.0"
+ resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b"
+ dependencies:
+ chalk "^1.1.3"
+ esutils "^2.0.2"
+ js-tokens "^3.0.2"
+
+babel-eslint@^8.2.1:
+ version "8.2.6"
+ resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-8.2.6.tgz#6270d0c73205628067c0f7ae1693a9e797acefd9"
+ dependencies:
+ "@babel/code-frame" "7.0.0-beta.44"
+ "@babel/traverse" "7.0.0-beta.44"
+ "@babel/types" "7.0.0-beta.44"
+ babylon "7.0.0-beta.44"
+ eslint-scope "3.7.1"
+ eslint-visitor-keys "^1.0.0"
+
+babel-polyfill@6.23.0:
+ version "6.23.0"
+ resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.23.0.tgz#8364ca62df8eafb830499f699177466c3b03499d"
+ dependencies:
+ babel-runtime "^6.22.0"
+ core-js "^2.4.0"
+ regenerator-runtime "^0.10.0"
+
+babel-polyfill@6.26.0, babel-polyfill@^6.3.14:
+ version "6.26.0"
+ resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153"
+ dependencies:
+ babel-runtime "^6.26.0"
+ core-js "^2.5.0"
+ regenerator-runtime "^0.10.5"
+
+babel-runtime@6.26.0, babel-runtime@^6.22.0, babel-runtime@^6.23.0, babel-runtime@^6.26.0:
+ version "6.26.0"
+ resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe"
+ dependencies:
+ core-js "^2.4.0"
+ regenerator-runtime "^0.11.0"
+
+babylon@7.0.0-beta.44:
+ version "7.0.0-beta.44"
+ resolved "http://registry.npmjs.org/babylon/-/babylon-7.0.0-beta.44.tgz#89159e15e6e30c5096e22d738d8c0af8a0e8ca1d"
+
+bail@^1.0.0:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/bail/-/bail-1.0.3.tgz#63cfb9ddbac829b02a3128cd53224be78e6c21a3"
+
balanced-match@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
@@ -106,6 +704,18 @@ base64-js@^1.0.2:
version "1.3.0"
resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.0.tgz#cab1e6118f051095e58b5281aea8c1cd22bfc0e3"
+base@^0.11.1:
+ version "0.11.2"
+ resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f"
+ dependencies:
+ cache-base "^1.0.1"
+ class-utils "^0.3.5"
+ component-emitter "^1.2.1"
+ define-property "^1.0.0"
+ isobject "^3.0.1"
+ mixin-deep "^1.2.0"
+ pascalcase "^0.1.1"
+
bcrypt-pbkdf@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e"
@@ -116,6 +726,10 @@ bcrypt-pbkdf@^1.0.0:
version "2.0.7"
resolved "git+https://github.com/debris/bignumber.js.git#94d7146671b9719e00a09c29b01a691bc85048c2"
+binary-extensions@^1.0.0:
+ version "1.11.0"
+ resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.11.0.tgz#46aa1751fb6a2f93ee5e689bb1087d4b14c6c205"
+
bl@^1.0.0:
version "1.2.2"
resolved "https://registry.yarnpkg.com/bl/-/bl-1.2.2.tgz#a160911717103c07410cef63ef51b397c025af9c"
@@ -182,6 +796,29 @@ brace-expansion@^1.1.7:
balanced-match "^1.0.0"
concat-map "0.0.1"
+braces@^1.8.2:
+ version "1.8.5"
+ resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7"
+ dependencies:
+ expand-range "^1.8.1"
+ preserve "^0.2.0"
+ repeat-element "^1.1.2"
+
+braces@^2.3.1:
+ version "2.3.2"
+ resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729"
+ dependencies:
+ arr-flatten "^1.1.0"
+ array-unique "^0.3.2"
+ extend-shallow "^2.0.1"
+ fill-range "^4.0.0"
+ isobject "^3.0.1"
+ repeat-element "^1.1.2"
+ snapdragon "^0.8.1"
+ snapdragon-node "^2.0.1"
+ split-string "^3.0.2"
+ to-regex "^3.0.1"
+
brorand@^1.0.1:
version "1.1.0"
resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f"
@@ -243,6 +880,21 @@ browserify-sign@^4.0.0:
inherits "^2.0.1"
parse-asn1 "^5.0.0"
+browserslist@^2.11.3:
+ version "2.11.3"
+ resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-2.11.3.tgz#fe36167aed1bbcde4827ebfe71347a2cc70b99b2"
+ dependencies:
+ caniuse-lite "^1.0.30000792"
+ electron-to-chromium "^1.3.30"
+
+browserslist@^4.1.0:
+ version "4.1.1"
+ resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.1.1.tgz#328eb4ff1215b12df6589e9ab82f8adaa4fc8cd6"
+ dependencies:
+ caniuse-lite "^1.0.30000884"
+ electron-to-chromium "^1.3.62"
+ node-releases "^1.0.0-alpha.11"
+
buffer-alloc-unsafe@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz#bd7dc26ae2972d0eda253be061dba992349c19f0"
@@ -297,14 +949,148 @@ bytes@3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048"
+cache-base@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2"
+ dependencies:
+ collection-visit "^1.0.0"
+ component-emitter "^1.2.1"
+ get-value "^2.0.6"
+ has-value "^1.0.0"
+ isobject "^3.0.1"
+ set-value "^2.0.0"
+ to-object-path "^0.3.0"
+ union-value "^1.0.0"
+ unset-value "^1.0.0"
+
+cachedir@^1.1.0:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/cachedir/-/cachedir-1.3.0.tgz#5e01928bf2d95b5edd94b0942188246740e0dbc4"
+ dependencies:
+ os-homedir "^1.0.1"
+
+call-me-maybe@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/call-me-maybe/-/call-me-maybe-1.0.1.tgz#26d208ea89e37b5cbde60250a15f031c16a4d66b"
+
+caller-path@^0.1.0:
+ version "0.1.0"
+ resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-0.1.0.tgz#94085ef63581ecd3daa92444a8fe94e82577751f"
+ dependencies:
+ callsites "^0.2.0"
+
+callsites@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/callsites/-/callsites-0.2.0.tgz#afab96262910a7f33c19a5775825c69f34e350ca"
+
+camelcase-keys@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-2.1.0.tgz#308beeaffdf28119051efa1d932213c91b8f92e7"
+ dependencies:
+ camelcase "^2.0.0"
+ map-obj "^1.0.0"
+
+camelcase-keys@^4.0.0:
+ version "4.2.0"
+ resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-4.2.0.tgz#a2aa5fb1af688758259c32c141426d78923b9b77"
+ dependencies:
+ camelcase "^4.1.0"
+ map-obj "^2.0.0"
+ quick-lru "^1.0.0"
+
+camelcase@^2.0.0:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-2.1.1.tgz#7c1d16d679a1bbe59ca02cacecfb011e201f5a1f"
+
camelcase@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a"
+camelcase@^4.1.0:
+ version "4.1.0"
+ resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd"
+
+caniuse-lite@^1.0.30000792, caniuse-lite@^1.0.30000805, caniuse-lite@^1.0.30000884:
+ version "1.0.30000885"
+ resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000885.tgz#e889e9f8e7e50e769f2a49634c932b8aee622984"
+
caseless@~0.12.0:
version "0.12.0"
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
+ccount@^1.0.0:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/ccount/-/ccount-1.0.3.tgz#f1cec43f332e2ea5a569fd46f9f5bde4e6102aff"
+
+chalk@1.1.3, chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3:
+ version "1.1.3"
+ resolved "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
+ dependencies:
+ ansi-styles "^2.2.1"
+ escape-string-regexp "^1.0.2"
+ has-ansi "^2.0.0"
+ strip-ansi "^3.0.0"
+ supports-color "^2.0.0"
+
+chalk@2.3.1:
+ version "2.3.1"
+ resolved "http://registry.npmjs.org/chalk/-/chalk-2.3.1.tgz#523fe2678aec7b04e8041909292fe8b17059b796"
+ dependencies:
+ ansi-styles "^3.2.0"
+ escape-string-regexp "^1.0.5"
+ supports-color "^5.2.0"
+
+chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.4.1:
+ version "2.4.1"
+ resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e"
+ dependencies:
+ ansi-styles "^3.2.1"
+ escape-string-regexp "^1.0.5"
+ supports-color "^5.3.0"
+
+character-entities-html4@^1.0.0:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/character-entities-html4/-/character-entities-html4-1.1.2.tgz#c44fdde3ce66b52e8d321d6c1bf46101f0150610"
+
+character-entities-legacy@^1.0.0:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/character-entities-legacy/-/character-entities-legacy-1.1.2.tgz#7c6defb81648498222c9855309953d05f4d63a9c"
+
+character-entities@^1.0.0:
+ version "1.2.2"
+ resolved "https://registry.yarnpkg.com/character-entities/-/character-entities-1.2.2.tgz#58c8f371c0774ef0ba9b2aca5f00d8f100e6e363"
+
+character-reference-invalid@^1.0.0:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/character-reference-invalid/-/character-reference-invalid-1.1.2.tgz#21e421ad3d84055952dab4a43a04e73cd425d3ed"
+
+chardet@^0.4.0:
+ version "0.4.2"
+ resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.4.2.tgz#b5473b33dc97c424e5d98dc87d55d4d8a29c8bf2"
+
+chokidar@^1.6.0:
+ version "1.7.0"
+ resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468"
+ dependencies:
+ anymatch "^1.3.0"
+ async-each "^1.0.0"
+ glob-parent "^2.0.0"
+ inherits "^2.0.1"
+ is-binary-path "^1.0.0"
+ is-glob "^2.0.0"
+ path-is-absolute "^1.0.0"
+ readdirp "^2.0.0"
+ optionalDependencies:
+ fsevents "^1.0.0"
+
+chownr@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.0.1.tgz#e2a75042a9551908bebd25b8523d5f9769d79181"
+
+ci-info@^1.3.0:
+ version "1.4.0"
+ resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.4.0.tgz#4841d53cad49f11b827b648ebde27a6e189b412f"
+
cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3:
version "1.0.4"
resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de"
@@ -312,6 +1098,65 @@ cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3:
inherits "^2.0.1"
safe-buffer "^5.0.1"
+circular-json@^0.3.1:
+ version "0.3.3"
+ resolved "https://registry.yarnpkg.com/circular-json/-/circular-json-0.3.3.tgz#815c99ea84f6809529d2f45791bdf82711352d66"
+
+class-utils@^0.3.5:
+ version "0.3.6"
+ resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463"
+ dependencies:
+ arr-union "^3.1.0"
+ define-property "^0.2.5"
+ isobject "^3.0.0"
+ static-extend "^0.1.1"
+
+clean-regexp@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/clean-regexp/-/clean-regexp-1.0.0.tgz#8df7c7aae51fd36874e8f8d05b9180bc11a3fed7"
+ dependencies:
+ escape-string-regexp "^1.0.5"
+
+cli-cursor@^1.0.1, cli-cursor@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-1.0.2.tgz#64da3f7d56a54412e59794bd62dc35295e8f2987"
+ dependencies:
+ restore-cursor "^1.0.1"
+
+cli-cursor@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5"
+ dependencies:
+ restore-cursor "^2.0.0"
+
+cli-spinners@^0.1.2:
+ version "0.1.2"
+ resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-0.1.2.tgz#bb764d88e185fb9e1e6a2a1f19772318f605e31c"
+
+cli-table2@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/cli-table2/-/cli-table2-0.2.0.tgz#2d1ef7f218a0e786e214540562d4bd177fe32d97"
+ dependencies:
+ lodash "^3.10.1"
+ string-width "^1.0.1"
+ optionalDependencies:
+ colors "^1.1.2"
+
+cli-truncate@^0.2.1:
+ version "0.2.1"
+ resolved "https://registry.yarnpkg.com/cli-truncate/-/cli-truncate-0.2.1.tgz#9f15cfbb0705005369216c626ac7d05ab90dd574"
+ dependencies:
+ slice-ansi "0.0.4"
+ string-width "^1.0.1"
+
+cli-width@^1.0.1:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-1.1.1.tgz#a4d293ef67ebb7b88d4a4d42c0ccf00c4d1e366d"
+
+cli-width@^2.0.0:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz#ff19ede8a9a5e579324147b0c11f0fbcbabed639"
+
cliui@^3.2.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d"
@@ -320,6 +1165,21 @@ cliui@^3.2.0:
strip-ansi "^3.0.1"
wrap-ansi "^2.0.0"
+cliui@^4.0.0:
+ version "4.1.0"
+ resolved "https://registry.yarnpkg.com/cliui/-/cliui-4.1.0.tgz#348422dbe82d800b3022eef4f6ac10bf2e4d1b49"
+ dependencies:
+ string-width "^2.1.1"
+ strip-ansi "^4.0.0"
+ wrap-ansi "^2.0.0"
+
+clone-regexp@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/clone-regexp/-/clone-regexp-1.0.1.tgz#051805cd33173375d82118fc0918606da39fd60f"
+ dependencies:
+ is-regexp "^1.0.0"
+ is-supported-regexp-flag "^1.0.0"
+
co@^4.6.0:
version "4.6.0"
resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184"
@@ -328,6 +1188,31 @@ code-point-at@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
+collapse-white-space@^1.0.2:
+ version "1.0.4"
+ resolved "https://registry.yarnpkg.com/collapse-white-space/-/collapse-white-space-1.0.4.tgz#ce05cf49e54c3277ae573036a26851ba430a0091"
+
+collection-visit@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0"
+ dependencies:
+ map-visit "^1.0.0"
+ object-visit "^1.0.0"
+
+color-convert@^1.9.0:
+ version "1.9.3"
+ resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8"
+ dependencies:
+ color-name "1.1.3"
+
+color-name@1.1.3:
+ version "1.1.3"
+ resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25"
+
+colors@^1.1.2:
+ version "1.3.2"
+ resolved "https://registry.yarnpkg.com/colors/-/colors-1.3.2.tgz#2df8ff573dfbf255af562f8ce7181d6b971a359b"
+
combined-stream@1.0.6, combined-stream@~1.0.5, combined-stream@~1.0.6:
version "1.0.6"
resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818"
@@ -338,6 +1223,10 @@ commander@2.11.0:
version "2.11.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.11.0.tgz#157152fd1e7a6c8d98a5b715cf376df928004563"
+commander@^2.11.0, commander@^2.9.0:
+ version "2.18.0"
+ resolved "https://registry.yarnpkg.com/commander/-/commander-2.18.0.tgz#2bf063ddee7c7891176981a2cc798e5754bc6970"
+
commander@^2.8.1:
version "2.16.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.16.0.tgz#f16390593996ceb4f3eeb020b31d78528f7f8a50"
@@ -352,10 +1241,59 @@ commander@~2.8.1:
dependencies:
graceful-readlink ">= 1.0.0"
+commitizen@^2.9.6:
+ version "2.10.1"
+ resolved "https://registry.yarnpkg.com/commitizen/-/commitizen-2.10.1.tgz#8c395def34a895f4e94952c2efc3c9eb4c3683bd"
+ dependencies:
+ cachedir "^1.1.0"
+ chalk "1.1.3"
+ cz-conventional-changelog "2.0.0"
+ dedent "0.6.0"
+ detect-indent "4.0.0"
+ find-node-modules "1.0.4"
+ find-root "1.0.0"
+ fs-extra "^1.0.0"
+ glob "7.1.1"
+ inquirer "1.2.3"
+ lodash "4.17.5"
+ minimist "1.2.0"
+ opencollective "1.0.3"
+ path-exists "2.1.0"
+ shelljs "0.7.6"
+ strip-json-comments "2.0.1"
+
+compare-func@^1.3.1:
+ version "1.3.2"
+ resolved "https://registry.yarnpkg.com/compare-func/-/compare-func-1.3.2.tgz#99dd0ba457e1f9bc722b12c08ec33eeab31fa648"
+ dependencies:
+ array-ify "^1.0.0"
+ dot-prop "^3.0.0"
+
+component-emitter@^1.2.1:
+ version "1.2.1"
+ resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6"
+
concat-map@0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
+concat-stream@^1.4.10, concat-stream@^1.4.7, concat-stream@^1.6.0:
+ version "1.6.2"
+ resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34"
+ dependencies:
+ buffer-from "^1.0.0"
+ inherits "^2.0.3"
+ readable-stream "^2.2.2"
+ typedarray "^0.0.6"
+
+console-control-strings@^1.0.0, console-control-strings@~1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e"
+
+contains-path@^0.1.0:
+ version "0.1.0"
+ resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a"
+
content-disposition@0.5.2:
version "0.5.2"
resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.2.tgz#0cf68bb9ddf5f2be7961c3a85178cb85dba78cb4"
@@ -364,6 +1302,156 @@ content-type@~1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b"
+conventional-changelog-angular@^1.3.3, conventional-changelog-angular@^1.6.6:
+ version "1.6.6"
+ resolved "https://registry.yarnpkg.com/conventional-changelog-angular/-/conventional-changelog-angular-1.6.6.tgz#b27f2b315c16d0a1f23eb181309d0e6a4698ea0f"
+ dependencies:
+ compare-func "^1.3.1"
+ q "^1.5.1"
+
+conventional-changelog-atom@^0.2.8:
+ version "0.2.8"
+ resolved "https://registry.yarnpkg.com/conventional-changelog-atom/-/conventional-changelog-atom-0.2.8.tgz#8037693455990e3256f297320a45fa47ee553a14"
+ dependencies:
+ q "^1.5.1"
+
+conventional-changelog-codemirror@^0.3.8:
+ version "0.3.8"
+ resolved "https://registry.yarnpkg.com/conventional-changelog-codemirror/-/conventional-changelog-codemirror-0.3.8.tgz#a1982c8291f4ee4d6f2f62817c6b2ecd2c4b7b47"
+ dependencies:
+ q "^1.5.1"
+
+conventional-changelog-core@^2.0.11:
+ version "2.0.11"
+ resolved "https://registry.yarnpkg.com/conventional-changelog-core/-/conventional-changelog-core-2.0.11.tgz#19b5fbd55a9697773ed6661f4e32030ed7e30287"
+ dependencies:
+ conventional-changelog-writer "^3.0.9"
+ conventional-commits-parser "^2.1.7"
+ dateformat "^3.0.0"
+ get-pkg-repo "^1.0.0"
+ git-raw-commits "^1.3.6"
+ git-remote-origin-url "^2.0.0"
+ git-semver-tags "^1.3.6"
+ lodash "^4.2.1"
+ normalize-package-data "^2.3.5"
+ q "^1.5.1"
+ read-pkg "^1.1.0"
+ read-pkg-up "^1.0.1"
+ through2 "^2.0.0"
+
+conventional-changelog-ember@^0.3.12:
+ version "0.3.12"
+ resolved "https://registry.yarnpkg.com/conventional-changelog-ember/-/conventional-changelog-ember-0.3.12.tgz#b7d31851756d0fcb49b031dffeb6afa93b202400"
+ dependencies:
+ q "^1.5.1"
+
+conventional-changelog-eslint@^1.0.9:
+ version "1.0.9"
+ resolved "https://registry.yarnpkg.com/conventional-changelog-eslint/-/conventional-changelog-eslint-1.0.9.tgz#b13cc7e4b472c819450ede031ff1a75c0e3d07d3"
+ dependencies:
+ q "^1.5.1"
+
+conventional-changelog-express@^0.3.6:
+ version "0.3.6"
+ resolved "https://registry.yarnpkg.com/conventional-changelog-express/-/conventional-changelog-express-0.3.6.tgz#4a6295cb11785059fb09202180d0e59c358b9c2c"
+ dependencies:
+ q "^1.5.1"
+
+conventional-changelog-jquery@^0.1.0:
+ version "0.1.0"
+ resolved "https://registry.yarnpkg.com/conventional-changelog-jquery/-/conventional-changelog-jquery-0.1.0.tgz#0208397162e3846986e71273b6c79c5b5f80f510"
+ dependencies:
+ q "^1.4.1"
+
+conventional-changelog-jscs@^0.1.0:
+ version "0.1.0"
+ resolved "https://registry.yarnpkg.com/conventional-changelog-jscs/-/conventional-changelog-jscs-0.1.0.tgz#0479eb443cc7d72c58bf0bcf0ef1d444a92f0e5c"
+ dependencies:
+ q "^1.4.1"
+
+conventional-changelog-jshint@^0.3.8:
+ version "0.3.8"
+ resolved "https://registry.yarnpkg.com/conventional-changelog-jshint/-/conventional-changelog-jshint-0.3.8.tgz#9051c1ac0767abaf62a31f74d2fe8790e8acc6c8"
+ dependencies:
+ compare-func "^1.3.1"
+ q "^1.5.1"
+
+conventional-changelog-preset-loader@^1.1.8:
+ version "1.1.8"
+ resolved "https://registry.yarnpkg.com/conventional-changelog-preset-loader/-/conventional-changelog-preset-loader-1.1.8.tgz#40bb0f142cd27d16839ec6c74ee8db418099b373"
+
+conventional-changelog-writer@^3.0.9:
+ version "3.0.9"
+ resolved "https://registry.yarnpkg.com/conventional-changelog-writer/-/conventional-changelog-writer-3.0.9.tgz#4aecdfef33ff2a53bb0cf3b8071ce21f0e994634"
+ dependencies:
+ compare-func "^1.3.1"
+ conventional-commits-filter "^1.1.6"
+ dateformat "^3.0.0"
+ handlebars "^4.0.2"
+ json-stringify-safe "^5.0.1"
+ lodash "^4.2.1"
+ meow "^4.0.0"
+ semver "^5.5.0"
+ split "^1.0.0"
+ through2 "^2.0.0"
+
+conventional-changelog@^1.1.0:
+ version "1.1.24"
+ resolved "https://registry.yarnpkg.com/conventional-changelog/-/conventional-changelog-1.1.24.tgz#3d94c29c960f5261c002678315b756cdd3d7d1f0"
+ dependencies:
+ conventional-changelog-angular "^1.6.6"
+ conventional-changelog-atom "^0.2.8"
+ conventional-changelog-codemirror "^0.3.8"
+ conventional-changelog-core "^2.0.11"
+ conventional-changelog-ember "^0.3.12"
+ conventional-changelog-eslint "^1.0.9"
+ conventional-changelog-express "^0.3.6"
+ conventional-changelog-jquery "^0.1.0"
+ conventional-changelog-jscs "^0.1.0"
+ conventional-changelog-jshint "^0.3.8"
+ conventional-changelog-preset-loader "^1.1.8"
+
+conventional-commit-types@^2.0.0:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/conventional-commit-types/-/conventional-commit-types-2.2.0.tgz#5db95739d6c212acbe7b6f656a11b940baa68946"
+
+conventional-commits-filter@^1.1.1, conventional-commits-filter@^1.1.6:
+ version "1.1.6"
+ resolved "https://registry.yarnpkg.com/conventional-commits-filter/-/conventional-commits-filter-1.1.6.tgz#4389cd8e58fe89750c0b5fb58f1d7f0cc8ad3831"
+ dependencies:
+ is-subset "^0.1.1"
+ modify-values "^1.0.0"
+
+conventional-commits-parser@^2.1.0, conventional-commits-parser@^2.1.1, conventional-commits-parser@^2.1.7:
+ version "2.1.7"
+ resolved "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-2.1.7.tgz#eca45ed6140d72ba9722ee4132674d639e644e8e"
+ dependencies:
+ JSONStream "^1.0.4"
+ is-text-path "^1.0.0"
+ lodash "^4.2.1"
+ meow "^4.0.0"
+ split2 "^2.0.0"
+ through2 "^2.0.0"
+ trim-off-newlines "^1.0.0"
+
+conventional-recommended-bump@^1.0.0:
+ version "1.2.1"
+ resolved "https://registry.yarnpkg.com/conventional-recommended-bump/-/conventional-recommended-bump-1.2.1.tgz#1b7137efb5091f99fe009e2fe9ddb7cc490e9375"
+ dependencies:
+ concat-stream "^1.4.10"
+ conventional-commits-filter "^1.1.1"
+ conventional-commits-parser "^2.1.1"
+ git-raw-commits "^1.3.0"
+ git-semver-tags "^1.3.0"
+ meow "^3.3.0"
+ object-assign "^4.0.1"
+
+convert-source-map@^1.1.0:
+ version "1.6.0"
+ resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.6.0.tgz#51b537a8c43e0f04dec1993bffcdd504e758ac20"
+ dependencies:
+ safe-buffer "~5.1.1"
+
cookie-signature@1.0.6:
version "1.0.6"
resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c"
@@ -372,6 +1460,14 @@ cookie@0.3.1:
version "0.3.1"
resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.3.1.tgz#e7e0a1f9ef43b4c8ba925c5c5a96e806d16873bb"
+copy-descriptor@^0.1.0:
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"
+
+core-js@^2.4.0, core-js@^2.5.0:
+ version "2.5.7"
+ resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.7.tgz#f972608ff0cead68b841a16a932d0b183791814e"
+
core-util-is@1.0.2, core-util-is@~1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
@@ -383,6 +1479,32 @@ cors@^2.8.1:
object-assign "^4"
vary "^1"
+cosmiconfig@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-3.1.0.tgz#640a94bf9847f321800403cd273af60665c73397"
+ dependencies:
+ is-directory "^0.3.1"
+ js-yaml "^3.9.0"
+ parse-json "^3.0.0"
+ require-from-string "^2.0.1"
+
+cosmiconfig@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-4.0.0.tgz#760391549580bbd2df1e562bc177b13c290972dc"
+ dependencies:
+ is-directory "^0.3.1"
+ js-yaml "^3.9.0"
+ parse-json "^4.0.0"
+ require-from-string "^2.0.1"
+
+cosmiconfig@^5.0.0:
+ version "5.0.6"
+ resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.0.6.tgz#dca6cf680a0bd03589aff684700858c81abeeb39"
+ dependencies:
+ is-directory "^0.3.1"
+ js-yaml "^3.9.0"
+ parse-json "^4.0.0"
+
coveralls@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.0.2.tgz#f5a0bcd90ca4e64e088b710fa8dda640aea4884f"
@@ -422,6 +1544,24 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4:
safe-buffer "^5.0.1"
sha.js "^2.4.8"
+cross-spawn@^5.0.1, cross-spawn@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
+ dependencies:
+ lru-cache "^4.0.1"
+ shebang-command "^1.2.0"
+ which "^1.2.9"
+
+cross-spawn@^6.0.4:
+ version "6.0.5"
+ resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4"
+ dependencies:
+ nice-try "^1.0.4"
+ path-key "^2.0.1"
+ semver "^5.5.0"
+ shebang-command "^1.2.0"
+ which "^1.2.9"
+
crypto-browserify@3.12.0:
version "3.12.0"
resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec"
@@ -442,29 +1582,71 @@ crypto-js@^3.1.4:
version "3.1.8"
resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-3.1.8.tgz#715f070bf6014f2ae992a98b3929258b713f08d5"
+currently-unhandled@^0.4.1:
+ version "0.4.1"
+ resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea"
+ dependencies:
+ array-find-index "^1.0.1"
+
+cz-conventional-changelog@2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/cz-conventional-changelog/-/cz-conventional-changelog-2.0.0.tgz#55a979afdfe95e7024879d2a0f5924630170b533"
+ dependencies:
+ conventional-commit-types "^2.0.0"
+ lodash.map "^4.5.1"
+ longest "^1.0.1"
+ pad-right "^0.2.2"
+ right-pad "^1.0.1"
+ word-wrap "^1.0.3"
+
+damerau-levenshtein@^1.0.4:
+ version "1.0.4"
+ resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.4.tgz#03191c432cb6eea168bb77f3a55ffdccb8978514"
+
+dargs@^4.0.1:
+ version "4.1.0"
+ resolved "https://registry.yarnpkg.com/dargs/-/dargs-4.1.0.tgz#03a9dbb4b5c2f139bf14ae53f0b8a2a6a86f4e17"
+ dependencies:
+ number-is-nan "^1.0.0"
+
dashdash@^1.12.0:
version "1.14.1"
resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0"
dependencies:
assert-plus "^1.0.0"
+date-fns@^1.27.2:
+ version "1.29.0"
+ resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-1.29.0.tgz#12e609cdcb935127311d04d33334e2960a2a54e6"
+
+dateformat@^3.0.0:
+ version "3.0.3"
+ resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae"
+
death@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/death/-/death-1.1.0.tgz#01aa9c401edd92750514470b8266390c66c67318"
-debug@2.6.9, debug@^2.2.0:
+debug@2.6.9, debug@^2.1.2, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9:
version "2.6.9"
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
dependencies:
ms "2.0.0"
-debug@3.1.0:
+debug@3.1.0, debug@^3.0.0, debug@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261"
dependencies:
ms "2.0.0"
-decamelize@^1.1.1:
+decamelize-keys@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/decamelize-keys/-/decamelize-keys-1.1.0.tgz#d171a87933252807eb3cb61dc1c1445d078df2d9"
+ dependencies:
+ decamelize "^1.1.0"
+ map-obj "^1.0.0"
+
+decamelize@^1.1.0, decamelize@^1.1.1, decamelize@^1.1.2:
version "1.2.0"
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
@@ -526,14 +1708,67 @@ decompress@^4.0.0:
pify "^2.3.0"
strip-dirs "^2.0.0"
+dedent@0.6.0:
+ version "0.6.0"
+ resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.6.0.tgz#0e6da8f0ce52838ef5cec5c8f9396b0c1b64a3cb"
+
+dedent@^0.7.0:
+ version "0.7.0"
+ resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c"
+
+deep-extend@^0.6.0:
+ version "0.6.0"
+ resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac"
+
deep-is@~0.1.3:
version "0.1.3"
resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34"
+define-properties@^1.1.2:
+ version "1.1.3"
+ resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1"
+ dependencies:
+ object-keys "^1.0.12"
+
+define-property@^0.2.5:
+ version "0.2.5"
+ resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116"
+ dependencies:
+ is-descriptor "^0.1.0"
+
+define-property@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6"
+ dependencies:
+ is-descriptor "^1.0.0"
+
+define-property@^2.0.2:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d"
+ dependencies:
+ is-descriptor "^1.0.2"
+ isobject "^3.0.1"
+
+del@^2.0.2:
+ version "2.2.2"
+ resolved "https://registry.yarnpkg.com/del/-/del-2.2.2.tgz#c12c981d067846c84bcaf862cff930d907ffd1a8"
+ dependencies:
+ globby "^5.0.0"
+ is-path-cwd "^1.0.0"
+ is-path-in-cwd "^1.0.0"
+ object-assign "^4.0.1"
+ pify "^2.0.0"
+ pinkie-promise "^2.0.0"
+ rimraf "^2.2.8"
+
delayed-stream@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"
+delegates@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a"
+
depd@1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.1.tgz#5783b4e1c459f06fa5ca27f991f3d06e7a310359"
@@ -553,6 +1788,22 @@ destroy@~1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80"
+detect-file@^0.1.0:
+ version "0.1.0"
+ resolved "https://registry.yarnpkg.com/detect-file/-/detect-file-0.1.0.tgz#4935dedfd9488648e006b0129566e9386711ea63"
+ dependencies:
+ fs-exists-sync "^0.1.0"
+
+detect-indent@4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208"
+ dependencies:
+ repeating "^2.0.0"
+
+detect-libc@^1.0.2:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b"
+
diff@3.3.1:
version "3.3.1"
resolved "https://registry.yarnpkg.com/diff/-/diff-3.3.1.tgz#aa8567a6eed03c531fc89d3f711cd0e5259dec75"
@@ -565,14 +1816,85 @@ diffie-hellman@^5.0.0:
miller-rabin "^4.0.0"
randombytes "^2.0.0"
+dir-glob@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-2.0.0.tgz#0b205d2b6aef98238ca286598a8204d29d0a0034"
+ dependencies:
+ arrify "^1.0.1"
+ path-type "^3.0.0"
+
+doctrine@1.5.0:
+ version "1.5.0"
+ resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa"
+ dependencies:
+ esutils "^2.0.2"
+ isarray "^1.0.0"
+
+doctrine@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d"
+ dependencies:
+ esutils "^2.0.2"
+
+dom-serializer@0:
+ version "0.1.0"
+ resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.1.0.tgz#073c697546ce0780ce23be4a28e293e40bc30c82"
+ dependencies:
+ domelementtype "~1.1.1"
+ entities "~1.1.1"
+
dom-walk@^0.1.0:
version "0.1.1"
resolved "https://registry.yarnpkg.com/dom-walk/-/dom-walk-0.1.1.tgz#672226dc74c8f799ad35307df936aba11acd6018"
+domelementtype@1, domelementtype@^1.3.0:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.3.0.tgz#b17aed82e8ab59e52dd9c19b1756e0fc187204c2"
+
+domelementtype@~1.1.1:
+ version "1.1.3"
+ resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.1.3.tgz#bd28773e2642881aec51544924299c5cd822185b"
+
+domhandler@^2.3.0:
+ version "2.4.2"
+ resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-2.4.2.tgz#8805097e933d65e85546f726d60f5eb88b44f803"
+ dependencies:
+ domelementtype "1"
+
+domutils@^1.5.1:
+ version "1.7.0"
+ resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.7.0.tgz#56ea341e834e06e6748af7a1cb25da67ea9f8c2a"
+ dependencies:
+ dom-serializer "0"
+ domelementtype "1"
+
+dot-prop@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-3.0.0.tgz#1b708af094a49c9a0e7dbcad790aba539dac1177"
+ dependencies:
+ is-obj "^1.0.0"
+
+dot-prop@^4.1.1:
+ version "4.2.0"
+ resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-4.2.0.tgz#1f19e0c2e1aa0e32797c49799f2837ac6af69c57"
+ dependencies:
+ is-obj "^1.0.0"
+
+dotgitignore@^1.0.3:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/dotgitignore/-/dotgitignore-1.0.3.tgz#a442cbde7dc20dff51cdb849e4c5a64568c07923"
+ dependencies:
+ find-up "^2.1.0"
+ minimatch "^3.0.4"
+
duplexer3@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2"
+duplexer@^0.1.1, duplexer@~0.1.1:
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1"
+
ecc-jsbn@~0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505"
@@ -583,6 +1905,14 @@ ee-first@1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
+electron-to-chromium@^1.3.30, electron-to-chromium@^1.3.62:
+ version "1.3.64"
+ resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.64.tgz#39f5a93bf84ab7e10cfbb7522ccfc3f1feb756cf"
+
+elegant-spinner@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/elegant-spinner/-/elegant-spinner-1.0.1.tgz#db043521c95d7e303fd8f345bedc3349cfb0729e"
+
elliptic@^6.0.0, elliptic@^6.4.0:
version "6.4.0"
resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.4.0.tgz#cac9af8762c85836187003c8dfe193e5e2eae5df"
@@ -595,27 +1925,63 @@ elliptic@^6.0.0, elliptic@^6.4.0:
minimalistic-assert "^1.0.0"
minimalistic-crypto-utils "^1.0.0"
+emoji-regex@^6.5.1:
+ version "6.5.1"
+ resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-6.5.1.tgz#9baea929b155565c11ea41c6626eaa65cef992c2"
+
encodeurl@~1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59"
+encoding@^0.1.11:
+ version "0.1.12"
+ resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb"
+ dependencies:
+ iconv-lite "~0.4.13"
+
end-of-stream@^1.0.0:
version "1.4.1"
resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.1.tgz#ed29634d19baba463b6ce6b80a37213eab71ec43"
dependencies:
once "^1.4.0"
-error-ex@^1.2.0:
+entities@^1.1.1, entities@~1.1.1:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.1.tgz#6e5c2d0a5621b5dadaecef80b90edfb5cd7772f0"
+
+eol@^0.9.1:
+ version "0.9.1"
+ resolved "https://registry.yarnpkg.com/eol/-/eol-0.9.1.tgz#f701912f504074be35c6117a5c4ade49cd547acd"
+
+error-ex@^1.2.0, error-ex@^1.3.1:
version "1.3.2"
resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf"
dependencies:
is-arrayish "^0.2.1"
+es-abstract@^1.4.3, es-abstract@^1.7.0:
+ version "1.12.0"
+ resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.12.0.tgz#9dbbdd27c6856f0001421ca18782d786bf8a6165"
+ dependencies:
+ es-to-primitive "^1.1.1"
+ function-bind "^1.1.1"
+ has "^1.0.1"
+ is-callable "^1.1.3"
+ is-regex "^1.0.4"
+
+es-to-primitive@^1.1.1:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.1.1.tgz#45355248a88979034b6792e19bb81f2b7975dd0d"
+ dependencies:
+ is-callable "^1.1.1"
+ is-date-object "^1.0.1"
+ is-symbol "^1.0.1"
+
escape-html@~1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"
-escape-string-regexp@1.0.5:
+escape-string-regexp@1.0.5, escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
@@ -630,6 +1996,193 @@ escodegen@1.8.x:
optionalDependencies:
source-map "~0.2.0"
+eslint-ast-utils@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/eslint-ast-utils/-/eslint-ast-utils-1.1.0.tgz#3d58ba557801cfb1c941d68131ee9f8c34bd1586"
+ dependencies:
+ lodash.get "^4.4.2"
+ lodash.zip "^4.2.0"
+
+eslint-config-prettier@^2.9.0:
+ version "2.10.0"
+ resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-2.10.0.tgz#ec07bc1d01f87d09f61d3840d112dc8a9791e30b"
+ dependencies:
+ get-stdin "^5.0.1"
+
+eslint-config-react-app@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/eslint-config-react-app/-/eslint-config-react-app-2.1.0.tgz#23c909f71cbaff76b945b831d2d814b8bde169eb"
+
+eslint-config-standard-jsx@^4.0.2:
+ version "4.0.2"
+ resolved "https://registry.yarnpkg.com/eslint-config-standard-jsx/-/eslint-config-standard-jsx-4.0.2.tgz#009e53c4ddb1e9ee70b4650ffe63a7f39f8836e1"
+
+eslint-config-standard@^11.0.0-beta.0:
+ version "11.0.0"
+ resolved "http://registry.npmjs.org/eslint-config-standard/-/eslint-config-standard-11.0.0.tgz#87ee0d3c9d95382dc761958cbb23da9eea31e0ba"
+
+eslint-import-resolver-node@^0.3.1:
+ version "0.3.2"
+ resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.2.tgz#58f15fb839b8d0576ca980413476aab2472db66a"
+ dependencies:
+ debug "^2.6.9"
+ resolve "^1.5.0"
+
+eslint-module-utils@^2.2.0:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.2.0.tgz#b270362cd88b1a48ad308976ce7fa54e98411746"
+ dependencies:
+ debug "^2.6.8"
+ pkg-dir "^1.0.0"
+
+eslint-plugin-flowtype@^2.43.0:
+ version "2.50.0"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.50.0.tgz#953e262fa9b5d0fa76e178604892cf60dfb916da"
+ dependencies:
+ lodash "^4.17.10"
+
+eslint-plugin-import@^2.8.0:
+ version "2.14.0"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.14.0.tgz#6b17626d2e3e6ad52cfce8807a845d15e22111a8"
+ dependencies:
+ contains-path "^0.1.0"
+ debug "^2.6.8"
+ doctrine "1.5.0"
+ eslint-import-resolver-node "^0.3.1"
+ eslint-module-utils "^2.2.0"
+ has "^1.0.1"
+ lodash "^4.17.4"
+ minimatch "^3.0.3"
+ read-pkg-up "^2.0.0"
+ resolve "^1.6.0"
+
+eslint-plugin-jsx-a11y@^6.0.3:
+ version "6.1.1"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.1.1.tgz#7bf56dbe7d47d811d14dbb3ddff644aa656ce8e1"
+ dependencies:
+ aria-query "^3.0.0"
+ array-includes "^3.0.3"
+ ast-types-flow "^0.0.7"
+ axobject-query "^2.0.1"
+ damerau-levenshtein "^1.0.4"
+ emoji-regex "^6.5.1"
+ has "^1.0.3"
+ jsx-ast-utils "^2.0.1"
+
+eslint-plugin-node@^6.0.0:
+ version "6.0.1"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-node/-/eslint-plugin-node-6.0.1.tgz#bf19642298064379315d7a4b2a75937376fa05e4"
+ dependencies:
+ ignore "^3.3.6"
+ minimatch "^3.0.4"
+ resolve "^1.3.3"
+ semver "^5.4.1"
+
+eslint-plugin-prettier@^2.6.0:
+ version "2.6.2"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.6.2.tgz#71998c60aedfa2141f7bfcbf9d1c459bf98b4fad"
+ dependencies:
+ fast-diff "^1.1.1"
+ jest-docblock "^21.0.0"
+
+eslint-plugin-promise@^3.6.0:
+ version "3.8.0"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-3.8.0.tgz#65ebf27a845e3c1e9d6f6a5622ddd3801694b621"
+
+eslint-plugin-react@^7.6.1:
+ version "7.11.1"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.11.1.tgz#c01a7af6f17519457d6116aa94fc6d2ccad5443c"
+ dependencies:
+ array-includes "^3.0.3"
+ doctrine "^2.1.0"
+ has "^1.0.3"
+ jsx-ast-utils "^2.0.1"
+ prop-types "^15.6.2"
+
+eslint-plugin-standard@^3.0.1:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-standard/-/eslint-plugin-standard-3.1.0.tgz#2a9e21259ba4c47c02d53b2d0c9135d4b1022d47"
+
+eslint-plugin-unicorn@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-unicorn/-/eslint-plugin-unicorn-3.0.1.tgz#dae02614a53b921541a9318a46e50ab5bdeb5d7c"
+ dependencies:
+ clean-regexp "^1.0.0"
+ eslint-ast-utils "^1.0.0"
+ import-modules "^1.1.0"
+ lodash.camelcase "^4.1.1"
+ lodash.kebabcase "^4.0.1"
+ lodash.snakecase "^4.0.1"
+ lodash.upperfirst "^4.2.0"
+
+eslint-scope@3.7.1:
+ version "3.7.1"
+ resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.1.tgz#3d63c3edfda02e06e01a452ad88caacc7cdcb6e8"
+ dependencies:
+ esrecurse "^4.1.0"
+ estraverse "^4.1.1"
+
+eslint-scope@^3.7.1:
+ version "3.7.3"
+ resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.3.tgz#bb507200d3d17f60247636160b4826284b108535"
+ dependencies:
+ esrecurse "^4.1.0"
+ estraverse "^4.1.1"
+
+eslint-visitor-keys@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d"
+
+eslint@^4.17.0:
+ version "4.19.1"
+ resolved "http://registry.npmjs.org/eslint/-/eslint-4.19.1.tgz#32d1d653e1d90408854bfb296f076ec7e186a300"
+ dependencies:
+ ajv "^5.3.0"
+ babel-code-frame "^6.22.0"
+ chalk "^2.1.0"
+ concat-stream "^1.6.0"
+ cross-spawn "^5.1.0"
+ debug "^3.1.0"
+ doctrine "^2.1.0"
+ eslint-scope "^3.7.1"
+ eslint-visitor-keys "^1.0.0"
+ espree "^3.5.4"
+ esquery "^1.0.0"
+ esutils "^2.0.2"
+ file-entry-cache "^2.0.0"
+ functional-red-black-tree "^1.0.1"
+ glob "^7.1.2"
+ globals "^11.0.1"
+ ignore "^3.3.3"
+ imurmurhash "^0.1.4"
+ inquirer "^3.0.6"
+ is-resolvable "^1.0.0"
+ js-yaml "^3.9.1"
+ json-stable-stringify-without-jsonify "^1.0.1"
+ levn "^0.3.0"
+ lodash "^4.17.4"
+ minimatch "^3.0.2"
+ mkdirp "^0.5.1"
+ natural-compare "^1.4.0"
+ optionator "^0.8.2"
+ path-is-inside "^1.0.2"
+ pluralize "^7.0.0"
+ progress "^2.0.0"
+ regexpp "^1.0.1"
+ require-uncached "^1.0.3"
+ semver "^5.3.0"
+ strip-ansi "^4.0.0"
+ strip-json-comments "~2.0.1"
+ table "4.0.2"
+ text-table "~0.2.0"
+
+espree@^3.5.4:
+ version "3.5.4"
+ resolved "https://registry.yarnpkg.com/espree/-/espree-3.5.4.tgz#b0f447187c8a8bed944b815a660bddf5deb5d1a7"
+ dependencies:
+ acorn "^5.5.0"
+ acorn-jsx "^3.0.0"
+
esprima@2.7.x, esprima@^2.7.1:
version "2.7.3"
resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581"
@@ -638,10 +2191,26 @@ esprima@^4.0.0:
version "4.0.1"
resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71"
+esquery@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.0.1.tgz#406c51658b1f5991a5f9b62b1dc25b00e3e5c708"
+ dependencies:
+ estraverse "^4.0.0"
+
+esrecurse@^4.1.0:
+ version "4.2.1"
+ resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.2.1.tgz#007a3b9fdbc2b3bb87e4879ea19c92fdbd3942cf"
+ dependencies:
+ estraverse "^4.1.0"
+
estraverse@^1.9.1:
version "1.9.3"
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-1.9.3.tgz#af67f2dc922582415950926091a4005d29c9bb44"
+estraverse@^4.0.0, estraverse@^4.1.0, estraverse@^4.1.1:
+ version "4.2.0"
+ resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13"
+
esutils@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b"
@@ -656,6 +2225,19 @@ eth-contract-class@0.0.6:
dependencies:
web3-core-promievent "^1.0.0-beta.21"
+eth-gas-reporter@0.1.1:
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/eth-gas-reporter/-/eth-gas-reporter-0.1.1.tgz#0b4467bda3813e22f9f68a7430dca87b05e0de52"
+ dependencies:
+ abi-decoder "^1.0.8"
+ cli-table2 "^0.2.0"
+ colors "^1.1.2"
+ lodash "^4.17.4"
+ req-cwd "^2.0.0"
+ request "^2.83.0"
+ request-promise-native "^1.0.5"
+ shelljs "^0.7.8"
+
eth-lib@0.1.27, eth-lib@^0.1.26:
version "0.1.27"
resolved "https://registry.yarnpkg.com/eth-lib/-/eth-lib-0.1.27.tgz#f0b0fd144f865d2d6bf8257a40004f2e75ca1dd6"
@@ -689,6 +2271,18 @@ ethjs-unit@0.1.6:
bn.js "4.11.6"
number-to-bn "1.7.0"
+event-stream@~3.3.0:
+ version "3.3.5"
+ resolved "https://registry.yarnpkg.com/event-stream/-/event-stream-3.3.5.tgz#e5dd8989543630d94c6cf4d657120341fa31636b"
+ dependencies:
+ duplexer "^0.1.1"
+ from "^0.1.7"
+ map-stream "0.0.7"
+ pause-stream "^0.0.11"
+ split "^1.0.1"
+ stream-combiner "^0.2.2"
+ through "^2.3.8"
+
eventemitter3@1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-1.1.1.tgz#47786bdaa087caf7b1b75e73abc5c7d540158cd0"
@@ -700,6 +2294,70 @@ evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3:
md5.js "^1.3.4"
safe-buffer "^5.1.1"
+execa@^0.7.0:
+ version "0.7.0"
+ resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777"
+ dependencies:
+ cross-spawn "^5.0.1"
+ get-stream "^3.0.0"
+ is-stream "^1.1.0"
+ npm-run-path "^2.0.0"
+ p-finally "^1.0.0"
+ signal-exit "^3.0.0"
+ strip-eof "^1.0.0"
+
+execa@^0.8.0:
+ version "0.8.0"
+ resolved "https://registry.yarnpkg.com/execa/-/execa-0.8.0.tgz#d8d76bbc1b55217ed190fd6dd49d3c774ecfc8da"
+ dependencies:
+ cross-spawn "^5.0.1"
+ get-stream "^3.0.0"
+ is-stream "^1.1.0"
+ npm-run-path "^2.0.0"
+ p-finally "^1.0.0"
+ signal-exit "^3.0.0"
+ strip-eof "^1.0.0"
+
+execall@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/execall/-/execall-1.0.0.tgz#73d0904e395b3cab0658b08d09ec25307f29bb73"
+ dependencies:
+ clone-regexp "^1.0.0"
+
+exit-hook@^1.0.0:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/exit-hook/-/exit-hook-1.1.1.tgz#f05ca233b48c05d54fff07765df8507e95c02ff8"
+
+expand-brackets@^0.1.4:
+ version "0.1.5"
+ resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b"
+ dependencies:
+ is-posix-bracket "^0.1.0"
+
+expand-brackets@^2.1.4:
+ version "2.1.4"
+ resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622"
+ dependencies:
+ debug "^2.3.3"
+ define-property "^0.2.5"
+ extend-shallow "^2.0.1"
+ posix-character-classes "^0.1.0"
+ regex-not "^1.0.0"
+ snapdragon "^0.8.1"
+ to-regex "^3.0.1"
+
+expand-range@^1.8.1:
+ version "1.8.2"
+ resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337"
+ dependencies:
+ fill-range "^2.1.0"
+
+expand-tilde@^1.2.2:
+ version "1.2.2"
+ resolved "https://registry.yarnpkg.com/expand-tilde/-/expand-tilde-1.2.2.tgz#0b81eba897e5a3d31d1c3d102f8f01441e559449"
+ dependencies:
+ os-homedir "^1.0.1"
+
express@^4.14.0:
version "4.16.3"
resolved "https://registry.yarnpkg.com/express/-/express-4.16.3.tgz#6af8a502350db3246ecc4becf6b5a34d22f7ed53"
@@ -735,15 +2393,63 @@ express@^4.14.0:
utils-merge "1.0.1"
vary "~1.1.2"
-extend@~3.0.1:
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444"
+extend-shallow@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f"
+ dependencies:
+ is-extendable "^0.1.0"
-extend@~3.0.2:
+extend-shallow@^3.0.0, extend-shallow@^3.0.2:
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8"
+ dependencies:
+ assign-symbols "^1.0.0"
+ is-extendable "^1.0.1"
+
+extend@^3.0.0, extend@~3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa"
-extsprintf@1.3.0:
+extend@~3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444"
+
+external-editor@^1.1.0:
+ version "1.1.1"
+ resolved "http://registry.npmjs.org/external-editor/-/external-editor-1.1.1.tgz#12d7b0db850f7ff7e7081baf4005700060c4600b"
+ dependencies:
+ extend "^3.0.0"
+ spawn-sync "^1.0.15"
+ tmp "^0.0.29"
+
+external-editor@^2.0.1, external-editor@^2.0.4:
+ version "2.2.0"
+ resolved "http://registry.npmjs.org/external-editor/-/external-editor-2.2.0.tgz#045511cfd8d133f3846673d1047c154e214ad3d5"
+ dependencies:
+ chardet "^0.4.0"
+ iconv-lite "^0.4.17"
+ tmp "^0.0.33"
+
+extglob@^0.3.1:
+ version "0.3.2"
+ resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1"
+ dependencies:
+ is-extglob "^1.0.0"
+
+extglob@^2.0.4:
+ version "2.0.4"
+ resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543"
+ dependencies:
+ array-unique "^0.3.2"
+ define-property "^1.0.0"
+ expand-brackets "^2.1.4"
+ extend-shallow "^2.0.1"
+ fragment-cache "^0.2.1"
+ regex-not "^1.0.0"
+ snapdragon "^0.8.1"
+ to-regex "^3.0.1"
+
+extsprintf@1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05"
@@ -755,6 +2461,25 @@ fast-deep-equal@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz#c053477817c86b51daa853c81e059b733d023614"
+fast-deep-equal@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz#7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49"
+
+fast-diff@^1.1.1:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.1.2.tgz#4b62c42b8e03de3f848460b639079920695d0154"
+
+fast-glob@^2.0.2:
+ version "2.2.2"
+ resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-2.2.2.tgz#71723338ac9b4e0e2fff1d6748a2a13d5ed352bf"
+ dependencies:
+ "@mrmlnc/readdir-enhanced" "^2.2.1"
+ "@nodelib/fs.stat" "^1.0.1"
+ glob-parent "^3.1.0"
+ is-glob "^4.0.0"
+ merge2 "^1.2.1"
+ micromatch "^3.1.10"
+
fast-json-stable-stringify@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2"
@@ -769,6 +2494,26 @@ fd-slicer@~1.1.0:
dependencies:
pend "~1.2.0"
+figures@^1.3.5, figures@^1.5.0, figures@^1.7.0:
+ version "1.7.0"
+ resolved "https://registry.yarnpkg.com/figures/-/figures-1.7.0.tgz#cbe1e3affcf1cd44b80cadfed28dc793a9701d2e"
+ dependencies:
+ escape-string-regexp "^1.0.5"
+ object-assign "^4.1.0"
+
+figures@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962"
+ dependencies:
+ escape-string-regexp "^1.0.5"
+
+file-entry-cache@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-2.0.0.tgz#c392990c3e684783d838b8c84a45d8a048458361"
+ dependencies:
+ flat-cache "^1.2.1"
+ object-assign "^4.0.1"
+
file-type@^3.8.0:
version "3.9.0"
resolved "https://registry.yarnpkg.com/file-type/-/file-type-3.9.0.tgz#257a078384d1db8087bc449d107d52a52672b9e9"
@@ -781,6 +2526,29 @@ file-type@^6.1.0:
version "6.2.0"
resolved "https://registry.yarnpkg.com/file-type/-/file-type-6.2.0.tgz#e50cd75d356ffed4e306dc4f5bcf52a79903a919"
+filename-regex@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26"
+
+fill-range@^2.1.0:
+ version "2.2.4"
+ resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.4.tgz#eb1e773abb056dcd8df2bfdf6af59b8b3a936565"
+ dependencies:
+ is-number "^2.1.0"
+ isobject "^2.0.0"
+ randomatic "^3.0.0"
+ repeat-element "^1.1.2"
+ repeat-string "^1.5.2"
+
+fill-range@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7"
+ dependencies:
+ extend-shallow "^2.0.1"
+ is-number "^3.0.0"
+ repeat-string "^1.6.1"
+ to-regex-range "^2.1.0"
+
finalhandler@1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.1.tgz#eebf4ed840079c83f4249038c9d703008301b105"
@@ -793,6 +2561,21 @@ finalhandler@1.1.1:
statuses "~1.4.0"
unpipe "~1.0.0"
+find-node-modules@1.0.4:
+ version "1.0.4"
+ resolved "https://registry.yarnpkg.com/find-node-modules/-/find-node-modules-1.0.4.tgz#b6deb3cccb699c87037677bcede2c5f5862b2550"
+ dependencies:
+ findup-sync "0.4.2"
+ merge "^1.2.0"
+
+find-parent-dir@^0.3.0:
+ version "0.3.0"
+ resolved "https://registry.yarnpkg.com/find-parent-dir/-/find-parent-dir-0.3.0.tgz#33c44b429ab2b2f0646299c5f9f718f376ff8d54"
+
+find-root@1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/find-root/-/find-root-1.0.0.tgz#962ff211aab25c6520feeeb8d6287f8f6e95807a"
+
find-up@^1.0.0:
version "1.1.2"
resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f"
@@ -800,12 +2583,46 @@ find-up@^1.0.0:
path-exists "^2.0.0"
pinkie-promise "^2.0.0"
+find-up@^2.0.0, find-up@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7"
+ dependencies:
+ locate-path "^2.0.0"
+
+findup-sync@0.4.2:
+ version "0.4.2"
+ resolved "https://registry.yarnpkg.com/findup-sync/-/findup-sync-0.4.2.tgz#a8117d0f73124f5a4546839579fe52d7129fb5e5"
+ dependencies:
+ detect-file "^0.1.0"
+ is-glob "^2.0.1"
+ micromatch "^2.3.7"
+ resolve-dir "^0.1.0"
+
+flat-cache@^1.2.1:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-1.3.0.tgz#d3030b32b38154f4e3b7e9c709f490f7ef97c481"
+ dependencies:
+ circular-json "^0.3.1"
+ del "^2.0.2"
+ graceful-fs "^4.1.2"
+ write "^0.2.1"
+
for-each@^0.3.2:
version "0.3.3"
resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e"
dependencies:
is-callable "^1.1.3"
+for-in@^1.0.1, for-in@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
+
+for-own@^0.1.4:
+ version "0.1.5"
+ resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce"
+ dependencies:
+ for-in "^1.0.1"
+
forever-agent@~0.6.1:
version "0.6.1"
resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91"
@@ -822,14 +2639,34 @@ forwarded@~0.1.2:
version "0.1.2"
resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.1.2.tgz#98c23dab1175657b8c0573e8ceccd91b0ff18c84"
+fragment-cache@^0.2.1:
+ version "0.2.1"
+ resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19"
+ dependencies:
+ map-cache "^0.2.2"
+
fresh@0.5.2:
version "0.5.2"
resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7"
+from@^0.1.7:
+ version "0.1.7"
+ resolved "https://registry.yarnpkg.com/from/-/from-0.1.7.tgz#83c60afc58b9c56997007ed1a768b3ab303a44fe"
+
+fs-access@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/fs-access/-/fs-access-1.0.1.tgz#d6a87f262271cefebec30c553407fb995da8777a"
+ dependencies:
+ null-check "^1.0.0"
+
fs-constants@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad"
+fs-exists-sync@^0.1.0:
+ version "0.1.0"
+ resolved "https://registry.yarnpkg.com/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz#982d6893af918e72d08dec9e8673ff2b5a8d6add"
+
fs-extra@^0.30.0:
version "0.30.0"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-0.30.0.tgz#f233ffcc08d4da7d432daa449776989db1df93f0"
@@ -840,6 +2677,14 @@ fs-extra@^0.30.0:
path-is-absolute "^1.0.0"
rimraf "^2.2.8"
+fs-extra@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-1.0.0.tgz#cd3ce5f7e7cb6145883fcae3191e9877f8587950"
+ dependencies:
+ graceful-fs "^4.1.2"
+ jsonfile "^2.1.0"
+ klaw "^1.0.0"
+
fs-extra@^2.0.0, fs-extra@^2.1.2:
version "2.1.2"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-2.1.2.tgz#046c70163cef9aad46b0e4a7fa467fb22d71de35"
@@ -847,6 +2692,12 @@ fs-extra@^2.0.0, fs-extra@^2.1.2:
graceful-fs "^4.1.2"
jsonfile "^2.1.0"
+fs-minipass@^1.2.5:
+ version "1.2.5"
+ resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.5.tgz#06c277218454ec288df77ada54a03b8702aacb9d"
+ dependencies:
+ minipass "^2.2.1"
+
fs-promise@^2.0.0:
version "2.0.3"
resolved "https://registry.yarnpkg.com/fs-promise/-/fs-promise-2.0.3.tgz#f64e4f854bcf689aa8bddcba268916db3db46854"
@@ -860,6 +2711,13 @@ fs.realpath@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
+fsevents@^1.0.0:
+ version "1.2.4"
+ resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.4.tgz#f41dcb1af2582af3692da36fc55cbd8e1041c426"
+ dependencies:
+ nan "^2.9.2"
+ node-pre-gyp "^0.10.0"
+
fstream@^1.0.2, fstream@^1.0.8:
version "1.0.11"
resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.11.tgz#5c1fb1f117477114f0632a0eb4b71b3cb0fd3171"
@@ -869,16 +2727,63 @@ fstream@^1.0.2, fstream@^1.0.8:
mkdirp ">=0.5 0"
rimraf "2"
+function-bind@^1.0.2, function-bind@^1.1.1:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
+
+functional-red-black-tree@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327"
+
ganache-cli@^6.1.6:
version "6.1.8"
resolved "https://registry.yarnpkg.com/ganache-cli/-/ganache-cli-6.1.8.tgz#49a8a331683a9652183f82ef1378d17e1814fcd3"
dependencies:
source-map-support "^0.5.3"
+gauge@~2.7.3:
+ version "2.7.4"
+ resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7"
+ dependencies:
+ aproba "^1.0.3"
+ console-control-strings "^1.0.0"
+ has-unicode "^2.0.0"
+ object-assign "^4.1.0"
+ signal-exit "^3.0.0"
+ string-width "^1.0.1"
+ strip-ansi "^3.0.1"
+ wide-align "^1.1.0"
+
get-caller-file@^1.0.1:
version "1.0.3"
resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.3.tgz#f978fa4c90d1dfe7ff2d6beda2a515e713bdcf4a"
+get-own-enumerable-property-symbols@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-2.0.1.tgz#5c4ad87f2834c4b9b4e84549dc1e0650fb38c24b"
+
+get-pkg-repo@^1.0.0:
+ version "1.4.0"
+ resolved "https://registry.yarnpkg.com/get-pkg-repo/-/get-pkg-repo-1.4.0.tgz#c73b489c06d80cc5536c2c853f9e05232056972d"
+ dependencies:
+ hosted-git-info "^2.1.4"
+ meow "^3.3.0"
+ normalize-package-data "^2.3.0"
+ parse-github-repo-url "^1.3.0"
+ through2 "^2.0.0"
+
+get-stdin@5.0.1, get-stdin@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-5.0.1.tgz#122e161591e21ff4c52530305693f20e6393a398"
+
+get-stdin@^4.0.1:
+ version "4.0.1"
+ resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe"
+
+get-stdin@^6.0.0:
+ version "6.0.0"
+ resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-6.0.0.tgz#9e09bf712b360ab9225e812048f71fde9c89657b"
+
get-stream@^2.2.0:
version "2.3.1"
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-2.3.1.tgz#5f38f93f346009666ee0150a054167f91bdd95de"
@@ -890,12 +2795,81 @@ get-stream@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14"
+get-value@^2.0.3, get-value@^2.0.6:
+ version "2.0.6"
+ resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28"
+
getpass@^0.1.1:
version "0.1.7"
resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa"
dependencies:
assert-plus "^1.0.0"
+git-raw-commits@^1.3.0, git-raw-commits@^1.3.6:
+ version "1.3.6"
+ resolved "https://registry.yarnpkg.com/git-raw-commits/-/git-raw-commits-1.3.6.tgz#27c35a32a67777c1ecd412a239a6c19d71b95aff"
+ dependencies:
+ dargs "^4.0.1"
+ lodash.template "^4.0.2"
+ meow "^4.0.0"
+ split2 "^2.0.0"
+ through2 "^2.0.0"
+
+git-remote-origin-url@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/git-remote-origin-url/-/git-remote-origin-url-2.0.0.tgz#5282659dae2107145a11126112ad3216ec5fa65f"
+ dependencies:
+ gitconfiglocal "^1.0.0"
+ pify "^2.3.0"
+
+git-semver-tags@^1.3.0, git-semver-tags@^1.3.6:
+ version "1.3.6"
+ resolved "https://registry.yarnpkg.com/git-semver-tags/-/git-semver-tags-1.3.6.tgz#357ea01f7280794fe0927f2806bee6414d2caba5"
+ dependencies:
+ meow "^4.0.0"
+ semver "^5.5.0"
+
+gitconfiglocal@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/gitconfiglocal/-/gitconfiglocal-1.0.0.tgz#41d045f3851a5ea88f03f24ca1c6178114464b9b"
+ dependencies:
+ ini "^1.3.2"
+
+glob-base@^0.3.0:
+ version "0.3.0"
+ resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4"
+ dependencies:
+ glob-parent "^2.0.0"
+ is-glob "^2.0.0"
+
+glob-parent@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28"
+ dependencies:
+ is-glob "^2.0.0"
+
+glob-parent@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae"
+ dependencies:
+ is-glob "^3.1.0"
+ path-dirname "^1.0.0"
+
+glob-to-regexp@^0.3.0:
+ version "0.3.0"
+ resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz#8c5a1494d2066c570cc3bfe4496175acc4d502ab"
+
+glob@7.1.1:
+ version "7.1.1"
+ resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8"
+ dependencies:
+ fs.realpath "^1.0.0"
+ inflight "^1.0.4"
+ inherits "2"
+ minimatch "^3.0.2"
+ once "^1.3.0"
+ path-is-absolute "^1.0.0"
+
glob@7.1.2, glob@^7.0.5:
version "7.1.2"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15"
@@ -917,7 +2891,7 @@ glob@^5.0.15:
once "^1.3.0"
path-is-absolute "^1.0.0"
-glob@^7.0.0:
+glob@^7.0.0, glob@^7.0.3, glob@^7.1.2:
version "7.1.3"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.3.tgz#3960832d3f1574108342dafd3a67b332c0969df1"
dependencies:
@@ -928,6 +2902,28 @@ glob@^7.0.0:
once "^1.3.0"
path-is-absolute "^1.0.0"
+global-dirs@^0.1.0:
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-0.1.1.tgz#b319c0dd4607f353f3be9cca4c72fc148c49f445"
+ dependencies:
+ ini "^1.3.4"
+
+global-modules@^0.2.3:
+ version "0.2.3"
+ resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-0.2.3.tgz#ea5a3bed42c6d6ce995a4f8a1269b5dae223828d"
+ dependencies:
+ global-prefix "^0.1.4"
+ is-windows "^0.2.0"
+
+global-prefix@^0.1.4:
+ version "0.1.5"
+ resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-0.1.5.tgz#8d3bc6b8da3ca8112a160d8d496ff0462bfef78f"
+ dependencies:
+ homedir-polyfill "^1.0.0"
+ ini "^1.3.4"
+ is-windows "^0.2.0"
+ which "^1.2.12"
+
global@~4.3.0:
version "4.3.2"
resolved "https://registry.yarnpkg.com/global/-/global-4.3.2.tgz#e76989268a6c74c38908b1305b10fc0e394e9d0f"
@@ -935,6 +2931,54 @@ global@~4.3.0:
min-document "^2.19.0"
process "~0.5.1"
+globals@^11.0.1, globals@^11.1.0:
+ version "11.7.0"
+ resolved "https://registry.yarnpkg.com/globals/-/globals-11.7.0.tgz#a583faa43055b1aca771914bf68258e2fc125673"
+
+globby@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/globby/-/globby-5.0.0.tgz#ebd84667ca0dbb330b99bcfc68eac2bc54370e0d"
+ dependencies:
+ array-union "^1.0.1"
+ arrify "^1.0.0"
+ glob "^7.0.3"
+ object-assign "^4.0.1"
+ pify "^2.0.0"
+ pinkie-promise "^2.0.0"
+
+globby@^7.0.0:
+ version "7.1.1"
+ resolved "https://registry.yarnpkg.com/globby/-/globby-7.1.1.tgz#fb2ccff9401f8600945dfada97440cca972b8680"
+ dependencies:
+ array-union "^1.0.1"
+ dir-glob "^2.0.0"
+ glob "^7.1.2"
+ ignore "^3.3.5"
+ pify "^3.0.0"
+ slash "^1.0.0"
+
+globby@^8.0.0:
+ version "8.0.1"
+ resolved "https://registry.yarnpkg.com/globby/-/globby-8.0.1.tgz#b5ad48b8aa80b35b814fc1281ecc851f1d2b5b50"
+ dependencies:
+ array-union "^1.0.1"
+ dir-glob "^2.0.0"
+ fast-glob "^2.0.2"
+ glob "^7.1.2"
+ ignore "^3.3.5"
+ pify "^3.0.0"
+ slash "^1.0.0"
+
+globjoin@^0.1.4:
+ version "0.1.4"
+ resolved "https://registry.yarnpkg.com/globjoin/-/globjoin-0.1.4.tgz#2f4494ac8919e3767c5cbb691e9f463324285d43"
+
+gonzales-pe@^4.0.3, gonzales-pe@^4.2.3:
+ version "4.2.3"
+ resolved "https://registry.yarnpkg.com/gonzales-pe/-/gonzales-pe-4.2.3.tgz#41091703625433285e0aee3aa47829fc1fbeb6f2"
+ dependencies:
+ minimist "1.1.x"
+
got@7.1.0, got@^7.1.0:
version "7.1.0"
resolved "https://registry.yarnpkg.com/got/-/got-7.1.0.tgz#05450fd84094e6bbea56f451a43a9c289166385a"
@@ -954,7 +2998,7 @@ got@7.1.0, got@^7.1.0:
url-parse-lax "^1.0.0"
url-to-options "^1.0.1"
-graceful-fs@^4.1.10, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9:
+graceful-fs@^4.1.10, graceful-fs@^4.1.2, graceful-fs@^4.1.3, graceful-fs@^4.1.6, graceful-fs@^4.1.9:
version "4.1.11"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
@@ -970,7 +3014,7 @@ growl@1.10.3:
version "1.10.5"
resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e"
-handlebars@^4.0.1:
+handlebars@^4.0.1, handlebars@^4.0.2:
version "4.0.12"
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.12.tgz#2c15c8a96d46da5e266700518ba8cb8d919d5bc5"
dependencies:
@@ -998,6 +3042,12 @@ har-validator@~5.1.0:
ajv "^5.3.0"
har-schema "^2.0.0"
+has-ansi@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91"
+ dependencies:
+ ansi-regex "^2.0.0"
+
has-flag@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa"
@@ -1006,6 +3056,10 @@ has-flag@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51"
+has-flag@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd"
+
has-symbol-support-x@^1.4.1:
version "1.4.2"
resolved "https://registry.yarnpkg.com/has-symbol-support-x/-/has-symbol-support-x-1.4.2.tgz#1409f98bc00247da45da67cee0a36f282ff26455"
@@ -1016,6 +3070,43 @@ has-to-string-tag-x@^1.2.0:
dependencies:
has-symbol-support-x "^1.4.1"
+has-unicode@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9"
+
+has-value@^0.3.1:
+ version "0.3.1"
+ resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f"
+ dependencies:
+ get-value "^2.0.3"
+ has-values "^0.1.4"
+ isobject "^2.0.0"
+
+has-value@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177"
+ dependencies:
+ get-value "^2.0.6"
+ has-values "^1.0.0"
+ isobject "^3.0.0"
+
+has-values@^0.1.4:
+ version "0.1.4"
+ resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771"
+
+has-values@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f"
+ dependencies:
+ is-number "^3.0.0"
+ kind-of "^4.0.0"
+
+has@^1.0.1, has@^1.0.3:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796"
+ dependencies:
+ function-bind "^1.1.1"
+
hash-base@^3.0.0:
version "3.0.4"
resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.0.4.tgz#5fc8686847ecd73499403319a6b0a3f3f6ae4918"
@@ -1042,10 +3133,31 @@ hmac-drbg@^1.0.0:
minimalistic-assert "^1.0.0"
minimalistic-crypto-utils "^1.0.1"
+homedir-polyfill@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz#4c2bbc8a758998feebf5ed68580f76d46768b4bc"
+ dependencies:
+ parse-passwd "^1.0.0"
+
hosted-git-info@^2.1.4:
version "2.7.1"
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.7.1.tgz#97f236977bd6e125408930ff6de3eec6281ec047"
+html-tags@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/html-tags/-/html-tags-2.0.0.tgz#10b30a386085f43cede353cc8fa7cb0deeea668b"
+
+htmlparser2@^3.9.2:
+ version "3.9.2"
+ resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-3.9.2.tgz#1bdf87acca0f3f9e53fa4fcceb0f4b4cbb00b338"
+ dependencies:
+ domelementtype "^1.3.0"
+ domhandler "^2.3.0"
+ domutils "^1.5.1"
+ entities "^1.1.1"
+ inherits "^2.0.1"
+ readable-stream "^2.0.2"
+
http-errors@1.6.2:
version "1.6.2"
resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.2.tgz#0a002cc85707192a7e7946ceedc11155f60ec736"
@@ -1076,6 +3188,14 @@ http-signature@~1.2.0:
jsprim "^1.2.2"
sshpk "^1.7.0"
+husky@^0.14.3:
+ version "0.14.3"
+ resolved "https://registry.yarnpkg.com/husky/-/husky-0.14.3.tgz#c69ed74e2d2779769a17ba8399b54ce0b63c12c3"
+ dependencies:
+ is-ci "^1.0.10"
+ normalize-path "^1.0.0"
+ strip-indent "^2.0.0"
+
iconv-lite@0.4.19:
version "0.4.19"
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b"
@@ -1086,10 +3206,60 @@ iconv-lite@0.4.23:
dependencies:
safer-buffer ">= 2.1.2 < 3"
+iconv-lite@^0.4.17, iconv-lite@^0.4.4, iconv-lite@~0.4.13:
+ version "0.4.24"
+ resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"
+ dependencies:
+ safer-buffer ">= 2.1.2 < 3"
+
ieee754@^1.1.4:
version "1.1.12"
resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.12.tgz#50bf24e5b9c8bb98af4964c941cdb0918da7b60b"
+ignore-walk@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.1.tgz#a83e62e7d272ac0e3b551aaa82831a19b69f82f8"
+ dependencies:
+ minimatch "^3.0.4"
+
+ignore@^3.3.3, ignore@^3.3.5, ignore@^3.3.6:
+ version "3.3.10"
+ resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.10.tgz#0a97fb876986e8081c631160f8f9f389157f0043"
+
+ignore@^4.0.0:
+ version "4.0.6"
+ resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc"
+
+import-lazy@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-3.1.0.tgz#891279202c8a2280fdbd6674dbd8da1a1dfc67cc"
+
+import-modules@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/import-modules/-/import-modules-1.1.0.tgz#748db79c5cc42bb9701efab424f894e72600e9dc"
+
+imurmurhash@^0.1.4:
+ version "0.1.4"
+ resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"
+
+in-publish@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/in-publish/-/in-publish-2.0.0.tgz#e20ff5e3a2afc2690320b6dc552682a9c7fadf51"
+
+indent-string@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-2.1.0.tgz#8e2d48348742121b4a8218b7a137e9a52049dc80"
+ dependencies:
+ repeating "^2.0.0"
+
+indent-string@^3.0.0:
+ version "3.2.0"
+ resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-3.2.0.tgz#4a5fd6d27cc332f37e5419a504dbb837105c9289"
+
+indexes-of@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/indexes-of/-/indexes-of-1.0.1.tgz#f30f716c8e2bd346c7b67d3df3915566a7c05607"
+
inflight@^1.0.4:
version "1.0.6"
resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
@@ -1101,10 +3271,93 @@ inherits@2, inherits@2.0.3, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.0, i
version "2.0.3"
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
+ini@^1.3.2, ini@^1.3.4, ini@~1.3.0:
+ version "1.3.5"
+ resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927"
+
+inquirer@0.11.0:
+ version "0.11.0"
+ resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-0.11.0.tgz#7448bfa924092af311d47173bbab990cae2bb027"
+ dependencies:
+ ansi-escapes "^1.1.0"
+ ansi-regex "^2.0.0"
+ chalk "^1.0.0"
+ cli-cursor "^1.0.1"
+ cli-width "^1.0.1"
+ figures "^1.3.5"
+ lodash "^3.3.1"
+ readline2 "^1.0.1"
+ run-async "^0.1.0"
+ rx-lite "^3.1.2"
+ strip-ansi "^3.0.0"
+ through "^2.3.6"
+
+inquirer@1.2.3:
+ version "1.2.3"
+ resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-1.2.3.tgz#4dec6f32f37ef7bb0b2ed3f1d1a5c3f545074918"
+ dependencies:
+ ansi-escapes "^1.1.0"
+ chalk "^1.0.0"
+ cli-cursor "^1.0.1"
+ cli-width "^2.0.0"
+ external-editor "^1.1.0"
+ figures "^1.3.5"
+ lodash "^4.3.0"
+ mute-stream "0.0.6"
+ pinkie-promise "^2.0.0"
+ run-async "^2.2.0"
+ rx "^4.1.0"
+ string-width "^1.0.1"
+ strip-ansi "^3.0.0"
+ through "^2.3.6"
+
+inquirer@3.0.6:
+ version "3.0.6"
+ resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-3.0.6.tgz#e04aaa9d05b7a3cb9b0f407d04375f0447190347"
+ dependencies:
+ ansi-escapes "^1.1.0"
+ chalk "^1.0.0"
+ cli-cursor "^2.1.0"
+ cli-width "^2.0.0"
+ external-editor "^2.0.1"
+ figures "^2.0.0"
+ lodash "^4.3.0"
+ mute-stream "0.0.7"
+ run-async "^2.2.0"
+ rx "^4.1.0"
+ string-width "^2.0.0"
+ strip-ansi "^3.0.0"
+ through "^2.3.6"
+
+inquirer@^3.0.6:
+ version "3.3.0"
+ resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-3.3.0.tgz#9dd2f2ad765dcab1ff0443b491442a20ba227dc9"
+ dependencies:
+ ansi-escapes "^3.0.0"
+ chalk "^2.0.0"
+ cli-cursor "^2.1.0"
+ cli-width "^2.0.0"
+ external-editor "^2.0.4"
+ figures "^2.0.0"
+ lodash "^4.3.0"
+ mute-stream "0.0.7"
+ run-async "^2.2.0"
+ rx-lite "^4.0.8"
+ rx-lite-aggregates "^4.0.8"
+ string-width "^2.1.0"
+ strip-ansi "^4.0.0"
+ through "^2.3.6"
+
interpret@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.1.0.tgz#7ed1b1410c6a0e0f78cf95d3b8440c63f78b8614"
+invariant@^2.2.0:
+ version "2.2.4"
+ resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"
+ dependencies:
+ loose-envify "^1.0.0"
+
invert-kv@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6"
@@ -1113,54 +3366,289 @@ ipaddr.js@1.6.0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.6.0.tgz#e3fa357b773da619f26e95f049d055c72796f86b"
+is-accessor-descriptor@^0.1.6:
+ version "0.1.6"
+ resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6"
+ dependencies:
+ kind-of "^3.0.2"
+
+is-accessor-descriptor@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656"
+ dependencies:
+ kind-of "^6.0.0"
+
+is-alphabetical@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/is-alphabetical/-/is-alphabetical-1.0.2.tgz#1fa6e49213cb7885b75d15862fb3f3d96c884f41"
+
+is-alphanumeric@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/is-alphanumeric/-/is-alphanumeric-1.0.0.tgz#4a9cef71daf4c001c1d81d63d140cf53fd6889f4"
+
+is-alphanumerical@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/is-alphanumerical/-/is-alphanumerical-1.0.2.tgz#1138e9ae5040158dc6ff76b820acd6b7a181fd40"
+ dependencies:
+ is-alphabetical "^1.0.0"
+ is-decimal "^1.0.0"
+
is-arrayish@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"
+is-binary-path@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898"
+ dependencies:
+ binary-extensions "^1.0.0"
+
+is-buffer@^1.1.4, is-buffer@^1.1.5:
+ version "1.1.6"
+ resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"
+
is-builtin-module@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe"
dependencies:
builtin-modules "^1.0.0"
-is-callable@^1.1.3:
+is-callable@^1.1.1, is-callable@^1.1.3:
version "1.1.4"
resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.4.tgz#1e1adf219e1eeb684d691f9d6a05ff0d30a24d75"
-is-fullwidth-code-point@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb"
+is-ci@^1.0.10:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.2.0.tgz#3f4a08d6303a09882cef3f0fb97439c5f5ce2d53"
+ dependencies:
+ ci-info "^1.3.0"
+
+is-data-descriptor@^0.1.4:
+ version "0.1.4"
+ resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56"
+ dependencies:
+ kind-of "^3.0.2"
+
+is-data-descriptor@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7"
+ dependencies:
+ kind-of "^6.0.0"
+
+is-date-object@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16"
+
+is-decimal@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/is-decimal/-/is-decimal-1.0.2.tgz#894662d6a8709d307f3a276ca4339c8fa5dff0ff"
+
+is-descriptor@^0.1.0:
+ version "0.1.6"
+ resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca"
+ dependencies:
+ is-accessor-descriptor "^0.1.6"
+ is-data-descriptor "^0.1.4"
+ kind-of "^5.0.0"
+
+is-descriptor@^1.0.0, is-descriptor@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec"
+ dependencies:
+ is-accessor-descriptor "^1.0.0"
+ is-data-descriptor "^1.0.0"
+ kind-of "^6.0.2"
+
+is-directory@^0.3.1:
+ version "0.3.1"
+ resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1"
+
+is-dotfile@^1.0.0:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1"
+
+is-equal-shallow@^0.1.3:
+ version "0.1.3"
+ resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534"
+ dependencies:
+ is-primitive "^2.0.0"
+
+is-extendable@^0.1.0, is-extendable@^0.1.1:
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89"
+
+is-extendable@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4"
+ dependencies:
+ is-plain-object "^2.0.4"
+
+is-extglob@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0"
+
+is-extglob@^2.1.0, is-extglob@^2.1.1:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"
+
+is-finite@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa"
+ dependencies:
+ number-is-nan "^1.0.0"
+
+is-fullwidth-code-point@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb"
dependencies:
number-is-nan "^1.0.0"
+is-fullwidth-code-point@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f"
+
is-function@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/is-function/-/is-function-1.0.1.tgz#12cfb98b65b57dd3d193a3121f5f6e2f437602b5"
+is-glob@^2.0.0, is-glob@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863"
+ dependencies:
+ is-extglob "^1.0.0"
+
+is-glob@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a"
+ dependencies:
+ is-extglob "^2.1.0"
+
+is-glob@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.0.tgz#9521c76845cc2610a85203ddf080a958c2ffabc0"
+ dependencies:
+ is-extglob "^2.1.1"
+
is-hex-prefixed@1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/is-hex-prefixed/-/is-hex-prefixed-1.0.0.tgz#7d8d37e6ad77e5d127148913c573e082d777f554"
+is-hexadecimal@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/is-hexadecimal/-/is-hexadecimal-1.0.2.tgz#b6e710d7d07bb66b98cb8cece5c9b4921deeb835"
+
is-natural-number@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/is-natural-number/-/is-natural-number-4.0.1.tgz#ab9d76e1db4ced51e35de0c72ebecf09f734cde8"
+is-number@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f"
+ dependencies:
+ kind-of "^3.0.2"
+
+is-number@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195"
+ dependencies:
+ kind-of "^3.0.2"
+
+is-number@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff"
+
+is-obj@^1.0.0, is-obj@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f"
+
is-object@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/is-object/-/is-object-1.0.1.tgz#8952688c5ec2ffd6b03ecc85e769e02903083470"
+is-observable@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/is-observable/-/is-observable-0.2.0.tgz#b361311d83c6e5d726cabf5e250b0237106f5ae2"
+ dependencies:
+ symbol-observable "^0.2.2"
+
+is-path-cwd@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz#d225ec23132e89edd38fda767472e62e65f1106d"
+
+is-path-in-cwd@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz#5ac48b345ef675339bd6c7a48a912110b241cf52"
+ dependencies:
+ is-path-inside "^1.0.0"
+
+is-path-inside@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.1.tgz#8ef5b7de50437a3fdca6b4e865ef7aa55cb48036"
+ dependencies:
+ path-is-inside "^1.0.1"
+
is-plain-obj@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e"
+is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4:
+ version "2.0.4"
+ resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677"
+ dependencies:
+ isobject "^3.0.1"
+
+is-posix-bracket@^0.1.0:
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4"
+
+is-primitive@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575"
+
+is-promise@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa"
+
+is-regex@^1.0.4:
+ version "1.0.4"
+ resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491"
+ dependencies:
+ has "^1.0.1"
+
+is-regexp@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069"
+
+is-resolvable@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.1.0.tgz#fb18f87ce1feb925169c9a407c19318a3206ed88"
+
is-retry-allowed@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz#11a060568b67339444033d0125a61a20d564fb34"
-is-stream@^1.0.0, is-stream@^1.1.0:
+is-stream@^1.0.0, is-stream@^1.0.1, is-stream@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44"
+is-subset@^0.1.1:
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/is-subset/-/is-subset-0.1.1.tgz#8a59117d932de1de00f245fcdd39ce43f1e939a6"
+
+is-supported-regexp-flag@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/is-supported-regexp-flag/-/is-supported-regexp-flag-1.0.1.tgz#21ee16518d2c1dd3edd3e9a0d57e50207ac364ca"
+
+is-symbol@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.1.tgz#3cc59f00025194b6ab2e38dbae6689256b660572"
+
+is-text-path@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/is-text-path/-/is-text-path-1.0.1.tgz#4e1aa0fb51bfbcb3e92688001397202c1775b66e"
+ dependencies:
+ text-extensions "^1.0.0"
+
is-typedarray@^1.0.0, is-typedarray@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a"
@@ -1169,7 +3657,23 @@ is-utf8@^0.2.0:
version "0.2.1"
resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72"
-isarray@^1.0.0, isarray@~1.0.0:
+is-whitespace-character@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/is-whitespace-character/-/is-whitespace-character-1.0.2.tgz#ede53b4c6f6fb3874533751ec9280d01928d03ed"
+
+is-windows@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-0.2.0.tgz#de1aa6d63ea29dd248737b69f1ff8b8002d2108c"
+
+is-windows@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d"
+
+is-word-character@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/is-word-character/-/is-word-character-1.0.2.tgz#46a5dac3f2a1840898b91e576cd40d493f3ae553"
+
+isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
@@ -1177,6 +3681,16 @@ isexe@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
+isobject@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89"
+ dependencies:
+ isarray "1.0.0"
+
+isobject@^3.0.0, isobject@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df"
+
isstream@~0.1.2:
version "0.1.2"
resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
@@ -1207,11 +3721,44 @@ isurl@^1.0.0-alpha5:
has-to-string-tag-x "^1.2.0"
is-object "^1.0.1"
+jest-docblock@^21.0.0:
+ version "21.2.0"
+ resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-21.2.0.tgz#51529c3b30d5fd159da60c27ceedc195faf8d414"
+
+jest-get-type@^21.2.0:
+ version "21.2.0"
+ resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-21.2.0.tgz#f6376ab9db4b60d81e39f30749c6c466f40d4a23"
+
+jest-validate@^21.1.0:
+ version "21.2.1"
+ resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-21.2.1.tgz#cc0cbca653cd54937ba4f2a111796774530dd3c7"
+ dependencies:
+ chalk "^2.0.1"
+ jest-get-type "^21.2.0"
+ leven "^2.1.0"
+ pretty-format "^21.2.1"
+
+js-base64@^2.1.9:
+ version "2.4.9"
+ resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.4.9.tgz#748911fb04f48a60c4771b375cac45a80df11c03"
+
js-sha3@^0.3.1:
version "0.3.1"
resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.3.1.tgz#86122802142f0828502a0d1dee1d95e253bb0243"
-js-yaml@3.x, js-yaml@^3.11.0:
+js-string-escape@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/js-string-escape/-/js-string-escape-1.0.1.tgz#e2625badbc0d67c7533e9edc1068c587ae4137ef"
+
+js-tokens@^3.0.0, js-tokens@^3.0.2:
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b"
+
+"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
+
+js-yaml@3.x, js-yaml@^3.11.0, js-yaml@^3.9.0, js-yaml@^3.9.1:
version "3.12.0"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.12.0.tgz#eaed656ec8344f10f527c6bfa1b6e2244de167d1"
dependencies:
@@ -1222,24 +3769,52 @@ jsbn@~0.1.0:
version "0.1.1"
resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513"
+jsesc@^2.5.1:
+ version "2.5.1"
+ resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.1.tgz#e421a2a8e20d6b0819df28908f782526b96dd1fe"
+
+json-parse-better-errors@^1.0.1:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9"
+
json-schema-traverse@^0.3.0:
version "0.3.1"
resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz#349a6d44c53a51de89b40805c5d5e59b417d3340"
+json-schema-traverse@^0.4.1:
+ version "0.4.1"
+ resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660"
+
json-schema@0.2.3:
version "0.2.3"
resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13"
-json-stringify-safe@~5.0.1:
+json-stable-stringify-without-jsonify@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651"
+
+json-stringify-safe@^5.0.1, json-stringify-safe@~5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb"
+json5@^0.5.0:
+ version "0.5.1"
+ resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821"
+
jsonfile@^2.1.0:
version "2.4.0"
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-2.4.0.tgz#3736a2b428b87bbda0cc83b53fa3d633a35c2ae8"
optionalDependencies:
graceful-fs "^4.1.6"
+jsonify@~0.0.0:
+ version "0.0.0"
+ resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73"
+
+jsonparse@^1.2.0:
+ version "1.3.1"
+ resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280"
+
jsprim@^1.2.2:
version "1.4.1"
resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2"
@@ -1249,6 +3824,12 @@ jsprim@^1.2.2:
json-schema "0.2.3"
verror "1.10.0"
+jsx-ast-utils@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-2.0.1.tgz#e801b1b39985e20fffc87b40e3748080e2dcac7f"
+ dependencies:
+ array-includes "^3.0.3"
+
keccakjs@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/keccakjs/-/keccakjs-0.2.1.tgz#1d633af907ef305bbf9f2fa616d56c44561dfa4d"
@@ -1256,12 +3837,73 @@ keccakjs@^0.2.1:
browserify-sha3 "^0.0.1"
sha3 "^1.1.0"
+kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0:
+ version "3.2.2"
+ resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64"
+ dependencies:
+ is-buffer "^1.1.5"
+
+kind-of@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57"
+ dependencies:
+ is-buffer "^1.1.5"
+
+kind-of@^5.0.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d"
+
+kind-of@^6.0.0, kind-of@^6.0.2:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051"
+
klaw@^1.0.0:
version "1.3.1"
resolved "https://registry.yarnpkg.com/klaw/-/klaw-1.3.1.tgz#4088433b46b3b1ba259d78785d8e96f73ba02439"
optionalDependencies:
graceful-fs "^4.1.9"
+kleros-scripts@^0.10.0:
+ version "0.10.0"
+ resolved "https://registry.yarnpkg.com/kleros-scripts/-/kleros-scripts-0.10.0.tgz#4c9dfbe6f7e177a05428ec20ab25d02c055fb49b"
+ dependencies:
+ "@commitlint/cli" "^6.1.0"
+ "@commitlint/config-conventional" "^6.1.0"
+ "@commitlint/prompt" "^6.1.0"
+ babel-eslint "^8.2.1"
+ commitizen "^2.9.6"
+ cross-spawn "^6.0.4"
+ eslint "^4.17.0"
+ eslint-config-prettier "^2.9.0"
+ eslint-config-react-app "^2.1.0"
+ eslint-config-standard "^11.0.0-beta.0"
+ eslint-config-standard-jsx "^4.0.2"
+ eslint-plugin-flowtype "^2.43.0"
+ eslint-plugin-import "^2.8.0"
+ eslint-plugin-jsx-a11y "^6.0.3"
+ eslint-plugin-node "^6.0.0"
+ eslint-plugin-prettier "^2.6.0"
+ eslint-plugin-promise "^3.6.0"
+ eslint-plugin-react "^7.6.1"
+ eslint-plugin-standard "^3.0.1"
+ eslint-plugin-unicorn "^3.0.1"
+ lint-staged "^6.1.0"
+ prettier "^1.13.7"
+ solium "^1.1.8"
+ stylelint "^8.4.0"
+ stylelint-config-standard "^18.0.0"
+ stylelint-order "^0.8.0"
+ stylelint-scss "^2.3.0"
+ stylelint-selector-bem-pattern "^2.0.0"
+
+known-css-properties@^0.5.0:
+ version "0.5.0"
+ resolved "https://registry.yarnpkg.com/known-css-properties/-/known-css-properties-0.5.0.tgz#6ff66943ed4a5b55657ee095779a91f4536f8084"
+
+known-css-properties@^0.6.0:
+ version "0.6.1"
+ resolved "https://registry.yarnpkg.com/known-css-properties/-/known-css-properties-0.6.1.tgz#31b5123ad03d8d1a3f36bd4155459c981173478b"
+
lcid@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835"
@@ -1272,13 +3914,90 @@ lcov-parse@^0.0.10:
version "0.0.10"
resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3"
-levn@~0.3.0:
+leven@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580"
+
+levn@^0.3.0, levn@~0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee"
dependencies:
prelude-ls "~1.1.2"
type-check "~0.3.2"
+lint-staged@^6.1.0:
+ version "6.1.1"
+ resolved "http://registry.npmjs.org/lint-staged/-/lint-staged-6.1.1.tgz#cd08c4d9b8ccc2d37198d1c47ce77d22be6cf324"
+ dependencies:
+ app-root-path "^2.0.0"
+ chalk "^2.1.0"
+ commander "^2.11.0"
+ cosmiconfig "^4.0.0"
+ debug "^3.1.0"
+ dedent "^0.7.0"
+ execa "^0.8.0"
+ find-parent-dir "^0.3.0"
+ is-glob "^4.0.0"
+ jest-validate "^21.1.0"
+ listr "^0.13.0"
+ lodash "^4.17.4"
+ log-symbols "^2.0.0"
+ minimatch "^3.0.0"
+ npm-which "^3.0.1"
+ p-map "^1.1.1"
+ path-is-inside "^1.0.2"
+ pify "^3.0.0"
+ staged-git-files "1.0.0"
+ stringify-object "^3.2.0"
+
+listr-silent-renderer@^1.1.1:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/listr-silent-renderer/-/listr-silent-renderer-1.1.1.tgz#924b5a3757153770bf1a8e3fbf74b8bbf3f9242e"
+
+listr-update-renderer@^0.4.0:
+ version "0.4.0"
+ resolved "https://registry.yarnpkg.com/listr-update-renderer/-/listr-update-renderer-0.4.0.tgz#344d980da2ca2e8b145ba305908f32ae3f4cc8a7"
+ dependencies:
+ chalk "^1.1.3"
+ cli-truncate "^0.2.1"
+ elegant-spinner "^1.0.1"
+ figures "^1.7.0"
+ indent-string "^3.0.0"
+ log-symbols "^1.0.2"
+ log-update "^1.0.2"
+ strip-ansi "^3.0.1"
+
+listr-verbose-renderer@^0.4.0:
+ version "0.4.1"
+ resolved "https://registry.yarnpkg.com/listr-verbose-renderer/-/listr-verbose-renderer-0.4.1.tgz#8206f4cf6d52ddc5827e5fd14989e0e965933a35"
+ dependencies:
+ chalk "^1.1.3"
+ cli-cursor "^1.0.2"
+ date-fns "^1.27.2"
+ figures "^1.7.0"
+
+listr@^0.13.0:
+ version "0.13.0"
+ resolved "https://registry.yarnpkg.com/listr/-/listr-0.13.0.tgz#20bb0ba30bae660ee84cc0503df4be3d5623887d"
+ dependencies:
+ chalk "^1.1.3"
+ cli-truncate "^0.2.1"
+ figures "^1.7.0"
+ indent-string "^2.1.0"
+ is-observable "^0.2.0"
+ is-promise "^2.1.0"
+ is-stream "^1.1.0"
+ listr-silent-renderer "^1.1.1"
+ listr-update-renderer "^0.4.0"
+ listr-verbose-renderer "^0.4.0"
+ log-symbols "^1.0.2"
+ log-update "^1.0.2"
+ ora "^0.2.3"
+ p-map "^1.1.1"
+ rxjs "^5.4.2"
+ stream-to-observable "^0.2.0"
+ strip-ansi "^3.0.1"
+
load-json-file@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0"
@@ -1289,28 +4008,215 @@ load-json-file@^1.0.0:
pinkie-promise "^2.0.0"
strip-bom "^2.0.0"
+load-json-file@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8"
+ dependencies:
+ graceful-fs "^4.1.2"
+ parse-json "^2.2.0"
+ pify "^2.0.0"
+ strip-bom "^3.0.0"
+
+load-json-file@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-4.0.0.tgz#2f5f45ab91e33216234fd53adab668eb4ec0993b"
+ dependencies:
+ graceful-fs "^4.1.2"
+ parse-json "^4.0.0"
+ pify "^3.0.0"
+ strip-bom "^3.0.0"
+
+locate-path@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e"
+ dependencies:
+ p-locate "^2.0.0"
+ path-exists "^3.0.0"
+
+lodash._reinterpolate@~3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d"
+
lodash.assign@^4.0.3, lodash.assign@^4.0.6:
version "4.2.0"
resolved "https://registry.yarnpkg.com/lodash.assign/-/lodash.assign-4.2.0.tgz#0d99f3ccd7a6d261d19bdaeb9245005d285808e7"
-lodash@^4.17.10:
+lodash.camelcase@4.3.0, lodash.camelcase@^4.1.1:
+ version "4.3.0"
+ resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6"
+
+lodash.get@^4.4.2:
+ version "4.4.2"
+ resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99"
+
+lodash.kebabcase@4.1.1, lodash.kebabcase@^4.0.1:
+ version "4.1.1"
+ resolved "https://registry.yarnpkg.com/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz#8489b1cb0d29ff88195cceca448ff6d6cc295c36"
+
+lodash.map@^4.5.1:
+ version "4.6.0"
+ resolved "https://registry.yarnpkg.com/lodash.map/-/lodash.map-4.6.0.tgz#771ec7839e3473d9c4cde28b19394c3562f4f6d3"
+
+lodash.merge@4.6.1:
+ version "4.6.1"
+ resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.1.tgz#adc25d9cb99b9391c59624f379fbba60d7111d54"
+
+lodash.mergewith@4.6.1:
+ version "4.6.1"
+ resolved "https://registry.yarnpkg.com/lodash.mergewith/-/lodash.mergewith-4.6.1.tgz#639057e726c3afbdb3e7d42741caa8d6e4335927"
+
+lodash.omit@4.5.0:
+ version "4.5.0"
+ resolved "https://registry.yarnpkg.com/lodash.omit/-/lodash.omit-4.5.0.tgz#6eb19ae5a1ee1dd9df0b969e66ce0b7fa30b5e60"
+
+lodash.pick@4.4.0:
+ version "4.4.0"
+ resolved "https://registry.yarnpkg.com/lodash.pick/-/lodash.pick-4.4.0.tgz#52f05610fff9ded422611441ed1fc123a03001b3"
+
+lodash.snakecase@4.1.1, lodash.snakecase@^4.0.1:
+ version "4.1.1"
+ resolved "https://registry.yarnpkg.com/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz#39d714a35357147837aefd64b5dcbb16becd8f8d"
+
+lodash.startcase@4.4.0:
+ version "4.4.0"
+ resolved "https://registry.yarnpkg.com/lodash.startcase/-/lodash.startcase-4.4.0.tgz#9436e34ed26093ed7ffae1936144350915d9add8"
+
+lodash.template@^4.0.2:
+ version "4.4.0"
+ resolved "https://registry.yarnpkg.com/lodash.template/-/lodash.template-4.4.0.tgz#e73a0385c8355591746e020b99679c690e68fba0"
+ dependencies:
+ lodash._reinterpolate "~3.0.0"
+ lodash.templatesettings "^4.0.0"
+
+lodash.templatesettings@^4.0.0:
+ version "4.1.0"
+ resolved "https://registry.yarnpkg.com/lodash.templatesettings/-/lodash.templatesettings-4.1.0.tgz#2b4d4e95ba440d915ff08bc899e4553666713316"
+ dependencies:
+ lodash._reinterpolate "~3.0.0"
+
+lodash.topairs@4.3.0:
+ version "4.3.0"
+ resolved "https://registry.yarnpkg.com/lodash.topairs/-/lodash.topairs-4.3.0.tgz#3b6deaa37d60fb116713c46c5f17ea190ec48d64"
+
+lodash.upperfirst@4.3.1, lodash.upperfirst@^4.2.0:
+ version "4.3.1"
+ resolved "https://registry.yarnpkg.com/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz#1365edf431480481ef0d1c68957a5ed99d49f7ce"
+
+lodash.zip@^4.2.0:
+ version "4.2.0"
+ resolved "https://registry.yarnpkg.com/lodash.zip/-/lodash.zip-4.2.0.tgz#ec6662e4896408ed4ab6c542a3990b72cc080020"
+
+lodash@4.17.5:
+ version "4.17.5"
+ resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511"
+
+lodash@>=3.10.0, lodash@^4.13.1, lodash@^4.14.2, lodash@^4.17.10, lodash@^4.17.4, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.3.0, lodash@^4.5.1:
version "4.17.10"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7"
+lodash@^3.10.1, lodash@^3.3.1:
+ version "3.10.1"
+ resolved "http://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6"
+
log-driver@^1.2.7:
version "1.2.7"
resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.7.tgz#63b95021f0702fedfa2c9bb0a24e7797d71871d8"
+log-symbols@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-1.0.2.tgz#376ff7b58ea3086a0f09facc74617eca501e1a18"
+ dependencies:
+ chalk "^1.0.0"
+
+log-symbols@^2.0.0:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a"
+ dependencies:
+ chalk "^2.0.1"
+
+log-update@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/log-update/-/log-update-1.0.2.tgz#19929f64c4093d2d2e7075a1dad8af59c296b8d1"
+ dependencies:
+ ansi-escapes "^1.0.0"
+ cli-cursor "^1.0.2"
+
+longest-streak@^2.0.1:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/longest-streak/-/longest-streak-2.0.2.tgz#2421b6ba939a443bb9ffebf596585a50b4c38e2e"
+
+longest@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097"
+
+loose-envify@^1.0.0, loose-envify@^1.3.1:
+ version "1.4.0"
+ resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
+ dependencies:
+ js-tokens "^3.0.0 || ^4.0.0"
+
+loud-rejection@^1.0.0:
+ version "1.6.0"
+ resolved "https://registry.yarnpkg.com/loud-rejection/-/loud-rejection-1.6.0.tgz#5b46f80147edee578870f086d04821cf998e551f"
+ dependencies:
+ currently-unhandled "^0.4.1"
+ signal-exit "^3.0.0"
+
lowercase-keys@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f"
+lru-cache@^4.0.1:
+ version "4.1.3"
+ resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.3.tgz#a1175cf3496dfc8436c156c334b4955992bce69c"
+ dependencies:
+ pseudomap "^1.0.2"
+ yallist "^2.1.2"
+
make-dir@^1.0.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c"
dependencies:
pify "^3.0.0"
+map-cache@^0.2.2:
+ version "0.2.2"
+ resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf"
+
+map-obj@^1.0.0, map-obj@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d"
+
+map-obj@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-2.0.0.tgz#a65cd29087a92598b8791257a523e021222ac1f9"
+
+map-stream@0.0.7:
+ version "0.0.7"
+ resolved "https://registry.yarnpkg.com/map-stream/-/map-stream-0.0.7.tgz#8a1f07896d82b10926bd3744a2420009f88974a8"
+
+map-visit@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f"
+ dependencies:
+ object-visit "^1.0.0"
+
+markdown-escapes@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/markdown-escapes/-/markdown-escapes-1.0.2.tgz#e639cbde7b99c841c0bacc8a07982873b46d2122"
+
+markdown-table@^1.1.0:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/markdown-table/-/markdown-table-1.1.2.tgz#c78db948fa879903a41bce522e3b96f801c63786"
+
+math-random@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/math-random/-/math-random-1.0.1.tgz#8b3aac588b8a66e4975e3cdea67f7bb329601fac"
+
+mathml-tag-names@^2.0.1:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/mathml-tag-names/-/mathml-tag-names-2.1.0.tgz#490b70e062ee24636536e3d9481e333733d00f2c"
+
md5.js@^1.3.4:
version "1.3.4"
resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.4.tgz#e9bdbde94a20a5ac18b04340fc5764d5b09d901d"
@@ -1318,22 +4224,135 @@ md5.js@^1.3.4:
hash-base "^3.0.0"
inherits "^2.0.1"
+mdast-util-compact@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/mdast-util-compact/-/mdast-util-compact-1.0.2.tgz#c12ebe16fffc84573d3e19767726de226e95f649"
+ dependencies:
+ unist-util-visit "^1.1.0"
+
media-typer@0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748"
+mem@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/mem/-/mem-1.1.0.tgz#5edd52b485ca1d900fe64895505399a0dfa45f76"
+ dependencies:
+ mimic-fn "^1.0.0"
+
memorystream@^0.3.1:
version "0.3.1"
resolved "https://registry.yarnpkg.com/memorystream/-/memorystream-0.3.1.tgz#86d7090b30ce455d63fbae12dda51a47ddcaf9b2"
+meow@4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/meow/-/meow-4.0.0.tgz#fd5855dd008db5b92c552082db1c307cba20b29d"
+ dependencies:
+ camelcase-keys "^4.0.0"
+ decamelize-keys "^1.0.0"
+ loud-rejection "^1.0.0"
+ minimist "^1.1.3"
+ minimist-options "^3.0.1"
+ normalize-package-data "^2.3.4"
+ read-pkg-up "^3.0.0"
+ redent "^2.0.0"
+ trim-newlines "^2.0.0"
+
+meow@^3.3.0:
+ version "3.7.0"
+ resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb"
+ dependencies:
+ camelcase-keys "^2.0.0"
+ decamelize "^1.1.2"
+ loud-rejection "^1.0.0"
+ map-obj "^1.0.1"
+ minimist "^1.1.3"
+ normalize-package-data "^2.3.4"
+ object-assign "^4.0.1"
+ read-pkg-up "^1.0.1"
+ redent "^1.0.0"
+ trim-newlines "^1.0.0"
+
+meow@^4.0.0:
+ version "4.0.1"
+ resolved "https://registry.yarnpkg.com/meow/-/meow-4.0.1.tgz#d48598f6f4b1472f35bf6317a95945ace347f975"
+ dependencies:
+ camelcase-keys "^4.0.0"
+ decamelize-keys "^1.0.0"
+ loud-rejection "^1.0.0"
+ minimist "^1.1.3"
+ minimist-options "^3.0.1"
+ normalize-package-data "^2.3.4"
+ read-pkg-up "^3.0.0"
+ redent "^2.0.0"
+ trim-newlines "^2.0.0"
+
+meow@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/meow/-/meow-5.0.0.tgz#dfc73d63a9afc714a5e371760eb5c88b91078aa4"
+ dependencies:
+ camelcase-keys "^4.0.0"
+ decamelize-keys "^1.0.0"
+ loud-rejection "^1.0.0"
+ minimist-options "^3.0.1"
+ normalize-package-data "^2.3.4"
+ read-pkg-up "^3.0.0"
+ redent "^2.0.0"
+ trim-newlines "^2.0.0"
+ yargs-parser "^10.0.0"
+
merge-descriptors@1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61"
+merge2@^1.2.1:
+ version "1.2.2"
+ resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.2.2.tgz#03212e3da8d86c4d8523cebd6318193414f94e34"
+
+merge@^1.2.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/merge/-/merge-1.2.0.tgz#7531e39d4949c281a66b8c5a6e0265e8b05894da"
+
methods@~1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee"
+micromatch@^2.1.5, micromatch@^2.3.11, micromatch@^2.3.7:
+ version "2.3.11"
+ resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565"
+ dependencies:
+ arr-diff "^2.0.0"
+ array-unique "^0.2.1"
+ braces "^1.8.2"
+ expand-brackets "^0.1.4"
+ extglob "^0.3.1"
+ filename-regex "^2.0.0"
+ is-extglob "^1.0.0"
+ is-glob "^2.0.1"
+ kind-of "^3.0.2"
+ normalize-path "^2.0.1"
+ object.omit "^2.0.0"
+ parse-glob "^3.0.4"
+ regex-cache "^0.4.2"
+
+micromatch@^3.1.10:
+ version "3.1.10"
+ resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23"
+ dependencies:
+ arr-diff "^4.0.0"
+ array-unique "^0.3.2"
+ braces "^2.3.1"
+ define-property "^2.0.2"
+ extend-shallow "^3.0.2"
+ extglob "^2.0.4"
+ fragment-cache "^0.2.1"
+ kind-of "^6.0.2"
+ nanomatch "^1.2.9"
+ object.pick "^1.3.0"
+ regex-not "^1.0.0"
+ snapdragon "^0.8.1"
+ to-regex "^3.0.2"
+
miller-rabin@^4.0.0:
version "4.0.1"
resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d"
@@ -1365,6 +4384,10 @@ mime@1.4.1:
version "1.4.1"
resolved "https://registry.yarnpkg.com/mime/-/mime-1.4.1.tgz#121f9ebc49e3766f311a76e1fa1c8003c4b03aa6"
+mimic-fn@^1.0.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022"
+
mimic-response@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b"
@@ -1383,7 +4406,7 @@ minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a"
-"minimatch@2 || 3", minimatch@^3.0.4:
+"minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.3, minimatch@^3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
dependencies:
@@ -1395,11 +4418,22 @@ minimetoken@^0.2.0:
dependencies:
eth-contract-class "0.0.6"
+minimist-options@^3.0.1:
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-3.0.2.tgz#fba4c8191339e13ecf4d61beb03f070103f3d954"
+ dependencies:
+ arrify "^1.0.1"
+ is-plain-obj "^1.1.0"
+
minimist@0.0.8:
version "0.0.8"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
-minimist@^1.2.0:
+minimist@1.1.x:
+ version "1.1.3"
+ resolved "http://registry.npmjs.org/minimist/-/minimist-1.1.3.tgz#3bedfd91a92d39016fcfaa1c681e8faa1a1efda8"
+
+minimist@1.2.0, minimist@^1.1.3, minimist@^1.2.0:
version "1.2.0"
resolved "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
@@ -1407,19 +4441,39 @@ minimist@~0.0.1:
version "0.0.10"
resolved "http://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf"
+minipass@^2.2.1, minipass@^2.3.3:
+ version "2.3.4"
+ resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.3.4.tgz#4768d7605ed6194d6d576169b9e12ef71e9d9957"
+ dependencies:
+ safe-buffer "^5.1.2"
+ yallist "^3.0.0"
+
+minizlib@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-1.1.0.tgz#11e13658ce46bc3a70a267aac58359d1e0c29ceb"
+ dependencies:
+ minipass "^2.2.1"
+
+mixin-deep@^1.2.0:
+ version "1.3.1"
+ resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.1.tgz#a49e7268dce1a0d9698e45326c5626df3543d0fe"
+ dependencies:
+ for-in "^1.0.2"
+ is-extendable "^1.0.1"
+
mkdirp-promise@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/mkdirp-promise/-/mkdirp-promise-5.0.1.tgz#e9b8f68e552c68a9c1713b84883f7a1dd039b8a1"
dependencies:
mkdirp "*"
-mkdirp@*, mkdirp@0.5.1, mkdirp@0.5.x, "mkdirp@>=0.5 0":
+mkdirp@*, mkdirp@0.5.1, mkdirp@0.5.x, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1:
version "0.5.1"
resolved "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"
dependencies:
minimist "0.0.8"
-mocha@^4.1.0:
+mocha@^4.0.1, mocha@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/mocha/-/mocha-4.1.0.tgz#7d86cfbcf35cb829e2754c32e17355ec05338794"
dependencies:
@@ -1438,6 +4492,10 @@ mock-fs@^4.1.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/mock-fs/-/mock-fs-4.5.0.tgz#75245b966f7e3defe197b03454af9c5b355594b7"
+modify-values@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/modify-values/-/modify-values-1.0.1.tgz#b3939fa605546474e3e3e3c63d64bd43b4ee6022"
+
mout@^0.11.0:
version "0.11.1"
resolved "https://registry.yarnpkg.com/mout/-/mout-0.11.1.tgz#ba3611df5f0e5b1ffbfd01166b8f02d1f5fa2b99"
@@ -1446,6 +4504,18 @@ ms@2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
+mute-stream@0.0.5:
+ version "0.0.5"
+ resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.5.tgz#8fbfabb0a98a253d3184331f9e8deb7372fac6c0"
+
+mute-stream@0.0.6:
+ version "0.0.6"
+ resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.6.tgz#48962b19e169fd1dfc240b3f1e7317627bbc47db"
+
+mute-stream@0.0.7:
+ version "0.0.7"
+ resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab"
+
mz@^2.6.0:
version "2.7.0"
resolved "https://registry.yarnpkg.com/mz/-/mz-2.7.0.tgz#95008057a56cafadc2bc63dde7f9ff6955948e32"
@@ -1458,21 +4528,96 @@ nan@2.10.0, nan@^2.0.8, nan@^2.3.3:
version "2.10.0"
resolved "https://registry.yarnpkg.com/nan/-/nan-2.10.0.tgz#96d0cd610ebd58d4b4de9cc0c6828cda99c7548f"
+nan@^2.9.2:
+ version "2.11.0"
+ resolved "https://registry.yarnpkg.com/nan/-/nan-2.11.0.tgz#574e360e4d954ab16966ec102c0c049fd961a099"
+
nano-json-stream-parser@^0.1.2:
version "0.1.2"
resolved "https://registry.yarnpkg.com/nano-json-stream-parser/-/nano-json-stream-parser-0.1.2.tgz#0cc8f6d0e2b622b479c40d499c46d64b755c6f5f"
+nanomatch@^1.2.9:
+ version "1.2.13"
+ resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119"
+ dependencies:
+ arr-diff "^4.0.0"
+ array-unique "^0.3.2"
+ define-property "^2.0.2"
+ extend-shallow "^3.0.2"
+ fragment-cache "^0.2.1"
+ is-windows "^1.0.2"
+ kind-of "^6.0.2"
+ object.pick "^1.3.0"
+ regex-not "^1.0.0"
+ snapdragon "^0.8.1"
+ to-regex "^3.0.1"
+
+natural-compare@^1.4.0:
+ version "1.4.0"
+ resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
+
+needle@^2.2.1:
+ version "2.2.2"
+ resolved "https://registry.yarnpkg.com/needle/-/needle-2.2.2.tgz#1120ca4c41f2fcc6976fd28a8968afe239929418"
+ dependencies:
+ debug "^2.1.2"
+ iconv-lite "^0.4.4"
+ sax "^1.2.4"
+
negotiator@0.6.1:
version "0.6.1"
resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.1.tgz#2b327184e8992101177b28563fb5e7102acd0ca9"
+nice-try@^1.0.4:
+ version "1.0.5"
+ resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366"
+
+node-fetch@1.6.3:
+ version "1.6.3"
+ resolved "http://registry.npmjs.org/node-fetch/-/node-fetch-1.6.3.tgz#dc234edd6489982d58e8f0db4f695029abcd8c04"
+ dependencies:
+ encoding "^0.1.11"
+ is-stream "^1.0.1"
+
+node-localstorage@^0.6.0:
+ version "0.6.0"
+ resolved "http://registry.npmjs.org/node-localstorage/-/node-localstorage-0.6.0.tgz#45a0601c6932dfde6644a23361f1be173c75d3af"
+
+node-pre-gyp@^0.10.0:
+ version "0.10.3"
+ resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.10.3.tgz#3070040716afdc778747b61b6887bf78880b80fc"
+ dependencies:
+ detect-libc "^1.0.2"
+ mkdirp "^0.5.1"
+ needle "^2.2.1"
+ nopt "^4.0.1"
+ npm-packlist "^1.1.6"
+ npmlog "^4.0.2"
+ rc "^1.2.7"
+ rimraf "^2.6.1"
+ semver "^5.3.0"
+ tar "^4"
+
+node-releases@^1.0.0-alpha.11:
+ version "1.0.0-alpha.11"
+ resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.0.0-alpha.11.tgz#73c810acc2e5b741a17ddfbb39dfca9ab9359d8a"
+ dependencies:
+ semver "^5.3.0"
+
nopt@3.x:
version "3.0.6"
resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9"
dependencies:
abbrev "1"
-normalize-package-data@^2.3.2:
+nopt@^4.0.1:
+ version "4.0.1"
+ resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d"
+ dependencies:
+ abbrev "1"
+ osenv "^0.1.4"
+
+normalize-package-data@^2.3.0, normalize-package-data@^2.3.2, normalize-package-data@^2.3.4, normalize-package-data@^2.3.5:
version "2.4.0"
resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f"
dependencies:
@@ -1481,6 +4626,86 @@ normalize-package-data@^2.3.2:
semver "2 || 3 || 4 || 5"
validate-npm-package-license "^3.0.1"
+normalize-path@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-1.0.0.tgz#32d0e472f91ff345701c15a8311018d3b0a90379"
+
+normalize-path@^2.0.0, normalize-path@^2.0.1:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9"
+ dependencies:
+ remove-trailing-separator "^1.0.1"
+
+normalize-range@^0.1.2:
+ version "0.1.2"
+ resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942"
+
+normalize-selector@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/normalize-selector/-/normalize-selector-0.2.0.tgz#d0b145eb691189c63a78d201dc4fdb1293ef0c03"
+
+npm-bundled@^1.0.1:
+ version "1.0.5"
+ resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.0.5.tgz#3c1732b7ba936b3a10325aef616467c0ccbcc979"
+
+npm-packlist@^1.1.6:
+ version "1.1.11"
+ resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.1.11.tgz#84e8c683cbe7867d34b1d357d893ce29e28a02de"
+ dependencies:
+ ignore-walk "^3.0.1"
+ npm-bundled "^1.0.1"
+
+npm-path@^2.0.2:
+ version "2.0.4"
+ resolved "https://registry.yarnpkg.com/npm-path/-/npm-path-2.0.4.tgz#c641347a5ff9d6a09e4d9bce5580c4f505278e64"
+ dependencies:
+ which "^1.2.10"
+
+npm-run-all@^4.1.3:
+ version "4.1.3"
+ resolved "https://registry.yarnpkg.com/npm-run-all/-/npm-run-all-4.1.3.tgz#49f15b55a66bb4101664ce270cb18e7103f8f185"
+ dependencies:
+ ansi-styles "^3.2.0"
+ chalk "^2.1.0"
+ cross-spawn "^6.0.4"
+ memorystream "^0.3.1"
+ minimatch "^3.0.4"
+ ps-tree "^1.1.0"
+ read-pkg "^3.0.0"
+ shell-quote "^1.6.1"
+ string.prototype.padend "^3.0.0"
+
+npm-run-path@^2.0.0:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f"
+ dependencies:
+ path-key "^2.0.0"
+
+npm-which@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/npm-which/-/npm-which-3.0.1.tgz#9225f26ec3a285c209cae67c3b11a6b4ab7140aa"
+ dependencies:
+ commander "^2.9.0"
+ npm-path "^2.0.2"
+ which "^1.2.10"
+
+npmlog@^4.0.2:
+ version "4.1.2"
+ resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b"
+ dependencies:
+ are-we-there-yet "~1.1.2"
+ console-control-strings "~1.1.0"
+ gauge "~2.7.3"
+ set-blocking "~2.0.0"
+
+null-check@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/null-check/-/null-check-1.0.0.tgz#977dffd7176012b9ec30d2a39db5cf72a0439edd"
+
+num2fraction@^1.2.2:
+ version "1.2.2"
+ resolved "https://registry.yarnpkg.com/num2fraction/-/num2fraction-1.2.2.tgz#6f682b6a027a4e9ddfa4564cd2589d1d4e669ede"
+
number-is-nan@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d"
@@ -1504,6 +4729,37 @@ object-assign@^4, object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1
version "4.1.1"
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
+object-copy@^0.1.0:
+ version "0.1.0"
+ resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c"
+ dependencies:
+ copy-descriptor "^0.1.0"
+ define-property "^0.2.5"
+ kind-of "^3.0.3"
+
+object-keys@^1.0.12:
+ version "1.0.12"
+ resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.12.tgz#09c53855377575310cca62f55bb334abff7b3ed2"
+
+object-visit@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb"
+ dependencies:
+ isobject "^3.0.0"
+
+object.omit@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa"
+ dependencies:
+ for-own "^0.1.4"
+ is-extendable "^0.1.1"
+
+object.pick@^1.3.0:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747"
+ dependencies:
+ isobject "^3.0.1"
+
oboe@2.1.3:
version "2.1.3"
resolved "https://registry.yarnpkg.com/oboe/-/oboe-2.1.3.tgz#2b4865dbd46be81225713f4e9bfe4bcf4f680a4f"
@@ -1522,6 +4778,34 @@ once@1.x, once@^1.3.0, once@^1.3.1, once@^1.4.0:
dependencies:
wrappy "1"
+onetime@^1.0.0:
+ version "1.1.0"
+ resolved "http://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz#a1f7838f8314c516f05ecefcbc4ccfe04b4ed789"
+
+onetime@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4"
+ dependencies:
+ mimic-fn "^1.0.0"
+
+opencollective@1.0.3:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/opencollective/-/opencollective-1.0.3.tgz#aee6372bc28144583690c3ca8daecfc120dd0ef1"
+ dependencies:
+ babel-polyfill "6.23.0"
+ chalk "1.1.3"
+ inquirer "3.0.6"
+ minimist "1.2.0"
+ node-fetch "1.6.3"
+ opn "4.0.2"
+
+opn@4.0.2:
+ version "4.0.2"
+ resolved "https://registry.yarnpkg.com/opn/-/opn-4.0.2.tgz#7abc22e644dff63b0a96d5ab7f2790c0f01abc95"
+ dependencies:
+ object-assign "^4.0.1"
+ pinkie-promise "^2.0.0"
+
optimist@^0.6.1:
version "0.6.1"
resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686"
@@ -1529,7 +4813,7 @@ optimist@^0.6.1:
minimist "~0.0.1"
wordwrap "~0.0.2"
-optionator@^0.8.1:
+optionator@^0.8.1, optionator@^0.8.2:
version "0.8.2"
resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64"
dependencies:
@@ -1540,16 +4824,52 @@ optionator@^0.8.1:
type-check "~0.3.2"
wordwrap "~1.0.0"
+ora@^0.2.3:
+ version "0.2.3"
+ resolved "http://registry.npmjs.org/ora/-/ora-0.2.3.tgz#37527d220adcd53c39b73571d754156d5db657a4"
+ dependencies:
+ chalk "^1.1.1"
+ cli-cursor "^1.0.2"
+ cli-spinners "^0.1.2"
+ object-assign "^4.0.1"
+
original-require@1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/original-require/-/original-require-1.0.1.tgz#0f130471584cd33511c5ec38c8d59213f9ac5e20"
+os-homedir@^1.0.0, os-homedir@^1.0.1:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3"
+
os-locale@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-1.4.0.tgz#20f9f17ae29ed345e8bde583b13d2009803c14d9"
dependencies:
lcid "^1.0.0"
+os-locale@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-2.1.0.tgz#42bc2900a6b5b8bd17376c8e882b65afccf24bf2"
+ dependencies:
+ execa "^0.7.0"
+ lcid "^1.0.0"
+ mem "^1.1.0"
+
+os-shim@^0.1.2:
+ version "0.1.3"
+ resolved "https://registry.yarnpkg.com/os-shim/-/os-shim-0.1.3.tgz#6b62c3791cf7909ea35ed46e17658bb417cb3917"
+
+os-tmpdir@^1.0.0, os-tmpdir@~1.0.1, os-tmpdir@~1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274"
+
+osenv@^0.1.4:
+ version "0.1.5"
+ resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410"
+ dependencies:
+ os-homedir "^1.0.0"
+ os-tmpdir "^1.0.0"
+
p-cancelable@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-0.3.0.tgz#b9e123800bcebb7ac13a479be195b507b98d30fa"
@@ -1558,11 +4878,37 @@ p-finally@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae"
+p-limit@^1.1.0:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8"
+ dependencies:
+ p-try "^1.0.0"
+
+p-locate@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43"
+ dependencies:
+ p-limit "^1.1.0"
+
+p-map@^1.1.1:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/p-map/-/p-map-1.2.0.tgz#e4e94f311eabbc8633a1e79908165fca26241b6b"
+
p-timeout@^1.1.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-1.2.1.tgz#5eb3b353b7fce99f101a1038880bb054ebbea386"
dependencies:
- p-finally "^1.0.0"
+ p-finally "^1.0.0"
+
+p-try@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3"
+
+pad-right@^0.2.2:
+ version "0.2.2"
+ resolved "https://registry.yarnpkg.com/pad-right/-/pad-right-0.2.2.tgz#6fbc924045d244f2a2a244503060d3bfc6009774"
+ dependencies:
+ repeat-string "^1.5.2"
parse-asn1@^5.0.0:
version "5.1.1"
@@ -1574,6 +4920,30 @@ parse-asn1@^5.0.0:
evp_bytestokey "^1.0.0"
pbkdf2 "^3.0.3"
+parse-entities@^1.0.2, parse-entities@^1.1.0:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/parse-entities/-/parse-entities-1.1.2.tgz#9eaf719b29dc3bd62246b4332009072e01527777"
+ dependencies:
+ character-entities "^1.0.0"
+ character-entities-legacy "^1.0.0"
+ character-reference-invalid "^1.0.0"
+ is-alphanumerical "^1.0.0"
+ is-decimal "^1.0.0"
+ is-hexadecimal "^1.0.0"
+
+parse-github-repo-url@^1.3.0:
+ version "1.4.1"
+ resolved "https://registry.yarnpkg.com/parse-github-repo-url/-/parse-github-repo-url-1.4.1.tgz#9e7d8bb252a6cb6ba42595060b7bf6df3dbc1f50"
+
+parse-glob@^3.0.4:
+ version "3.0.4"
+ resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c"
+ dependencies:
+ glob-base "^0.3.0"
+ is-dotfile "^1.0.0"
+ is-extglob "^1.0.0"
+ is-glob "^2.0.0"
+
parse-headers@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/parse-headers/-/parse-headers-2.0.1.tgz#6ae83a7aa25a9d9b700acc28698cd1f1ed7e9536"
@@ -1587,20 +4957,57 @@ parse-json@^2.2.0:
dependencies:
error-ex "^1.2.0"
+parse-json@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-3.0.0.tgz#fa6f47b18e23826ead32f263e744d0e1e847fb13"
+ dependencies:
+ error-ex "^1.3.1"
+
+parse-json@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0"
+ dependencies:
+ error-ex "^1.3.1"
+ json-parse-better-errors "^1.0.1"
+
+parse-passwd@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6"
+
parseurl@~1.3.2:
version "1.3.2"
resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.2.tgz#fc289d4ed8993119460c156253262cdc8de65bf3"
-path-exists@^2.0.0:
+pascalcase@^0.1.1:
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14"
+
+path-dirname@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0"
+
+path-exists@2.1.0, path-exists@^2.0.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b"
dependencies:
pinkie-promise "^2.0.0"
+path-exists@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515"
+
path-is-absolute@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
+path-is-inside@^1.0.1, path-is-inside@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53"
+
+path-key@^2.0.0, path-key@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40"
+
path-parse@^1.0.5:
version "1.0.6"
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c"
@@ -1617,6 +5024,24 @@ path-type@^1.0.0:
pify "^2.0.0"
pinkie-promise "^2.0.0"
+path-type@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73"
+ dependencies:
+ pify "^2.0.0"
+
+path-type@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/path-type/-/path-type-3.0.0.tgz#cef31dc8e0a1a3bb0d105c0cd97cf3bf47f4e36f"
+ dependencies:
+ pify "^3.0.0"
+
+pause-stream@^0.0.11:
+ version "0.0.11"
+ resolved "https://registry.yarnpkg.com/pause-stream/-/pause-stream-0.0.11.tgz#fe5a34b0cbce12b5aa6a2b403ee2e73b602f1445"
+ dependencies:
+ through "~2.3"
+
pbkdf2@^3.0.3:
version "3.0.16"
resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.16.tgz#7404208ec6b01b62d85bf83853a8064f8d9c2a5c"
@@ -1647,6 +5072,10 @@ pify@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176"
+pify@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.0.tgz#db04c982b632fd0df9090d14aaf1c8413cadb695"
+
pinkie-promise@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa"
@@ -1657,6 +5086,176 @@ pinkie@^2.0.0:
version "2.0.4"
resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870"
+pkg-dir@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-1.0.0.tgz#7a4b508a8d5bb2d629d447056ff4e9c9314cf3d4"
+ dependencies:
+ find-up "^1.0.0"
+
+pluralize@^7.0.0:
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-7.0.0.tgz#298b89df8b93b0221dbf421ad2b1b1ea23fc6777"
+
+posix-character-classes@^0.1.0:
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab"
+
+postcss-bem-linter@^3.0.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/postcss-bem-linter/-/postcss-bem-linter-3.1.0.tgz#55352412fb481aad0d05148185a990734e1ca030"
+ dependencies:
+ minimatch "^3.0.3"
+ postcss "^6.0.6"
+ postcss-resolve-nested-selector "^0.1.1"
+
+postcss-html@^0.12.0:
+ version "0.12.0"
+ resolved "https://registry.yarnpkg.com/postcss-html/-/postcss-html-0.12.0.tgz#39b6adb4005dfc5464df7999c0f81c95bced7e50"
+ dependencies:
+ htmlparser2 "^3.9.2"
+ remark "^8.0.0"
+ unist-util-find-all-after "^1.0.1"
+
+postcss-html@^0.33.0:
+ version "0.33.0"
+ resolved "https://registry.yarnpkg.com/postcss-html/-/postcss-html-0.33.0.tgz#8ab6067d7a8a234e1937920b38760e3be1dca070"
+ dependencies:
+ htmlparser2 "^3.9.2"
+
+postcss-jsx@^0.33.0:
+ version "0.33.0"
+ resolved "https://registry.yarnpkg.com/postcss-jsx/-/postcss-jsx-0.33.0.tgz#433f8aadd6f3b0ee403a62b441bca8db9c87471c"
+ dependencies:
+ "@babel/core" "^7.0.0-rc.1"
+ optionalDependencies:
+ postcss-styled ">=0.33.0"
+
+postcss-less@^1.1.0:
+ version "1.1.5"
+ resolved "https://registry.yarnpkg.com/postcss-less/-/postcss-less-1.1.5.tgz#a6f0ce180cf3797eeee1d4adc0e9e6d6db665609"
+ dependencies:
+ postcss "^5.2.16"
+
+postcss-less@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/postcss-less/-/postcss-less-2.0.0.tgz#5d190b8e057ca446d60fe2e2587ad791c9029fb8"
+ dependencies:
+ postcss "^5.2.16"
+
+postcss-markdown@^0.33.0:
+ version "0.33.0"
+ resolved "https://registry.yarnpkg.com/postcss-markdown/-/postcss-markdown-0.33.0.tgz#2d0462742ee108c9d6020780184b499630b8b33a"
+ dependencies:
+ remark "^9.0.0"
+ unist-util-find-all-after "^1.0.2"
+
+postcss-media-query-parser@^0.2.3:
+ version "0.2.3"
+ resolved "https://registry.yarnpkg.com/postcss-media-query-parser/-/postcss-media-query-parser-0.2.3.tgz#27b39c6f4d94f81b1a73b8f76351c609e5cef244"
+
+postcss-reporter@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/postcss-reporter/-/postcss-reporter-5.0.0.tgz#a14177fd1342829d291653f2786efd67110332c3"
+ dependencies:
+ chalk "^2.0.1"
+ lodash "^4.17.4"
+ log-symbols "^2.0.0"
+ postcss "^6.0.8"
+
+postcss-resolve-nested-selector@^0.1.1:
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/postcss-resolve-nested-selector/-/postcss-resolve-nested-selector-0.1.1.tgz#29ccbc7c37dedfac304e9fff0bf1596b3f6a0e4e"
+
+postcss-safe-parser@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/postcss-safe-parser/-/postcss-safe-parser-3.0.1.tgz#b753eff6c7c0aea5e8375fbe4cde8bf9063ff142"
+ dependencies:
+ postcss "^6.0.6"
+
+postcss-safe-parser@^4.0.0:
+ version "4.0.1"
+ resolved "https://registry.yarnpkg.com/postcss-safe-parser/-/postcss-safe-parser-4.0.1.tgz#8756d9e4c36fdce2c72b091bbc8ca176ab1fcdea"
+ dependencies:
+ postcss "^7.0.0"
+
+postcss-sass@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/postcss-sass/-/postcss-sass-0.2.0.tgz#e55516441e9526ba4b380a730d3a02e9eaa78c7a"
+ dependencies:
+ gonzales-pe "^4.0.3"
+ postcss "^6.0.6"
+
+postcss-sass@^0.3.0:
+ version "0.3.3"
+ resolved "https://registry.yarnpkg.com/postcss-sass/-/postcss-sass-0.3.3.tgz#bec188ac285d21ac8feba194c2f327fdda31e671"
+ dependencies:
+ gonzales-pe "^4.2.3"
+ postcss "^7.0.1"
+
+postcss-scss@^1.0.2:
+ version "1.0.6"
+ resolved "https://registry.yarnpkg.com/postcss-scss/-/postcss-scss-1.0.6.tgz#ab903f3bb20161bc177896462293a53d4bff5f7a"
+ dependencies:
+ postcss "^6.0.23"
+
+postcss-scss@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/postcss-scss/-/postcss-scss-2.0.0.tgz#248b0a28af77ea7b32b1011aba0f738bda27dea1"
+ dependencies:
+ postcss "^7.0.0"
+
+postcss-selector-parser@^3.1.0, postcss-selector-parser@^3.1.1:
+ version "3.1.1"
+ resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-3.1.1.tgz#4f875f4afb0c96573d5cf4d74011aee250a7e865"
+ dependencies:
+ dot-prop "^4.1.1"
+ indexes-of "^1.0.1"
+ uniq "^1.0.1"
+
+postcss-sorting@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/postcss-sorting/-/postcss-sorting-3.1.0.tgz#af7c90ee73ad12569a57664eaf06735c2e25bec0"
+ dependencies:
+ lodash "^4.17.4"
+ postcss "^6.0.13"
+
+postcss-styled@>=0.33.0, postcss-styled@^0.33.0:
+ version "0.33.0"
+ resolved "https://registry.yarnpkg.com/postcss-styled/-/postcss-styled-0.33.0.tgz#69be377584105a582fda7e4f76888e5b97eed737"
+
+postcss-syntax@^0.33.0:
+ version "0.33.0"
+ resolved "https://registry.yarnpkg.com/postcss-syntax/-/postcss-syntax-0.33.0.tgz#59c0c678d2f9ecefa84c6ce9ef46fc805c54ab3a"
+
+postcss-value-parser@^3.2.3, postcss-value-parser@^3.3.0:
+ version "3.3.0"
+ resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-3.3.0.tgz#87f38f9f18f774a4ab4c8a232f5c5ce8872a9d15"
+
+postcss@>=5.0.19, postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.2:
+ version "7.0.2"
+ resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.2.tgz#7b5a109de356804e27f95a960bef0e4d5bc9bb18"
+ dependencies:
+ chalk "^2.4.1"
+ source-map "^0.6.1"
+ supports-color "^5.4.0"
+
+postcss@^5.2.16:
+ version "5.2.18"
+ resolved "https://registry.yarnpkg.com/postcss/-/postcss-5.2.18.tgz#badfa1497d46244f6390f58b319830d9107853c5"
+ dependencies:
+ chalk "^1.1.3"
+ js-base64 "^2.1.9"
+ source-map "^0.5.6"
+ supports-color "^3.2.3"
+
+postcss@^6.0.13, postcss@^6.0.14, postcss@^6.0.17, postcss@^6.0.23, postcss@^6.0.6, postcss@^6.0.8:
+ version "6.0.23"
+ resolved "https://registry.yarnpkg.com/postcss/-/postcss-6.0.23.tgz#61c82cc328ac60e677645f979054eb98bc0e3324"
+ dependencies:
+ chalk "^2.4.1"
+ source-map "^0.6.1"
+ supports-color "^5.4.0"
+
prelude-ls@~1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
@@ -1665,6 +5264,21 @@ prepend-http@^1.0.1:
version "1.0.4"
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc"
+preserve@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
+
+prettier@^1.13.7:
+ version "1.14.2"
+ resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.14.2.tgz#0ac1c6e1a90baa22a62925f41963c841983282f9"
+
+pretty-format@^21.2.1:
+ version "21.2.1"
+ resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-21.2.1.tgz#ae5407f3cf21066cd011aa1ba5fce7b6a2eddb36"
+ dependencies:
+ ansi-regex "^3.0.0"
+ ansi-styles "^3.2.0"
+
process-nextick-args@~2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa"
@@ -1673,6 +5287,17 @@ process@~0.5.1:
version "0.5.2"
resolved "https://registry.yarnpkg.com/process/-/process-0.5.2.tgz#1638d8a8e34c2f440a91db95ab9aeb677fc185cf"
+progress@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.0.tgz#8a1be366bf8fc23db2bd23f10c6fe920b4389d1f"
+
+prop-types@^15.6.2:
+ version "15.6.2"
+ resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.2.tgz#05d5ca77b4453e985d60fc7ff8c859094a497102"
+ dependencies:
+ loose-envify "^1.3.1"
+ object-assign "^4.1.1"
+
proxy-addr@~2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.3.tgz#355f262505a621646b3130a728eb647e22055341"
@@ -1680,6 +5305,16 @@ proxy-addr@~2.0.3:
forwarded "~0.1.2"
ipaddr.js "1.6.0"
+ps-tree@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/ps-tree/-/ps-tree-1.1.0.tgz#b421b24140d6203f1ed3c76996b4427b08e8c014"
+ dependencies:
+ event-stream "~3.3.0"
+
+pseudomap@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3"
+
psl@^1.1.24:
version "1.1.29"
resolved "https://registry.yarnpkg.com/psl/-/psl-1.1.29.tgz#60f580d360170bb722a797cc704411e6da850c67"
@@ -1698,6 +5333,14 @@ punycode@^1.4.1:
version "1.4.1"
resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e"
+punycode@^2.1.0:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec"
+
+q@^1.4.1, q@^1.5.1:
+ version "1.5.1"
+ resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7"
+
qs@6.5.1:
version "6.5.1"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.1.tgz#349cdf6eef89ec45c12d7d5eb3fc0c870343a6d8"
@@ -1714,6 +5357,18 @@ query-string@^5.0.1:
object-assign "^4.1.0"
strict-uri-encode "^1.0.0"
+quick-lru@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-1.1.0.tgz#4360b17c61136ad38078397ff11416e186dcfbb8"
+
+randomatic@^3.0.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.1.0.tgz#36f2ca708e9e567f5ed2ec01949026d50aa10116"
+ dependencies:
+ is-number "^4.0.0"
+ kind-of "^6.0.0"
+ math-random "^1.0.1"
+
randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5:
version "2.0.6"
resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.0.6.tgz#d302c522948588848a8d300c932b44c24231da80"
@@ -1753,6 +5408,15 @@ raw-body@2.3.3:
iconv-lite "0.4.23"
unpipe "1.0.0"
+rc@^1.2.7:
+ version "1.2.8"
+ resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed"
+ dependencies:
+ deep-extend "^0.6.0"
+ ini "~1.3.0"
+ minimist "^1.2.0"
+ strip-json-comments "~2.0.1"
+
read-pkg-up@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02"
@@ -1760,7 +5424,21 @@ read-pkg-up@^1.0.1:
find-up "^1.0.0"
read-pkg "^1.0.0"
-read-pkg@^1.0.0:
+read-pkg-up@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be"
+ dependencies:
+ find-up "^2.0.0"
+ read-pkg "^2.0.0"
+
+read-pkg-up@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-3.0.0.tgz#3ed496685dba0f8fe118d0691dc51f4a1ff96f07"
+ dependencies:
+ find-up "^2.0.0"
+ read-pkg "^3.0.0"
+
+read-pkg@^1.0.0, read-pkg@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28"
dependencies:
@@ -1768,7 +5446,23 @@ read-pkg@^1.0.0:
normalize-package-data "^2.3.2"
path-type "^1.0.0"
-readable-stream@^2.3.0, readable-stream@^2.3.5:
+read-pkg@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8"
+ dependencies:
+ load-json-file "^2.0.0"
+ normalize-package-data "^2.3.2"
+ path-type "^2.0.0"
+
+read-pkg@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-3.0.0.tgz#9cbc686978fee65d16c00e2b19c237fcf6e38389"
+ dependencies:
+ load-json-file "^4.0.0"
+ normalize-package-data "^2.3.2"
+ path-type "^3.0.0"
+
+readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.0, readable-stream@^2.3.5:
version "2.3.6"
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf"
dependencies:
@@ -1780,24 +5474,222 @@ readable-stream@^2.3.0, readable-stream@^2.3.5:
string_decoder "~1.1.1"
util-deprecate "~1.0.1"
+readdirp@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78"
+ dependencies:
+ graceful-fs "^4.1.2"
+ minimatch "^3.0.2"
+ readable-stream "^2.0.2"
+ set-immediate-shim "^1.0.1"
+
+readline2@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/readline2/-/readline2-1.0.1.tgz#41059608ffc154757b715d9989d199ffbf372e35"
+ dependencies:
+ code-point-at "^1.0.0"
+ is-fullwidth-code-point "^1.0.0"
+ mute-stream "0.0.5"
+
rechoir@^0.6.2:
version "0.6.2"
resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384"
dependencies:
resolve "^1.1.6"
+redent@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/redent/-/redent-1.0.0.tgz#cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde"
+ dependencies:
+ indent-string "^2.1.0"
+ strip-indent "^1.0.1"
+
+redent@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/redent/-/redent-2.0.0.tgz#c1b2007b42d57eb1389079b3c8333639d5e1ccaa"
+ dependencies:
+ indent-string "^3.0.0"
+ strip-indent "^2.0.0"
+
+regenerator-runtime@^0.10.0, regenerator-runtime@^0.10.5:
+ version "0.10.5"
+ resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz#336c3efc1220adcedda2c9fab67b5a7955a33658"
+
+regenerator-runtime@^0.11.0:
+ version "0.11.1"
+ resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9"
+
+regex-cache@^0.4.2:
+ version "0.4.4"
+ resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd"
+ dependencies:
+ is-equal-shallow "^0.1.3"
+
+regex-not@^1.0.0, regex-not@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c"
+ dependencies:
+ extend-shallow "^3.0.2"
+ safe-regex "^1.1.0"
+
+regexpp@^1.0.1:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-1.1.0.tgz#0e3516dd0b7904f413d2d4193dce4618c3a689ab"
+
+remark-parse@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-4.0.0.tgz#99f1f049afac80382366e2e0d0bd55429dd45d8b"
+ dependencies:
+ collapse-white-space "^1.0.2"
+ is-alphabetical "^1.0.0"
+ is-decimal "^1.0.0"
+ is-whitespace-character "^1.0.0"
+ is-word-character "^1.0.0"
+ markdown-escapes "^1.0.0"
+ parse-entities "^1.0.2"
+ repeat-string "^1.5.4"
+ state-toggle "^1.0.0"
+ trim "0.0.1"
+ trim-trailing-lines "^1.0.0"
+ unherit "^1.0.4"
+ unist-util-remove-position "^1.0.0"
+ vfile-location "^2.0.0"
+ xtend "^4.0.1"
+
+remark-parse@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-5.0.0.tgz#4c077f9e499044d1d5c13f80d7a98cf7b9285d95"
+ dependencies:
+ collapse-white-space "^1.0.2"
+ is-alphabetical "^1.0.0"
+ is-decimal "^1.0.0"
+ is-whitespace-character "^1.0.0"
+ is-word-character "^1.0.0"
+ markdown-escapes "^1.0.0"
+ parse-entities "^1.1.0"
+ repeat-string "^1.5.4"
+ state-toggle "^1.0.0"
+ trim "0.0.1"
+ trim-trailing-lines "^1.0.0"
+ unherit "^1.0.4"
+ unist-util-remove-position "^1.0.0"
+ vfile-location "^2.0.0"
+ xtend "^4.0.1"
+
+remark-stringify@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/remark-stringify/-/remark-stringify-4.0.0.tgz#4431884c0418f112da44991b4e356cfe37facd87"
+ dependencies:
+ ccount "^1.0.0"
+ is-alphanumeric "^1.0.0"
+ is-decimal "^1.0.0"
+ is-whitespace-character "^1.0.0"
+ longest-streak "^2.0.1"
+ markdown-escapes "^1.0.0"
+ markdown-table "^1.1.0"
+ mdast-util-compact "^1.0.0"
+ parse-entities "^1.0.2"
+ repeat-string "^1.5.4"
+ state-toggle "^1.0.0"
+ stringify-entities "^1.0.1"
+ unherit "^1.0.4"
+ xtend "^4.0.1"
+
+remark-stringify@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/remark-stringify/-/remark-stringify-5.0.0.tgz#336d3a4d4a6a3390d933eeba62e8de4bd280afba"
+ dependencies:
+ ccount "^1.0.0"
+ is-alphanumeric "^1.0.0"
+ is-decimal "^1.0.0"
+ is-whitespace-character "^1.0.0"
+ longest-streak "^2.0.1"
+ markdown-escapes "^1.0.0"
+ markdown-table "^1.1.0"
+ mdast-util-compact "^1.0.0"
+ parse-entities "^1.0.2"
+ repeat-string "^1.5.4"
+ state-toggle "^1.0.0"
+ stringify-entities "^1.0.1"
+ unherit "^1.0.4"
+ xtend "^4.0.1"
+
+remark@^8.0.0:
+ version "8.0.0"
+ resolved "https://registry.yarnpkg.com/remark/-/remark-8.0.0.tgz#287b6df2fe1190e263c1d15e486d3fa835594d6d"
+ dependencies:
+ remark-parse "^4.0.0"
+ remark-stringify "^4.0.0"
+ unified "^6.0.0"
+
+remark@^9.0.0:
+ version "9.0.0"
+ resolved "https://registry.yarnpkg.com/remark/-/remark-9.0.0.tgz#c5cfa8ec535c73a67c4b0f12bfdbd3a67d8b2f60"
+ dependencies:
+ remark-parse "^5.0.0"
+ remark-stringify "^5.0.0"
+ unified "^6.0.0"
+
+remove-trailing-separator@^1.0.1:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef"
+
+repeat-element@^1.1.2:
+ version "1.1.3"
+ resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.3.tgz#782e0d825c0c5a3bb39731f84efee6b742e6b1ce"
+
+repeat-string@^1.5.2, repeat-string@^1.5.4, repeat-string@^1.6.1:
+ version "1.6.1"
+ resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637"
+
+repeating@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda"
+ dependencies:
+ is-finite "^1.0.0"
+
+replace-ext@1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/replace-ext/-/replace-ext-1.0.0.tgz#de63128373fcbf7c3ccfa4de5a480c45a67958eb"
+
req-cwd@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/req-cwd/-/req-cwd-1.0.1.tgz#0d73aeae9266e697a78f7976019677e76acf0fff"
dependencies:
req-from "^1.0.1"
+req-cwd@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/req-cwd/-/req-cwd-2.0.0.tgz#d4082b4d44598036640fb73ddea01ed53db49ebc"
+ dependencies:
+ req-from "^2.0.0"
+
req-from@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/req-from/-/req-from-1.0.1.tgz#bf81da5147947d32d13b947dc12a58ad4587350e"
dependencies:
resolve-from "^2.0.0"
+req-from@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/req-from/-/req-from-2.0.0.tgz#d74188e47f93796f4aa71df6ee35ae689f3e0e70"
+ dependencies:
+ resolve-from "^3.0.0"
+
+request-promise-core@1.1.1:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.1.tgz#3eee00b2c5aa83239cfb04c5700da36f81cd08b6"
+ dependencies:
+ lodash "^4.13.1"
+
+request-promise-native@^1.0.5:
+ version "1.0.5"
+ resolved "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.5.tgz#5281770f68e0c9719e5163fd3fab482215f4fda5"
+ dependencies:
+ request-promise-core "1.1.1"
+ stealthy-require "^1.1.0"
+ tough-cookie ">=2.3.3"
+
request@^2.79.0:
version "2.87.0"
resolved "https://registry.yarnpkg.com/request/-/request-2.87.0.tgz#32f00235cd08d482b4d0d68db93a829c0ed5756e"
@@ -1823,7 +5715,7 @@ request@^2.79.0:
tunnel-agent "^0.6.0"
uuid "^3.1.0"
-request@^2.85.0:
+request@^2.83.0, request@^2.85.0:
version "2.88.0"
resolved "https://registry.yarnpkg.com/request/-/request-2.88.0.tgz#9c2fca4f7d35b592efe57c7f0a55e81052124fef"
dependencies:
@@ -1856,25 +5748,87 @@ require-from-string@^1.1.0:
version "1.2.1"
resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-1.2.1.tgz#529c9ccef27380adfec9a2f965b649bbee636418"
+require-from-string@^2.0.1:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909"
+
require-main-filename@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1"
+require-uncached@^1.0.3:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/require-uncached/-/require-uncached-1.0.3.tgz#4e0d56d6c9662fd31e43011c4b95aa49955421d3"
+ dependencies:
+ caller-path "^0.1.0"
+ resolve-from "^1.0.0"
+
+resolve-dir@^0.1.0:
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/resolve-dir/-/resolve-dir-0.1.1.tgz#b219259a5602fac5c5c496ad894a6e8cc430261e"
+ dependencies:
+ expand-tilde "^1.2.2"
+ global-modules "^0.2.3"
+
+resolve-from@4.0.0, resolve-from@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6"
+
+resolve-from@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-1.0.1.tgz#26cbfe935d1aeeeabb29bc3fe5aeb01e93d44226"
+
resolve-from@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-2.0.0.tgz#9480ab20e94ffa1d9e80a804c7ea147611966b57"
+resolve-from@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748"
+
+resolve-global@^0.1.0:
+ version "0.1.0"
+ resolved "https://registry.yarnpkg.com/resolve-global/-/resolve-global-0.1.0.tgz#8fb02cfd5b7db20118e886311f15af95bd15fbd9"
+ dependencies:
+ global-dirs "^0.1.0"
+
+resolve-url@^0.2.1:
+ version "0.2.1"
+ resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a"
+
resolve@1.1.x:
version "1.1.7"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b"
-resolve@^1.1.6:
+resolve@^1.1.6, resolve@^1.3.2, resolve@^1.3.3, resolve@^1.5.0, resolve@^1.6.0:
version "1.8.1"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.8.1.tgz#82f1ec19a423ac1fbd080b0bab06ba36e84a7a26"
dependencies:
path-parse "^1.0.5"
-rimraf@2, rimraf@^2.2.8:
+restore-cursor@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-1.0.1.tgz#34661f46886327fed2991479152252df92daa541"
+ dependencies:
+ exit-hook "^1.0.0"
+ onetime "^1.0.0"
+
+restore-cursor@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf"
+ dependencies:
+ onetime "^2.0.0"
+ signal-exit "^3.0.2"
+
+ret@~0.1.10:
+ version "0.1.15"
+ resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc"
+
+right-pad@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/right-pad/-/right-pad-1.0.1.tgz#8ca08c2cbb5b55e74dafa96bf7fd1a27d568c8d0"
+
+rimraf@2, rimraf@^2.2.8, rimraf@^2.5.2, rimraf@^2.6.1:
version "2.6.2"
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36"
dependencies:
@@ -1887,6 +5841,42 @@ ripemd160@^2.0.0, ripemd160@^2.0.1:
hash-base "^3.0.0"
inherits "^2.0.1"
+run-async@^0.1.0:
+ version "0.1.0"
+ resolved "https://registry.yarnpkg.com/run-async/-/run-async-0.1.0.tgz#c8ad4a5e110661e402a7d21b530e009f25f8e389"
+ dependencies:
+ once "^1.3.0"
+
+run-async@^2.2.0:
+ version "2.3.0"
+ resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.3.0.tgz#0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0"
+ dependencies:
+ is-promise "^2.1.0"
+
+rx-lite-aggregates@^4.0.8:
+ version "4.0.8"
+ resolved "https://registry.yarnpkg.com/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz#753b87a89a11c95467c4ac1626c4efc4e05c67be"
+ dependencies:
+ rx-lite "*"
+
+rx-lite@*, rx-lite@^4.0.8:
+ version "4.0.8"
+ resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-4.0.8.tgz#0b1e11af8bc44836f04a6407e92da42467b79444"
+
+rx-lite@^3.1.2:
+ version "3.1.2"
+ resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-3.1.2.tgz#19ce502ca572665f3b647b10939f97fd1615f102"
+
+rx@^4.1.0:
+ version "4.1.0"
+ resolved "https://registry.yarnpkg.com/rx/-/rx-4.1.0.tgz#a5f13ff79ef3b740fe30aa803fb09f98805d4782"
+
+rxjs@^5.4.2:
+ version "5.5.12"
+ resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.5.12.tgz#6fa61b8a77c3d793dbaf270bee2f43f652d741cc"
+ dependencies:
+ symbol-observable "1.0.1"
+
safe-buffer@5.1.1:
version "5.1.1"
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853"
@@ -1895,10 +5885,20 @@ safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2,
version "5.1.2"
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
+safe-regex@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e"
+ dependencies:
+ ret "~0.1.10"
+
"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2:
version "2.1.2"
resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
+sax@^1.2.4:
+ version "1.2.4"
+ resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
+
scrypt.js@0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/scrypt.js/-/scrypt.js-0.2.0.tgz#af8d1465b71e9990110bedfc593b9479e03a8ada"
@@ -1924,10 +5924,14 @@ seek-bzip@^1.0.5:
dependencies:
commander "~2.8.1"
-"semver@2 || 3 || 4 || 5", semver@^5.3.0:
+"semver@2 || 3 || 4 || 5", semver@5.5.0, semver@^5.3.0:
version "5.5.0"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab"
+semver@^5.1.0, semver@^5.4.1, semver@^5.5.0:
+ version "5.5.1"
+ resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.1.tgz#7dfdd8814bdb7cabc7be0fb1d734cfb66c940477"
+
send@0.16.2:
version "0.16.2"
resolved "https://registry.yarnpkg.com/send/-/send-0.16.2.tgz#6ecca1e0f8c156d141597559848df64730a6bbc1"
@@ -1965,10 +5969,32 @@ servify@^0.1.12:
request "^2.79.0"
xhr "^2.3.3"
-set-blocking@^2.0.0:
+set-blocking@^2.0.0, set-blocking@~2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
+set-immediate-shim@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61"
+
+set-value@^0.4.3:
+ version "0.4.3"
+ resolved "https://registry.yarnpkg.com/set-value/-/set-value-0.4.3.tgz#7db08f9d3d22dc7f78e53af3c3bf4666ecdfccf1"
+ dependencies:
+ extend-shallow "^2.0.1"
+ is-extendable "^0.1.1"
+ is-plain-object "^2.0.1"
+ to-object-path "^0.3.0"
+
+set-value@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.0.tgz#71ae4a88f0feefbbf52d1ea604f3fb315ebb6274"
+ dependencies:
+ extend-shallow "^2.0.1"
+ is-extendable "^0.1.1"
+ is-plain-object "^2.0.3"
+ split-string "^3.0.1"
+
setimmediate@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285"
@@ -1992,9 +6018,36 @@ sha3@^1.1.0:
version "1.2.2"
resolved "https://registry.yarnpkg.com/sha3/-/sha3-1.2.2.tgz#a66c5098de4c25bc88336ec8b4817d005bca7ba9"
dependencies:
- nan "2.10.0"
+ nan "2.10.0"
+
+shebang-command@^1.2.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea"
+ dependencies:
+ shebang-regex "^1.0.0"
+
+shebang-regex@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"
+
+shell-quote@^1.6.1:
+ version "1.6.1"
+ resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.6.1.tgz#f4781949cce402697127430ea3b3c5476f481767"
+ dependencies:
+ array-filter "~0.0.0"
+ array-map "~0.0.0"
+ array-reduce "~0.0.0"
+ jsonify "~0.0.0"
+
+shelljs@0.7.6:
+ version "0.7.6"
+ resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.6.tgz#379cccfb56b91c8601e4793356eb5382924de9ad"
+ dependencies:
+ glob "^7.0.0"
+ interpret "^1.0.0"
+ rechoir "^0.6.2"
-shelljs@^0.7.4:
+shelljs@^0.7.4, shelljs@^0.7.8:
version "0.7.8"
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.8.tgz#decbcf874b0d1e5fb72e14b164a9683048e9acb3"
dependencies:
@@ -2002,6 +6055,10 @@ shelljs@^0.7.4:
interpret "^1.0.0"
rechoir "^0.6.2"
+signal-exit@^3.0.0, signal-exit@^3.0.2:
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d"
+
simple-concat@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/simple-concat/-/simple-concat-1.0.0.tgz#7344cbb8b6e26fb27d66b2fc86f9f6d5997521c6"
@@ -2014,6 +6071,55 @@ simple-get@^2.7.0:
once "^1.3.1"
simple-concat "^1.0.0"
+slash@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55"
+
+slice-ansi@0.0.4:
+ version "0.0.4"
+ resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-0.0.4.tgz#edbf8903f66f7ce2f8eafd6ceed65e264c831b35"
+
+slice-ansi@1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-1.0.0.tgz#044f1a49d8842ff307aad6b505ed178bd950134d"
+ dependencies:
+ is-fullwidth-code-point "^2.0.0"
+
+snapdragon-node@^2.0.1:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b"
+ dependencies:
+ define-property "^1.0.0"
+ isobject "^3.0.0"
+ snapdragon-util "^3.0.1"
+
+snapdragon-util@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2"
+ dependencies:
+ kind-of "^3.2.0"
+
+snapdragon@^0.8.1:
+ version "0.8.2"
+ resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d"
+ dependencies:
+ base "^0.11.1"
+ debug "^2.2.0"
+ define-property "^0.2.5"
+ extend-shallow "^2.0.1"
+ map-cache "^0.2.2"
+ source-map "^0.5.6"
+ source-map-resolve "^0.5.0"
+ use "^3.1.0"
+
+sol-digger@0.0.2:
+ version "0.0.2"
+ resolved "https://registry.yarnpkg.com/sol-digger/-/sol-digger-0.0.2.tgz#406c4a9d31e269e7f88eb1c2ea101318e5e09025"
+
+sol-explore@1.6.1:
+ version "1.6.1"
+ resolved "https://registry.yarnpkg.com/sol-explore/-/sol-explore-1.6.1.tgz#b59f073c69fe332560d5a10c32ba8ca7f2986cfb"
+
sol-explore@^1.6.2:
version "1.6.2"
resolved "https://registry.yarnpkg.com/sol-explore/-/sol-explore-1.6.2.tgz#43ae8c419fd3ac056a05f8a9d1fb1022cd41ecc2"
@@ -2051,6 +6157,45 @@ solidity-parser-sc@0.4.11:
pegjs "^0.10.0"
yargs "^4.6.0"
+solium-plugin-security@0.1.1:
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/solium-plugin-security/-/solium-plugin-security-0.1.1.tgz#2a87bcf8f8c3abf7d198e292e4ac080284e3f3f6"
+
+solium@^1.1.8:
+ version "1.1.8"
+ resolved "https://registry.yarnpkg.com/solium/-/solium-1.1.8.tgz#35d30a15c572a233ce8a90226d6cfccb762fadb7"
+ dependencies:
+ ajv "^5.2.2"
+ chokidar "^1.6.0"
+ colors "^1.1.2"
+ commander "^2.9.0"
+ eol "^0.9.1"
+ js-string-escape "^1.0.1"
+ lodash "^4.14.2"
+ sol-digger "0.0.2"
+ sol-explore "1.6.1"
+ solium-plugin-security "0.1.1"
+ solparse "2.2.5"
+ text-table "^0.2.0"
+
+solparse@2.2.5:
+ version "2.2.5"
+ resolved "https://registry.yarnpkg.com/solparse/-/solparse-2.2.5.tgz#72709c867cd6bfc50ec2325f4b81d2b3ea365d99"
+ dependencies:
+ mocha "^4.0.1"
+ pegjs "^0.10.0"
+ yargs "^10.0.3"
+
+source-map-resolve@^0.5.0:
+ version "0.5.2"
+ resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.2.tgz#72e2cc34095543e43b2c62b2c4c10d4a9054f259"
+ dependencies:
+ atob "^2.1.1"
+ decode-uri-component "^0.2.0"
+ resolve-url "^0.2.1"
+ source-map-url "^0.4.0"
+ urix "^0.1.0"
+
source-map-support@^0.5.3:
version "0.5.9"
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.9.tgz#41bc953b2534267ea2d605bccfa7bfa3111ced5f"
@@ -2058,6 +6203,14 @@ source-map-support@^0.5.3:
buffer-from "^1.0.0"
source-map "^0.6.0"
+source-map-url@^0.4.0:
+ version "0.4.0"
+ resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3"
+
+source-map@^0.5.0, source-map@^0.5.6:
+ version "0.5.7"
+ resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"
+
source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1:
version "0.6.1"
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
@@ -2068,6 +6221,13 @@ source-map@~0.2.0:
dependencies:
amdefine ">=0.0.4"
+spawn-sync@^1.0.15:
+ version "1.0.15"
+ resolved "https://registry.yarnpkg.com/spawn-sync/-/spawn-sync-1.0.15.tgz#b00799557eb7fb0c8376c29d44e8a1ea67e57476"
+ dependencies:
+ concat-stream "^1.4.7"
+ os-shim "^0.1.2"
+
spdx-correct@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.0.0.tgz#05a5b4d7153a195bc92c3c425b69f3b2a9524c82"
@@ -2090,6 +6250,32 @@ spdx-license-ids@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz#7a7cd28470cc6d3a1cfe6d66886f6bc430d3ac87"
+specificity@^0.3.1:
+ version "0.3.2"
+ resolved "https://registry.yarnpkg.com/specificity/-/specificity-0.3.2.tgz#99e6511eceef0f8d9b57924937aac2cb13d13c42"
+
+specificity@^0.4.0:
+ version "0.4.1"
+ resolved "https://registry.yarnpkg.com/specificity/-/specificity-0.4.1.tgz#aab5e645012db08ba182e151165738d00887b019"
+
+split-string@^3.0.1, split-string@^3.0.2:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2"
+ dependencies:
+ extend-shallow "^3.0.0"
+
+split2@^2.0.0:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/split2/-/split2-2.2.0.tgz#186b2575bcf83e85b7d18465756238ee4ee42493"
+ dependencies:
+ through2 "^2.0.2"
+
+split@^1.0.0, split@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/split/-/split-1.0.1.tgz#605bd9be303aa59fb35f9229fbea0ddec9ea07d9"
+ dependencies:
+ through "2"
+
sprintf-js@~1.0.2:
version "1.0.3"
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
@@ -2109,6 +6295,34 @@ sshpk@^1.7.0:
jsbn "~0.1.0"
tweetnacl "~0.14.0"
+staged-git-files@1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/staged-git-files/-/staged-git-files-1.0.0.tgz#cdb847837c1fcc52c08a872d4883cc0877668a80"
+
+standard-version@^4.4.0:
+ version "4.4.0"
+ resolved "https://registry.yarnpkg.com/standard-version/-/standard-version-4.4.0.tgz#99de7a0709e6cafddf9c5984dd342c8cfe66e79f"
+ dependencies:
+ chalk "^1.1.3"
+ conventional-changelog "^1.1.0"
+ conventional-recommended-bump "^1.0.0"
+ dotgitignore "^1.0.3"
+ figures "^1.5.0"
+ fs-access "^1.0.0"
+ semver "^5.1.0"
+ yargs "^8.0.1"
+
+state-toggle@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/state-toggle/-/state-toggle-1.0.1.tgz#c3cb0974f40a6a0f8e905b96789eb41afa1cde3a"
+
+static-extend@^0.1.1:
+ version "0.1.2"
+ resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6"
+ dependencies:
+ define-property "^0.2.5"
+ object-copy "^0.1.0"
+
"statuses@>= 1.3.1 < 2", "statuses@>= 1.4.0 < 2":
version "1.5.0"
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
@@ -2117,6 +6331,23 @@ statuses@~1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.4.0.tgz#bb73d446da2796106efcc1b601a253d6c46bd087"
+stealthy-require@^1.1.0:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b"
+
+stream-combiner@^0.2.2:
+ version "0.2.2"
+ resolved "https://registry.yarnpkg.com/stream-combiner/-/stream-combiner-0.2.2.tgz#aec8cbac177b56b6f4fa479ced8c1912cee52858"
+ dependencies:
+ duplexer "~0.1.1"
+ through "~2.3.4"
+
+stream-to-observable@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/stream-to-observable/-/stream-to-observable-0.2.0.tgz#59d6ea393d87c2c0ddac10aa0d561bc6ba6f0e10"
+ dependencies:
+ any-observable "^0.2.0"
+
strict-uri-encode@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713"
@@ -2129,48 +6360,269 @@ string-width@^1.0.1:
is-fullwidth-code-point "^1.0.0"
strip-ansi "^3.0.0"
+"string-width@^1.0.2 || 2", string-width@^2.0.0, string-width@^2.1.0, string-width@^2.1.1:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e"
+ dependencies:
+ is-fullwidth-code-point "^2.0.0"
+ strip-ansi "^4.0.0"
+
+string.prototype.padend@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/string.prototype.padend/-/string.prototype.padend-3.0.0.tgz#f3aaef7c1719f170c5eab1c32bf780d96e21f2f0"
+ dependencies:
+ define-properties "^1.1.2"
+ es-abstract "^1.4.3"
+ function-bind "^1.0.2"
+
string_decoder@~1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8"
dependencies:
safe-buffer "~5.1.0"
+stringify-entities@^1.0.1:
+ version "1.3.2"
+ resolved "https://registry.yarnpkg.com/stringify-entities/-/stringify-entities-1.3.2.tgz#a98417e5471fd227b3e45d3db1861c11caf668f7"
+ dependencies:
+ character-entities-html4 "^1.0.0"
+ character-entities-legacy "^1.0.0"
+ is-alphanumerical "^1.0.0"
+ is-hexadecimal "^1.0.0"
+
+stringify-object@^3.2.0:
+ version "3.2.2"
+ resolved "https://registry.yarnpkg.com/stringify-object/-/stringify-object-3.2.2.tgz#9853052e5a88fb605a44cd27445aa257ad7ffbcd"
+ dependencies:
+ get-own-enumerable-property-symbols "^2.0.1"
+ is-obj "^1.0.1"
+ is-regexp "^1.0.0"
+
strip-ansi@^3.0.0, strip-ansi@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf"
dependencies:
ansi-regex "^2.0.0"
+strip-ansi@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f"
+ dependencies:
+ ansi-regex "^3.0.0"
+
strip-bom@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e"
dependencies:
is-utf8 "^0.2.0"
+strip-bom@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3"
+
strip-dirs@^2.0.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/strip-dirs/-/strip-dirs-2.1.0.tgz#4987736264fc344cf20f6c34aca9d13d1d4ed6c5"
dependencies:
is-natural-number "^4.0.1"
+strip-eof@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf"
+
strip-hex-prefix@1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/strip-hex-prefix/-/strip-hex-prefix-1.0.0.tgz#0c5f155fef1151373377de9dbb588da05500e36f"
dependencies:
is-hex-prefixed "1.0.0"
+strip-indent@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-1.0.1.tgz#0c7962a6adefa7bbd4ac366460a638552ae1a0a2"
+ dependencies:
+ get-stdin "^4.0.1"
+
+strip-indent@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-2.0.0.tgz#5ef8db295d01e6ed6cbf7aab96998d7822527b68"
+
+strip-json-comments@2.0.1, strip-json-comments@~2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
+
+style-search@^0.1.0:
+ version "0.1.0"
+ resolved "https://registry.yarnpkg.com/style-search/-/style-search-0.1.0.tgz#7958c793e47e32e07d2b5cafe5c0bf8e12e77902"
+
+stylelint-config-recommended@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/stylelint-config-recommended/-/stylelint-config-recommended-2.1.0.tgz#f526d5c771c6811186d9eaedbed02195fee30858"
+
+stylelint-config-standard@^18.0.0:
+ version "18.2.0"
+ resolved "https://registry.yarnpkg.com/stylelint-config-standard/-/stylelint-config-standard-18.2.0.tgz#6283149aba7f64f18731aef8f0abfb35cf619e06"
+ dependencies:
+ stylelint-config-recommended "^2.1.0"
+
+stylelint-order@^0.8.0:
+ version "0.8.1"
+ resolved "https://registry.yarnpkg.com/stylelint-order/-/stylelint-order-0.8.1.tgz#35f71af3a15954154e0e99e5646ba3d6fbe34f8d"
+ dependencies:
+ lodash "^4.17.4"
+ postcss "^6.0.14"
+ postcss-sorting "^3.1.0"
+
+stylelint-scss@^2.3.0:
+ version "2.5.0"
+ resolved "https://registry.yarnpkg.com/stylelint-scss/-/stylelint-scss-2.5.0.tgz#ac4c83474c53b19cc1f9e93d332786cf89c8d217"
+ dependencies:
+ lodash "^4.17.4"
+ postcss-media-query-parser "^0.2.3"
+ postcss-resolve-nested-selector "^0.1.1"
+ postcss-selector-parser "^3.1.1"
+ postcss-value-parser "^3.3.0"
+
+stylelint-selector-bem-pattern@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/stylelint-selector-bem-pattern/-/stylelint-selector-bem-pattern-2.0.0.tgz#9a6130c9c90963b30e925c917079d6c8fed73f45"
+ dependencies:
+ lodash ">=3.10.0"
+ postcss ">=5.0.19"
+ postcss-bem-linter "^3.0.0"
+ stylelint ">=3.0.2"
+
+stylelint@>=3.0.2:
+ version "9.5.0"
+ resolved "https://registry.yarnpkg.com/stylelint/-/stylelint-9.5.0.tgz#f7afb45342abc4acf28a8da8a48373e9f79c1fb4"
+ dependencies:
+ autoprefixer "^9.0.0"
+ balanced-match "^1.0.0"
+ chalk "^2.4.1"
+ cosmiconfig "^5.0.0"
+ debug "^3.0.0"
+ execall "^1.0.0"
+ file-entry-cache "^2.0.0"
+ get-stdin "^6.0.0"
+ globby "^8.0.0"
+ globjoin "^0.1.4"
+ html-tags "^2.0.0"
+ ignore "^4.0.0"
+ import-lazy "^3.1.0"
+ imurmurhash "^0.1.4"
+ known-css-properties "^0.6.0"
+ lodash "^4.17.4"
+ log-symbols "^2.0.0"
+ mathml-tag-names "^2.0.1"
+ meow "^5.0.0"
+ micromatch "^2.3.11"
+ normalize-selector "^0.2.0"
+ pify "^4.0.0"
+ postcss "^7.0.0"
+ postcss-html "^0.33.0"
+ postcss-jsx "^0.33.0"
+ postcss-less "^2.0.0"
+ postcss-markdown "^0.33.0"
+ postcss-media-query-parser "^0.2.3"
+ postcss-reporter "^5.0.0"
+ postcss-resolve-nested-selector "^0.1.1"
+ postcss-safe-parser "^4.0.0"
+ postcss-sass "^0.3.0"
+ postcss-scss "^2.0.0"
+ postcss-selector-parser "^3.1.0"
+ postcss-styled "^0.33.0"
+ postcss-syntax "^0.33.0"
+ postcss-value-parser "^3.3.0"
+ resolve-from "^4.0.0"
+ signal-exit "^3.0.2"
+ specificity "^0.4.0"
+ string-width "^2.1.0"
+ style-search "^0.1.0"
+ sugarss "^2.0.0"
+ svg-tags "^1.0.0"
+ table "^4.0.1"
+
+stylelint@^8.4.0:
+ version "8.4.0"
+ resolved "https://registry.yarnpkg.com/stylelint/-/stylelint-8.4.0.tgz#c2dbaeb17236917819f9206e1c0df5fddf6f83c3"
+ dependencies:
+ autoprefixer "^7.1.2"
+ balanced-match "^1.0.0"
+ chalk "^2.0.1"
+ cosmiconfig "^3.1.0"
+ debug "^3.0.0"
+ execall "^1.0.0"
+ file-entry-cache "^2.0.0"
+ get-stdin "^5.0.1"
+ globby "^7.0.0"
+ globjoin "^0.1.4"
+ html-tags "^2.0.0"
+ ignore "^3.3.3"
+ imurmurhash "^0.1.4"
+ known-css-properties "^0.5.0"
+ lodash "^4.17.4"
+ log-symbols "^2.0.0"
+ mathml-tag-names "^2.0.1"
+ meow "^4.0.0"
+ micromatch "^2.3.11"
+ normalize-selector "^0.2.0"
+ pify "^3.0.0"
+ postcss "^6.0.6"
+ postcss-html "^0.12.0"
+ postcss-less "^1.1.0"
+ postcss-media-query-parser "^0.2.3"
+ postcss-reporter "^5.0.0"
+ postcss-resolve-nested-selector "^0.1.1"
+ postcss-safe-parser "^3.0.1"
+ postcss-sass "^0.2.0"
+ postcss-scss "^1.0.2"
+ postcss-selector-parser "^3.1.0"
+ postcss-value-parser "^3.3.0"
+ resolve-from "^4.0.0"
+ specificity "^0.3.1"
+ string-width "^2.1.0"
+ style-search "^0.1.0"
+ sugarss "^1.0.0"
+ svg-tags "^1.0.0"
+ table "^4.0.1"
+
+sugarss@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/sugarss/-/sugarss-1.0.1.tgz#be826d9003e0f247735f92365dc3fd7f1bae9e44"
+ dependencies:
+ postcss "^6.0.14"
+
+sugarss@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/sugarss/-/sugarss-2.0.0.tgz#ddd76e0124b297d40bf3cca31c8b22ecb43bc61d"
+ dependencies:
+ postcss "^7.0.2"
+
supports-color@4.4.0:
version "4.4.0"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.4.0.tgz#883f7ddabc165142b2a61427f3352ded195d1a3e"
dependencies:
has-flag "^2.0.0"
-supports-color@^3.1.0:
+supports-color@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
+
+supports-color@^3.1.0, supports-color@^3.2.3:
version "3.2.3"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6"
dependencies:
has-flag "^1.0.0"
+supports-color@^5.2.0, supports-color@^5.3.0, supports-color@^5.4.0:
+ version "5.5.0"
+ resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"
+ dependencies:
+ has-flag "^3.0.0"
+
+svg-tags@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/svg-tags/-/svg-tags-1.0.0.tgz#58f71cee3bd519b59d4b2a843b6c7de64ac04764"
+
swarm-js@0.1.37:
version "0.1.37"
resolved "https://registry.yarnpkg.com/swarm-js/-/swarm-js-0.1.37.tgz#27d485317a340bbeec40292af783cc10acfa4663"
@@ -2189,6 +6641,36 @@ swarm-js@0.1.37:
tar.gz "^1.0.5"
xhr-request-promise "^0.1.2"
+symbol-observable@1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.0.1.tgz#8340fc4702c3122df5d22288f88283f513d3fdd4"
+
+symbol-observable@^0.2.2:
+ version "0.2.4"
+ resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-0.2.4.tgz#95a83db26186d6af7e7a18dbd9760a2f86d08f40"
+
+table@4.0.2:
+ version "4.0.2"
+ resolved "https://registry.yarnpkg.com/table/-/table-4.0.2.tgz#a33447375391e766ad34d3486e6e2aedc84d2e36"
+ dependencies:
+ ajv "^5.2.3"
+ ajv-keywords "^2.1.0"
+ chalk "^2.1.0"
+ lodash "^4.17.4"
+ slice-ansi "1.0.0"
+ string-width "^2.1.1"
+
+table@^4.0.1:
+ version "4.0.3"
+ resolved "http://registry.npmjs.org/table/-/table-4.0.3.tgz#00b5e2b602f1794b9acaf9ca908a76386a7813bc"
+ dependencies:
+ ajv "^6.0.1"
+ ajv-keywords "^3.0.0"
+ chalk "^2.1.0"
+ lodash "^4.17.4"
+ slice-ansi "1.0.0"
+ string-width "^2.1.1"
+
tar-stream@^1.5.2:
version "1.6.1"
resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-1.6.1.tgz#f84ef1696269d6223ca48f6e1eeede3f7e81f395"
@@ -2219,6 +6701,26 @@ tar@^2.1.1:
fstream "^1.0.2"
inherits "2"
+tar@^4:
+ version "4.4.6"
+ resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.6.tgz#63110f09c00b4e60ac8bcfe1bf3c8660235fbc9b"
+ dependencies:
+ chownr "^1.0.1"
+ fs-minipass "^1.2.5"
+ minipass "^2.3.3"
+ minizlib "^1.1.0"
+ mkdirp "^0.5.0"
+ safe-buffer "^5.1.2"
+ yallist "^3.0.2"
+
+text-extensions@^1.0.0:
+ version "1.7.0"
+ resolved "https://registry.yarnpkg.com/text-extensions/-/text-extensions-1.7.0.tgz#faaaba2625ed746d568a23e4d0aacd9bf08a8b39"
+
+text-table@^0.2.0, text-table@~0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"
+
thenify-all@^1.0.0, thenify-all@^1.6.0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/thenify-all/-/thenify-all-1.6.0.tgz#1a1918d402d8fc3f98fbf234db0bcc8cc10e9726"
@@ -2231,7 +6733,18 @@ thenify-all@^1.0.0, thenify-all@^1.6.0:
dependencies:
any-promise "^1.0.0"
-through@^2.3.6:
+throat@^4.1.0:
+ version "4.1.0"
+ resolved "https://registry.yarnpkg.com/throat/-/throat-4.1.0.tgz#89037cbc92c56ab18926e6ba4cbb200e15672a6a"
+
+through2@^2.0.0, through2@^2.0.2:
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.3.tgz#0004569b37c7c74ba39c43f3ced78d1ad94140be"
+ dependencies:
+ readable-stream "^2.1.5"
+ xtend "~4.0.1"
+
+through@2, "through@>=2.2.7 <3", through@^2.3.6, through@^2.3.8, through@~2.3, through@~2.3.4:
version "2.3.8"
resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
@@ -2239,31 +6752,93 @@ timed-out@^4.0.0, timed-out@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f"
+tmp@^0.0.29:
+ version "0.0.29"
+ resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.29.tgz#f25125ff0dd9da3ccb0c2dd371ee1288bb9128c0"
+ dependencies:
+ os-tmpdir "~1.0.1"
+
+tmp@^0.0.33:
+ version "0.0.33"
+ resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9"
+ dependencies:
+ os-tmpdir "~1.0.2"
+
to-buffer@^1.1.0:
version "1.1.1"
resolved "https://registry.yarnpkg.com/to-buffer/-/to-buffer-1.1.1.tgz#493bd48f62d7c43fcded313a03dcadb2e1213a80"
-tough-cookie@~2.3.3:
- version "2.3.4"
- resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.4.tgz#ec60cee38ac675063ffc97a5c18970578ee83655"
+to-fast-properties@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e"
+
+to-object-path@^0.3.0:
+ version "0.3.0"
+ resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af"
dependencies:
- punycode "^1.4.1"
+ kind-of "^3.0.2"
+
+to-regex-range@^2.1.0:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38"
+ dependencies:
+ is-number "^3.0.0"
+ repeat-string "^1.6.1"
+
+to-regex@^3.0.1, to-regex@^3.0.2:
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce"
+ dependencies:
+ define-property "^2.0.2"
+ extend-shallow "^3.0.2"
+ regex-not "^1.0.2"
+ safe-regex "^1.1.0"
-tough-cookie@~2.4.3:
+tough-cookie@>=2.3.3, tough-cookie@~2.4.3:
version "2.4.3"
resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.4.3.tgz#53f36da3f47783b0925afa06ff9f3b165280f781"
dependencies:
psl "^1.1.24"
punycode "^1.4.1"
+tough-cookie@~2.3.3:
+ version "2.3.4"
+ resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.4.tgz#ec60cee38ac675063ffc97a5c18970578ee83655"
+ dependencies:
+ punycode "^1.4.1"
+
tree-kill@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.0.tgz#5846786237b4239014f05db156b643212d4c6f36"
+trim-newlines@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613"
+
+trim-newlines@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-2.0.0.tgz#b403d0b91be50c331dfc4b82eeceb22c3de16d20"
+
+trim-off-newlines@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz#9f9ba9d9efa8764c387698bcbfeb2c848f11adb3"
+
+trim-right@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003"
+
+trim-trailing-lines@^1.0.0:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/trim-trailing-lines/-/trim-trailing-lines-1.1.1.tgz#e0ec0810fd3c3f1730516b45f49083caaf2774d9"
+
trim@0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/trim/-/trim-0.0.1.tgz#5858547f6b290757ee95cccc666fb50084c460dd"
+trough@^1.0.0:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/trough/-/trough-1.0.3.tgz#e29bd1614c6458d44869fc28b255ab7857ef7c24"
+
truffle@^4.1.13:
version "4.1.14"
resolved "https://registry.yarnpkg.com/truffle/-/truffle-4.1.14.tgz#8d2c298e29abf9b1e486e44ff9faca6d34bb9030"
@@ -2301,6 +6876,10 @@ typedarray-to-buffer@^3.1.2:
dependencies:
is-typedarray "^1.0.0"
+typedarray@^0.0.6:
+ version "0.0.6"
+ resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
+
uglify-js@^3.1.4:
version "3.4.9"
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.4.9.tgz#af02f180c1207d76432e473ed24a28f4a782bae3"
@@ -2323,10 +6902,90 @@ underscore@1.8.3:
version "1.8.3"
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.8.3.tgz#4f3fb53b106e6097fcf9cb4109f2a5e9bdfa5022"
+unherit@^1.0.4:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/unherit/-/unherit-1.1.1.tgz#132748da3e88eab767e08fabfbb89c5e9d28628c"
+ dependencies:
+ inherits "^2.0.1"
+ xtend "^4.0.1"
+
+unified@^6.0.0:
+ version "6.2.0"
+ resolved "https://registry.yarnpkg.com/unified/-/unified-6.2.0.tgz#7fbd630f719126d67d40c644b7e3f617035f6dba"
+ dependencies:
+ bail "^1.0.0"
+ extend "^3.0.0"
+ is-plain-obj "^1.1.0"
+ trough "^1.0.0"
+ vfile "^2.0.0"
+ x-is-string "^0.1.0"
+
+union-value@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.0.tgz#5c71c34cb5bad5dcebe3ea0cd08207ba5aa1aea4"
+ dependencies:
+ arr-union "^3.1.0"
+ get-value "^2.0.6"
+ is-extendable "^0.1.1"
+ set-value "^0.4.3"
+
+uniq@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/uniq/-/uniq-1.0.1.tgz#b31c5ae8254844a3a8281541ce2b04b865a734ff"
+
+unist-util-find-all-after@^1.0.1, unist-util-find-all-after@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/unist-util-find-all-after/-/unist-util-find-all-after-1.0.2.tgz#9be49cfbae5ca1566b27536670a92836bf2f8d6d"
+ dependencies:
+ unist-util-is "^2.0.0"
+
+unist-util-is@^2.0.0, unist-util-is@^2.1.2:
+ version "2.1.2"
+ resolved "https://registry.yarnpkg.com/unist-util-is/-/unist-util-is-2.1.2.tgz#1193fa8f2bfbbb82150633f3a8d2eb9a1c1d55db"
+
+unist-util-remove-position@^1.0.0:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/unist-util-remove-position/-/unist-util-remove-position-1.1.2.tgz#86b5dad104d0bbfbeb1db5f5c92f3570575c12cb"
+ dependencies:
+ unist-util-visit "^1.1.0"
+
+unist-util-stringify-position@^1.0.0, unist-util-stringify-position@^1.1.1:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-1.1.2.tgz#3f37fcf351279dcbca7480ab5889bb8a832ee1c6"
+
+unist-util-visit-parents@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/unist-util-visit-parents/-/unist-util-visit-parents-2.0.1.tgz#63fffc8929027bee04bfef7d2cce474f71cb6217"
+ dependencies:
+ unist-util-is "^2.1.2"
+
+unist-util-visit@^1.1.0:
+ version "1.4.0"
+ resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-1.4.0.tgz#1cb763647186dc26f5e1df5db6bd1e48b3cc2fb1"
+ dependencies:
+ unist-util-visit-parents "^2.0.0"
+
unpipe@1.0.0, unpipe@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"
+unset-value@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559"
+ dependencies:
+ has-value "^0.3.1"
+ isobject "^3.0.0"
+
+uri-js@^4.2.2:
+ version "4.2.2"
+ resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.2.2.tgz#94c540e1ff772956e2299507c010aea6c8838eb0"
+ dependencies:
+ punycode "^2.1.0"
+
+urix@^0.1.0:
+ version "0.1.0"
+ resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72"
+
url-parse-lax@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-1.0.0.tgz#7af8f303645e9bd79a272e7a14ac68bc0609da73"
@@ -2341,6 +7000,10 @@ url-to-options@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/url-to-options/-/url-to-options-1.0.1.tgz#1505a03a289a48cbd7a434efbaeec5055f5633a9"
+use@^3.1.0:
+ version "3.1.1"
+ resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f"
+
utf8@2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/utf8/-/utf8-2.1.1.tgz#2e01db02f7d8d0944f77104f1609eb0c304cf768"
@@ -2384,6 +7047,40 @@ verror@1.10.0:
core-util-is "1.0.2"
extsprintf "^1.2.0"
+vfile-location@^2.0.0:
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/vfile-location/-/vfile-location-2.0.3.tgz#083ba80e50968e8d420be49dd1ea9a992131df77"
+
+vfile-message@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/vfile-message/-/vfile-message-1.0.1.tgz#51a2ccd8a6b97a7980bb34efb9ebde9632e93677"
+ dependencies:
+ unist-util-stringify-position "^1.1.1"
+
+vfile@^2.0.0:
+ version "2.3.0"
+ resolved "https://registry.yarnpkg.com/vfile/-/vfile-2.3.0.tgz#e62d8e72b20e83c324bc6c67278ee272488bf84a"
+ dependencies:
+ is-buffer "^1.1.4"
+ replace-ext "1.0.0"
+ unist-util-stringify-position "^1.0.0"
+ vfile-message "^1.0.0"
+
+vorpal@^1.10.0:
+ version "1.12.0"
+ resolved "https://registry.yarnpkg.com/vorpal/-/vorpal-1.12.0.tgz#4be7b2a4e48f8fcfc9cf3648c419d311c522159d"
+ dependencies:
+ babel-polyfill "^6.3.14"
+ chalk "^1.1.0"
+ in-publish "^2.0.0"
+ inquirer "0.11.0"
+ lodash "^4.5.1"
+ log-update "^1.0.2"
+ minimist "^1.2.0"
+ node-localstorage "^0.6.0"
+ strip-ansi "^3.0.0"
+ wrap-ansi "^2.0.0"
+
web3-bzz@1.0.0-beta.34:
version "1.0.0-beta.34"
resolved "https://registry.yarnpkg.com/web3-bzz/-/web3-bzz-1.0.0-beta.34.tgz#068d37777ab65e5c60f8ec8b9a50cfe45277929c"
@@ -2602,16 +7299,30 @@ which-module@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f"
-which@^1.1.1:
+which-module@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a"
+
+which@^1.1.1, which@^1.2.10, which@^1.2.12, which@^1.2.9:
version "1.3.1"
resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a"
dependencies:
isexe "^2.0.0"
+wide-align@^1.1.0:
+ version "1.1.3"
+ resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457"
+ dependencies:
+ string-width "^1.0.2 || 2"
+
window-size@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.2.0.tgz#b4315bb4214a3d7058ebeee892e13fa24d98b075"
+word-wrap@^1.0.3:
+ version "1.2.3"
+ resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c"
+
wordwrap@^1.0.0, wordwrap@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
@@ -2631,6 +7342,12 @@ wrappy@1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
+write@^0.2.1:
+ version "0.2.1"
+ resolved "https://registry.yarnpkg.com/write/-/write-0.2.1.tgz#5fc03828e264cea3fe91455476f7a3c566cb0757"
+ dependencies:
+ mkdirp "^0.5.1"
+
ws@^3.0.0:
version "3.3.3"
resolved "https://registry.yarnpkg.com/ws/-/ws-3.3.3.tgz#f1cf84fe2d5e901ebce94efaece785f187a228f2"
@@ -2639,6 +7356,10 @@ ws@^3.0.0:
safe-buffer "~5.1.0"
ultron "~1.1.0"
+x-is-string@^0.1.0:
+ version "0.1.0"
+ resolved "https://registry.yarnpkg.com/x-is-string/-/x-is-string-0.1.0.tgz#474b50865af3a49a9c4657f05acd145458f77d82"
+
xhr-request-promise@^0.1.2:
version "0.1.2"
resolved "https://registry.yarnpkg.com/xhr-request-promise/-/xhr-request-promise-0.1.2.tgz#343c44d1ee7726b8648069682d0f840c83b4261d"
@@ -2674,7 +7395,7 @@ xmlhttprequest@*:
version "1.8.0"
resolved "https://registry.yarnpkg.com/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz#67fe075c5c24fef39f9d65f5f7b7fe75171968fc"
-xtend@^4.0.0:
+xtend@^4.0.0, xtend@^4.0.1, xtend@~4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af"
@@ -2686,6 +7407,20 @@ yaeti@^0.0.6:
version "0.0.6"
resolved "https://registry.yarnpkg.com/yaeti/-/yaeti-0.0.6.tgz#f26f484d72684cf42bedfb76970aa1608fbf9577"
+yallist@^2.1.2:
+ version "2.1.2"
+ resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52"
+
+yallist@^3.0.0, yallist@^3.0.2:
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.2.tgz#8452b4bb7e83c7c188d8041c1a837c773d6d8bb9"
+
+yargs-parser@^10.0.0:
+ version "10.1.0"
+ resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-10.1.0.tgz#7202265b89f7e9e9f2e5765e0fe735a905edbaa8"
+ dependencies:
+ camelcase "^4.1.0"
+
yargs-parser@^2.4.1:
version "2.4.1"
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-2.4.1.tgz#85568de3cf150ff49fa51825f03a8c880ddcc5c4"
@@ -2693,6 +7428,35 @@ yargs-parser@^2.4.1:
camelcase "^3.0.0"
lodash.assign "^4.0.6"
+yargs-parser@^7.0.0:
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-7.0.0.tgz#8d0ac42f16ea55debd332caf4c4038b3e3f5dfd9"
+ dependencies:
+ camelcase "^4.1.0"
+
+yargs-parser@^8.1.0:
+ version "8.1.0"
+ resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-8.1.0.tgz#f1376a33b6629a5d063782944da732631e966950"
+ dependencies:
+ camelcase "^4.1.0"
+
+yargs@^10.0.3:
+ version "10.1.2"
+ resolved "https://registry.yarnpkg.com/yargs/-/yargs-10.1.2.tgz#454d074c2b16a51a43e2fb7807e4f9de69ccb5c5"
+ dependencies:
+ cliui "^4.0.0"
+ decamelize "^1.1.1"
+ find-up "^2.1.0"
+ get-caller-file "^1.0.1"
+ os-locale "^2.0.0"
+ require-directory "^2.1.1"
+ require-main-filename "^1.0.1"
+ set-blocking "^2.0.0"
+ string-width "^2.0.0"
+ which-module "^2.0.0"
+ y18n "^3.2.1"
+ yargs-parser "^8.1.0"
+
yargs@^4.6.0, yargs@^4.7.1:
version "4.8.1"
resolved "http://registry.npmjs.org/yargs/-/yargs-4.8.1.tgz#c0c42924ca4aaa6b0e6da1739dfb216439f9ddc0"
@@ -2712,6 +7476,24 @@ yargs@^4.6.0, yargs@^4.7.1:
y18n "^3.2.1"
yargs-parser "^2.4.1"
+yargs@^8.0.1:
+ version "8.0.2"
+ resolved "https://registry.yarnpkg.com/yargs/-/yargs-8.0.2.tgz#6299a9055b1cefc969ff7e79c1d918dceb22c360"
+ dependencies:
+ camelcase "^4.1.0"
+ cliui "^3.2.0"
+ decamelize "^1.1.1"
+ get-caller-file "^1.0.1"
+ os-locale "^2.0.0"
+ read-pkg-up "^2.0.0"
+ require-directory "^2.1.1"
+ require-main-filename "^1.0.1"
+ set-blocking "^2.0.0"
+ string-width "^2.0.0"
+ which-module "^2.0.0"
+ y18n "^3.2.1"
+ yargs-parser "^7.0.0"
+
yauzl@^2.4.2:
version "2.10.0"
resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.10.0.tgz#c7eb17c93e112cb1086fa6d8e51fb0667b79a5f9"