diff --git a/cli/cmd/chains/polkadot/cmd.go b/cli/cmd/chains/polkadot/cmd.go index 383dd5f8..696bcf48 100644 --- a/cli/cmd/chains/polkadot/cmd.go +++ b/cli/cmd/chains/polkadot/cmd.go @@ -31,7 +31,7 @@ const ( ) var ( - polkadotParachains = []string{"acala", "ajuna", "bifrost", "centrifuge", "clover", "frequency", "kilt", "kylin", "litentry", "manta", "moonbeam", "moonsama", "nodle", "parallel", "pendulum", "phala", "polkadex", "subsocial", "zeitgeist"} + polkadotParachains = []string{"acala", "ajuna", "bifrost", "centrifuge", "clover", "frequency", "kilt", "kylin", "litentry", "manta", "moonbeam", "moonsama", "nodle", "parallel", "pendulum", "phala", "polkadex", "subsocial", "zeitgeist", "robonomics"} ) var PolkadotCmd = common.NewDiveCommandBuilder(). diff --git a/cli/cmd/chains/polkadot/run.go b/cli/cmd/chains/polkadot/run.go index 7846a691..5158cc56 100644 --- a/cli/cmd/chains/polkadot/run.go +++ b/cli/cmd/chains/polkadot/run.go @@ -386,7 +386,7 @@ func startExplorer(cli *common.Cli, enclaveCtx *enclaves.EnclaveContext, finalRe } isLocalContext, err := cli.Context().IsLocalKurtosisContext() - + if err != nil { return nil, err } diff --git a/cli/cmd/chains/utils/types.go b/cli/cmd/chains/utils/types.go index ffb650ca..93b55ff5 100644 --- a/cli/cmd/chains/utils/types.go +++ b/cli/cmd/chains/utils/types.go @@ -193,11 +193,17 @@ func (sc *HardhatServiceConfig) EncodeToString() (string, error) { // This code is for polkadot config file +type Key struct { + PrivatePhrase string `json:"private_phrase"` + PublicKey string `json:"public_key"` +} + type NodeConfig struct { Name string `json:"name"` NodeType string `json:"node_type"` Prometheus bool `json:"prometheus"` Ports Ports `json:"ports"` + Key Key `json:"key,omitempty"` } type Ports struct { @@ -215,6 +221,8 @@ type RelayChainConfig struct { type ParaNodeConfig struct { Name string `json:"name"` Nodes []NodeConfig `json:"nodes"` + SudoKey Key `json:"sudo_key,omitempty"` + } type PolkadotServiceConfig struct { @@ -222,6 +230,7 @@ type PolkadotServiceConfig struct { RelayChain RelayChainConfig `json:"relaychain"` Para []ParaNodeConfig `json:"parachains"` Explorer bool `json:"explorer"` + WithoutRegistration bool `json:"without_registration"` } func (pc *ParaNodeConfig) EncodeToString() (string, error) {