Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use npm and git submodules #728

Merged
merged 4 commits into from
May 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ build/
.idea/
.vscode/
*.iml
*.swp
tags

# LaTeX auxiliary files
*.aux
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "contracts/utilitytoken"]
path = contracts/utilitytoken
url = https://github.com/OpenST/utilitytoken-contracts.git
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ before_install:
- sudo apt-get install nodejs
- sudo apt-get install npm
install:
- npm install
- npm ci
before_script:
- ./tools/runGanacheCli.sh </dev/null 1>/dev/null 2>&1 &
- npm run compile
Expand Down
6 changes: 3 additions & 3 deletions contracts/anchor/Anchor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ pragma solidity ^0.5.0;

import "../lib/CircularBufferUint.sol";
import "../lib/MerklePatriciaProof.sol";
import "../lib/OrganizationInterface.sol";
import "../lib/Organized.sol";
import "../utilitytoken/contracts/organization/contracts/OrganizationInterface.sol";
import "../utilitytoken/contracts/organization/contracts/Organized.sol";
import "../lib/RLP.sol";
import "../lib/SafeMath.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "../lib/StateRootInterface.sol";

/**
Expand Down
7 changes: 3 additions & 4 deletions contracts/core/AuxiliaryBlockStore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pragma solidity ^0.5.0;

import "../lib/Block.sol";
import "../lib/MetaBlock.sol";
import "../lib/SafeMath.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "./BlockStore.sol";
import "./PollingPlaceInterface.sol";
import "./KernelGatewayInterface.sol";
Expand Down Expand Up @@ -269,8 +269,8 @@ contract AuxiliaryBlockStore is

coreIdentifier_ = coreIdentifier;
kernelHash_ = kernelHashes[_blockHash];
auxiliaryDynasty_= checkpoints[_blockHash].dynasty;
auxiliaryBlockHash_=checkpoints[_blockHash].blockHash;
auxiliaryDynasty_ = checkpoints[_blockHash].dynasty;
auxiliaryBlockHash_ = checkpoints[_blockHash].blockHash;
accumulatedGas_ = accumulatedGases[_blockHash];
originDynasty_ = originDynasties[_blockHash];
originBlockHash_ = originBlockHashes[_blockHash];
Expand Down Expand Up @@ -497,5 +497,4 @@ contract AuxiliaryBlockStore is

isAncestor_ = currentCheckpoint.blockHash == _ancestor;
}

}
2 changes: 1 addition & 1 deletion contracts/core/BlockStore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pragma solidity ^0.5.0;

import "../lib/Block.sol";
import "../lib/MetaBlock.sol";
import "../lib/SafeMath.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "./BlockStoreInterface.sol";
import "./OriginTransitionObjectInterface.sol";
/**
Expand Down
4 changes: 2 additions & 2 deletions contracts/core/KernelGateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import "../lib/RLP.sol";
import "./BlockStoreInterface.sol";
import "../lib/MerklePatriciaProof.sol";
import "../lib/BytesLib.sol";
import "../lib/SafeMath.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "../lib/MetaBlock.sol";
import "./AuxiliaryTransitionObjectInterface.sol";
import "./KernelGatewayInterface.sol";
Expand Down Expand Up @@ -666,7 +666,7 @@ contract KernelGateway is KernelGatewayInterface {
{
bytes32 transitionHash =
AuxiliaryTransitionObjectInterface(address(auxiliaryBlockStore))
.auxiliaryTransitionHashAtBlock(_blockHash);
.auxiliaryTransitionHashAtBlock(_blockHash);

metaBlockHash_ = MetaBlock.hashMetaBlock(
activeKernelHash,
Expand Down
2 changes: 1 addition & 1 deletion contracts/core/MosaicCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import "./MosaicCoreInterface.sol";
import "./Stake.sol";
import "../lib/MetaBlock.sol";
import "../lib/OstInterface.sol";
import "../lib/SafeMath.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "../lib/StateRootInterface.sol";

/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/core/PollingPlace.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pragma solidity ^0.5.0;
//
// ----------------------------------------------------------------------------

import "../lib/SafeMath.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "../lib/MetaBlock.sol";
import "./BlockStoreInterface.sol";
import "./PollingPlaceInterface.sol";
Expand Down
4 changes: 2 additions & 2 deletions contracts/core/Stake.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pragma solidity ^0.5.0;

import "../lib/EIP20Interface.sol";
import "./StakeInterface.sol";
import "../lib/SafeMath.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";

/**
* @title The Stake contract tracks deposits, logouts, slashings etc. on origin.
Expand Down Expand Up @@ -60,7 +60,7 @@ contract Stake is StakeInterface {

/**
* The stake initially equals the deposit. It can decrease due to
* withdrawal or slashing. Initially, the weight on auxiliary will
* withdrawal or slashing. Initially, the weight on auxiliary will
* equal the stake.
*/
uint256 stake;
Expand Down
33 changes: 0 additions & 33 deletions contracts/gateway/CoGatewayUtilityTokenInterface.sol

