Skip to content

Commit

Permalink
update coho to qwoyn
Browse files Browse the repository at this point in the history
  • Loading branch information
icafa committed Oct 28, 2022
1 parent d43bf14 commit 2f40590
Show file tree
Hide file tree
Showing 111 changed files with 928 additions and 920 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ build_tags_comma_sep := $(subst $(whitespace),$(comma),$(build_tags))

# process linker flags

ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=coho \
-X github.com/cosmos/cosmos-sdk/version.AppName=cohod \
ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=qwoyn \
-X github.com/cosmos/cosmos-sdk/version.AppName=qwoynd \
-X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \
-X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)"
Expand All @@ -71,16 +71,16 @@ all: install tools lint

build: go.sum
ifeq ($(OS),Windows_NT)
go build -mod=readonly $(BUILD_FLAGS) -o build/cohod.exe ./cmd/cohod
go build -mod=readonly $(BUILD_FLAGS) -o build/qwoynd.exe ./cmd/qwoynd
else
go build -mod=readonly $(BUILD_FLAGS) -o build/cohod ./cmd/cohod
go build -mod=readonly $(BUILD_FLAGS) -o build/qwoynd ./cmd/qwoynd
endif

build-linux: go.sum
LEDGER_ENABLED=false GOOS=linux GOARCH=amd64 $(MAKE) build

install: go.sum
go install -mod=readonly $(BUILD_FLAGS) ./cmd/cohod
go install -mod=readonly $(BUILD_FLAGS) ./cmd/qwoynd

update-swagger-docs: statik
$(BINDIR)/statik -src=swagger/swagger-ui -dest=swagger -f -m
Expand Down
22 changes: 11 additions & 11 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"path/filepath"
"strings"

"github.com/cosmic-horizon/coho/x/mint"
mintkeeper "github.com/cosmic-horizon/coho/x/mint/keeper"
minttypes "github.com/cosmic-horizon/coho/x/mint/types"
"github.com/cosmic-horizon/qwoyn/x/mint"
mintkeeper "github.com/cosmic-horizon/qwoyn/x/mint/keeper"
minttypes "github.com/cosmic-horizon/qwoyn/x/mint/types"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/grpc/tmservice"
Expand Down Expand Up @@ -100,23 +100,23 @@ import (
tmos "github.com/tendermint/tendermint/libs/os"
dbm "github.com/tendermint/tm-db"

cohomodule "github.com/cosmic-horizon/coho/x/coho"
cohomodulekeeper "github.com/cosmic-horizon/coho/x/coho/keeper"
cohomoduletypes "github.com/cosmic-horizon/coho/x/coho/types"
cohomodule "github.com/cosmic-horizon/qwoyn/x/coho"
cohomodulekeeper "github.com/cosmic-horizon/qwoyn/x/coho/keeper"
cohomoduletypes "github.com/cosmic-horizon/qwoyn/x/coho/types"

"github.com/cosmic-horizon/coho/x/game"
gamekeeper "github.com/cosmic-horizon/coho/x/game/keeper"
gametypes "github.com/cosmic-horizon/coho/x/game/types"
"github.com/cosmic-horizon/qwoyn/x/game"
gamekeeper "github.com/cosmic-horizon/qwoyn/x/game/keeper"
gametypes "github.com/cosmic-horizon/qwoyn/x/game/types"

appparams "github.com/cosmic-horizon/coho/app/params"
appparams "github.com/cosmic-horizon/qwoyn/app/params"

"github.com/CosmWasm/wasmd/x/wasm"
wasmclient "github.com/CosmWasm/wasmd/x/wasm/client"
wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
)

