Skip to content
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.

Commit

Permalink
steps.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
abhay-pepo committed Nov 23, 2017
1 parent ca56304 commit 3c4f701
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 58 deletions.
59 changes: 1 addition & 58 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,61 +32,4 @@ Milestone 5 : Consolidation of OpenST as open platform (2019)

At the highest level this diagram represents past work and future roadmap items. All milestones and work items are indicative only.

![](docs/roadmap.png)

STEPS

1) In test/open_st_env_vars.sh, verify all the addressed if known else keep it blank
- source test/open_st_env_vars.sh

2) On Development only
- cd test/
- ./init_keys.sh
- populate OST_FOUNDATION_ADDR(SimpleTokenFoundation), OST_REGISTRAR_ADDR(ValueChain.Admin) from config.json to test/open_st_env_vars.sh
- source test/open_st_env_vars.sh

3) On Development only
- Verify genesis test/poa-genesis-value.json
- Open a new Terminal and Run
- cd test
- ./run_value_chain.sh

4) Verify test/poa-genesis-utility.json
- Open a New Terminal
- cd test
- ./run_utility_chain.sh

6) On development only - if simple contract is not deployed
- On value chain machine
- source test/open_st_env_vars.sh
- node test/deployOpenSTOnTestNet.js
- populate OST_SIMPLE_TOKEN_CONTRACT_ADDR in test/open_st_env_vars.sh from config.json

# Deploys SimpleToken contract on value chain
# Funds Member Companies

7) If staking contract is not deployed on production
- On Value Chain machine
- source test/open_st_env_vars.sh
- node lib/deploy/staking.js
- From contract deployment receipt populate OST_STAKING_CONTRACT_ADDR in open_st_env_vars.sh
- Also populate staking contract address(config.Stake) in config.json

8) On Utility Chain Machine
- source test/open_st_env_vars.sh
- node lib/deploy/utility_token.js
- From contract deployment receipt populate OST_UTILITY_TOKEN_CONTRACT_ADDR in open_st_env_vars.sh
- Populate utility_token contract address(config.Members.ERC20) in config.json
- Populate UUID(config.Members.UUID) from console in config.json

9) Open a new terminal and run
- source test/open_st_env_vars.sh
- node services/registrar.js

10) For staking and minting
- source test/open_st_env_vars.sh
- node tools/stakeAndMint.js

11) To Host APIs
source test/open_st_env_vars.sh
npm start
![](docs/roadmap.png)
72 changes: 72 additions & 0 deletions steps.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
STEPS

1) export OST_GETH_VALUE_RPC_PROVIDER='http://localhost:8545'
export OST_GETH_VALUE_WS_PROVIDER='ws://localhost:18545'

export OST_GETH_UTILITY_RPC_PROVIDER='http://localhost:9546'
export OST_GETH_UTILITY_WS_PROVIDER='ws://localhost:19546'

export OST_FOUNDATION_PASSPHRASE=''
export OST_REGISTRAR_PASSPHRASE=''

export OST_FOUNDATION_ADDR=''
export OST_REGISTRAR_ADDR=''

export OST_SIMPLE_TOKEN_CONTRACT_ADDR=''
export OST_STAKING_CONTRACT_ADDR=''
export OST_UTILITY_TOKEN_CONTRACT_ADDR=''

2) In test/open_st_env_vars.sh, verify all the addressed if known else keep it blank
- source test/open_st_env_vars.sh

3) On Development only
- cd test/
- ./init_keys.sh
- populate OST_FOUNDATION_ADDR(SimpleTokenFoundation), OST_REGISTRAR_ADDR(ValueChain.Admin) from config.json to test/open_st_env_vars.sh
- source test/open_st_env_vars.sh

3) On Development only
- Verify genesis test/poa-genesis-value.json
- Open a new Terminal and Run
- cd test
- ./run_value_chain.sh

4) Verify test/poa-genesis-utility.json
- Open a New Terminal
- cd test
- ./run_utility_chain.sh

6) On development only - if simple contract is not deployed
- On value chain machine
- source test/open_st_env_vars.sh
- node test/deployOpenSTOnTestNet.js
- populate OST_SIMPLE_TOKEN_CONTRACT_ADDR in test/open_st_env_vars.sh from config.json

# Deploys SimpleToken contract on value chain
# Funds Member Companies

7) If staking contract is not deployed on production
- On Value Chain machine
- source test/open_st_env_vars.sh
- node lib/deploy/staking.js
- From contract deployment receipt populate OST_STAKING_CONTRACT_ADDR in open_st_env_vars.sh
- Also populate staking contract address(config.Stake) in config.json

8) On Utility Chain Machine
- source test/open_st_env_vars.sh
- node lib/deploy/utility_token.js
- From contract deployment receipt populate OST_UTILITY_TOKEN_CONTRACT_ADDR in open_st_env_vars.sh
- Populate utility_token contract address(config.Members.ERC20) in config.json
- Populate UUID(config.Members.UUID) from console in config.json

9) Open a new terminal and run
- source test/open_st_env_vars.sh
- node services/registrar.js

10) For staking and minting
- source test/open_st_env_vars.sh
- node tools/stakeAndMint.js

11) To Host APIs
source test/open_st_env_vars.sh
npm start

0 comments on commit 3c4f701

Please sign in to comment.