-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
134 lines (118 loc) · 4.28 KB
/
install.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#!/bin/bash
sudo apt update
sudo apt install -y curl git jq lz4 build-essential unzip
bash <(curl -s "https://raw.githubusercontent.com/nodejumper-org/cosmos-scripts/master/utils/go_install.sh")
source .bash_profile
#!/bin/bash
NODE_MONIKER="ERN"
cd || return
curl -L https://github.com/CosmWasm/wasmvm/releases/download/v1.4.0/libwasmvm.x86_64.so > libwasmvm.x86_64.so
sudo mv -f libwasmvm.x86_64.so /usr/lib/libwasmvm.x86_64.so
cd || return
rm -rf paloma
git clone https://github.com/palomachain/paloma.git
cd paloma || return
git checkout v1.11.0
make install
sudo mv -f $HOME/go/bin/palomad /usr/local/bin/palomad
palomad version
curl -L https://github.com/palomachain/pigeon/releases/download/v1.10.2/pigeon_Linux_x86_64.tar.gz > pigeon.tar.gz
tar -xvzf pigeon.tar.gz
rm -rf pigeon.tar.gz
sudo mv -f pigeon /usr/local/bin/pigeon
pigeon version #
palomad init "$NODE_MONIKER" --chain-id messenger
palomad config chain-id messenger
curl -s https://raw.githubusercontent.com/palomachain/mainnet/master/messenger/genesis.json > $HOME/.paloma/config/genesis.json
SEEDS=""
PEERS="[email protected]:10656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656"
sed -i 's|^seeds *=.*|seeds = "'$SEEDS'"|; s|^persistent_peers *=.*|persistent_peers = "'$PEERS'"|' $HOME/.paloma/config/config.toml
sed -i 's|^pruning *=.*|pruning = "custom"|g' $HOME/.paloma/config/app.toml
sed -i 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|g' $HOME/.paloma/config/app.toml
sed -i 's|^pruning-interval *=.*|pruning-interval = "10"|g' $HOME/.paloma/config/app.toml
sed -i 's|^snapshot-interval *=.*|snapshot-interval = 0|g' $HOME/.paloma/config/app.toml
sed -i 's|^minimum-gas-prices *=.*|minimum-gas-prices = "0.0001ugrain"|g' $HOME/.paloma/config/app.toml
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.paloma/config/config.toml
echo "export PIGEON_HEALTHCHECK_PORT=5757" >> $HOME/.bash_profile
source .bash_profile
mkdir -p $HOME/.pigeon
sudo tee $HOME/.pigeon/config.yaml > /dev/null << EOF
loop-timeout: 5s
health-check-port: 5757
paloma:
chain-id: messenger
call-timeout: 20s
keyring-dir: ~/.paloma
keyring-pass-env-name: PALOMA_PASSWORD
keyring-type: os
signing-key: wallet
base-rpc-url: http://localhost:26657
gas-adjustment: 3.0
gas-prices: 0.01ugrain
account-prefix: paloma
evm:
eth-main:
chain-id: 1
base-rpc-url: ${ETH_RPC_URL}
keyring-pass-env-name: "ETH_PASSWORD"
signing-key: ${ETH_SIGNING_KEY}
keyring-dir: ~/.pigeon/keys/evm/eth-main
gas-adjustment: 1.9
tx-type: 2
bnb-main:
chain-id: 56
base-rpc-url: ${BNB_RPC_URL}
keyring-pass-env-name: "BNB_PASSWORD"
signing-key: ${BNB_SIGNING_KEY}
keyring-dir: ~/.pigeon/keys/evm/bnb-main
gas-adjustment: 1
tx-type: 0
matic-main:
chain-id: 137
base-rpc-url: ${MATIC_RPC_URL}
keyring-pass-env-name: "MATIC_PASSWORD"
signing-key: ${MATIC_SIGNING_KEY}
keyring-dir: ~/.pigeon/keys/evm/matic-main
gas-adjustment: 2
tx-type: 2
op-main:
chain-id: 10
base-rpc-url: ${OP_RPC_URL}
keyring-pass-env-name: "OP_PASSWORD"
signing-key: ${OP_SIGNING_KEY}
keyring-dir: ~/.pigeon/keys/evm/op-main
gas-adjustment: 2
tx-type: 2
kava-main:
chain-id: 2222
base-rpc-url: ${KAVA_RPC_URL}
keyring-pass-env-name: "KAVA_PASSWORD"
signing-key: ${KAVA_SIGNING_KEY}
keyring-dir: ~/.pigeon/keys/evm/kava-main
gas-adjustment: 2
tx-type: 2
base-main:
chain-id: 8453
base-rpc-url: ${BASE_RPC_URL}
keyring-pass-env-name: "BASE_PASSWORD"
signing-key: ${BASE_SIGNING_KEY}
keyring-dir: ~/.pigeon/keys/evm/base-main
gas-adjustment: 1
tx-type: 2
gnosis-main:
chain-id: 100
base-rpc-url: ${GNOSIS_RPC_URL}
keyring-pass-env-name: "GNOSIS_PASSWORD"
signing-key: ${GNOSIS_SIGNING_KEY}
keyring-dir: ~/.pigeon/keys/evm/gnosis-main
gas-adjustment: 1.2
tx-type: 2
arbitrum-main:
chain-id: 42161
base-rpc-url: ${ARB_RPC_URL}
keyring-pass-env-name: "ARB_PASSWORD"
signing-key: ${ARB_SIGNING_KEY}
keyring-dir: ~/.pigeon/keys/evm/arbitrum-main
gas-adjustment: 2
tx-type: 2
EOF