Skip to content

Commit

Permalink
chore: release v0.20.4 (#2373)
Browse files Browse the repository at this point in the history
chore: release v0.20.4
  • Loading branch information
ilgooz authored Apr 15, 2022
2 parents aa0df65 + 958ad87 commit 5ab6fbc
Show file tree
Hide file tree
Showing 26 changed files with 74 additions and 69 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gen-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ jobs:
os: linux
defaults-shell: bash
arch: arm64
- runs-on: [ self-hosted, macOS ]
- runs-on: macos-10.15 # building it at the latest version breaks compability for older versions
os: darwin
defaults-shell: /usr/bin/arch -arch x86_64 /bin/bash -l {0}
defaults-shell: /bin/bash -l {0}
arch: amd64
- runs-on: [ self-hosted, macOS ]
os: darwin
Expand Down
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [`v0.20.4`](https://github.com/ignite-hq/cli/releases/tag/v0.20.4)

### Fixes

- Use `protoc` binary compiled in an older version of macOS AMD64 for backwards compatibility in code generation


## [`v0.20.3`](https://github.com/ignite-hq/cli/releases/tag/v0.20.3)

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion docs/cli/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test, build, and launch your blockchain.

To get started, create a blockchain:

ignite scaffold chain github.com/cosmonaut/mars
ignite scaffold chain github.com/username/mars

**Options**

Expand Down
10 changes: 5 additions & 5 deletions docs/guide/blog/comment-blog.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ In `x/blog/keeper/post.go`, add a new function to get the post:
```go
import (
"encoding/binary"
"github.com/cosmonaut/blog/x/blog/types"
"github.com/username/blog/x/blog/types"
"github.com/cosmos/cosmos-sdk/store/prefix"
sdk "github.com/cosmos/cosmos-sdk/types"
)
Expand Down Expand Up @@ -350,7 +350,7 @@ package keeper
"context"
"encoding/binary"

"github.com/cosmonaut/blog/x/blog/types"
"github.com/username/blog/x/blog/types"
"github.com/cosmos/cosmos-sdk/store/prefix"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
Expand Down Expand Up @@ -413,7 +413,7 @@ After the types are defined in proto files, you can implement post querying logi
import (
"context"

"github.com/cosmonaut/blog/x/blog/types"
"github.com/username/blog/x/blog/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
Expand Down Expand Up @@ -489,7 +489,7 @@ blogd tx blog create-post Uno "This is the first post" --from alice
As before, you are prompted to confirm the transaction:

```bash
"body":{"messages":[{"@type":"/cosmonaut.blog.blog.MsgCreatePost","creator":"cosmos1dad8xvsj3dse928r52yayygghwvsggvzlm730p","title":"foo","body":"bar"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":[]}
"body":{"messages":[{"@type":"/username.blog.blog.MsgCreatePost","creator":"cosmos1dad8xvsj3dse928r52yayygghwvsggvzlm730p","title":"foo","body":"bar"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":[]}

confirm transaction before signing and broadcasting [y/N]: y
```
Expand All @@ -507,7 +507,7 @@ blogd tx blog create-comment 0 Uno "This is the first comment" --from alice
```

```bash
{"body":{"messages":[{"@type":"/cosmonaut.blog.blog.MsgCreateComment","creator":"cosmos17pvwgu36fu37j8y9gc4pasxsj3p26ghmlqvngd","id":"0","title":"Uno","body":"This is the first comment","PostID":"2","createdAt":"0"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":[]}
{"body":{"messages":[{"@type":"/username.blog.blog.MsgCreateComment","creator":"cosmos17pvwgu36fu37j8y9gc4pasxsj3p26ghmlqvngd","id":"0","title":"Uno","body":"This is the first comment","PostID":"2","createdAt":"0"}],"memo":"","timeout_height":"0","extension_options":[],"non_critical_extension_options":[]},"auth_info":{"signer_infos":[],"fee":{"amount":[],"gas_limit":"200000","payer":"","granter":""}},"signatures":[]}
```

When prompted, press Enter to confirm the transaction:
Expand Down
10 changes: 5 additions & 5 deletions docs/guide/blog/connect-blockchain.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Create your `blogclient` directory first, change your current working directory,
```bash
mkdir blogclient
cd blogclient
go mod init github.com/cosmonaut/blogclient
go mod init github.com/username/blogclient
touch main.go
```

Expand All @@ -42,16 +42,16 @@ Your blockchain client has only two dependencies:
- `ignite` for the `cosmosclient` blockchain client

```go
module github.com/cosmonaut/blogclient
module github.com/username/blogclient

go 1.17

require (
github.com/cosmonaut/blog v0.0.0-00010101000000-000000000000
github.com/username/blog v0.0.0-00010101000000-000000000000
github.com/ignite-hq/cli v0.19.2
)

replace github.com/cosmonaut/blog => ../blog
replace github.com/username/blog => ../blog
replace github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
```

Expand All @@ -77,7 +77,7 @@ import (
"log"

// importing the types package of your blog blockchain
"github.com/cosmonaut/blog/x/blog/types"
"github.com/username/blog/x/blog/types"
// importing the general purpose Cosmos blockchain client
"github.com/ignite-hq/cli/ignite/pkg/cosmosclient"
)
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/ibc.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Use Ignite CLI to scaffold the blockchain app and the blog module.
To scaffold a new blockchain named `planet`:

```go
ignite scaffold chain github.com/cosmonaut/planet --no-module
ignite scaffold chain github.com/username/planet --no-module
cd planet
```

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/interchange/02-init.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ In this chapter, you create the basic blockchain module for the interchain excha
Scaffold a new blockchain called `interchange`:

```bash
ignite scaffold chain github.com/cosmonaut/interchange --no-module
ignite scaffold chain github.com/username/interchange --no-module
```

A new directory named `interchange` is created.
Expand Down
4 changes: 2 additions & 2 deletions docs/guide/interchange/04-creating-order-books.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ Create a new `order.proto` file in the `proto/dex` directory and add the content
```proto
// proto/dex/order.proto
syntax = "proto3";
package cosmonaut.interchange.dex;
package username.interchange.dex;
option go_package = "github.com/cosmonaut/interchange/x/dex/types";
option go_package = "github.com/username/interchange/x/dex/types";
message OrderBook {
int32 idCount = 1;
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/interchange/05-mint-and-burn-voucher.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
ibctransfertypes "github.com/cosmos/ibc-go/modules/apps/transfer/types"
"github.com/cosmonaut/interchange/x/dex/types"
"github.com/username/interchange/x/dex/types"
"strings"
)

Expand Down
6 changes: 3 additions & 3 deletions docs/guide/interchange/09-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/require"
"github.com/cosmonaut/interchange/x/dex/types"
"github.com/username/interchange/x/dex/types"
)

func GenString(n int) string {
Expand Down Expand Up @@ -146,7 +146,7 @@ import (
"sort"

"github.com/stretchr/testify/require"
"github.com/cosmonaut/interchange/x/dex/types"
"github.com/username/interchange/x/dex/types"
)

func OrderListToBuyOrderBook(list []types.Order) types.BuyOrderBook {
Expand Down Expand Up @@ -718,5 +718,5 @@ func TestFillBuyOrder(t *testing.T) {
When the tests are successful, your output is:

```go
ok github.com/cosmonaut/interchange/x/dex/types 0.550s
ok github.com/username/interchange/x/dex/types 0.550s
```
18 changes: 9 additions & 9 deletions docs/guide/loan.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ A lender can approve a loan request from a borrower.
Use Ignite CLI to scaffold a fully functional Cosmos SDK blockchain app named `loan`:

```bash
ignite scaffold chain github.com/cosmonaut/loan --no-module
ignite scaffold chain github.com/username/loan --no-module
```

The `--no-module` flag prevents scaffolding a default module. Don't worry, you will add the loan module later.
Expand Down Expand Up @@ -150,9 +150,9 @@ Create the messages one at a time with the according application logic.

### Request Loan Message

For a loan, the initial message handles the transaction when a cosmonaut requests a loan.
For a loan, the initial message handles the transaction when a username requests a loan.

The cosmonaut wants a certain `amount` and is willing to pay `fees` as well as give `collateral`. The `deadline` marks the time when the loan has to be repaid.
The username wants a certain `amount` and is willing to pay `fees` as well as give `collateral`. The `deadline` marks the time when the loan has to be repaid.

The first message is the `request-loan` message that requires these input parameters:

Expand All @@ -175,7 +175,7 @@ package keeper
import (
"context"

"github.com/cosmonaut/loan/x/loan/types"
"github.com/username/loan/x/loan/types"
sdk "github.com/cosmos/cosmos-sdk/types"
)

Expand Down Expand Up @@ -337,7 +337,7 @@ import (
"context"
"fmt"

"github.com/cosmonaut/loan/x/loan/types"
"github.com/username/loan/x/loan/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
Expand Down Expand Up @@ -466,7 +466,7 @@ git commit -m "Add approve loan message"

### Repay Loan Message

After the loan has been approved, the cosmonaut must be able to repay an approved loan.
After the loan has been approved, the username must be able to repay an approved loan.

Scaffold the message `repay-loan` that a borrower uses to return tokens that were borrowed from the lender:

Expand All @@ -491,7 +491,7 @@ import (
"context"
"fmt"

"github.com/cosmonaut/loan/x/loan/types"
"github.com/username/loan/x/loan/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
Expand Down Expand Up @@ -650,7 +650,7 @@ import (
"fmt"
"strconv"

"github.com/cosmonaut/loan/x/loan/types"
"github.com/username/loan/x/loan/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
Expand Down Expand Up @@ -807,7 +807,7 @@ import (
"context"
"fmt"

"github.com/cosmonaut/loan/x/loan/types"
"github.com/username/loan/x/loan/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/nameservice/01-init.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Scaffold a new Cosmos SDK blockchain using the `ignite scaffold chain` command.
By default, a chain is scaffolded with a new empty Cosmos SDK module. You want to create the nameservice module without scaffolding a module, so use the `--no-module` flag:

```bash
ignite scaffold chain github.com/cosmonaut/nameservice --no-module
ignite scaffold chain github.com/username/nameservice --no-module
```

This command created a new directory `nameservice` with a brand new Cosmos SDK blockchain. This blockchain doesn't have any application-specific logic yet, but it imports standard Cosmos SDK modules, such as `auth`, `bank`, `mint`, and others.
Expand Down
4 changes: 2 additions & 2 deletions docs/guide/nameservice/02-messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ The `ignite scaffold message buy-name name bid` command creates and modifies sev

```go
syntax = "proto3";
package cosmonaut.nameservice.nameservice;
package username.nameservice.nameservice;

// this line is used by starport scaffolding # proto/tx/import

option go_package = "github.com/cosmonaut/nameservice/x/nameservice/types";
option go_package = "github.com/username/nameservice/x/nameservice/types";

// Msg defines the Msg service.
service Msg {
Expand Down
6 changes: 3 additions & 3 deletions docs/guide/nameservice/04-keeper.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ To define the keeper for the buy name transaction, add this code to the `msg_ser
// x/nameservice/keeper/msg_server_buy_name.go
import (
"context"
"github.com/cosmonaut/nameservice/x/nameservice/types"
"github.com/username/nameservice/x/nameservice/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
Expand Down Expand Up @@ -102,7 +102,7 @@ To define the keeper for the set name transaction, add this code to the `msg_ser
// x/nameservice/keeper/msg_server_set_name.go
import (
"context"
"github.com/cosmonaut/nameservice/x/nameservice/types"
"github.com/username/nameservice/x/nameservice/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
Expand Down Expand Up @@ -137,7 +137,7 @@ To define the keeper for the delete name transaction, add this code to the `msg_
// x/nameservice/keeper/msg_server_delete_name.go
import (
"context"
"github.com/cosmonaut/nameservice/x/nameservice/types"
"github.com/username/nameservice/x/nameservice/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/nameservice/05-play.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Here is what an unsigned transaction looks like:
"body": {
"messages": [
{
"@type": "/cosmonaut.nameservice.nameservice.MsgBuyName",
"@type": "/username.nameservice.nameservice.MsgBuyName",
"creator": "cosmos1p0fprxtpk497jvczexp96sy2w43hupeph9km5d",
"name": "foo",
"bid": "20token"
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/scavenge/03-scaffolding.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Scaffold a new Cosmos SDK blockchain using the `ignite scaffold chain` command.
By default a chain is scaffolded with a new empty Cosmos SDK module. Use the `--no-module` flag to skip module scaffolding.

```bash
ignite scaffold chain github.com/cosmonaut/scavenge --no-module
ignite scaffold chain github.com/username/scavenge --no-module
```

This command creates a new `scavenge` directory with a brand new Cosmos SDK blockchain. This blockchain doesn't have any application-specific logic yet, but it imports standard Cosmos SDK modules, such as `auth`, `bank`, `mint`, and others.
Expand Down
6 changes: 3 additions & 3 deletions docs/guide/scavenge/07-keeper.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Make the required changes in the `x/scavenge/keeper/msg_server_submit_scavenge.g
import (
"context"

"github.com/cosmonaut/scavenge/x/scavenge/types"
"github.com/username/scavenge/x/scavenge/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/tendermint/tendermint/crypto"
Expand Down Expand Up @@ -95,7 +95,7 @@ Make the required changes in the `x/scavenge/keeper/msg_server_commit_solution.g
import (
"context"

"github.com/cosmonaut/scavenge/x/scavenge/types"
"github.com/username/scavenge/x/scavenge/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
Expand Down Expand Up @@ -137,7 +137,7 @@ import (
"crypto/sha256"
"encoding/hex"

"github.com/cosmonaut/scavenge/x/scavenge/types"
"github.com/username/scavenge/x/scavenge/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/tendermint/tendermint/crypto"
Expand Down
4 changes: 2 additions & 2 deletions docs/guide/scavenge/08-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (

"github.com/spf13/cobra"

"github.com/cosmonaut/scavenge/x/scavenge/types"
"github.com/username/scavenge/x/scavenge/types"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/tx"
Expand Down Expand Up @@ -89,7 +89,7 @@ import (

"github.com/spf13/cobra"

"github.com/cosmonaut/scavenge/x/scavenge/types"
"github.com/username/scavenge/x/scavenge/types"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/tx"
Expand Down
Loading

0 comments on commit 5ab6fbc

Please sign in to comment.