Skip to content

Commit

Permalink
Kovan deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
protinam committed Dec 11, 2017
1 parent 308d4d2 commit cd261f1
Show file tree
Hide file tree
Showing 28 changed files with 50,164 additions and 7 deletions.
1,317 changes: 1,317 additions & 0 deletions build/contracts/BasicToken.json

Large diffs are not rendered by default.

1,161 changes: 1,161 additions & 0 deletions build/contracts/BurnableToken.json

Large diffs are not rendered by default.

785 changes: 785 additions & 0 deletions build/contracts/Claimable.json

Large diffs are not rendered by default.

1,005 changes: 1,005 additions & 0 deletions build/contracts/DelayedReleaseToken.json

Large diffs are not rendered by default.

10,824 changes: 10,824 additions & 0 deletions build/contracts/DelegatedShareholderAssociation.json

Large diffs are not rendered by default.

745 changes: 745 additions & 0 deletions build/contracts/ERC20.json

Large diffs are not rendered by default.

474 changes: 474 additions & 0 deletions build/contracts/ERC20Basic.json

Large diffs are not rendered by default.

634 changes: 634 additions & 0 deletions build/contracts/EscrowProvider.json

Large diffs are not rendered by default.

11,462 changes: 11,462 additions & 0 deletions build/contracts/Exchange.json

Large diffs are not rendered by default.

1,044 changes: 1,044 additions & 0 deletions build/contracts/MerkleProof.json

Large diffs are not rendered by default.

834 changes: 834 additions & 0 deletions build/contracts/Migrations.json

Large diffs are not rendered by default.

841 changes: 841 additions & 0 deletions build/contracts/Ownable.json

Large diffs are not rendered by default.

1,347 changes: 1,347 additions & 0 deletions build/contracts/SafeMath.json

Large diffs are not rendered by default.

3,736 changes: 3,736 additions & 0 deletions build/contracts/StandardToken.json

Large diffs are not rendered by default.

1,309 changes: 1,309 additions & 0 deletions build/contracts/TestDAO.json

Large diffs are not rendered by default.

851 changes: 851 additions & 0 deletions build/contracts/TestToken.json

Large diffs are not rendered by default.

1,028 changes: 1,028 additions & 0 deletions build/contracts/TokenRecipient.json

Large diffs are not rendered by default.

6,291 changes: 6,291 additions & 0 deletions build/contracts/UTXORedeemableToken.json

Large diffs are not rendered by default.

1,303 changes: 1,303 additions & 0 deletions build/contracts/WyvernDAO.json

Large diffs are not rendered by default.

1,119 changes: 1,119 additions & 0 deletions build/contracts/WyvernExchange.json

Large diffs are not rendered by default.

2,018 changes: 2,018 additions & 0 deletions build/contracts/WyvernToken.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions migrations/2_deploy_test_token_and_dao.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ const TestToken = artifacts.require('./TestToken.sol')
const TestDAO = artifacts.require('./TestDAO.sol')

