mukan-ignite/ignite/config/chain/v0/config.go
Mukan Erkin Törük 26b204bd04
Some checks are pending
Docs Deploy / build_and_deploy (push) Waiting to run
Generate Docs / cli (push) Waiting to run
Generate Config Doc / cli (push) Waiting to run
Go formatting / go-formatting (push) Waiting to run
Check links / markdown-link-check (push) Waiting to run
Integration / pre-test (push) Waiting to run
Integration / test on (push) Blocked by required conditions
Integration / status (push) Blocked by required conditions
Lint / Lint Go code (push) Waiting to run
Test / test (ubuntu-latest) (push) Waiting to run
feat: fork Ignite CLI v29 as Mukan Ignite — remove cosmos-sdk restrictions
2026-05-11 03:31:37 +03:00

37 lines
1.1 KiB
Go

package v0
import (
"io"
"dario.cat/mergo"
"gopkg.in/yaml.v3"
"github.com/ignite/cli/v29/ignite/config/chain/base"
"github.com/ignite/cli/v29/ignite/config/chain/version"
)
// Config is the user given configuration to do additional setup during serve.
type Config struct {
base.Config `yaml:",inline"`
Validator Validator `yaml:"validator" doc:"Contains information related to the validator and settings."`
Init base.Init `yaml:"init" doc:"Overwrites the appd's config/config.toml configurations."`
Host base.Host `yaml:"host" doc:"Keeps configuration related to started servers."`
}
// Clone returns an identical copy of the instance.
func (c *Config) Clone() (version.Converter, error) {
cfgCopy := Config{}
return &cfgCopy, mergo.Merge(&cfgCopy, c, mergo.WithAppendSlice)
}
// Decode decodes the config file values from YAML.
func (c *Config) Decode(r io.Reader) error {
return yaml.NewDecoder(r).Decode(c)
}
// Validator holds info related to validator settings.
type Validator struct {
Name string `yaml:"name" doc:"Name of the validator."`
Staked string `yaml:"staked" doc:"Amount staked by the validator."`
}