-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
171 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
packages/caliper-application/network/ethereum/1node-clique/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM ethereum/client-go:stable | ||
COPY ./data/ /root/ | ||
VOLUME [ "/root/.ethereum/keystore/" ] | ||
RUN geth init /root/genesis.json && geth import /root/bc.dat | ||
ENTRYPOINT [ "geth" ] |
Binary file added
BIN
+55.5 KB
packages/caliper-application/network/ethereum/1node-clique/data/bc.dat
Binary file not shown.
31 changes: 31 additions & 0 deletions
31
packages/caliper-application/network/ethereum/1node-clique/data/genesis.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"config": { | ||
"chainId": 48122, | ||
"homesteadBlock": 1, | ||
"eip150Block": 2, | ||
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"eip155Block": 3, | ||
"eip158Block": 3, | ||
"byzantiumBlock": 4, | ||
"constantinopleBlock": 5, | ||
"clique": { | ||
"period": 5, | ||
"epoch": 30000 | ||
} | ||
}, | ||
"nonce": "0x0", | ||
"timestamp": "0x5ca916c6", | ||
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000c0A8e4D217eB85b812aeb1226fAb6F588943C2C20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", | ||
"gasLimit": "0x47b760", | ||
"difficulty": "0x1", | ||
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"coinbase": "0xc0A8e4D217eB85b812aeb1226fAb6F588943C2C2", | ||
"number": "0x0", | ||
"gasUsed": "0x0", | ||
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"alloc": { | ||
"0xc0A8e4D217eB85b812aeb1226fAb6F588943C2C2": { | ||
"balance": "0x200000000000000000000000000000000000000000000000000000000000000" | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
packages/caliper-application/network/ethereum/1node-clique/docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: "3" | ||
services: | ||
node: | ||
build: . | ||
image: caliper-ethereum-clique | ||
container_name: ethereum_clique | ||
volumes: | ||
- ./keys:/root/.ethereum/keystore | ||
ports: | ||
- 8545:8545 | ||
command: --unlock 0xc0A8e4D217eB85b812aeb1226fAb6F588943C2C2 --password /root/.ethereum/keystore/password --mine --minerthreads 2 --etherbase 0xc0A8e4D217eB85b812aeb1226fAb6F588943C2C2 --rpc --rpcaddr 0.0.0.0 --rpcvhosts=* --rpcapi admin,eth,miner,personal,web3 --nodiscover --gasprice 1 |
26 changes: 26 additions & 0 deletions
26
packages/caliper-application/network/ethereum/1node-clique/ethereum.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"caliper": { | ||
"blockchain": "ethereum", | ||
"command" : { | ||
"start": "docker-compose -f network/ethereum/1node-clique/docker-compose.yml up -d && sleep 3", | ||
"end" : "docker-compose -f network/ethereum/1node-clique/docker-compose.yml down" | ||
} | ||
}, | ||
"ethereum": { | ||
"url": "http://localhost:8545", | ||
"contractDeployerAddress": "0xc0A8e4D217eB85b812aeb1226fAb6F588943C2C2", | ||
"contractDeployerAddressPassword": "password", | ||
"fromAddress": "0xc0A8e4D217eB85b812aeb1226fAb6F588943C2C2", | ||
"fromAddressPassword": "password", | ||
"transactionConfirmationBlocks": 2, | ||
"registry": { | ||
"address": "0x91496eafe3C54C48D1Add5c1Fb30655d6b76e56b", | ||
"path": "src/contract/ethereum/registry/registry.json" | ||
}, | ||
"contracts": { | ||
"simple": { | ||
"path": "src/contract/ethereum/simple/simple.json" | ||
} | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...clique/keys/UTC--2019-05-05T20-07-38.958128475Z--c0a8e4d217eb85b812aeb1226fab6f588943c2c2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"address":"c0a8e4d217eb85b812aeb1226fab6f588943c2c2","crypto":{"cipher":"aes-128-ctr","ciphertext":"521588833e66d0e052120c30080e37e847ae7877eb09dc6760eb10382c2e6d4f","cipherparams":{"iv":"cee02dbf21538798041c99f49bef9afa"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":262144,"p":1,"r":8,"salt":"916a08841725aba0bf2a2d39f489f0d5d3f2b5032067e44655b8ff542c492f03"},"mac":"f90667ea4de3e977b1cdd23ed722ddffc3f6888b21ea68cc7d5ef77463022e94"},"id":"7543fa05-dac5-4ae9-856d-e96ddea28c41","version":3} |
1 change: 1 addition & 0 deletions
1
packages/caliper-application/network/ethereum/1node-clique/keys/password
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
password |
5 changes: 5 additions & 0 deletions
5
packages/caliper-application/network/ethereum/1node/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM ethereum/client-go:stable | ||
COPY ./data/ /root/ | ||
VOLUME [ "/root/.ethereum/keystore/" ] | ||
RUN geth init /root/genesis.json && geth import /root/bc.dat && geth makedag 0 /root/.ethash && geth makedag 30000 /root/.ethash | ||
ENTRYPOINT [ "geth" ] |
Binary file not shown.
28 changes: 28 additions & 0 deletions
28
packages/caliper-application/network/ethereum/1node/data/genesis.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"config": { | ||
"chainId": 21194, | ||
"homesteadBlock": 1, | ||
"eip150Block": 2, | ||
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"eip155Block": 3, | ||
"eip158Block": 3, | ||
"byzantiumBlock": 4, | ||
"constantinopleBlock": 5, | ||
"ethash": {} | ||
}, | ||
"nonce": "0x0", | ||
"timestamp": "0x5cd09c57", | ||
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"gasLimit": "0x47b760", | ||
"difficulty": "0x80000", | ||
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"coinbase": "0x0000000000000000000000000000000000000000", | ||
"alloc": { | ||
"c0a8e4d217eb85b812aeb1226fab6f588943c2c2": { | ||
"balance": "0x200000000000000000000000000000000000000000000000000000000000000" | ||
} | ||
}, | ||
"number": "0x0", | ||
"gasUsed": "0x0", | ||
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000" | ||
} |
11 changes: 11 additions & 0 deletions
11
packages/caliper-application/network/ethereum/1node/docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: "3" | ||
services: | ||
node: | ||
build: . | ||
image: caliper-ethereum | ||
container_name: ethereum | ||
volumes: | ||
- ./keys:/root/.ethereum/keystore | ||
ports: | ||
- 8545:8545 | ||
command: --unlock 0xc0A8e4D217eB85b812aeb1226fAb6F588943C2C2 --password /root/.ethereum/keystore/password --mine --minerthreads 2 --etherbase 0xc0A8e4D217eB85b812aeb1226fAb6F588943C2C2 --rpc --rpcaddr 0.0.0.0 --rpcvhosts=* --rpcapi admin,eth,miner,personal,web3 --nodiscover --gasprice 1 |
26 changes: 26 additions & 0 deletions
26
packages/caliper-application/network/ethereum/1node/ethereum.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"caliper": { | ||
"blockchain": "ethereum", | ||
"command" : { | ||
"start": "docker-compose -f network/ethereum/1node/docker-compose.yml up -d && sleep 3", | ||
"end" : "docker-compose -f network/ethereum/1node/docker-compose.yml down" | ||
} | ||
}, | ||
"ethereum": { | ||
"url": "http://localhost:8545", | ||
"contractDeployerAddress": "0xc0A8e4D217eB85b812aeb1226fAb6F588943C2C2", | ||
"contractDeployerAddressPassword": "password", | ||
"fromAddress": "0xc0A8e4D217eB85b812aeb1226fAb6F588943C2C2", | ||
"fromAddressPassword": "password", | ||
"transactionConfirmationBlocks": 2, | ||
"registry": { | ||
"address": "0xB1B0e1Fd4c456146A808fDF668aCC2FaF16Ee2ab", | ||
"path": "src/contract/ethereum/registry/registry.json" | ||
}, | ||
"contracts": { | ||
"simple": { | ||
"path": "src/contract/ethereum/simple/simple.json" | ||
} | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
.../1node/keys/UTC--2019-05-05T20-07-38.958128475Z--c0a8e4d217eb85b812aeb1226fab6f588943c2c2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"address":"c0a8e4d217eb85b812aeb1226fab6f588943c2c2","crypto":{"cipher":"aes-128-ctr","ciphertext":"521588833e66d0e052120c30080e37e847ae7877eb09dc6760eb10382c2e6d4f","cipherparams":{"iv":"cee02dbf21538798041c99f49bef9afa"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":262144,"p":1,"r":8,"salt":"916a08841725aba0bf2a2d39f489f0d5d3f2b5032067e44655b8ff542c492f03"},"mac":"f90667ea4de3e977b1cdd23ed722ddffc3f6888b21ea68cc7d5ef77463022e94"},"id":"7543fa05-dac5-4ae9-856d-e96ddea28c41","version":3} |
1 change: 1 addition & 0 deletions
1
packages/caliper-application/network/ethereum/1node/keys/password
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters