File tree Expand file tree Collapse file tree 4 files changed +67
-0
lines changed Expand file tree Collapse file tree 4 files changed +67
-0
lines changed Original file line number Diff line number Diff line change @@ -793,6 +793,35 @@ defaultChains:
793
793
exponent : 6
794
794
coingecko_id : stake
795
795
keywords : [ "stake" ]
796
+ xpla :
797
+ image : ghcr.io/xpladev/xpla:main
798
+ home : /root/.xpla
799
+ binary : xplad
800
+ prefix : xpla
801
+ denom : axpla
802
+ prettyName : XPLA CHain
803
+ coins : 100000000000000000000000000axpla
804
+ hdPath : m/44'/60'/0'/0/0
805
+ coinType : 60
806
+ repo : https://github.com/xpladev/xpla
807
+ faucet :
808
+ type : starship
809
+ scripts :
810
+ updateGenesis :
811
+ file : scripts/evm/update-genesis.sh
812
+ assets :
813
+ - base : axpla
814
+ description : The XPLA token is the native governance token for the XPLA chain.
815
+ denom_units :
816
+ - denom : axpla
817
+ exponent : 0
818
+ name : XPLA
819
+ display : XPLA
820
+ symbol : XPLA
821
+ logo_URIs :
822
+ png : https://raw.githubusercontent.com/cosmos/chain-registry/master/xpla/images/xpla.png
823
+ svg : https://raw.githubusercontent.com/cosmos/chain-registry/master/xpla/images/xpla.svg
824
+ coingecko_id : xpla
796
825
ethereum :
797
826
image : ghcr.io/hyperweb-io/starship/ethereum/client-go:v1.14.12
798
827
home : /ethereum
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ DENOM=" ${DENOM:= axpla} "
4
+ CHAIN_BIN=" ${CHAIN_BIN:= xplad} "
5
+ CHAIN_DIR=" ${CHAIN_DIR:= $HOME / .xpla} "
6
+
7
+ set -eux
8
+
9
+ ls $CHAIN_DIR /config
10
+
11
+ echo " Update genesis.json file with updated local params"
12
+ sed -i -e " s/\" stake\" /\" $DENOM \" /g" $CHAIN_DIR /config/genesis.json
13
+ sed -i " s/\" time_iota_ms\" : \" .*\" /\" time_iota_ms\" : \" $TIME_IOTA_MS \" /" $CHAIN_DIR /config/genesis.json
14
+
15
+ echo " Update max gas param"
16
+ jq -r ' .consensus_params.block.max_gas |= "100000000000"' $CHAIN_DIR /config/genesis.json > /tmp/genesis.json; mv /tmp/genesis.json $CHAIN_DIR /config/genesis.json
17
+
18
+ echo " Update staking unbonding time and slashing jail time"
19
+ jq -r ' .app_state.staking.params.unbonding_time |= "300s"' $CHAIN_DIR /config/genesis.json > /tmp/genesis.json; mv /tmp/genesis.json $CHAIN_DIR /config/genesis.json
20
+ jq -r ' .app_state.slashing.params.downtime_jail_duration |= "60s"' $CHAIN_DIR /config/genesis.json > /tmp/genesis.json; mv /tmp/genesis.json $CHAIN_DIR /config/genesis.json
21
+
22
+ echo " Update gov params"
23
+ jq -r ' .app_state.gov.params.max_deposit_period |= "30s"' $CHAIN_DIR /config/genesis.json > /tmp/genesis.json; mv /tmp/genesis.json $CHAIN_DIR /config/genesis.json
24
+ jq -r ' .app_state.gov.params.min_deposit[0].amount |= "10"' $CHAIN_DIR /config/genesis.json > /tmp/genesis.json; mv /tmp/genesis.json $CHAIN_DIR /config/genesis.json
25
+ jq -r ' .app_state.gov.params.voting_period |= "30s"' $CHAIN_DIR /config/genesis.json > /tmp/genesis.json; mv /tmp/genesis.json $CHAIN_DIR /config/genesis.json
26
+ jq -r ' .app_state.gov.params.quorum |= "0.000000000000000000"' $CHAIN_DIR /config/genesis.json > /tmp/genesis.json; mv /tmp/genesis.json $CHAIN_DIR /config/genesis.json
27
+ jq -r ' .app_state.gov.params.threshold |= "0.000000000000000000"' $CHAIN_DIR /config/genesis.json > /tmp/genesis.json; mv /tmp/genesis.json $CHAIN_DIR /config/genesis.json
28
+ jq -r ' .app_state.gov.params.veto_threshold |= "0.000000000000000000"' $CHAIN_DIR /config/genesis.json > /tmp/genesis.json; mv /tmp/genesis.json $CHAIN_DIR /config/genesis.json
29
+
30
+ echo " Update evm params"
31
+ jq -r ' .app_state.evm.params.evm_denom |= "' $DENOM ' "' $CHAIN_DIR /config/genesis.json > /tmp/genesis.json; mv /tmp/genesis.json $CHAIN_DIR /config/genesis.json
32
+
33
+ $CHAIN_BIN tendermint show-node-id
Original file line number Diff line number Diff line change 147
147
" kujira" ,
148
148
" hyperweb" ,
149
149
" noble" ,
150
+ " xpla" ,
150
151
" ethereum"
151
152
]
152
153
},
Original file line number Diff line number Diff line change @@ -142,6 +142,10 @@ chains:
142
142
tags :
143
143
- v8.0.3
144
144
- v7.0.0
145
+ - name : xpla
146
+ base : ghcr.io/xpladev/xpla
147
+ tags :
148
+ - main
145
149
- name : ethereum/client-go
146
150
base : ethereum/client-go
147
151
file : Dockerfile.base
You can’t perform that action at this time.
0 commit comments