Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: upgrade Cosmos SDK to v0.46.0 and IBC to v5 #2677

Merged
merged 38 commits into from
Aug 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
9f82e72
docs(changelog): add unreleased section
ilgooz Jul 29, 2022
d2bec46
feat!: Cosmos SDK v0.46.0 (#2675)
Jul 29, 2022
f089110
Merge branch 'develop' into feat/sdk-ibc-upgrade
ilgooz Jul 29, 2022
cb54554
fix merge
Jul 29, 2022
377d484
Merge branch 'develop' into feat/sdk-ibc-upgrade
Aug 1, 2022
5724b7e
update spn
Aug 1, 2022
9edc636
upgrade spn
Aug 1, 2022
8d30121
remove ibc-go fork
Aug 1, 2022
a495f3d
template updates
Aug 2, 2022
6fe15bf
fix ibc and oracle templates
Aug 2, 2022
466124b
update templates
Aug 2, 2022
0e3c8e8
remaining tempalte updates
Aug 2, 2022
72391f0
merge
Aug 2, 2022
04875d7
fix template
Aug 3, 2022
bb8dd9d
fix faucet test
Aug 3, 2022
c388634
use beta ibc release
Aug 3, 2022
28b95c6
update deps in template
Aug 3, 2022
4438860
use ibcmodule idiom (#2692)
Aug 3, 2022
9767f5c
Merge branch 'develop' into feat/sdk-ibc-upgrade
Aug 3, 2022
9a493eb
Merge branch 'develop' into feat/sdk-ibc-upgrade
ilgooz Aug 3, 2022
aa7429a
Update ignite/templates/module/create/ibc/x/{{moduleName}}/module_ibc…
Aug 5, 2022
3161c28
Merge branch 'develop' into feat/sdk-ibc-upgrade
Aug 5, 2022
3ba3593
fix(`pkg/cosmosaccount`): register cryptocodec interfaces (#2702)
Aug 5, 2022
5e40317
fix(template): removed unused methods and fix comments (#2708)
fadeev Aug 8, 2022
c64fe0d
fix(`cosmosclient`): use protobuf Any for TxMsgData (#2714)
Aug 9, 2022
816b6ea
Merge branch 'develop' into feat/sdk-ibc-upgrade
Aug 9, 2022
5da72db
chore(0.46): upgrade spn version (#2730)
lumtis Aug 10, 2022
d1a6819
feat(`app`): add interchain accounts for `v0.46.0` (#2703)
Aug 10, 2022
fb6bec4
Merge branch 'develop' into feat/sdk-ibc-upgrade
Aug 10, 2022
70293c8
fix: change relayer call to use secp256k1 private keys in call (#2729)
jeronimoalbi Aug 10, 2022
9961ff2
Merge branch 'develop' into feat/sdk-ibc-upgrade
lumtis Aug 11, 2022
464621b
Merge branch 'develop' into feat/sdk-ibc-upgrade
Aug 11, 2022
38ab4e0
docs: update tutorials (#2737)
jeronimoalbi Aug 12, 2022
0fa6a1e
feat: upgrade `ts-relayer` dependencies (#2722)
jeronimoalbi Aug 12, 2022
2e4b283
Merge branch 'develop' into feat/sdk-ibc-upgrade
Aug 12, 2022
b098f3a
fix(cosmosclient): fix account prefix config (#2743)
lumtis Aug 12, 2022
087641f
Merge branch 'develop' into feat/sdk-ibc-upgrade
Aug 15, 2022
b1c9d12
Merge branch 'develop' into feat/sdk-ibc-upgrade
Aug 16, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@

## Unreleased

### Changes

- Upgraded Cosmos SDK to v0.46.0 and IBC to v5 in CLI and scaffolding templates

### Features

- Add `--skip-proto` flag to `build`, `init` and `serve` commands to build the chain without building proto files


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

### Features
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/guide/03-blog/02-connect-blockchain.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ go 1.18

require (
blog v0.0.0-00010101000000-000000000000
github.com/ignite/cli v0.22.2
github.com/ignite/cli v0.23.0
)

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

The `replace` directive uses the package from the local `blog` directory and is specified as a relative path.
The `replace` directive uses the package from the local `blog` directory and is specified as a relative path to the `blogclient` directory.

Cosmos SDK uses a custom version of the `protobuf` package, so use the `replace` directive to specify the correct dependency.

Expand Down
4 changes: 2 additions & 2 deletions docs/docs/guide/04-nameservice/02-messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ These are the changes for each one of these files:
```go
syntax = "proto3";

package username.nameservice.nameservice;
package nameservice.nameservice;

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

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

// Msg defines the Msg service.
service Msg {
Expand Down
20 changes: 16 additions & 4 deletions docs/docs/guide/04-nameservice/04-keeper.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ In this section, define the keepers that are required by the nameservice module:

## Buy Name

To define the keeper for the buy name transaction, add this code to the `msg_server_buy_name.go` file:
To define the keeper for the buy name transaction, add this code to the `x/nameservice/keeper/msg_server_buy_name.go` file:

```go
// x/nameservice/keeper/msg_server_buy_name.go

package keeper

import (
"context"

Expand Down Expand Up @@ -91,10 +94,13 @@ This dependency automatically created an `expected_keepers.go` file with a `Bank

The `BuyName` transaction uses `SendCoins` and `SendCoinsFromAccountToModule` methods from the `bank` module.

Edit the `expected_keepers.go` file to add `SendCoins` and `SendCoinsFromAccountToModule` to be able to use it in the keeper methods of the `nameservice` module.
Edit the `x/nameservice/types/expected_keepers.go` file to add `SendCoins` and `SendCoinsFromAccountToModule` to be able to use it in the keeper methods of the `nameservice` module.

```go
// x/nameservice/types/expected_keepers.go

package types

import (
sdk "github.com/cosmos/cosmos-sdk/types"
)
Expand All @@ -107,10 +113,13 @@ type BankKeeper interface {

## Set Name

To define the keeper for the set name transaction, add this code to the `msg_server_set_name.go` file:
To define the keeper for the set name transaction, add this code to the `x/nameservice/keeper/msg_server_set_name.go` file:

```go
// x/nameservice/keeper/msg_server_set_name.go

package keeper

import (
"context"

Expand Down Expand Up @@ -148,10 +157,13 @@ func (k msgServer) SetName(goCtx context.Context, msg *types.MsgSetName) (*types

## Delete Name

To define the keeper for the delete name transaction, add this code to the `msg_server_delete_name.go` file:
To define the keeper for the delete name transaction, add this code to the `x/nameservice/keeper/msg_server_delete_name.go` file:

```go
// x/nameservice/keeper/msg_server_delete_name.go

package keeper

import (
"context"

Expand Down
9 changes: 9 additions & 0 deletions docs/docs/guide/05-scavenge/07-keeper.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Make the required changes in the `x/scavenge/keeper/msg_server_submit_scavenge.g
```go
// x/scavenge/keeper/msg_server_submit_scavenge.go

package keeper

import (
"context"

Expand Down Expand Up @@ -82,6 +84,9 @@ To use the `BankKeeper` interface in the keeper methods of the `scavenge` module

```go
// x/scavenge/types/expected_keepers.go

package types

import (
sdk "github.com/cosmos/cosmos-sdk/types"
)
Expand All @@ -101,6 +106,8 @@ Make the required changes in the `x/scavenge/keeper/msg_server_commit_solution.g
```go
// x/scavenge/keeper/msg_server_commit_solution.go

package keeper

import (
"context"

Expand Down Expand Up @@ -147,6 +154,8 @@ Make the required changes in the `x/scavenge/keeper/msg_server_reveal_solution.g
```go
// x/scavenge/keeper/msg_server_reveal_solution.go

package keeper

import (
"context"
"crypto/sha256"
Expand Down
6 changes: 4 additions & 2 deletions docs/docs/guide/05-scavenge/08-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ This method makes it easier to incorporate different modules for different reaso
```go
// x/scavenge/client/cli/tx_commit_solution.go

package cli

import (
"crypto/sha256"
"encoding/hex"
"strconv"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
Expand Down Expand Up @@ -93,10 +94,11 @@ Note that this file makes use of the `sha256` library for hashing the plain text
```go
// x/scavenge/client/cli/tx_submit_scavenge.go

package cli

import (
"crypto/sha256"
"encoding/hex"
"strconv"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/guide/07-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/username/planet --no-module
ignite scaffold chain planet --no-module
cd planet
```

Expand Down
3 changes: 2 additions & 1 deletion docs/docs/guide/08-interchange/02-init.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ host:
rpc: ":26659"
p2p: ":26658"
prof: ":6061"
grpc: ":9091"
grpc: ":9092"
grpc-web: ":9093"
api: ":1318"
genesis:
chain_id: "venus"
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/guide/08-interchange/05-mint-and-burn-voucher.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"strings"

sdk "github.com/cosmos/cosmos-sdk/types"
ibctransfertypes "github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
ibctransfertypes "github.com/cosmos/ibc-go/v5/modules/apps/transfer/types"

"interchange/x/dex/types"
)
Expand Down Expand Up @@ -140,7 +140,7 @@ package keeper

import (
sdk "github.com/cosmos/cosmos-sdk/types"
ibctransfertypes "github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
ibctransfertypes "github.com/cosmos/ibc-go/v5/modules/apps/transfer/types"

"interchange/x/dex/types"
)
Expand Down
4 changes: 3 additions & 1 deletion docs/docs/guide/08-interchange/06-creating-sell-orders.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ The `SendSellOrder` command:
```go
// x/dex/keeper/msg_server_sell_order.go

package keeper

import (
"context"
"errors"

sdk "github.com/cosmos/cosmos-sdk/types"
clienttypes "github.com/cosmos/ibc-go/v3/modules/core/02-client/types"
clienttypes "github.com/cosmos/ibc-go/v5/modules/core/02-client/types"

"interchange/x/dex/types"
)
Expand Down
2 changes: 2 additions & 0 deletions docs/docs/guide/08-interchange/07-creating-buy-orders.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ ignite generate proto-go --yes
```go
// x/dex/keeper/msg_server_buy_order.go

package keeper

import (
"context"
"errors"
Expand Down
4 changes: 4 additions & 0 deletions docs/docs/guide/08-interchange/08-cancelling-orders.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Move to the keeper directory and edit the `x/dex/keeper/msg_server_cancel_sell_o
```go
// x/dex/keeper/msg_server_cancel_sell_order.go

package keeper

import (
"context"
"errors"
Expand Down Expand Up @@ -112,6 +114,8 @@ To cancel a buy order, you have to get the ID of the specific buy order. Then yo
```go
// x/dex/keeper/msg_server_cancel_buy_order.go

package keeper

import (
"context"
"errors"
Expand Down
Loading