From 2f3c012fbc9928956e5fcdca5310aadf1dcc8e5c Mon Sep 17 00:00:00 2001 From: pmmax Date: Mon, 12 Nov 2018 17:43:47 -0300 Subject: [PATCH] Added ganache-cli scripts --- labs/tools/ganache-cli-setup/README.md | 11 +++++++++++ .../ganache-cli-setup/install-local-ganache-cli.cmd | 2 ++ .../ganache-cli-setup/install-local-ganache-cli.sh | 2 ++ .../tools/ganache-cli-setup/run-local-ganache-cli.cmd | 1 + labs/tools/ganache-cli-setup/run-local-ganache-cli.sh | 2 ++ 5 files changed, 18 insertions(+) create mode 100644 labs/tools/ganache-cli-setup/README.md create mode 100644 labs/tools/ganache-cli-setup/install-local-ganache-cli.cmd create mode 100644 labs/tools/ganache-cli-setup/install-local-ganache-cli.sh create mode 100644 labs/tools/ganache-cli-setup/run-local-ganache-cli.cmd create mode 100644 labs/tools/ganache-cli-setup/run-local-ganache-cli.sh diff --git a/labs/tools/ganache-cli-setup/README.md b/labs/tools/ganache-cli-setup/README.md new file mode 100644 index 000000000..e2f11c0cc --- /dev/null +++ b/labs/tools/ganache-cli-setup/README.md @@ -0,0 +1,11 @@ +Ganache accounts: + +mnemonic: act analyst ability congress enter point unlock universe winner achieve refuse border + +Account #0 +Address: 0x06bB4674A4b08d07186b721378C7e241eD85443b +Private Key: 0x0936af475d2701538aad321f87e0a51f2b297634653393e8cab7290a674009a5 + +Account #1 +Address: 0x6d197071d41C77A2779B33304B8cC6Ea41f69918 +Private Key: 0x5e697f9196588307b9e818fafca38c33f6592c005bfd190820b1d2cc2d608882 \ No newline at end of file diff --git a/labs/tools/ganache-cli-setup/install-local-ganache-cli.cmd b/labs/tools/ganache-cli-setup/install-local-ganache-cli.cmd new file mode 100644 index 000000000..94a9e8a1c --- /dev/null +++ b/labs/tools/ganache-cli-setup/install-local-ganache-cli.cmd @@ -0,0 +1,2 @@ +npm install -g ganache-cli + diff --git a/labs/tools/ganache-cli-setup/install-local-ganache-cli.sh b/labs/tools/ganache-cli-setup/install-local-ganache-cli.sh new file mode 100644 index 000000000..363a3abfc --- /dev/null +++ b/labs/tools/ganache-cli-setup/install-local-ganache-cli.sh @@ -0,0 +1,2 @@ +#!/bin/bash +npm install -g ganache-cli diff --git a/labs/tools/ganache-cli-setup/run-local-ganache-cli.cmd b/labs/tools/ganache-cli-setup/run-local-ganache-cli.cmd new file mode 100644 index 000000000..9f4bd884c --- /dev/null +++ b/labs/tools/ganache-cli-setup/run-local-ganache-cli.cmd @@ -0,0 +1 @@ +ganache-cli "--mnemonic" "act analyst ability congress enter point unlock universe winner achieve refuse border" "--accounts" "2" "--defaultBalanceEther" "10000000" "--networkId" "777" "--db" "C:/Temp" "--deterministic" "--noVMErrorsOnRPCResponse" \ No newline at end of file diff --git a/labs/tools/ganache-cli-setup/run-local-ganache-cli.sh b/labs/tools/ganache-cli-setup/run-local-ganache-cli.sh new file mode 100644 index 000000000..c6dde2f78 --- /dev/null +++ b/labs/tools/ganache-cli-setup/run-local-ganache-cli.sh @@ -0,0 +1,2 @@ +#!/bin/bash +ganache-cli "--mnemonic" "act analyst ability congress enter point unlock universe winner achieve refuse border" "--accounts" "2" "--defaultBalanceEther" "10000000" "--networkId" "777" "--db" "$PWD/ganache-db" "--deterministic" "--noVMErrorsOnRPCResponse"