Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 33aed42

Browse files
committed
Upgrade to wasmd v0.31.0-rc0
1 parent 2d71ab4 commit 33aed42

File tree

19 files changed

+142
-264
lines changed

19 files changed

+142
-264
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ RUN apk add git
1111
# RUN apk add libusb-dev linux-headers
1212

1313
# See https://github.com/CosmWasm/wasmvm/releases
14-
ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.1.1/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.aarch64.a
15-
ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.1.1/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.x86_64.a
16-
RUN sha256sum /lib/libwasmvm_muslc.aarch64.a | grep 9ecb037336bd56076573dc18c26631a9d2099a7f2b40dc04b6cae31ffb4c8f9a
17-
RUN sha256sum /lib/libwasmvm_muslc.x86_64.a | grep 6e4de7ba9bad4ae9679c7f9ecf7e283dd0160e71567c6a7be6ae47c81ebe7f32
14+
ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.2.0/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.aarch64.a
15+
ADD https://github.com/CosmWasm/wasmvm/releases/download/v1.2.0/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.x86_64.a
16+
RUN sha256sum /lib/libwasmvm_muslc.aarch64.a | grep cba4b334893456c64df177939cbdd09afe4812432c02ae37d60d69a111b1b50d
17+
RUN sha256sum /lib/libwasmvm_muslc.x86_64.a | grep 6f87082f7a62602f9725d529677f330b9c4dd4607887be52a86328c6c919495b
1818

1919
WORKDIR /code
2020
# Speed up build by caching Go dependencies as a separate step

