Skip to content

Commit

Permalink
fix build configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani committed Jul 31, 2024
1 parent 4a5f31f commit 88388a9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
12 changes: 6 additions & 6 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=testappd \
-X github.com/cosmos/cosmos-sdk/version.AppName=testappd \
ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=modulesd \
-X github.com/cosmos/cosmos-sdk/version.AppName=modulesd \
-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 Down Expand Up @@ -115,22 +115,22 @@ help: Makefile

build: go.sum
ifeq ($(OS),Windows_NT)
go build $(BUILD_FLAGS) -o build/testappd.exe ./cmd/testappd
go build $(BUILD_FLAGS) -o build/modulesd.exe ./cmd/modulesd
else
go build $(BUILD_FLAGS) -o build/testappd ./cmd/testappd
go build $(BUILD_FLAGS) -o build/modulesd ./cmd/modulesd
endif

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

install: go.sum
go install $(BUILD_FLAGS) ./cmd/testappd
go install $(BUILD_FLAGS) ./cmd/modulesd

build-reproducible: go.sum
$(DOCKER) rm latest-build || true
$(DOCKER) run --volume=$(CURDIR):/sources:ro \
--env TARGET_PLATFORMS='linux/amd64 darwin/amd64 linux/arm64' \
--env APP=testappd \
--env APP=modulesd \
--env VERSION=$(VERSION) \
--env COMMIT=$(COMMIT) \
--name latest-build cosmossdk/rbuilder:latest
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ In order to launch a test app instance and interact with the modules, install [I
ignite chain serve
```

You can interact with the modules with the native chain CLI `testappd`:
You can interact with the modules with the native chain CLI `modulesd`:

```
testappd q mint params
modulesd q mint params
```

## Contributing
Expand Down
26 changes: 13 additions & 13 deletions x/claim/spec/07_client.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ A user can query and interact with the `claim` module using the chain CLI.
The `query` commands allow users to query `claim` state.

```sh
testappd q claim
modulesd q claim
```

#### `params`

Shows the params of the module.

```sh
testappd q claim params
modulesd q claim params
```

Example output:
Expand All @@ -39,7 +39,7 @@ params:
Shows the current airdrop supply.

```sh
testappd q claim show-airdrop-supply
modulesd q claim show-airdrop-supply
```

Example output:
Expand All @@ -55,7 +55,7 @@ AirdropSupply:
Shows the information about the initial claim for airdrops.

```sh
testappd q claim show-initial-claim
modulesd q claim show-initial-claim
```

Example output:
Expand All @@ -71,7 +71,7 @@ InitialClaim:
Lists the claim records for eligible addresses for the aidrops.

```sh
testappd q claim list-claim-record
modulesd q claim list-claim-record
```

Example output:
Expand All @@ -97,7 +97,7 @@ pagination:
Shows the claim record associated to an eligible address.

```sh
testappd q claim show-claim-record [address]
modulesd q claim show-claim-record [address]
```

Example output:
Expand All @@ -114,7 +114,7 @@ claimRecord:
Lists the missions to complete to claim aidrop.

```sh
testappd q claim list-mission
modulesd q claim list-mission
```

Example output:
Expand All @@ -140,7 +140,7 @@ pagination:
Shows information about a specific mission to claim a claimable amount of the airdrop.

```sh
testappd q claim show-mission [mission-id]
modulesd q claim show-mission [mission-id]
```

Example output:
Expand All @@ -157,33 +157,33 @@ Mission:
The `tx` commands allow users to interact with the `claim` module.

```sh
testappd tx claim
modulesd tx claim
```

#### `claim-initial`

Claim the initial airdrop allocation for the user.

```sh
testappd tx claim claim-initial
modulesd tx claim claim-initial
```

Example:

```sh
testappd tx claim claim-initial --from alice
modulesd tx claim claim-initial --from alice
```

#### `claim`

Claim the airdrop allocation for the user and mission.

```sh
testappd tx claim claim 2
modulesd tx claim claim 2
```

Example:

```sh
testappd tx claim claim 3 --from alice
modulesd tx claim claim 3 --from alice
```
8 changes: 4 additions & 4 deletions x/mint/spec/05_client.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ order: 5
The `query` commands allow users to query `mint` state.

```sh
testappd q mint
modulesd q mint
```

#### `params`

Shows the params of the module.

```sh
testappd q mint params
modulesd q mint params
```

Example output:
Expand Down Expand Up @@ -49,7 +49,7 @@ mint_denom: stake
Shows the current minting annual provisions valu

```sh
testappd q mint annual-provisions
modulesd q mint annual-provisions
```

Example output:
Expand All @@ -63,7 +63,7 @@ Example output:
Shows the current minting inflation value

```sh
testappd q mint inflation
modulesd q mint inflation
```

Example output:
Expand Down

0 comments on commit 88388a9

Please sign in to comment.