module.exports = (deployer, network) => {
if (network === 'development') {
if (network === 'development' || network === 'kovan') {
deployer.deploy(TestToken)
.then(() => {
return deployer.deploy(TestDAO, TestToken.address, Math.pow(10, 18) * 1000000, 60 * 24 * 7)
return deployer.deploy(TestDAO, TestToken.address, Math.pow(10, 18) * 1000, 60 * 24 * 7)
})
}
}
3 changes: 2 additions & 1 deletion migrations/3_deploy_token_and_dao.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const WyvernDAO = artifacts.require('./WyvernDAO.sol')

const { utxoMerkleRoot, utxoAmount } = require('../test/aux.js')

module.exports = (deployer) => {
module.exports = (deployer, network) => {
if (network === 'kovan') return
deployer.deploy(MerkleProof)
deployer.link(MerkleProof, WyvernToken)
deployer.deploy(WyvernToken, utxoMerkleRoot, utxoAmount)
Expand Down
6 changes: 4 additions & 2 deletions migrations/4_deploy_exchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

const WyvernExchange = artifacts.require('./WyvernExchange.sol')

module.exports = (deployer) => {
deployer.deploy(WyvernExchange)
module.exports = (deployer, network) => {
if (network === 'development') {
deployer.deploy(WyvernExchange)
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"bitcoinjs-lib": "https://github.com/ProjectWyvern/bitcoinjs-lib.git",
"bs58check": "^2.1.0",
"coveralls": "^3.0.0",
"ethereumjs-abi": "^0.6.5",
"ethereumjs-testrpc": "^6.0.3",
"ethereumjs-util": "^5.1.2",
"solidity-coverage": "https://github.com/sc-forks/solidity-coverage.git",
Expand Down
2 changes: 2 additions & 0 deletions scripts/flatten.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ mkdir -p temp

alias flatten="solidity_flattener --solc-paths zeppelin-solidity=$(pwd)/node_modules/zeppelin-solidity"

flatten contracts/TestToken.sol --output temp/TestTokenFlattened.sol
flatten contracts/TestDAO.sol --output temp/TestDAOFlattened.sol
flatten contracts/WyvernToken.sol --output temp/WyvernTokenFlattened.sol
flatten contracts/WyvernDAO.sol --output temp/WyvernDAOFlattened.sol
flatten contracts/WyvernExchange.sol --output temp/WyvernExchangeFlattened.sol
6 changes: 6 additions & 0 deletions truffle.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ module.exports = {
port: 8546,
network_id: '*',
gas: 6700000
},
kovan: {
host: 'localhost',
port: 8545,
network_id: '*',
gas: 4600000
}
},
solc: {
Expand Down
21 changes: 19 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ bluebird@^2.9.34:
version "2.11.0"
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-2.11.0.tgz#534b9033c022c9579c56ba3b3e5a5caafbb650e1"

bn.js@4.11.6, bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.11.3, bn.js@^4.4.0, bn.js@^4.8.0:
bn.js@4.11.6, bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.10.0, bn.js@^4.11.3, bn.js@^4.4.0, bn.js@^4.8.0:
version "4.11.6"
resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.6.tgz#53344adb14617a13f6e8dd2ce28905d1c0ba3215"

Expand Down Expand Up @@ -1956,6 +1956,13 @@ ethereum-remix@0.0.4:
dependencies:
which "^1.2.10"

ethereumjs-abi@^0.6.5:
version "0.6.5"
resolved "https://registry.yarnpkg.com/ethereumjs-abi/-/ethereumjs-abi-0.6.5.tgz#5a637ef16ab43473fa72a29ad90871405b3f5241"
dependencies:
bn.js "^4.10.0"
ethereumjs-util "^4.3.0"

ethereumjs-testrpc-sc@6.0.7:
version "6.0.7"
resolved "https://registry.yarnpkg.com/ethereumjs-testrpc-sc/-/ethereumjs-testrpc-sc-6.0.7.tgz#580a5b4dfb00d27fa6f4f9126aca56e0c722b2bf"
Expand All @@ -1968,6 +1975,16 @@ ethereumjs-testrpc@^6.0.3:
dependencies:
webpack "^3.0.0"

ethereumjs-util@^4.3.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/ethereumjs-util/-/ethereumjs-util-4.5.0.tgz#3e9428b317eebda3d7260d854fddda954b1f1bc6"
dependencies:
bn.js "^4.8.0"
create-hash "^1.1.2"
keccakjs "^0.2.0"
rlp "^2.0.0"
secp256k1 "^3.0.1"

ethereumjs-util@^5.1.2:
version "5.1.2"
resolved "https://registry.yarnpkg.com/ethereumjs-util/-/ethereumjs-util-5.1.2.tgz#25ba0215cbb4c2f0b108a6f96af2a2e62e45921f"
Expand Down Expand Up @@ -3098,7 +3115,7 @@ keccak@^1.0.2:
prebuild-install "^2.0.0"
safe-buffer "^5.1.0"

keccakjs@^0.2.1:
keccakjs@^0.2.0, keccakjs@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/keccakjs/-/keccakjs-0.2.1.tgz#1d633af907ef305bbf9f2fa616d56c44561dfa4d"
dependencies:
Expand Down

0 comments on commit cd261f1

Please sign in to comment.