app/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ func NewTgradeApp(
366366

367367
// The last arguments can contain custom message handlers, and custom query handlers,
368368
// if we want to allow any custom callbacks
369-
availableCapabilities := "staking,stargate,iterator,tgrade,cosmwasm_1_1"
369+
availableCapabilities := "staking,stargate,iterator,tgrade,cosmwasm_1_1,cosmwasm_1_2"
370370

371371
wasmOpts = append(SetupWasmHandlers(appCodec, app.bankKeeper, govRouter, &app.twasmKeeper, &app.poeKeeper, app), wasmOpts...)
372372

app/upgrades/v2/constants.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package v2
22

33
import (
4-
"github.com/confio/tgrade/app/upgrades"
54
store "github.com/cosmos/cosmos-sdk/store/types"
5+
6+
"github.com/confio/tgrade/app/upgrades"
67
)
78

89
// UpgradeName defines the on-chain upgrade name for the Tgrade v2 upgrade.

app/upgrades/v3/constants.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package v3
22

33
import (
4-
"github.com/confio/tgrade/app/upgrades"
54
store "github.com/cosmos/cosmos-sdk/store/types"
5+
6+
"github.com/confio/tgrade/app/upgrades"
67
)
78

89
// UpgradeName defines the on-chain upgrade name for the Tgrade v3 upgrade.

cmd/tgrade/genwasm.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,12 @@
11
package main
22

33
import (
4-
wasmcli "github.com/CosmWasm/wasmd/x/wasm/client/cli"
54
"github.com/cosmos/cosmos-sdk/client"
65
"github.com/spf13/cobra"
76

87
"github.com/confio/tgrade/x/twasm/client/cli"
98
)
109

11-
func AddGenesisWasmMsgCmd(defaultNodeHome string) *cobra.Command {
12-
txCmd := &cobra.Command{
13-
Use: "wasm-genesis-message",
14-
Short: "Wasm genesis message subcommands",
15-
Aliases: []string{"wasm-genesis-msg", "wasm-genesis-messages", "add-wasm-genesis-message"},
16-
DisableFlagParsing: true,
17-
SuggestionsMinimumDistance: 2,
18-
RunE: client.ValidateCmd,
19-
}
20-
genIO := cli.NewGenesisIO()
21-
txCmd.AddCommand(
22-
wasmcli.GenesisStoreCodeCmd(defaultNodeHome, genIO),
23-
wasmcli.GenesisInstantiateContractCmd(defaultNodeHome, genIO),
24-
wasmcli.GenesisExecuteContractCmd(defaultNodeHome, genIO),
25-
wasmcli.GenesisListContractsCmd(defaultNodeHome, genIO),
26-
wasmcli.GenesisListCodesCmd(defaultNodeHome, genIO),
27-
)
28-
return txCmd
29-
}
30-
3110
func GenesisWasmFlagsCmd(defaultNodeHome string) *cobra.Command {
3211
txCmd := &cobra.Command{
3312
Use: "wasm-genesis-flags",

cmd/tgrade/root.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ func initRootCmd(rootCmd *cobra.Command, encodingConfig appparams.EncodingConfig
110110
cli.GenTxCmd(app.ModuleBasics, encodingConfig.TxConfig, banktypes.GenesisBalancesIterator{}, app.DefaultNodeHome),
111111
genutilcli.ValidateGenesisCmd(app.ModuleBasics),
112112
AddGenesisAccountCmd(app.DefaultNodeHome),
113-
AddGenesisWasmMsgCmd(app.DefaultNodeHome),
114113
GenesisWasmFlagsCmd(app.DefaultNodeHome),
115114
tmcli.NewCompletionCmd(rootCmd, true),
116115
testnetCmd(app.ModuleBasics, banktypes.GenesisBalancesIterator{}),

docs/proto/proto-docs.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,6 @@ import
10031003
| `codes` | [cosmwasm.wasm.v1.Code](#cosmwasm.wasm.v1.Code) | repeated | Codes has all stored wasm codes and metadata |
10041004
| `contracts` | [Contract](#confio.twasm.v1beta1.Contract) | repeated | Contracts contains all instantiated contracts, state and metadata |
10051005
| `sequences` | [cosmwasm.wasm.v1.Sequence](#cosmwasm.wasm.v1.Sequence) | repeated | Sequences names and values |
1006-
| `gen_msgs` | [cosmwasm.wasm.v1.GenesisState.GenMsgs](#cosmwasm.wasm.v1.GenesisState.GenMsgs) | repeated | GenMsgs has wasmd sdk type messages to execute in the genesis phase |
10071006
| `privileged_contract_addresses` | [string](#string) | repeated | PrivilegedContractAddresses is a list of contract addresses that can have special permissions |
10081007
| `pinned_code_ids` | [uint64](#uint64) | repeated | PinnedCodeIDs has codeInfo ids for wasm codes that are pinned in cache |
10091008

go.mod

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ module github.com/confio/tgrade
33
go 1.19
44

55
require (
6-
github.com/CosmWasm/wasmd v0.30.0-rc0
7-
github.com/CosmWasm/wasmvm v1.1.1
8-
github.com/cosmos/cosmos-sdk v0.45.11
9-
github.com/cosmos/ibc-go/v4 v4.2.0
6+
github.com/CosmWasm/wasmd v0.31.0-rc0
7+
github.com/CosmWasm/wasmvm v1.2.0
8+
github.com/cosmos/cosmos-sdk v0.45.12
9+
github.com/cosmos/ibc-go/v4 v4.3.0
1010
github.com/gogo/protobuf v1.3.3
1111
github.com/golang/protobuf v1.5.2
1212
github.com/google/gofuzz v1.2.0
@@ -20,7 +20,7 @@ require (
2020
github.com/spf13/cobra v1.6.0
2121
github.com/spf13/pflag v1.0.5
2222
github.com/stretchr/testify v1.8.1
23-
github.com/tendermint/tendermint v0.34.23
23+
github.com/tendermint/tendermint v0.34.24
2424
github.com/tendermint/tm-db v0.6.7
2525
github.com/tidwall/gjson v1.14.3
2626
github.com/tidwall/sjson v1.2.5
@@ -32,26 +32,26 @@ require (
3232

3333
require (
3434
filippo.io/edwards25519 v1.0.0-beta.2 // indirect
35+
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
3536
github.com/99designs/keyring v1.2.1 // indirect
3637
github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d // indirect
3738
github.com/Workiva/go-datastructures v1.0.53 // indirect
3839
github.com/armon/go-metrics v0.4.0 // indirect
3940
github.com/beorn7/perks v1.0.1 // indirect
40-
github.com/bgentry/speakeasy v0.1.0 // indirect
41-
github.com/btcsuite/btcd v0.22.1 // indirect
41+
github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect
42+
github.com/btcsuite/btcd v0.22.2 // indirect
4243
github.com/cespare/xxhash v1.1.0 // indirect
4344
github.com/cespare/xxhash/v2 v2.1.2 // indirect
4445
github.com/coinbase/rosetta-sdk-go v0.7.0 // indirect
45-
github.com/confio/ics23/go v0.7.0 // indirect
46+
github.com/confio/ics23/go v0.9.0 // indirect
4647
github.com/cosmos/btcutil v1.0.4 // indirect
47-
github.com/cosmos/cosmos-proto v1.0.0-alpha8 // indirect
48+
github.com/cosmos/cosmos-proto v1.0.0-beta.1 // indirect
4849
github.com/cosmos/go-bip39 v1.0.0 // indirect
4950
github.com/cosmos/gogoproto v1.4.3 // indirect
5051
github.com/cosmos/gorocksdb v1.2.0 // indirect
5152
github.com/cosmos/iavl v0.19.4 // indirect
5253
github.com/cosmos/interchain-accounts v0.2.4 // indirect
53-
github.com/cosmos/ledger-cosmos-go v0.11.1 // indirect
54-
github.com/cosmos/ledger-go v0.9.2 // indirect
54+
github.com/cosmos/ledger-cosmos-go v0.12.2 // indirect
5555
github.com/creachadair/taskgroup v0.3.2 // indirect
5656
github.com/danieljoos/wincred v1.1.2 // indirect
5757
github.com/davecgh/go-spew v1.1.1 // indirect
@@ -86,7 +86,6 @@ require (
8686
github.com/improbable-eng/grpc-web v0.14.1 // indirect
8787
github.com/inconshreveable/mousetrap v1.0.1 // indirect
8888
github.com/jmhodges/levigo v1.0.0 // indirect
89-
github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d // indirect
9089
github.com/klauspost/compress v1.15.11 // indirect
9190
github.com/lib/pq v1.10.6 // indirect
9291
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
@@ -115,35 +114,36 @@ require (
115114
github.com/spf13/viper v1.14.0 // indirect
116115
github.com/subosito/gotenv v1.4.1 // indirect
117116
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
118-
github.com/tendermint/btcd v0.1.1 // indirect
119-
github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15 // indirect
120117
github.com/tendermint/go-amino v0.16.0 // indirect
118+
github.com/tidwall/btree v1.5.0 // indirect
121119
github.com/tidwall/match v1.1.1 // indirect
122120
github.com/tidwall/pretty v1.2.0 // indirect
123-
github.com/zondax/hid v0.9.0 // indirect
121+
github.com/zondax/hid v0.9.1 // indirect
122+
github.com/zondax/ledger-go v0.14.1 // indirect
124123
go.etcd.io/bbolt v1.3.6 // indirect
125-
golang.org/x/crypto v0.1.0 // indirect
124+
golang.org/x/crypto v0.2.0 // indirect
126125
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect
127-
golang.org/x/net v0.1.0 // indirect
128-
golang.org/x/sys v0.1.0 // indirect
129-
golang.org/x/term v0.1.0 // indirect
126+
golang.org/x/net v0.2.0 // indirect
127+
golang.org/x/sys v0.2.0 // indirect
128+
golang.org/x/term v0.2.0 // indirect
130129
golang.org/x/text v0.4.0 // indirect
131130
gopkg.in/ini.v1 v1.67.0 // indirect
132131
gopkg.in/yaml.v3 v3.0.1 // indirect
133132
nhooyr.io/websocket v1.8.6 // indirect
134133
)
135134

136135
replace (
137-
// Use the cosmos-flavored keyring library
138-
github.com/99designs/keyring => github.com/cosmos/keyring v1.1.7-0.20210622111912-ef00f8ac3d76
139-
// fix for dragonberry
140-
github.com/confio/ics23/go => github.com/cosmos/cosmos-sdk/ics23/go v0.8.0
141136
// Fix upstream GHSA-h395-qcrw-5vmq vulnerability.
142137
// Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409
143138
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.7.0
144139
// latest grpc doesn't work with with our modified proto compiler, so we need to enforce
145140
// the following version across all dependencies.
146141
github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
142+
143+
// use informal system fork of tendermint
144+
// See https://twitter.com/informalinc/status/1613580954383040512
145+
github.com/tendermint/tendermint => github.com/informalsystems/tendermint v0.34.24
146+
147147
google.golang.org/grpc => google.golang.org/grpc v1.33.2
148148

149149
)

0 commit comments

Comments
 (0)