Skip to content

Commit

Permalink
Merge pull request smartcontractkit#69 from smartcontractkit/features…
Browse files Browse the repository at this point in the history
…/tighter-docker-integration

Add scripts to start devnet and cl against devnet
  • Loading branch information
se3000 authored Feb 14, 2018
2 parents d181958 + 232440a commit 9a7b05f
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
vendor/
tmp/
devnet/db.bolt
devnet/log.jsonl
15 changes: 15 additions & 0 deletions cldevnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

# Runs a Chainlink node preconfigured to communicate with smartcontract/devnet(parity).
# Steps:
# 0. Have docker installed and configured
# 1. ./devnet/devnet
# 2. cd solidity && truffle migrate --network devnet
# 3. ./cldevnet

export LOG_LEVEL=debug
export ROOT=./devnet
export ETH_URL=ws://localhost:18546
export ETH_CHAIN_ID=17

go run main.go node -d -p "T.tLHkcmwePT/p,]sYuntjwHKAsrhm#4eRs4LuKHwvHejWYAC2JP4M8HimwgmbaZ"
4 changes: 4 additions & 0 deletions devnet/devnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

docker pull smartcontract/devnet:latest
docker run -p 18545:8545 -p 18546:8546 smartcontract/devnet:latest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":3,"id":"f8c91297-5bf7-458e-b8e5-39e9c79d5f2a","address":"9ca9d2d5e04012c9ed24c0e513c9bfaa4a2dd77f","Crypto":{"ciphertext":"ee5391a20f42e0b11a0a0824ce5f047bfc4c1391a62184f48952a0ad05deb55b","cipherparams":{"iv":"4a27487d3892df5250fb7d1d9b5c00ac"},"cipher":"aes-128-ctr","kdf":"scrypt","kdfparams":{"dklen":32,"salt":"1839f222ed3759e0146252e9557f860ffff9575f8b4ba9c6c59ec40904c9580e","n":1024,"r":8,"p":1},"mac":"c7099685c6903529d9e6abf356c59ee9ae70cc9365b2b700ad183671c5009058"}}
2 changes: 1 addition & 1 deletion solidity/truffle.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
networks: {
devnet: {
host: "127.0.0.1",
port: 7434,
port: 18545,
network_id: "*",
gas: 4700000
}
Expand Down

0 comments on commit 9a7b05f

Please sign in to comment.