Skip to content

Commit 0dae968

Browse files
authored
Merge pull request #1756 from CosmWasm/merge-1-3
Merge 1.3
2 parents f2443f8 + 5a45332 commit 0dae968

Some content is hidden

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

49 files changed

+5665
-580
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ workflows:
8686
# Add your branch here if benchmarking matters to your work
8787
- fix-benchmarking
8888
- w3
89-
- coverage
89+
# - coverage # disabled temporarily because Rust version is too low
9090
deploy:
9191
jobs:
9292
- build_and_upload_devcontracts:

CHANGELOG.md

Lines changed: 43 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,26 @@ and this project adheres to
66

77
## [Unreleased]
88

9+
### Changed
10+
11+
- cosmwasm-vm: Avoid using loupe for getting the `Module` size in the file
12+
system cache to prepare for the Wasmer 3 upgrade.
13+
- cosmwasm-vm: When enabling `print_debug` the debug logs are now printed to
14+
STDERR instead of STDOUT by default ([#1667]).
15+
- cosmwasm-vm: Add `Instance::set_debug_handler`/`unset_debug_handler` to allow
16+
customizing the handling of debug messages emitted by the contract ([#1667]).
17+
- cosmwasm-vm: Upgrade Wasmer to version 4.0.0.
18+
- cosmwasm-check: Update clap dependency to version 4 ([#1677])
19+
20+
[#1667]: https://github.com/CosmWasm/cosmwasm/pull/1667
21+
[#1677]: https://github.com/CosmWasm/cosmwasm/pull/1677
22+
23+
## [1.3.0-rc.0] - 2023-07-03
24+
25+
### Fixed
26+
27+
- cosmwasm-vm: Add missing cache stats increment when calling `pin`.
28+
929
### Added
1030

1131
- cosmwasm-std: Implement `BankQuery::AllDenomMetadata` to allow querying all
@@ -14,47 +34,46 @@ and this project adheres to
1434
enabled for the `cosmwasm_std` dependency. This makes the contract
1535
incompatible with chains running anything lower than CosmWasm `1.3.0`.
1636
([#1647])
37+
- cosmwasm-std: Add `DistributionQuery::DelegatorWithdrawAddress`. Also needs
38+
the `cosmwasm_1_3` feature (see above). ([#1593])
39+
- cosmwasm-std: Add `DistributionMsg::FundCommunityPool`. Also needs the
40+
`cosmwasm_1_3` feature (see above). ([#1747])
41+
- cosmwasm-std: Add `FromStr` impl for `Coin`. ([#1684])
42+
- cosmwasm-std: Add `Coins` helper to handle multiple coins. ([#1687])
1743
- cosmwasm-vm: Add `Cache::save_wasm_unchecked` to save Wasm blobs that have
1844
been checked before. This is useful for state-sync where we know the Wasm code
1945
was checked when it was first uploaded. ([#1635])
20-
- cosmwasm-std: Add `FromStr` impl for `Coin`. ([#1684])
21-
- cosmwasm-std: Add `Decimal::bps` and `Decimal256::bps` to create a decimal
22-
from a basis point value ([#1715]).
23-
46+
- cosmwasm-vm: Allow sign extension Wasm opcodes in static validation. This
47+
allows contracts to be compiled with Rust 1.70.0 and above. ([#1727])
48+
- cosmwasm-std: Add trait functions `Storage::range_keys` and
49+
`Storage::range_values`. The default implementations just use
50+
`Storage::range`. Later this can be implemented more efficiently. ([#1748])
51+
- cosmwasm-std: Add `Int64`, `Int128`, `Int256` and `Int512` signed integer
52+
types. ([#1718])
53+
54+
[#1593]: https://github.com/CosmWasm/cosmwasm/pull/1593
2455
[#1635]: https://github.com/CosmWasm/cosmwasm/pull/1635
2556
[#1647]: https://github.com/CosmWasm/cosmwasm/pull/1647
2657
[#1684]: https://github.com/CosmWasm/cosmwasm/pull/1684
27-
[#1715]: https://github.com/CosmWasm/cosmwasm/pull/1715
58+
[#1687]: https://github.com/CosmWasm/cosmwasm/pull/1687
59+
[#1718]: https://github.com/CosmWasm/cosmwasm/pull/1718
60+
[#1727]: https://github.com/CosmWasm/cosmwasm/issues/1727
61+
[#1747]: https://github.com/CosmWasm/cosmwasm/pull/1747
62+
[#1748]: https://github.com/CosmWasm/cosmwasm/pull/1748
2863

2964
### Changed
3065

3166
- cosmwasm-vm: Add checks for table section of Wasm blob ([#1631]).
3267
- cosmwasm-vm: Limit number of imports during static validation ([#1629]).
33-
- cosmwasm-vm: The `check_contract` example was removed. Please use the crate
34-
[cosmwasm-check](https://crates.io/crates/cosmwasm-check) instead ([#1511]).
35-
- cosmwasm-vm: Avoid using loupe for getting the `Module` size in the file
36-
system cache to prepare for the Wasmer 3 upgrade.
3768
- cosmwasm-vm: Add target (triple + CPU features) into the module cache
3869
directory to avoid using modules compiled for a different system. Bump
39-
`MODULE_SERIALIZATION_VERSION` to "v5". ([#1664])
40-
- cosmwasm-vm: When enabling `print_debug` the debug logs are now printed to
41-
STDERR instead of STDOUT by default ([#1667]).
42-
- cosmwasm-vm: Add `Instance::set_debug_handler`/`unset_debug_handler` to allow
43-
customizing the handling of debug messages emitted by the contract ([#1667]).
70+
`MODULE_SERIALIZATION_VERSION` to "v6". ([#1664])
4471
- cosmwasm-vm: Add `.wasm` extension to stored wasm files ([#1686]).
45-
- cosmwasm-vm: Upgrade Wasmer to version 4.0.0.
46-
- cosmwasm-check: Update clap dependency to version 4 ([#1677])
47-
- cosmwasm-std: Coin uses shorter `Coin { 123 "ucosm" }` format for Debug
48-
([#1704])
4972

50-
[#1511]: https://github.com/CosmWasm/cosmwasm/issues/1511
5173
[#1629]: https://github.com/CosmWasm/cosmwasm/pull/1629
5274
[#1631]: https://github.com/CosmWasm/cosmwasm/pull/1631
5375
[#1664]: https://github.com/CosmWasm/cosmwasm/pull/1664
54-
[#1667]: https://github.com/CosmWasm/cosmwasm/pull/1667
55-
[#1677]: https://github.com/CosmWasm/cosmwasm/pull/1677
5676
[#1686]: https://github.com/CosmWasm/cosmwasm/pull/1686
57-
[#1704]: https://github.com/CosmWasm/cosmwasm/pull/1704
5877

5978
### Deprecated
6079

@@ -1773,7 +1792,8 @@ Some main points:
17731792

17741793
All future Changelog entries will reference this base
17751794

1776-
[unreleased]: https://github.com/CosmWasm/cosmwasm/compare/v1.2.7...HEAD
1795+
[unreleased]: https://github.com/CosmWasm/cosmwasm/compare/v1.3.0-rc.0...HEAD
1796+
[1.3.0-rc.0]: https://github.com/CosmWasm/cosmwasm/compare/v1.2.7...v1.3.0-rc.0
17771797
[1.2.7]: https://github.com/CosmWasm/cosmwasm/compare/v1.2.6...v1.2.7
17781798
[1.2.6]: https://github.com/CosmWasm/cosmwasm/compare/v1.2.5...v1.2.6
17791799
[1.2.5]: https://github.com/CosmWasm/cosmwasm/compare/v1.2.4...v1.2.5

Cargo.lock

Lines changed: 15 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contracts/burner/Cargo.lock

Lines changed: 13 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)