Skip to content
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
13 changes: 4 additions & 9 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,6 @@ import (
"go.opentelemetry.io/otel"
)

const (
AccountAddressPrefix = "cosmos"
Name = "sei"
)

// this line is used by starport scaffolding # stargate/wasm/app/enabledProposals

func getGovProposalHandlers() []govclient.ProposalHandler {
Expand Down Expand Up @@ -203,7 +198,7 @@ func init() {
panic(err)
}

DefaultNodeHome = filepath.Join(userHomeDir, "."+Name)
DefaultNodeHome = filepath.Join(userHomeDir, "."+AppName)
}

// App extends an ABCI application, but with most of its parameters exported.
Expand Down Expand Up @@ -281,7 +276,7 @@ func New(
cdc := encodingConfig.Amino
interfaceRegistry := encodingConfig.InterfaceRegistry

bApp := baseapp.NewBaseApp(Name, logger, db, encodingConfig.TxConfig.TxDecoder(), baseAppOptions...)
bApp := baseapp.NewBaseApp(AppName, logger, db, encodingConfig.TxConfig.TxDecoder(), baseAppOptions...)
bApp.SetCommitMultiStoreTracer(traceStore)
bApp.SetVersion(version.Version)
bApp.SetInterfaceRegistry(interfaceRegistry)
Expand Down Expand Up @@ -684,7 +679,7 @@ func New(
return app
}

// Name returns the name of the App
// AppName returns the name of the App
func (app *App) Name() string { return app.BaseApp.Name() }

// GetBaseApp returns the base app of the application
Expand Down Expand Up @@ -797,7 +792,7 @@ func (app *App) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig

// register app's OpenAPI routes.
apiSvr.Router.Handle("/static/openapi.yml", http.FileServer(http.FS(docs.Docs)))
apiSvr.Router.HandleFunc("/", openapiconsole.Handler(Name, "/static/openapi.yml"))
apiSvr.Router.HandleFunc("/", openapiconsole.Handler(AppName, "/static/openapi.yml"))
}

// RegisterTxService implements the Application.RegisterTxService method.
Expand Down
8 changes: 8 additions & 0 deletions app/const.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package app

const (
// Prefix of bech32 encoded address
AccountAddressPrefix = "sei"
// Application name
AppName = "sei"
)
4 changes: 2 additions & 2 deletions cmd/seid/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (

func main() {
rootCmd, _ := NewRootCmd(
app.Name,
app.AppName,
app.AccountAddressPrefix,
app.DefaultNodeHome,
app.Name,
app.AppName,
app.ModuleBasics,
app.New,
// this line is used by starport scaffolding # root/arguments
Expand Down
2 changes: 1 addition & 1 deletion cmd/seid/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func NewRootCmd(

rootCmd := &cobra.Command{
Use: appName + "d",
Short: "Stargate CosmosHub App",
Short: "Stargate Sei App",
PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
// set the default command outputs
cmd.SetOut(cmd.OutOrStdout())
Expand Down