forked from runtimeverification/evm-semantics
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnode-firefly
More file actions
executable file
·36 lines (28 loc) · 1.65 KB
/
node-firefly
File metadata and controls
executable file
·36 lines (28 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
set -xeuo pipefail
open_zeppelin_commit="b8c8308"
kevm_vm_port="8545"
npx kevm-ganache-cli --gasLimit 0xfffffffffff --port "$kevm_vm_port" \
--account=0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501200,1000000000000000000000000 \
--account=0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501201,1000000000000000000000000 \
--account=0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501202,1000000000000000000000000 \
--account=0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501203,1000000000000000000000000 \
--account=0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501204,1000000000000000000000000 \
--account=0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501205,1000000000000000000000000 \
--account=0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501206,1000000000000000000000000 \
--account=0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501207,1000000000000000000000000 \
--account=0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501208,1000000000000000000000000 \
--account=0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501209,1000000000000000000000000 \
&
tmp_testing_dir="$(mktemp -d tests/firefly-node.XXXXXX)"
trap "rm -rf $tmp_testing_dir" INT TERM EXIT
cd "$tmp_testing_dir"
git clone 'https://github.com/openzeppelin/openzeppelin-solidity'
cd openzeppelin-solidity
git checkout "$open_zeppelin_commit"
npm install
# Wait for kevm-vm to start up
while ! netcat -z localhost "$kevm_vm_port"; do
sleep 1
done
node_modules/.bin/truffle test