From 3b2e8c0616278010fa272097f48398d860d63a7a Mon Sep 17 00:00:00 2001 From: Shreyas S Bhat <35568964+shreyasbhat0@users.noreply.github.com> Date: Thu, 10 Aug 2023 11:20:27 +0530 Subject: [PATCH] feat: add cosmos starlark package (#104) * chore: initial cosmos setup * feat: update starlark package for cosmos nodes and cosmos relays * feat: update icon starlark package * feat: restructure btp setup * feat: update eth and hardhat btp setup --- cli/commands/chain/chains.go | 1 + cli/commands/chain/types/cosmos.go | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 cli/commands/chain/types/cosmos.go diff --git a/cli/commands/chain/chains.go b/cli/commands/chain/chains.go index be871a1d..3b42a638 100644 --- a/cli/commands/chain/chains.go +++ b/cli/commands/chain/chains.go @@ -29,6 +29,7 @@ maintenance within the specified blockchain ecosystem.`, chainCmd.AddCommand(types.NewIconCmd(diveContext)) chainCmd.AddCommand(types.NewEthCmd(diveContext)) chainCmd.AddCommand(types.NewHardhatCmd(diveContext)) + chainCmd.AddCommand(types.NewCosmosCmd(diveContext)) return chainCmd diff --git a/cli/commands/chain/types/cosmos.go b/cli/commands/chain/types/cosmos.go new file mode 100644 index 00000000..11031c1c --- /dev/null +++ b/cli/commands/chain/types/cosmos.go @@ -0,0 +1,21 @@ +package types + +import ( + "github.com/hugobyte/dive/common" + "github.com/spf13/cobra" +) + +func NewCosmosCmd(diveContext *common.DiveContext) *cobra.Command { + + cosmosCmd := &cobra.Command{ + Use: "cosmos", + Short: "Build, initialize and start a cosmos node.", + Long: `The command starts an Cosmos node, initiating the process of setting up and launching a local cosmos network. +It establishes a connection to the Cosmos network and allows the node in executing smart contracts and maintaining the decentralized ledger.`, + Run: func(cmd *cobra.Command, args []string) { + + }, + } + + return cosmosCmd +}