Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: update exposer to add functions #573

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion starship/charts/devnet/scripts/default/update-genesis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ echo "Update max gas param"
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

echo "Update staking unbonding time and slashing jail time"
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
jq -r '.app_state.staking.params.unbonding_time |= "800s"' $CHAIN_DIR/config/genesis.json > /tmp/genesis.json; mv /tmp/genesis.json $CHAIN_DIR/config/genesis.json
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

# overrides for older sdk versions, before 0.47
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ data:
"gas-prices": "0.025{{ $fullchain.denom }}",
"min-gas-amount": 1,
"debug": true,
"timeout": "20s",
"timeout": "600s",
"output-format": "json",
"sign-mode": "direct"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ data:
max_tx_size = {{ $chainConfig.max_tx_size | default 2097152 }}
clock_drift = "{{ $chainConfig.clock_drift | default "5s" }}"
max_block_time = "{{ $chainConfig.max_block_time | default "30s" }}"
trusting_period = "{{ $chainConfig.trusting_period | default "75s" }}"
trusting_period = "{{ $chainConfig.trusting_period | default "600s" }}"
trust_threshold = { numerator = "{{ ($chainConfig.trust_threshold | default dict).numerator | default "2" }}", denominator = "{{ ($chainConfig.trust_threshold | default dict).denominator | default "3" }}" }
{{- if eq $fullchain.name "evmos" }}
address_type = { derivation = 'ethermint', proto_type = { pk_type = '/ethermint.crypto.v1.ethsecp256k1.PubKey' } }
Expand Down Expand Up @@ -253,7 +253,7 @@ data:
max_tx_size = {{ $chainConfig.max_tx_size | default 2097152 }}
clock_drift = "{{ $chainConfig.clock_drift | default "5s" }}"
max_block_time = "{{ $chainConfig.max_block_time | default "30s" }}"
trusting_period = "{{ $chainConfig.trusting_period | default "75s" }}"
trusting_period = "{{ $chainConfig.trusting_period | default "600s" }}"
trust_threshold = { numerator = "{{ ($chainConfig.trust_threshold | default dict).numerator | default "2" }}", denominator = "{{ ($chainConfig.trust_threshold | default dict).denominator | default "3" }}" }
{{- if eq $fullchain.name "evmos" }}
address_type = { derivation = 'ethermint', proto_type = { pk_type = '/ethermint.crypto.v1.ethsecp256k1.PubKey' } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ spec:
- bash
- "-c"
- |
/exposer/exposer
/exposer/exposer --verbose
resources: {{- include "getResourceObject" $.Values.exposer.resources | trim | nindent 12 }}
securityContext:
allowPrivilegeEscalation: false
Expand Down
2 changes: 2 additions & 0 deletions starship/exposer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ type Config struct {
NodeKeyFile string `name:"node-key-file" json:"node_key_file" env:"NODE_KEY_FILE" usage:"Path of node_key.json file for node"`
// StatusURL is used to fetch status info from blockchain node
StatusURL string `name:"status-url" json:"status_url" env:"STATUS_URL" usage:"URL to fetch chain status"`
// ChainIDs is the list of chain ids, comma separated
ChainIDs string `name:"chain-ids" json:"chain_ids" env:"CHAIN_IDS" usage:"Comma separated list of chain ids"`
// Verbose switches on debug logging
Verbose bool `name:"verbose" json:"verbose" usage:"switch on debug / verbose logging"`
// OnlyFatalLog set log level as fatal to ignore logs
Expand Down
114 changes: 21 additions & 93 deletions starship/exposer/exposer/mnemonic.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading