File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed
charts/devnet/scripts/evm Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ sed -i -e "s/\"stake\"/\"$DENOM\"/g" $CHAIN_DIR/config/genesis.json
1313sed -i " s/\" time_iota_ms\" : \" .*\" /\" time_iota_ms\" : \" $TIME_IOTA_MS \" /" $CHAIN_DIR /config/genesis.json
1414
1515echo " 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
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
1717
1818echo " Update staking unbonding time and slashing jail time"
1919jq -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
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ if [[ $num_chains -gt -1 ]]; then
8080 locallcd=$( yq -r " .chains[$i ].ports.rest" ${CONFIGFILE} )
8181 localexp=$( yq -r " .chains[$i ].ports.exposer" ${CONFIGFILE} )
8282 localfaucet=$( yq -r " .chains[$i ].ports.faucet" ${CONFIGFILE} )
83+ localethereumrest=$( yq -r " .chains[$i ].ports.evm-http-jsonrpc" ${CONFIGFILE} )
8384 color yellow " chains: forwarded $chain "
8485 if [[ $( yq -r " .chains[$i ].cometmock.enabled" $CONFIGFILE ) == " true" ]];
8586 then
@@ -92,6 +93,7 @@ if [[ $num_chains -gt -1 ]]; then
9293 [[ " $locallcd " != " null" ]] && color yellow " lcd to http://localhost:$locallcd " && kubectl port-forward pods/$chain -genesis-0 $locallcd :$CHAIN_LCD_PORT > /dev/null 2>&1 &
9394 [[ " $localexp " != " null" ]] && color yellow " exposer to http://localhost:$localexp " && kubectl port-forward pods/$chain -genesis-0 $localexp :$CHAIN_EXPOSER_PORT > /dev/null 2>&1 &
9495 [[ " $localfaucet " != " null" ]] && color yellow " faucet to http://localhost:$localfaucet " && kubectl port-forward pods/$chain -genesis-0 $localfaucet :$CHAIN_FAUCET_PORT > /dev/null 2>&1 &
96+ [[ " $localethereumrest " != " null" ]] && color yellow " ethereum rest to http://localhost:$localethereumrest " && kubectl port-forward pods/$chain -genesis-0 $localethereumrest :$ETHEREUM_REST_PORT > /dev/null 2>&1 &
9597 sleep 1
9698 fi
9799 done
Original file line number Diff line number Diff line change @@ -9,7 +9,10 @@ HELM_CHART ?= devnet
99# ##############################################################################
1010
1111.PHONY : start
12- start : install port-forward
12+ start : install
13+ @echo " Waiting for all pods to be ready..."
14+ @kubectl wait --for=condition=ready pod --all --timeout=300s
15+ @make port-forward
1316
1417.PHONY : stop
1518stop : stop-forward delete
4245# ## Port forward ###
4346# ##############################################################################
4447
45- .PHOY : port-forward
48+ .PHONY : port-forward
4649port-forward :
4750 $(CURDIR ) /../../scripts/port-forward.sh --config=$(HELM_FILE )
4851
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ chains:
1313 exposer : 8081
1414 faucet : 8000
1515 grpc-web : 9091
16+ grpc : 9090
17+ evm-http-jsonrpc : 8545
1618 resources :
1719 cpu : " 0.5"
1820 memory : 500M
You can’t perform that action at this time.
0 commit comments