Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Jan 15, 2025
1 parent 0984116 commit a34d2d0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ignite/pkg/chainregistry/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Chain struct {
Bech32Prefix string `json:"bech32_prefix"`
DaemonName string `json:"daemon_name"`
NodeHome string `json:"node_home"`
KeyAlgos []string `json:"key_algos"`
KeyAlgos []KeyAlgos `json:"key_algos"`
Slip44 int `json:"slip44"`
Fees Fees `json:"fees"`
Staking Staking `json:"staking"`
Expand Down
13 changes: 13 additions & 0 deletions ignite/pkg/chainregistry/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,16 @@ const (
// ChainStatusKilled is the inactive chain status

Check failure on line 35 in ignite/pkg/chainregistry/consts.go

View workflow job for this annotation

GitHub Actions / Lint Go code

Comment should end in a period (godot)
ChainStatusKilled ChainStatus = "killed"
)

type KeyAlgos string

const (
// KeyAlgoSecp256k1 is the secp256k1 key algorithm

Check failure on line 42 in ignite/pkg/chainregistry/consts.go

View workflow job for this annotation

GitHub Actions / Lint Go code

Comment should end in a period (godot)
KeyAlgoSecp256k1 KeyAlgos = "secp256k1"

// KeyAlgosEthSecp256k1 is the secp256k1 key algorithm with ethereum compatibility

Check failure on line 45 in ignite/pkg/chainregistry/consts.go

View workflow job for this annotation

GitHub Actions / Lint Go code

Comment should end in a period (godot)
KeyAlgosEthSecp256k1 KeyAlgos = "ethsecp256k1"

// KeyAlgoEd25519 is the ed25519 key algorithm
KeyAlgoEd25519 KeyAlgos = "ed25519"
)
2 changes: 1 addition & 1 deletion ignite/services/scaffolder/chain_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (s Scaffolder) AddChainRegistryFiles(chain *chain.Chain, cfg *chainconfig.C
Bech32Prefix: "cosmos",
DaemonName: binaryName,
NodeHome: chainHome,
KeyAlgos: []string{"secp256k1"},
KeyAlgos: []chainregistry.KeyAlgos{chainregistry.KeyAlgoSecp256k1},
Slip44: 118,
Fees: chainregistry.Fees{
FeeTokens: []chainregistry.FeeToken{
Expand Down

0 comments on commit a34d2d0

Please sign in to comment.