const (
Name = "cohod"
Name = "qwoynd"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion app/encoding.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package app

import (
"github.com/cosmic-horizon/coho/app/params"
"github.com/cosmic-horizon/qwoyn/app/params"
"github.com/cosmos/cosmos-sdk/std"
)

Expand Down
2 changes: 1 addition & 1 deletion app/params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

const (
CohoDecimals = 6
Decimals = 6

HumanGameCoinUnit = "COHO"
GameCoinUnit = "ucoho"
Expand Down
2 changes: 1 addition & 1 deletion app/params/doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Package params defines the simulation parameters in the coho.
Package params defines the simulation parameters in the qwoyn.
It contains the default weights used for each transaction used on the module's
simulation. These weights define the chance for a transaction to be simulated at
any gived operation.
Expand Down
2 changes: 1 addition & 1 deletion app/simulation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/cosmic-horizon/coho/app"
"github.com/cosmic-horizon/qwoyn/app"
"github.com/cosmos/cosmos-sdk/simapp"
simulationtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"
Expand Down
File renamed without changes.
16 changes: 8 additions & 8 deletions cmd/cohod/cmd/root.go → cmd/qwoynd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ import (
"github.com/tendermint/tendermint/libs/log"
dbm "github.com/tendermint/tm-db"

"github.com/cosmic-horizon/coho/app"
"github.com/cosmic-horizon/coho/app/params"
"github.com/cosmic-horizon/qwoyn/app"
"github.com/cosmic-horizon/qwoyn/app/params"
)

// NewRootCmd creates a new root command for simd. It is called once in the
Expand All @@ -51,7 +51,7 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
WithViper("")

rootCmd := &cobra.Command{
Use: "cohod",
Use: "qwoynd",
Short: "Stargate Cosmos Hub App",
PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
initClientCtx, err := client.ReadPersistentCommandFlags(initClientCtx, cmd.Flags())
Expand All @@ -68,8 +68,8 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
return err
}

customTemplate, customCohoConfig := initAppConfig()
return server.InterceptConfigsPreRunHandler(cmd, customTemplate, customCohoConfig)
customTemplate, customConfig := initAppConfig()
return server.InterceptConfigsPreRunHandler(cmd, customTemplate, customConfig)
},
}

Expand Down Expand Up @@ -257,7 +257,7 @@ func (ac appCreator) appExport(
loadLatest = true
}

