forked from evmos/ethermint
-
Notifications
You must be signed in to change notification settings - Fork 7
/
helper.sh
65 lines (57 loc) · 1.52 KB
/
helper.sh
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
set -x
init() {
cargo install toml-cli
}
info() {
exec >"$FUNCNAME.log" 2>&1
# cloc .
find . -not \( -path */node_modules -prune \) -iname '*.md'
find . -not \( -path */node_modules -prune \) -iname '*.sh'
find . -not \( -path */node_modules -prune \) -iname '*make*'
find . -not \( -path */node_modules -prune \) -iname '*docker*'
}
probe() {
exec >"$FUNCNAME.log" 2>&1
# ethermintd --help
# ethermintd version
ethermintd keys add --help
ethermintd init --help
}
probeImage() {
IMAGE=ghcr.io/b2network/b2-node:20231031-162216-eb3cc87
docker run \
--rm \
-v /root/.ethermintd:/root/.ethermintd \
-v $PWD:/host \
-it $IMAGE \
sh
}
debugImage() {
ethermintd start \
--metrics \
--pruning=nothing \
--rpc.unsafe \
--keyring-backend test \
--log_level info \
--json-rpc.api eth,txpool,personal,net,debug,web3 \
--api.enable
}
startOneNode(){
docker-compose up -d node1
}
probeBal(){
# ethermintd query evm --help
# ethermintd tx evm --help
# ethermintd query bank total
# ethermintd query bank balances --help
# ethermintd query bank balances ethm17w0adeg64ky0daxwd2ugyuneellmjgnxcn4sgz
# ethermintd keys import --help
ethermintd keys parse --help
ethermintd keys parse ethm17w0adeg64ky0daxwd2ugyuneellmjgnxcn4sgz
# ethermintd keys list --keyring-backend test
}
initChain(){
exec >"$FUNCNAME.log" 2>&1
bash tests/solidity/init-test-node.sh init
}
$@