Skip to content

Commit

Permalink
chore(config): better naming for settlement config (#868)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsitrin authored May 16, 2024
1 parent 5a491ac commit 4474f6e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions config/toml.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ settlement_layer = "{{ .SettlementLayer }}" # mock, dymension
# dymension config
rollapp_id = "{{ .SettlementConfig.RollappID }}"
node_address = "{{ .SettlementConfig.NodeAddress }}"
gas_limit = {{ .SettlementConfig.GasLimit }}
gas_prices = "{{ .SettlementConfig.GasPrices }}"
gas_fees = "{{ .SettlementConfig.GasFees }}"
settlement_node_address = "{{ .SettlementConfig.NodeAddress }}"
settlement_gas_limit = {{ .SettlementConfig.GasLimit }}
settlement_gas_prices = "{{ .SettlementConfig.GasPrices }}"
settlement_gas_fees = "{{ .SettlementConfig.GasFees }}"
retry_max_delay = "{{ .SettlementConfig.RetryMaxDelay }}"
retry_min_delay = "{{ .SettlementConfig.RetryMinDelay }}"
retry_attempts = "{{ .SettlementConfig.RetryAttempts }}"
Expand Down
8 changes: 4 additions & 4 deletions settlement/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
// Config for the DymensionLayerClient
type Config struct {
KeyringBackend string `mapstructure:"keyring_backend"`
NodeAddress string `mapstructure:"node_address"`
NodeAddress string `mapstructure:"settlement_node_address"`
KeyringHomeDir string `mapstructure:"keyring_home_dir"`
DymAccountName string `mapstructure:"dym_account_name"`
RollappID string `mapstructure:"rollapp_id"`
GasLimit uint64 `mapstructure:"gas_limit"`
GasPrices string `mapstructure:"gas_prices"`
GasFees string `mapstructure:"gas_fees"`
GasLimit uint64 `mapstructure:"settlement_gas_limit"`
GasPrices string `mapstructure:"settlement_gas_prices"`
GasFees string `mapstructure:"settlement_gas_fees"`
RetryAttempts uint `mapstructure:"retry_attempts"`
RetryMaxDelay time.Duration `mapstructure:"retry_max_delay"`
RetryMinDelay time.Duration `mapstructure:"retry_min_delay"`
Expand Down

0 comments on commit 4474f6e

Please sign in to comment.