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

chore: Updated devnet gas prices to 0.25udym #249

Merged
merged 2 commits into from
Jul 11, 2023
Merged
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
14 changes: 8 additions & 6 deletions cmd/config/init/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ const (
// TODO(#112): The avaialble hub networks should be read from YAML file
var Hubs = map[string]config.HubData{
StagingHubName: {
API_URL: "https://dymension-devnet.api.silknodes.io:443",
ID: "devnet_304-1",
RPC_URL: "https://dymension-devnet.rpc.silknodes.io:443",
API_URL: "https://dymension-devnet.api.silknodes.io:443",
ID: "devnet_304-1",
RPC_URL: "https://dymension-devnet.rpc.silknodes.io:443",
GAS_PRICE: "0.25",
},
LocalHubName: {
API_URL: "http://localhost:1318",
ID: "dymension_100-1",
RPC_URL: "http://localhost:36657",
API_URL: "http://localhost:1318",
ID: "dymension_100-1",
RPC_URL: "http://localhost:36657",
GAS_PRICE: "0",
},
}
2 changes: 2 additions & 0 deletions cmd/config/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,13 @@ func runInit(cmd *cobra.Command, args []string) error {
RPC: consts.DefaultRollappRPC,
Denom: initConfig.Denom,
AddressPrefix: rollappPrefix,
GasPrices: "0",
}, ChainConfig{
ID: initConfig.HubData.ID,
RPC: initConfig.HubData.RPC_URL,
Denom: consts.Denoms.Hub,
AddressPrefix: consts.AddressPrefixes.Hub,
GasPrices: initConfig.HubData.GAS_PRICE,
}, initConfig)
if err != nil {
return err
Expand Down
5 changes: 3 additions & 2 deletions cmd/config/init/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type ChainConfig struct {
RPC string
Denom string
AddressPrefix string
GasPrices string
}

type RelayerChainConfig struct {
Expand Down Expand Up @@ -98,14 +99,14 @@ func initRelayer(relayerHome string) error {
func addChainsConfig(rollappConfig ChainConfig, hubConfig ChainConfig, relayerHome string) error {
relayerRollappConfig := getRelayerFileChainConfig(RelayerChainConfig{
ChainConfig: rollappConfig,
GasPrices: "0.0" + rollappConfig.Denom,
GasPrices: rollappConfig.GasPrices + rollappConfig.Denom,
ClientType: "01-dymint",
KeyName: consts.KeysIds.RollappRelayer,
})

relayerHubConfig := getRelayerFileChainConfig(RelayerChainConfig{
ChainConfig: hubConfig,
GasPrices: "0.0" + hubConfig.Denom,
GasPrices: hubConfig.GasPrices + hubConfig.Denom,
ClientType: "07-tendermint",
KeyName: consts.KeysIds.HubRelayer,
})
Expand Down
3 changes: 1 addition & 2 deletions cmd/sequencer/start/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ func GetStartRollappCmd(rollappConfig config.RollappConfig, lightNodeEndpoint st
if rollappConfig.DA == config.Mock {
dastrings = []string{"--dymint.da_layer", "mock"}
}

cmd := exec.Command(
rollappConfig.RollappBinary,
append([]string{
Expand All @@ -103,7 +102,7 @@ func GetStartRollappCmd(rollappConfig config.RollappConfig, lightNodeEndpoint st
"--dymint.settlement_config.node_address", rollappConfig.HubData.RPC_URL,
"--dymint.settlement_config.dym_account_name", consts.KeysIds.HubSequencer,
"--dymint.settlement_config.keyring_home_dir", hubKeysDir,
"--dymint.settlement_config.gas_prices", "0udym",
"--dymint.settlement_config.gas_prices", rollappConfig.HubData.GAS_PRICE + consts.Denoms.Hub,
"--home", rollappConfigDir,
"--log-file", filepath.Join(rollappConfigDir, "rollapp.log"),
"--log_level", "info",
Expand Down
7 changes: 4 additions & 3 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ type RollappConfig struct {
}

type HubData = struct {
API_URL string
ID string
RPC_URL string
API_URL string
ID string
RPC_URL string
GAS_PRICE string
}

func (c RollappConfig) Validate() error {
Expand Down