Skip to content

Commit be71f5b

Browse files
committed
Merge branch 'main' into feat/ibc_v2
2 parents 0ca2754 + 0f448be commit be71f5b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+290
-213
lines changed

CHANGELOG.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,21 @@
22

33
## [Unreleased](https://github.com/CosmWasm/wasmd/tree/HEAD)
44

5-
Register IBC v2 route and store the IBC v2 port in ContractInfo [\#2122](https://github.com/CosmWasm/wasmd/issues/2122)
6-
Add IBC v2 SendPacket message encoding [\#2110](https://github.com/CosmWasm/wasmd/issues/2110)
5+
[Full Changelog](https://github.com/CosmWasm/wasmd/compare/v0.55.0...HEAD)
76

8-
[Full Changelog](https://github.com/CosmWasm/wasmd/compare/v0.54.0...HEAD)
7+
- Register IBC v2 route and store the IBC v2 port in ContractInfo [\#2122](https://github.com/CosmWasm/wasmd/issues/2122)
8+
- Add IBC v2 SendPacket message encoding [\#2110](https://github.com/CosmWasm/wasmd/issues/2110)
9+
10+
11+
## [v0.55.0](https://github.com/CosmWasm/wasmd/tree/v0.55.0) (2025-03-11)
12+
13+
[Full Changelog](https://github.com/CosmWasm/wasmd/compare/v0.54.0...v0.55.0)
14+
15+
- Bump ibc-go to v10.0.0 which removes IBC fees and capabilities [\#2157](https://github.com/CosmWasm/wasmd/pull/2157)
16+
- Add gas cost for UnpackAny [\#2115](https://github.com/CosmWasm/wasmd/pull/2115)
17+
- Make ContractAddrLen variable [\#2111](https://github.com/CosmWasm/wasmd/pull/2111)
18+
- Adjust SmartContractState query gas limit [\#2103](https://github.com/CosmWasm/wasmd/pull/2103)
19+
- Refactor build address command [\#2101](https://github.com/CosmWasm/wasmd/pull/2101)
920

1021
## [v0.54.0](https://github.com/CosmWasm/wasmd/tree/v0.54.0) (2025-01-08)
1122

@@ -287,7 +298,7 @@ below to learn more!
287298
### Notable changes:
288299

289300
- If you are not coming from v0.32.0, please see the "Notables changes" below, first. Especially about CometBFT.
290-
- IBC-Go is a new major version including the "hucklebery" security fix. See [v7.0.1](https://github.com/cosmos/ibc-go/releases/tag/v7.0.1).
301+
- IBC-Go is a new major version including the "huckleberry" security fix. See [v7.0.1](https://github.com/cosmos/ibc-go/releases/tag/v7.0.1).
291302
- SDK 47 support is a big step from the SDK 45 version supported before. Make sure to read the upgrade guide for the SDK
292303
before applying any changes. Links below.
293304
- Some advice from working with SDK 47 that may affect you, too:

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Project maintainers who do not follow or enforce the Code of Conduct in good fai
4040

4141
## Attribution
4242

43-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [Contributor Covenant 1.4][version]
4444

4545
[homepage]: http://contributor-covenant.org
4646
[version]: http://contributor-covenant.org/version/1/4/

CODING_GUIDELINES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This document is an extension to [CONTRIBUTING](./CONTRIBUTING.md) and provides
77
* Code must be well structured:
88
* packages must have a limited responsibility (different concerns can go to different packages),
99
* types must be easy to compose,
10-
* think about maintainbility and testability.
10+
* think about maintainability and testability.
1111
* "Depend upon abstractions, [not] concretions".
1212
* Try to limit the number of methods you are exposing. It's easier to expose something later than to hide it.
1313
* Follow agreed-upon design patterns and naming conventions.

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ RUN apk add git
1515
WORKDIR /code
1616
COPY . /code/
1717
# See https://github.com/CosmWasm/wasmvm/releases
18-
ADD https://github.com/CosmWasm/wasmvm/releases/download/v2.2.1/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.aarch64.a
19-
ADD https://github.com/CosmWasm/wasmvm/releases/download/v2.2.1/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.x86_64.a
20-
RUN sha256sum /lib/libwasmvm_muslc.aarch64.a | grep ba6cb5db6b14a265c8556326c045880908db9b1d2ffb5d4aa9f09ac09b24cecc
21-
RUN sha256sum /lib/libwasmvm_muslc.x86_64.a | grep b3bd755efac0ff39c01b59b8110f961c48aa3eb93588071d7a628270cc1f2326
18+
ADD https://github.com/CosmWasm/wasmvm/releases/download/v2.2.3/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.aarch64.a
19+
ADD https://github.com/CosmWasm/wasmvm/releases/download/v2.2.3/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.x86_64.a
20+
RUN sha256sum /lib/libwasmvm_muslc.aarch64.a | grep 6641730781bb1adc4bdf04a1e0f822b9ad4fb8ed57dcbbf575527e63b791ae41
21+
RUN sha256sum /lib/libwasmvm_muslc.x86_64.a | grep 32503fe35a7be202c5f7c3051497d6e4b3cd83079a61f5a0bf72a2a455b6d820
2222

2323
# force it to use static lib (from above) not standard libgo_cosmwasm.so file
2424
RUN LEDGER_ENABLED=false BUILD_TAGS=muslc LINK_STATICALLY=true make build

EVENTS.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ If the response contains a non-empty list of `attributes`, `x/wasm` will emit a
240240
always be tagged with `_contract_address` by the Go module, so this is trust-worthy. The contract itself cannot overwrite
241241
this field. Beyond this, the `attributes` returned by the contract, these are appended to the same event.
242242

243-
A contact may also return custom `events`. These are multiple events, each with their own type as well as attributes.
243+
A contract may also return custom `events`. These are multiple events, each with their own type as well as attributes.
244244
When they are received, `x/wasm` prepends `wasm-` to the event type returned by the contact to avoid them trying to fake
245245
an eg. `transfer` event from the bank module. The output here may look like:
246246

@@ -312,7 +312,7 @@ consistent way possible.
312312
### Combining Events from Sub-Messages
313313

314314
Each time a contract is executed, it not only returns the `message` event from its call, the `execute` event for the
315-
contact and the `wasm` event with any custom fields from the contract itself. It will also return the same set of information
315+
contract and the `wasm` event with any custom fields from the contract itself. It will also return the same set of information
316316
for all messages that it returned, which were later dispatched. The event system was really designed for one main
317317
action emitting events, so we define a structure to flatten this event tree:
318318

@@ -346,7 +346,7 @@ sdk.NewEvent(
346346
sdk.NewAttribute("custom", "from contract"),
347347
),
348348

349-
// instantiating contract (first dipatched message)
349+
// instantiating contract (first dispatched message)
350350
sdk.NewEvent(
351351
"instantiate",
352352
sdk.NewAttribute("code_id", fmt.Sprintf("%d", msg.CodeID)),
@@ -382,7 +382,7 @@ sdk.NewEvent(
382382

383383
When the `reply` clause in a contract is called, it will receive the data returned from the message it
384384
applies to, as well as all events from that message. In the above case, when the `reply` function was called
385-
on `contractAddr` in response to initializing a contact, it would get the binary-encoded `initData` in the `data`
385+
on `contractAddr` in response to initializing a contract, it would get the binary-encoded `initData` in the `data`
386386
field, and the following in the `events` field:
387387

388388
```go

INTEGRATION.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ If you want to use Wasm in your own app, here is how you can get this working
66
quickly and easily.
77
First start with this [article](https://medium.com/cosmwasm/cosmwasm-for-ctos-iv-native-integrations-713140bf75fc)
88
in the "CosmWasm for CTOs" series that gives you a high level view.
9-
Then check to make sure you fit the pre-requisites,
9+
Then check to make sure you fit the prerequisites,
1010
then integrate the `x/wasm` module as described below, and finally, you
1111
can add custom messages and queries to your custom Go/SDK modules, exposing
1212
them to any chain-specific contract.
1313

1414
## Prerequisites
1515

16-
The pre-requisites of integrating `x/wasm` into your custom app is to be using
16+
The prerequisites of integrating `x/wasm` into your custom app are to be using
1717
a compatible version of the Cosmos SDK, and to accept some limits to the
1818
hardware it runs on.
1919

README.md

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,18 @@ Also CosmWasm 2.0 contracts remain compatible at the Wasm interface level.
2828
To extend the feature set over time, contracts can specify required [capabilities](https://github.com/CosmWasm/cosmwasm/blob/main/docs/CAPABILITIES.md) through cargo features in cosmwasm-std.
2929
The following table shows which of the [latest capabilities](https://github.com/CosmWasm/cosmwasm/blob/main/docs/CAPABILITIES-BUILT-IN.md) are supported by certain wasmd versions.
3030

31-
| capability | >= 0.51 | >= 0.42 | >= 0.41 | >= 0.31 | >= 0.29 | 0.28 |
32-
| ------------ | ------- | ------- | ------- | ------- | ------- | ---- |
33-
| iterator | x | x | x | x | x | x |
34-
| stargate | x | x | x | x | x | x |
35-
| staking | x | x | x | x | x | x |
36-
| cosmwasm_1_1 | x | x | x | x | x | |
37-
| cosmwasm_1_2 | x | x | x | x | | |
38-
| cosmwasm_1_3 | x | x | x | | | |
39-
| cosmwasm_1_4 | x | x | | | | |
40-
| cosmwasm_2_0 | x | | | | | |
31+
| capability | >= 0.54 | >= 0.52 | >= 0.51 | >= 0.42 | >= 0.41 | >= 0.31 | >= 0.29 | 0.28 |
32+
| ------------ | ------- | ------- | ------- | ------- | ------- | ------- | ------- | ---- |
33+
| iterator | x | x | x | x | x | x | x | x |
34+
| stargate | x | x | x | x | x | x | x | x |
35+
| staking | x | x | x | x | x | x | x | x |
36+
| cosmwasm_1_1 | x | x | x | x | x | x | x | |
37+
| cosmwasm_1_2 | x | x | x | x | x | x | | |
38+
| cosmwasm_1_3 | x | x | x | x | x | | | |
39+
| cosmwasm_1_4 | x | x | x | x | | | | |
40+
| cosmwasm_2_0 | x | x | x | | | | | |
41+
| cosmwasm_2_1 | x | x | | | | | | |
42+
| cosmwasm_2_2 | x | | | | | | | |
4143

4244
### For node developers
4345

@@ -53,6 +55,12 @@ The following table shows
5355

5456
| wasmd | compatible | specified |
5557
| ------ | ---------- | ----------------------------------------------------------------- |
58+
| 0.55.0 | 2.2.x | [2.2.1](https://github.com/CosmWasm/wasmd/blob/v0.55.0/go.mod#L6) |
59+
| 0.54.0 | 2.2.x | [2.2.1](https://github.com/CosmWasm/wasmd/blob/v0.54.0/go.mod#L6) |
60+
| 0.53.2 | 2.1.x | [2.1.4](https://github.com/CosmWasm/wasmd/blob/v0.53.2/go.mod#L6) |
61+
| 0.53.1 | 2.1.x | [2.1.4](https://github.com/CosmWasm/wasmd/blob/v0.53.1/go.mod#L6) |
62+
| 0.53.0 | 2.1.x | [2.1.2](https://github.com/CosmWasm/wasmd/blob/v0.53.0/go.mod#L6) |
63+
| 0.52.0 | 2.1.x | [2.1.0](https://github.com/CosmWasm/wasmd/blob/v0.52.0/go.mod#L6) |
5664
| 0.51.0 | 2.0.x | [2.0.0](https://github.com/CosmWasm/wasmd/blob/v0.51.0/go.mod#L6) |
5765
| 0.50.0 | 1.5.x | [1.5.0](https://github.com/CosmWasm/wasmd/blob/v0.50.0/go.mod#L6) |
5866
| 0.45.0 | 1.5.x | [1.5.0](https://github.com/CosmWasm/wasmd/blob/v0.45.0/go.mod#L6) |
@@ -236,7 +244,7 @@ We strongly suggest **to limit the max block gas in the genesis** and not use th
236244
"max_gas": "SET_YOUR_MAX_VALUE",
237245
```
238246

239-
Tip: if you want to lock this down to a permisisoned network, the following script can edit the genesis file
247+
Tip: if you want to lock this down to a permissioned network, the following script can edit the genesis file
240248
to only allow permissioned use of code upload or instantiating:
241249

242250
`sed -i 's/permission": "Everybody"/permission": "Nobody"/' .../config/genesis.json`
@@ -257,7 +265,6 @@ Or even testing the app and bringing up critical issues. The following have help
257265
- Shane Vitarana [shanev](https://github.com/shanev)
258266
- Billy Rennekamp [okwme](https://github.com/okwme)
259267
- Westaking [westaking](https://github.com/westaking)
260-
- Marko [marbar3778](https://github.com/marbar3778)
261268
- JayB [kogisin](https://github.com/kogisin)
262269
- Rick Dudley [AFDudley](https://github.com/AFDudley)
263270
- KamiD [KamiD](https://github.com/KamiD)

UPGRADING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
With stargate, we have access to the `x/upgrade` module, which we can use to perform
44
inline upgrades. Please first read both the basic
5-
[x/upgrade spec](https://github.com/cosmos/cosmos-sdk/blob/master/x/upgrade/spec/01_concepts.md)
5+
[x/upgrade spec](https://github.com/cosmos/cosmos-sdk/blob/31fdee0228bd6f3e787489c8e4434aabc8facb7d/x/upgrade/spec/01_concepts.md)
66
and [go docs](https://godoc.org/github.com/cosmos/cosmos-sdk/x/upgrade#hdr-Performing_Upgrades)
77
for the background on the module.
88

app/app.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"encoding/json"
55
"fmt"
66
"io"
7+
"maps"
78
"os"
89
"path/filepath"
910
"sort"
@@ -1092,12 +1093,7 @@ func (app *WasmApp) RegisterNodeService(clientCtx client.Context, cfg config.Con
10921093
//
10931094
// NOTE: This is solely to be used for testing purposes.
10941095
func GetMaccPerms() map[string][]string {
1095-
dupMaccPerms := make(map[string][]string)
1096-
for k, v := range maccPerms {
1097-
dupMaccPerms[k] = v
1098-
}
1099-
1100-
return dupMaccPerms
1096+
return maps.Clone(maccPerms)
11011097
}
11021098

11031099
// BlockedAddresses returns all the app's blocked account addresses.

docs/proto/proto-docs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ the x/gov module via a v1 governance proposal.
961961
| ----- | ---- | ----- | ----------- |
962962
| `title` | [string](#string) | | Title is a short summary |
963963
| `description` | [string](#string) | | Description is a human readable text |
964-
| `access_config_updates` | [AccessConfigUpdate](#cosmwasm.wasm.v1.AccessConfigUpdate) | repeated | AccessConfigUpdate contains the list of code ids and the access config to be applied. |
964+
| `access_config_updates` | [AccessConfigUpdate](#cosmwasm.wasm.v1.AccessConfigUpdate) | repeated | AccessConfigUpdates contains the list of code ids and the access config to be applied. |
965965

966966

967967

0 commit comments

Comments
 (0)