This file was deleted.

4 changes: 2 additions & 2 deletions contracts/gateway/EIP20CoGateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ pragma solidity ^0.5.0;
-------------------------------------------------------------------------------
*/

import "./UtilityTokenInterface.sol";
import "../utilitytoken/contracts/UtilityTokenInterface.sol";
import "./GatewayBase.sol";
import "../lib/OrganizationInterface.sol";
import "../utilitytoken/contracts/organization/contracts/OrganizationInterface.sol";

/**
* @title EIP20CoGateway Contract
Expand Down
2 changes: 1 addition & 1 deletion contracts/gateway/EIP20Gateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pragma solidity ^0.5.0;

import "./SimpleStake.sol";
import "./GatewayBase.sol";
import "../lib/OrganizationInterface.sol";
import "../utilitytoken/contracts/organization/contracts/OrganizationInterface.sol";

/**
* @title EIP20Gateway Contract
Expand Down
4 changes: 2 additions & 2 deletions contracts/gateway/EIP20Token.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ pragma solidity ^0.5.0;
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
//
// ----------------------------------------------------------------------------
//
// http://www.simpletoken.org/
//
// ----------------------------------------------------------------------------

import "../lib/EIP20Interface.sol";
import "../lib/SafeMath.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";

/**
* @title EIP20Token contract.
Expand Down
8 changes: 4 additions & 4 deletions contracts/gateway/GatewayBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ pragma solidity ^0.5.0;
import "../lib/EIP20Interface.sol";
import "../lib/GatewayLib.sol";
import "../lib/MessageBus.sol";
import "../lib/OrganizationInterface.sol";
import "../lib/Organized.sol";
import "../lib/SafeMath.sol";
import "../utilitytoken/contracts/organization/contracts/OrganizationInterface.sol";
import "../utilitytoken/contracts/organization/contracts/Organized.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "../lib/StateRootInterface.sol";

/**
Expand Down Expand Up @@ -178,7 +178,7 @@ contract GatewayBase is Organized {

// The following variables are not known at construction:
messageBox = MessageBus.MessageBox();
encodedGatewayPath = '';
encodedGatewayPath = "";
remoteGateway = address(0);
}

Expand Down
8 changes: 4 additions & 4 deletions contracts/gateway/OSTPrime.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ pragma solidity ^0.5.0;
* the auxiliary chain.
*/
import "./OSTPrimeConfig.sol";
import "./UtilityToken.sol";
import "../utilitytoken/contracts/UtilityToken.sol";
import "../lib/Mutex.sol";
import "../lib/OrganizationInterface.sol";
import "../lib/SafeMath.sol";
import "../utilitytoken/contracts/organization/contracts/OrganizationInterface.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";

/**
* @title OSTPrime contract implements UtilityToken and
Expand Down Expand Up @@ -121,7 +121,7 @@ contract OSTPrime is UtilityToken, OSTPrimeConfig, Mutex {
* minted as base coin.
*
* @return success_ `true` if initialize was successful.
*/
*/
function initialize()
external
payable
Expand Down
2 changes: 1 addition & 1 deletion contracts/gateway/SimpleStake.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pragma solidity ^0.5.0;
// ----------------------------------------------------------------------------

import "../lib/EIP20Interface.sol";
import "../lib/SafeMath.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";

/**
* @title SimpleStake contract
Expand Down
Loading