diff --git a/cmd/config/init/consts.go b/cmd/config/init/consts.go index 85488d1b..c6570c17 100644 --- a/cmd/config/init/consts.go +++ b/cmd/config/init/consts.go @@ -23,9 +23,10 @@ var FlagNames = struct { } const ( - StagingHubName = "devnet" - LocalHubName = "local" - LocalHubID = "dymension_100-1" + StagingHubName = "devnet" + FroopylandHubName = "froopyland" + LocalHubName = "local" + LocalHubID = "dymension_100-1" ) // TODO(#112): The avaialble hub networks should be read from YAML file @@ -36,6 +37,12 @@ var Hubs = map[string]config.HubData{ RPC_URL: "https://dymension-devnet.rpc.silknodes.io:443", GAS_PRICE: "0.25", }, + FroopylandHubName: { + API_URL: "https://froopyland.api.silknodes.io:443", + ID: "froopyland_100-1", + RPC_URL: "https://froopyland.rpc.silknodes.io:443", + GAS_PRICE: "0.25", + }, LocalHubName: { API_URL: "http://localhost:1318", ID: LocalHubID, diff --git a/cmd/config/init/flags.go b/cmd/config/init/flags.go index 2c61404a..ab60303f 100644 --- a/cmd/config/init/flags.go +++ b/cmd/config/init/flags.go @@ -2,9 +2,10 @@ package initconfig import ( "fmt" - "github.com/dymensionxyz/roller/version" "strings" + "github.com/dymensionxyz/roller/version" + "github.com/dymensionxyz/roller/cmd/consts" "github.com/dymensionxyz/roller/cmd/utils" "github.com/dymensionxyz/roller/config" @@ -16,7 +17,7 @@ const ( ) func addFlags(cmd *cobra.Command) error { - cmd.Flags().StringP(FlagNames.HubID, "", StagingHubName, fmt.Sprintf("The ID of the Dymension hub. %s", getAvailableHubsMessage())) + cmd.Flags().StringP(FlagNames.HubID, "", FroopylandHubName, fmt.Sprintf("The ID of the Dymension hub. %s", getAvailableHubsMessage())) cmd.Flags().StringP(FlagNames.RollappBinary, "", consts.Executables.RollappEVM, "The rollapp binary. Should be passed only if you built a custom rollapp") cmd.Flags().StringP(FlagNames.VMType, "", string(config.EVM_ROLLAPP), "The rollapp type [evm, sdk]. Defaults to evm") cmd.Flags().StringP(FlagNames.TokenSupply, "", defaultTokenSupply, "The total token supply of the RollApp") @@ -77,5 +78,5 @@ func setDecimals(initCmd *cobra.Command, cfg *config.RollappConfig) { } func getAvailableHubsMessage() string { - return fmt.Sprintf("Acceptable values are '%s' or '%s'", StagingHubName, LocalHubName) + return fmt.Sprintf("Acceptable values are '%s', '%s' or '%s'", FroopylandHubName, StagingHubName, LocalHubName) } diff --git a/cmd/config/init/interactive.go b/cmd/config/init/interactive.go index 2da54b7d..6963a8b0 100644 --- a/cmd/config/init/interactive.go +++ b/cmd/config/init/interactive.go @@ -12,7 +12,7 @@ import ( func RunInteractiveMode(cfg *config.RollappConfig) error { promptNetwork := promptui.Select{ Label: "Select your network", - Items: []string{"devnet", "local"}, + Items: []string{"froopyland", "devnet", "local"}, } _, mode, err := promptNetwork.Run() if err != nil {