From eb8ee4830d4e668f68e0a4474af6430f7b9cea66 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 11 Aug 2020 11:35:57 -0700 Subject: [PATCH 1/2] Use environment variable for API key You probably don't want anyone using your key. --- startBlockchain.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/startBlockchain.sh b/startBlockchain.sh index f2126684..f9a05bd1 100644 --- a/startBlockchain.sh +++ b/startBlockchain.sh @@ -1 +1,3 @@ -ganache-cli --fork https://fee7372b6e224441b747bf1fde15b2bd.eth.rpc.rivet.cloud --networkId 1001 --gasPrice 0x1 -e 100000000000000000000 --gasLimit 12500000 --mnemonic="concert load couple harbor equip island argue ramp clarify fence smart topic" --max-old-space-size=8192 -u "0x0eb4add4ba497357546da7f5d12d39587ca24606" -u "0xf9e11762d522ea29dd78178c9baf83b7b093aacc" -u "0x8c545be506a335e24145edd6e01d2754296ff018" -u "0xc89b6f0146642688bb254bf93c28fccf1e182c81" -u "0x3b08aa814bea604917418a9f0907e7fc430e742c" -u "0xbe6977e08d4479c0a6777539ae0e8fa27be4e9d6" -u "0xf37216a8ac034d08b4663108d7532dfcb44583ed" -u "0xb696d629cd0a00560151a434f6b4478ad6c228d7" -u "0x681148725731f213b0187a3cbef215c291d85a3e" +#!/bin/sh +set -u +ganache-cli --fork https://${RIVET_API_KEY}.eth.rpc.rivet.cloud --networkId 1001 --gasPrice 0x1 -e 100000000000000000000 --gasLimit 12500000 --mnemonic="concert load couple harbor equip island argue ramp clarify fence smart topic" --max-old-space-size=8192 -u "0x0eb4add4ba497357546da7f5d12d39587ca24606" -u "0xf9e11762d522ea29dd78178c9baf83b7b093aacc" -u "0x8c545be506a335e24145edd6e01d2754296ff018" -u "0xc89b6f0146642688bb254bf93c28fccf1e182c81" -u "0x3b08aa814bea604917418a9f0907e7fc430e742c" -u "0xbe6977e08d4479c0a6777539ae0e8fa27be4e9d6" -u "0xf37216a8ac034d08b4663108d7532dfcb44583ed" -u "0xb696d629cd0a00560151a434f6b4478ad6c228d7" -u "0x681148725731f213b0187a3cbef215c291d85a3e" From 8dab0f8583b1d7b444e5d2c9272cdf256057e554 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 11 Aug 2020 11:37:18 -0700 Subject: [PATCH 2/2] quote variables --- startBlockchain.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/startBlockchain.sh b/startBlockchain.sh index f9a05bd1..fbf9e2fd 100644 --- a/startBlockchain.sh +++ b/startBlockchain.sh @@ -1,3 +1,3 @@ #!/bin/sh set -u -ganache-cli --fork https://${RIVET_API_KEY}.eth.rpc.rivet.cloud --networkId 1001 --gasPrice 0x1 -e 100000000000000000000 --gasLimit 12500000 --mnemonic="concert load couple harbor equip island argue ramp clarify fence smart topic" --max-old-space-size=8192 -u "0x0eb4add4ba497357546da7f5d12d39587ca24606" -u "0xf9e11762d522ea29dd78178c9baf83b7b093aacc" -u "0x8c545be506a335e24145edd6e01d2754296ff018" -u "0xc89b6f0146642688bb254bf93c28fccf1e182c81" -u "0x3b08aa814bea604917418a9f0907e7fc430e742c" -u "0xbe6977e08d4479c0a6777539ae0e8fa27be4e9d6" -u "0xf37216a8ac034d08b4663108d7532dfcb44583ed" -u "0xb696d629cd0a00560151a434f6b4478ad6c228d7" -u "0x681148725731f213b0187a3cbef215c291d85a3e" +ganache-cli --fork "https://${RIVET_API_KEY}.eth.rpc.rivet.cloud" --networkId 1001 --gasPrice 0x1 -e 100000000000000000000 --gasLimit 12500000 --mnemonic="concert load couple harbor equip island argue ramp clarify fence smart topic" --max-old-space-size=8192 -u "0x0eb4add4ba497357546da7f5d12d39587ca24606" -u "0xf9e11762d522ea29dd78178c9baf83b7b093aacc" -u "0x8c545be506a335e24145edd6e01d2754296ff018" -u "0xc89b6f0146642688bb254bf93c28fccf1e182c81" -u "0x3b08aa814bea604917418a9f0907e7fc430e742c" -u "0xbe6977e08d4479c0a6777539ae0e8fa27be4e9d6" -u "0xf37216a8ac034d08b4663108d7532dfcb44583ed" -u "0xb696d629cd0a00560151a434f6b4478ad6c228d7" -u "0x681148725731f213b0187a3cbef215c291d85a3e"