cohoApp := app.New(
qwoynApp := app.New(
logger,
db,
traceStore,
Expand All @@ -270,10 +270,10 @@ func (ac appCreator) appExport(
)

if height != -1 {
if err := cohoApp.LoadHeight(height); err != nil {
if err := qwoynApp.LoadHeight(height); err != nil {
return servertypes.ExportedApp{}, err
}
}

return cohoApp.ExportAppStateAndValidators(forZeroHeight, jailAllowedAddrs)
return qwoynApp.ExportAppStateAndValidators(forZeroHeight, jailAllowedAddrs)
}
File renamed without changes.
10 changes: 5 additions & 5 deletions cmd/cohod/cmd/testnet.go → cmd/qwoynd/cmd/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ import (
ibcclienttypes "github.com/cosmos/ibc-go/v3/modules/core/02-client/types"
ibcchanneltypes "github.com/cosmos/ibc-go/v3/modules/core/04-channel/types"

"github.com/cosmic-horizon/coho/app/params"
gametypes "github.com/cosmic-horizon/coho/x/game/types"
minttypes "github.com/cosmic-horizon/coho/x/mint/types"
"github.com/cosmic-horizon/qwoyn/app/params"
gametypes "github.com/cosmic-horizon/qwoyn/x/game/types"
minttypes "github.com/cosmic-horizon/qwoyn/x/mint/types"
crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
)
Expand All @@ -60,7 +60,7 @@ func testnetCmd(mbm module.BasicManager, genBalIterator banktypes.GenesisBalance
necessary files (private validator, genesis, config, etc.).
Note, strict routability for addresses is turned off in the config file.
Example:
cohod testnet --v 4 --output-dir ./output --starting-ip-address 192.168.10.2
qwoynd testnet --v 4 --output-dir ./output --starting-ip-address 192.168.10.2
`,
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx, err := client.GetClientQueryContext(cmd)
Expand Down Expand Up @@ -90,7 +90,7 @@ Example:
cmd.Flags().Int(flagNumValidators, 4, "Number of validators to initialize the testnet with")
cmd.Flags().StringP(flagOutputDir, "o", "./mytestnet", "Directory to store initialization data for the testnet")
cmd.Flags().String(flagNodeDirPrefix, "node", "Prefix the directory name for each node with (node results in node0, node1, ...)")
cmd.Flags().String(flagNodeDaemonHome, "cohod", "Home directory of the node's daemon configuration")
cmd.Flags().String(flagNodeDaemonHome, "qwoynd", "Home directory of the node's daemon configuration")
cmd.Flags().String(flagStartingIPAddress, "192.168.0.1", "Starting IP address (192.168.0.1 results in persistent peers list [email protected]:46656, [email protected]:46656, ...)")
cmd.Flags().String(flags.FlagChainID, "", "genesis file chain-id, if left blank will be randomly created")
cmd.Flags().String(server.FlagMinGasPrices, fmt.Sprintf("0.000006%s", params.BondDenom), "Minimum gas prices to accept for transactions; All fees in a tx must meet this minimum (e.g. 0.01photino,0.001stake)")
Expand Down
4 changes: 2 additions & 2 deletions cmd/cohod/main.go → cmd/qwoynd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/cosmos/cosmos-sdk/server"
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"

app "github.com/cosmic-horizon/coho/app"
"github.com/cosmic-horizon/coho/cmd/cohod/cmd"
app "github.com/cosmic-horizon/qwoyn/app"
"github.com/cosmic-horizon/qwoyn/cmd/qwoynd/cmd"
)

func main() {
Expand Down
36 changes: 18 additions & 18 deletions cosmwasm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ Here's [installation guide](https://doc.rust-lang.org/cargo/getting-started/inst
## Add contract owner account

```sh
cohod keys add signer --keyring-backend=test --home=$HOME/.cohod --recover
qwoynd keys add signer --keyring-backend=test --home=$HOME/.qwoynd --recover
# pipe woman clutch absorb lonely cost credit math antique better thumb cook pave clarify hungry east garbage absent warfare song helmet anchor drift purity

cohod tx bank send validator $(cohod keys show -a signer --keyring-backend=test --home=$HOME/.cohod) 1000000stake --keyring-backend=test --home=$HOME/.cohod --broadcast-mode=block -y --chain-id=qwoyn-1
qwoynd tx bank send validator $(qwoynd keys show -a signer --keyring-backend=test --home=$HOME/.qwoynd) 1000000stake --keyring-backend=test --home=$HOME/.qwoynd --broadcast-mode=block -y --chain-id=qwoyn-1
```

## Build Contracts
Expand All @@ -36,7 +36,7 @@ You can find compiled `.wasm` files under `artifacts` directory.
## Upload WASM binary

```
cohod tx wasm store $WASM_FILE --from $FROM --chain-id $CHAIN_ID --gas auto --gas-adjustment 1.3 -b block --keyring-backend=$KEYRING_BACKEND --home=$HOME/.cohod/ -y
qwoynd tx wasm store $WASM_FILE --from $FROM --chain-id $CHAIN_ID --gas auto --gas-adjustment 1.3 -b block --keyring-backend=$KEYRING_BACKEND --home=$HOME/.qwoynd/ -y
# $WASM_FILE - Path to wasm binary file (Example: ./artifacts/ship_nft.wasm)
# $FROM - Name or address of signer account (Example: coho1m6auqrjwertsnccvkk9tts3lzw0hcz0jn2v3lf)
Expand All @@ -47,13 +47,13 @@ cohod tx wasm store $WASM_FILE --from $FROM --chain-id $CHAIN_ID --gas auto --ga
Example command to upload Ship NFT wasm binary to local test node

```
cohod tx wasm store ./artifacts/ship_nft.wasm --from validator --chain-id qwoyn-1 --gas auto --gas-adjustment 1.3 -b block --keyring-backend=test --home=$HOME/.cohod/ -y
qwoynd tx wasm store ./artifacts/ship_nft.wasm --from validator --chain-id qwoyn-1 --gas auto --gas-adjustment 1.3 -b block --keyring-backend=test --home=$HOME/.qwoynd/ -y
```

## Instantiate Contract

```
cohod tx wasm instantiate $CODE_ID $INSTANTIATE_MSG --from $FROM --label $LABEL --chain-id $CHAIN_ID --gas auto --gas-adjustment 1.3 -b block --keyring-backend=$KEYRING_BACKEND --home=$HOME/.cohod/ --no-admin -y
qwoynd tx wasm instantiate $CODE_ID $INSTANTIATE_MSG --from $FROM --label $LABEL --chain-id $CHAIN_ID --gas auto --gas-adjustment 1.3 -b block --keyring-backend=$KEYRING_BACKEND --home=$HOME/.qwoynd/ --no-admin -y
# $CODE_ID - Uploaded Code ID (Example: 1)
# $INSTANTIATE_MSG - JSON encoded init args (Example: '{"name":"Ship NFT","symbol":"SHIP","minter":"coho1m6auqrjwertsnccvkk9tts3lzw0hcz0jn2v3lf"}')
Expand All @@ -66,27 +66,27 @@ cohod tx wasm instantiate $CODE_ID $INSTANTIATE_MSG --from $FROM --label $LABEL
Example command to init Ship NFT contract on local test node

```
cohod tx wasm instantiate 1 '{"name":"Ship NFT","symbol":"SHIP","minter":"coho1x0fha27pejg5ajg8vnrqm33ck8tq6raafkwa9v","owner":"coho1x0fha27pejg5ajg8vnrqm33ck8tq6raafkwa9v"}' --from validator --label "Ship-NFT" --chain-id qwoyn-1 --gas auto --gas-adjustment 1.3 -b block --keyring-backend=test --home=$HOME/.cohod/ --no-admin -y
qwoynd tx wasm instantiate 1 '{"name":"Ship NFT","symbol":"SHIP","minter":"coho1x0fha27pejg5ajg8vnrqm33ck8tq6raafkwa9v","owner":"coho1x0fha27pejg5ajg8vnrqm33ck8tq6raafkwa9v"}' --from validator --label "Ship-NFT" --chain-id qwoyn-1 --gas auto --gas-adjustment 1.3 -b block --keyring-backend=test --home=$HOME/.qwoynd/ --no-admin -y
```

## Get Contract Address

```
cohod query wasm list-contract-by-code $CODE_ID
qwoynd query wasm list-contract-by-code $CODE_ID
# $CODE_ID - Uploaded Code ID (Example: 1)
```

Example command to get Ship NFT contract address on local test node

```
cohod query wasm list-contract-by-code 1
qwoynd query wasm list-contract-by-code 1
```

## Mint NFT

```
cohod tx wasm execute $CONTRACT_ADDRESS $EXECUTE_MSG --from $FROM --chain-id $CHAIN_ID --gas auto --gas-adjustment 1.3 -b block --keyring-backend=$KEYRING_BACKEND --home=$HOME/.cohod/ -y
qwoynd tx wasm execute $CONTRACT_ADDRESS $EXECUTE_MSG --from $FROM --chain-id $CHAIN_ID --gas auto --gas-adjustment 1.3 -b block --keyring-backend=$KEYRING_BACKEND --home=$HOME/.qwoynd/ -y
# $CONTRACT_ADDRESS - Contract address (Example: coho14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9snm4thc)
# $EXECUTE_MSG - JSON encoded send args (Example: '{"mint":{"token_id":"1","owner":"coho1m6auqrjwertsnccvkk9tts3lzw0hcz0jn2v3lf","extension":{"ship_type":10,"owner":"100"}}}')
Expand All @@ -99,21 +99,21 @@ cohod tx wasm execute $CONTRACT_ADDRESS $EXECUTE_MSG --from $FROM --chain-id $CH
Example command to mint Ship NFT with token_id "1"

```
cohod tx wasm execute coho14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9snm4thc '{"mint":{"token_id":"1","owner":"coho1x0fha27pejg5ajg8vnrqm33ck8tq6raafkwa9v","extension":{"ship_type":10,"owner":"100"}}}' --from signer --chain-id qwoyn-1 --gas auto --gas-adjustment 1.3 -b block --keyring-backend=test --home=$HOME/.cohod/ -y
qwoynd tx wasm execute coho14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9snm4thc '{"mint":{"token_id":"1","owner":"coho1x0fha27pejg5ajg8vnrqm33ck8tq6raafkwa9v","extension":{"ship_type":10,"owner":"100"}}}' --from signer --chain-id qwoyn-1 --gas auto --gas-adjustment 1.3 -b block --keyring-backend=test --home=$HOME/.qwoynd/ -y
```

## Transfer NFT

Example command to transfer minted Ship NFT with token_id "1"

```
cohod tx wasm execute coho14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9snm4thc '{"transfer_nft":{"token_id":"1","recipient":"coho1x0fha27pejg5ajg8vnrqm33ck8tq6raafkwa9v"}}' --from signer --chain-id qwoyn-1 --gas auto --gas-adjustment 1.3 -b block --keyring-backend=test --home=$HOME/.cohod/ -y
qwoynd tx wasm execute coho14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9snm4thc '{"transfer_nft":{"token_id":"1","recipient":"coho1x0fha27pejg5ajg8vnrqm33ck8tq6raafkwa9v"}}' --from signer --chain-id qwoyn-1 --gas auto --gas-adjustment 1.3 -b block --keyring-backend=test --home=$HOME/.qwoynd/ -y
```

## Get NFT Info

```
cohod query wasm contract-state smart $CONTRACT_ADDRESS $QUERY_MSG
qwoynd query wasm contract-state smart $CONTRACT_ADDRESS $QUERY_MSG
# $CONTRACT_ADDRESS - Contract address (Example: coho14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9snm4thc)
# QUERY_MSG - JSON encoded read args (Example: '{"nft_info":{"token_id":"1"}}')
Expand All @@ -122,19 +122,19 @@ cohod query wasm contract-state smart $CONTRACT_ADDRESS $QUERY_MSG
Example command to get Ship NFT contract info

```
cohod query wasm contract-state smart coho14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9snm4thc '{"contract_info":{}}'
qwoynd query wasm contract-state smart coho14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9snm4thc '{"contract_info":{}}'
```

Example command to get Ship NFT info with token_id "1"

```
cohod query wasm contract-state smart coho14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9snm4thc '{"nft_info":{"token_id":"1"}}'
qwoynd query wasm contract-state smart coho14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9snm4thc '{"nft_info":{"token_id":"1"}}'
```

## Update NFT

```
cohod tx wasm execute $CONTRACT_ADDRESS $EXECUTE_MSG --from $FROM --chain-id $CHAIN_ID --gas auto --gas-adjustment 1.3 -b block --keyring-backend=$KEYRING_BACKEND --home=$HOME/.cohod/ -y
qwoynd tx wasm execute $CONTRACT_ADDRESS $EXECUTE_MSG --from $FROM --chain-id $CHAIN_ID --gas auto --gas-adjustment 1.3 -b block --keyring-backend=$KEYRING_BACKEND --home=$HOME/.qwoynd/ -y
# $CONTRACT_ADDRESS - Contract address (Example: coho14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9snm4thc)
# $EXECUTE_MSG - JSON encoded send args (Example: '{"update_nft":{"token_id":"1","extension":{"ship_type":20,"owner":"200"}}}')
Expand All @@ -147,13 +147,13 @@ cohod tx wasm execute $CONTRACT_ADDRESS $EXECUTE_MSG --from $FROM --chain-id $CH
Example command to update Ship NFT with token_id "1"

```
cohod tx wasm execute coho14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9snm4thc '{"update_nft":{"token_id":"1","extension":{"ship_type":20,"owner":"200"}}}' --from signer --chain-id qwoyn-1 --gas auto --gas-adjustment 1.3 -b block --keyring-backend=test --home=$HOME/.cohod/ -y
qwoynd tx wasm execute coho14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9snm4thc '{"update_nft":{"token_id":"1","extension":{"ship_type":20,"owner":"200"}}}' --from signer --chain-id qwoyn-1 --gas auto --gas-adjustment 1.3 -b block --keyring-backend=test --home=$HOME/.qwoynd/ -y
```

## Transfer Ownership

```
cohod tx wasm execute $CONTRACT_ADDRESS $EXECUTE_MSG --from $FROM --chain-id $CHAIN_ID --gas auto --gas-adjustment 1.3 -b block --keyring-backend=$KEYRING_BACKEND --home=$HOME/.cohod/ -y
qwoynd tx wasm execute $CONTRACT_ADDRESS $EXECUTE_MSG --from $FROM --chain-id $CHAIN_ID --gas auto --gas-adjustment 1.3 -b block --keyring-backend=$KEYRING_BACKEND --home=$HOME/.qwoynd/ -y
# $CONTRACT_ADDRESS - Contract address (Example: coho14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9snm4thc)
# $EXECUTE_MSG - JSON encoded send args (Example: '{"transfer_ownership":{"owner":"coho1f0yhatqxayku7y00k448n43qwch320v4da2plx"}}')
Expand All @@ -166,5 +166,5 @@ cohod tx wasm execute $CONTRACT_ADDRESS $EXECUTE_MSG --from $FROM --chain-id $CH
Example command to transfer ownership to `coho1f0yhatqxayku7y00k448n43qwch320v4da2plx`

```
cohod tx wasm execute coho14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9snm4thc '{"transfer_ownership":{"owner":"coho1f0yhatqxayku7y00k448n43qwch320v4da2plx"}}' --from signer --chain-id qwoyn-1 --gas auto --gas-adjustment 1.3 -b block --keyring-backend=test --home=$HOME/.cohod/ -y
qwoynd tx wasm execute coho14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9snm4thc '{"transfer_ownership":{"owner":"coho1f0yhatqxayku7y00k448n43qwch320v4da2plx"}}' --from signer --chain-id qwoyn-1 --gas auto --gas-adjustment 1.3 -b block --keyring-backend=test --home=$HOME/.qwoynd/ -y
```
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/cosmic-horizon/coho
module github.com/cosmic-horizon/qwoyn

go 1.16

Expand Down
4 changes: 2 additions & 2 deletions proto/coho/genesis.proto
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
syntax = "proto3";
package cosmichorizon.coho.coho;
package cosmichorizon.qwoyn.coho;

import "gogoproto/gogo.proto";
import "coho/params.proto";
// this line is used by starport scaffolding # genesis/proto/import

option go_package = "github.com/cosmic-horizon/coho/x/coho/types";
option go_package = "github.com/cosmic-horizon/qwoyn/x/coho/types";

// GenesisState defines the coho module's genesis state.
message GenesisState {
Expand Down
4 changes: 2 additions & 2 deletions proto/coho/params.proto
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
syntax = "proto3";
package cosmichorizon.coho.coho;
package cosmichorizon.qwoyn.coho;

import "gogoproto/gogo.proto";

option go_package = "github.com/cosmic-horizon/coho/x/coho/types";
option go_package = "github.com/cosmic-horizon/qwoyn/x/coho/types";

// Params defines the parameters for the module.
message Params {
Expand Down
4 changes: 2 additions & 2 deletions proto/coho/query.proto
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
syntax = "proto3";
package cosmichorizon.coho.coho;
package cosmichorizon.qwoyn.coho;

import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "cosmos/base/query/v1beta1/pagination.proto";
import "coho/params.proto";
// this line is used by starport scaffolding # 1

option go_package = "github.com/cosmic-horizon/coho/x/coho/types";
option go_package = "github.com/cosmic-horizon/qwoyn/x/coho/types";

// Query defines the gRPC querier service.
service Query {
Expand Down
Loading

0 comments on commit 2f40590

Please sign in to comment.