Skip to content

Commit 762264e

Browse files
committed
Merge branch 'main' into aw/cacher-hasher
2 parents 90f4571 + 3a8b7d7 commit 762264e

File tree

166 files changed

+4502
-12770
lines changed

Some content is hidden

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

166 files changed

+4502
-12770
lines changed

.circleci/config.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ workflows:
8181
- contract_ibc_callbacks
8282
- contract_ibc_reflect
8383
- contract_ibc_reflect_send
84+
- contract_nested_contracts
8485
- contract_queue
8586
- contract_reflect
8687
- contract_staking
@@ -792,6 +793,34 @@ jobs:
792793
- target/wasm32-unknown-unknown/release/deps
793794
key: cargocache-v2-contract_floaty-rust:1.74-{{ checksum "Cargo.lock" }}
794795

796+
contract_nested_contracts:
797+
docker:
798+
- image: rust:1.75
799+
environment:
800+
RUST_BACKTRACE: 1
801+
working_directory: ~/cosmwasm/contracts/nested-contracts
802+
steps:
803+
- checkout:
804+
path: ~/cosmwasm
805+
- run:
806+
name: Version information
807+
command: rustc --version; cargo --version; rustup --version
808+
- restore_cache:
809+
keys:
810+
- cargocache-v2-contract_nested_contracts-rust:1.75-{{ checksum "Cargo.lock" }}
811+
- check_contract:
812+
min_version: "1.4"
813+
- save_cache:
814+
paths:
815+
- /usr/local/cargo/registry
816+
- target/debug/.fingerprint
817+
- target/debug/build
818+
- target/debug/deps
819+
- target/wasm32-unknown-unknown/release/.fingerprint
820+
- target/wasm32-unknown-unknown/release/build
821+
- target/wasm32-unknown-unknown/release/deps
822+
key: cargocache-v2-contract_nested_contracts-rust:1.75-{{ checksum "Cargo.lock" }}
823+
795824
contract_queue:
796825
docker:
797826
- image: rust:1.74

.github/workflows/autofix.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,17 @@ jobs:
4040

4141
# Get latest version from https://autofix.ci/setup
4242
- uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a
43+
44+
autofix-toml:
45+
runs-on: ubuntu-latest
46+
steps:
47+
- uses: actions/checkout@v4
48+
- name: Install taplo
49+
run: |
50+
curl -fsSL https://github.com/tamasfe/taplo/releases/latest/download/taplo-full-linux-x86_64.gz \
51+
| gzip -d - | install -m 755 /dev/stdin /usr/local/bin/taplo
52+
- run: |
53+
taplo fmt
54+
55+
# Get latest version from https://autofix.ci/setup
56+
- uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a

.github/workflows/toml.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "TOML checks"
2+
3+
on:
4+
merge_group:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
workflow_dispatch:
10+
11+
jobs:
12+
fmt-check:
13+
name: "Formatting"
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Install taplo
18+
run: |
19+
curl -fsSL https://github.com/tamasfe/taplo/releases/latest/download/taplo-full-linux-x86_64.gz \
20+
| gzip -d - | install -m 755 /dev/stdin /usr/local/bin/taplo
21+
- run: |
22+
taplo fmt
23+
CHANGES_IN_REPO=$(git status --porcelain)
24+
if [[ -n "$CHANGES_IN_REPO" ]]; then
25+
exit 1
26+
fi

.github/workflows/typo-check.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Check for typos
2+
3+
on:
4+
merge_group:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
workflow_dispatch:
10+
11+
jobs:
12+
check-typos:
13+
name: "Spell-check repository source"
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
- name: Run spell-check
19+
uses: crate-ci/typos@master

.taplo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[formatting]
2+
indent_string = " "
3+
reorder_arrays = true

CHANGELOG-pre1.0.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ and this project adheres to
738738
with this change, the `backtraces` feature now requires Rust nightly.
739739
- Rename `StdError::ParseErr::source` to `StdError::ParseErr::source_type` and
740740
`StdError::SerializeErr::target` to `StdError::SerializeErr::target_type` to
741-
work around speacial treatment of the field name `source` in thiserror.
741+
work around special treatment of the field name `source` in thiserror.
742742
- Rename `Extern` to `Deps` to unify naming.
743743
- Simplify ownership of calling `handle`, etc. with `Deps` and `DepsMut` struct
744744
that just contains references (`DepsMut` has `&mut Storage` otherwise the
@@ -1259,7 +1259,7 @@ https://github.com/CosmWasm/cosmwasm/issues/451).
12591259
for mock storage and copying a stateless bridge for the external storage,
12601260
which are different semantics.
12611261
- Remove public `cosmwasm::imports::dependencies`. A user of this library does
1262-
not need to call this explicitely. Dependencies are created internally and
1262+
not need to call this explicitly. Dependencies are created internally and
12631263
passed as an argument in `exports::do_init`, `exports::do_handle` and
12641264
`exports::do_query`.
12651265
- Make `ExternalStorage` not `Clone`able anymore. This does not copy any data,

CHANGELOG.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,24 @@ and this project adheres to
4646
- cosmwasm-vm: Let `mock_env` return a contract address that is valid bech32 and
4747
uses the same bech32 prefix as `MockApi`; Change `MOCK_CONTRACT_ADDR` value to
4848
match the contract address from `mock_env`. ([#2211])
49+
- cosmwasm-derive: Automatically detect whether the package is a dependency or
50+
the primary package, only expanding entrypoints for the primary package. This
51+
effectively deprecates the usage of the `library` feature pattern. ([#2246])
52+
- cosmwasm-std: Deprecate `BankQuery::AllBalances` and `IbcQuery::ListChannels`.
53+
Both are inherently problematic to use because the returned entries are
54+
unbounded. ([#2247])
55+
- cosmwasm-vm: Upgrade Wasmer to 4.3.7; Bump `MODULE_SERIALIZATION_VERSION` to
56+
"v20". ([#2255])
57+
- cosmwasm-vm: Effectively remove the `cranelift` feature. It still exists but
58+
is only a no-op for semver compatibility. It will now unconditionally use the
59+
singlepass compiler. ([#2260])
4960

5061
[#2118]: https://github.com/CosmWasm/cosmwasm/pull/2118
5162
[#2211]: https://github.com/CosmWasm/cosmwasm/issues/2211
63+
[#2246]: https://github.com/CosmWasm/cosmwasm/pull/2246
64+
[#2247]: https://github.com/CosmWasm/cosmwasm/pull/2247
65+
[#2255]: https://github.com/CosmWasm/cosmwasm/pull/2255
66+
[#2260]: https://github.com/CosmWasm/cosmwasm/pull/2260
5267

5368
## [2.1.3] - 2024-08-08
5469

@@ -764,7 +779,7 @@ and this project adheres to
764779
- all: Bump a few dependency versions to make the codebase compile with
765780
`-Zminimal-versions` ([#1465]).
766781
- cosmwasm-profiler: Package was removed 🪦. It served its job showing us that
767-
we cannot properly measure different runtimes for differet Wasm opcodes.
782+
we cannot properly measure different runtimes for different Wasm opcodes.
768783
- cosmwasm-schema: schema generation is now locked to produce strictly
769784
`draft-07` schemas
770785
- cosmwasm-schema: `QueryResponses` derive now sets the `JsonSchema` trait bound

0 commit comments

Comments
 (0)