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

Merge 1.3 #1756

Merged
merged 125 commits into from
Jul 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
4857fd2
Highlight Sign-extension operations in Gatekeeper
webmaster128 Jun 19, 2023
1e0a914
Merge pull request #1734 from CosmWasm/highlight-Sign-extension-ops
webmaster128 Jun 19, 2023
c51affc
Add FromStr implementation for Coin, closes #1575
chipshort May 4, 2023
36353db
Swap expected and actual value in assertions
chipshort May 4, 2023
168e064
Add special error type for Coin's FromStr
chipshort May 4, 2023
46cd18d
Fix lint
chipshort May 4, 2023
f472456
Add changelog entry
chipshort May 5, 2023
b20b572
Check for missing amount when parsing Coin
chipshort May 15, 2023
7c1a8e3
Check table section
webmaster128 Mar 27, 2023
9674e42
Remove unnecessary vector clone
webmaster128 Mar 13, 2023
a2223f7
Only create BTreeSet of names for the error message
webmaster128 Mar 13, 2023
cfaace4
Limit number of imports during static validation
webmaster128 Mar 27, 2023
3fcc93c
Upgrade parity-wasm to 0.45
webmaster128 Mar 13, 2023
e59738a
Add target_id
webmaster128 Apr 19, 2023
64dbc73
Add target_id to modules path
webmaster128 Apr 19, 2023
7100cab
Make modules_path_works test Windows complient
webmaster128 Apr 19, 2023
1e4ff27
Refactor FileSystemCache::new to only have one ending
webmaster128 Apr 20, 2023
fdae0a2
Add CHANGELOG entry
webmaster128 Apr 24, 2023
d343065
Bump MODULE_SERIALIZATION_VERSION to v6
webmaster128 Apr 24, 2023
3abd3c4
Add .wasm file extension to wasm files,
chipshort May 5, 2023
a7142a2
Update changelog
chipshort May 5, 2023
3b38ecb
Merge pull request #1740 from CosmWasm/1736-backport
chipshort Jun 21, 2023
edd06a3
add `Coins` struct
larry0x Nov 14, 2022
c5b82d3
Ignore zero amount when adding coin to coins
chipshort May 5, 2023
2da8432
Add extend method for Coins
chipshort May 5, 2023
ea2aab1
Fix lint
chipshort May 5, 2023
b963508
Add more trait impls for Coins
chipshort May 5, 2023
15c60ac
Add helper to Coins
chipshort May 5, 2023
dab3146
Use Coin's FromStr impl in FromStr impl of Coins
chipshort May 22, 2023
4e38bcf
Remove IntoIterator impls for now
chipshort May 22, 2023
324289f
Fix test
chipshort May 23, 2023
24e4d7a
Apply suggestions from code review
chipshort May 23, 2023
0e3bc7e
Add custom error type for Coins conversion
chipshort May 24, 2023
b202f79
Remove Coin to Coins conversion
chipshort May 24, 2023
94f5748
Remove equality impl between Coin and Coins
chipshort May 24, 2023
23d5a45
Handle empty string when parsing Coins
chipshort May 24, 2023
e977229
Ignore zero values when creating Coins
chipshort Jun 6, 2023
f4ead00
Add Coin subtraction
chipshort Jun 6, 2023
c02a2f1
Fix Coin subtraction
chipshort Jun 6, 2023
3f5ea72
Add Coin to Coins conversion test
chipshort Jun 7, 2023
df8ff96
Add Coins to changelog
chipshort Jun 19, 2023
faf6cd9
Merge pull request #1687 from CosmWasm/chipshort/issue1683
chipshort Jun 21, 2023
476a7b4
std: Add BankQuery::AllDenomMetadata gated by cosmwasm_1_3 feature flag
nik-suri Mar 24, 2023
79a4327
std: Update BankQuery::AllDenomMetadata query with pagination and add…
nik-suri Mar 29, 2023
dc9313e
DenomMetadata testing
chipshort May 31, 2023
aeee0f3
Add paginated mock for AllDenomMetadata query
chipshort May 31, 2023
175fbcd
Set cosmwasm_1_3 feature for docs.rs
chipshort May 31, 2023
6c7f13b
Add cosmwasm_1_3 to rust analyzer
chipshort May 31, 2023
ef4fa78
Fix all denoms metadata mock
chipshort May 31, 2023
fbbfa6c
Apply suggestions from code review
chipshort Jun 5, 2023
576897e
Add DenomMetadata query to changelog
chipshort Jun 5, 2023
fa50523
Add DenomMetadata to capability docs
chipshort Jun 5, 2023
3f1432f
Use u32 for pagination limit
chipshort Jun 9, 2023
a2781fc
Fix bank mock querier
chipshort Jun 22, 2023
7deddfb
Add Denoms query to cyberpunk contract
chipshort Jun 22, 2023
c44c495
Use BTreeMap for denom metadata mock
chipshort Jun 22, 2023
e5b6657
Split Denoms query up
chipshort Jun 22, 2023
daf6de8
Update cyberpunk schemas
chipshort Jun 22, 2023
86f75e4
Resolve conflicts
webmaster128 Jun 22, 2023
d492b16
Merge pull request #1745 from CosmWasm/mergify/bp/release/1.3/pr-1703
webmaster128 Jun 22, 2023
40a8ba4
Add Cache::save_wasm_unchecked
webmaster128 Jun 22, 2023
2530911
Merge pull request #1742 from CosmWasm/save_wasm_unchecked-1.3
webmaster128 Jun 22, 2023
a2fdd07
Test contract compiled with Rust 1.70.0
webmaster128 Jun 22, 2023
54f32f4
Enable sign_ext in parity-wasm
webmaster128 Jun 22, 2023
0e0b18d
Add distribution module query type.
0xekez Jan 23, 2023
e3fad3a
Add withdraw address query to QuerierWrapper
chipshort Jun 23, 2023
8d91dd2
Implement QueryResponseType for DelegatorWithdrawAddressResponse
chipshort Jun 23, 2023
50d0b6f
Merge pull request #1743 from CosmWasm/sign_ext
webmaster128 Jun 26, 2023
6873497
Allow mocking withdraw address
chipshort Jun 26, 2023
cbb6630
Expose DistributionQuerier mock
chipshort Jun 26, 2023
a9d2b0a
Add Storage::range_keys and Storage::range_values
webmaster128 Jun 27, 2023
ebc5773
Merge pull request #1748 from CosmWasm/add-range_keys-range_values
webmaster128 Jun 27, 2023
3c1e58b
Remove staking feature gate for distribution query
chipshort Jun 27, 2023
3f6cc07
Update changelog and capabilities docs
chipshort Jun 27, 2023
851ea63
Improve DistributionQuerier api
chipshort Jun 28, 2023
732710a
Merge pull request #1593 from 0xekez/zeke/distributionquery
webmaster128 Jun 28, 2023
3e3c9ee
add FundCommunityPool distribution message
fragwuerdig Jun 23, 2023
faf9ee7
add unreleased changelog
fragwuerdig Jun 27, 2023
d4af1b0
Commit Suggested Changes
fragwuerdig Jun 27, 2023
021617f
Format code
webmaster128 Jun 28, 2023
ca986c5
Limit msg_distribution_serializes_to_correct_json to cosmwasm_1_3
webmaster128 Jun 28, 2023
f588694
Polish CHANGELOG entry and capabilities docs
webmaster128 Jun 28, 2023
c91b410
Merge pull request #1752 from CosmWasm/add-fund-cp-simon
webmaster128 Jun 28, 2023
78c9adf
Port big uint types to bnum
chipshort Jun 7, 2023
6b9b234
Implement Int512
chipshort Jun 7, 2023
1f157e7
Update ci rust version
chipshort Jun 7, 2023
560d1d9
Disable coverage check temporarily
chipshort Jun 7, 2023
ee059cd
Simplify uint impls
chipshort Jun 7, 2023
77be691
Cleanup int512
chipshort Jun 9, 2023
776d629
Update rust in github workflow
chipshort Jun 9, 2023
92ef1c6
Improve int512 tests
chipshort Jun 12, 2023
59f7f83
Add Shl and Neg impl for Int512
chipshort Jun 12, 2023
bcbb3e1
Int512::checked_div_euclid
chipshort Jun 13, 2023
98e877f
Add checked_neg to Int512
chipshort Jun 13, 2023
630e299
Remove uint dependency
chipshort Jun 14, 2023
d530dbc
Use forward_ref macros for Int512 impls
chipshort Jun 14, 2023
5bcb9d2
Improve DivisionError
chipshort Jun 14, 2023
6b38adf
Improve error string
chipshort Jun 14, 2023
67fe1b4
Inline Int512 constructor
chipshort Jun 14, 2023
c65232f
Add non_exhaustive to OverflowOperation
chipshort Jun 14, 2023
7a379c5
Simplify tests
chipshort Jun 28, 2023
ac2b0be
Add Int256
chipshort Jun 28, 2023
49867d9
Fix typo
chipshort Jun 28, 2023
b395d8e
Add Int128
chipshort Jun 28, 2023
a5ae44a
Add Int64
chipshort Jun 28, 2023
8d89684
Add trait impl check for signed ints
chipshort Jun 28, 2023
4d560c9
Fix left-shift error message
chipshort Jun 29, 2023
87d685c
Avoid vec allocation
chipshort Jun 29, 2023
bdb28e2
Fix integer conversions
chipshort Jun 29, 2023
8d5a243
Fix Int64 and Int128 Display impls
chipshort Jun 29, 2023
4ecaea7
Improve Int64 and Int128 constructor
chipshort Jun 29, 2023
062be1a
Add missing stats call
webmaster128 Jun 29, 2023
053b5c9
Test recompiling modules from Wasm
webmaster128 Jun 29, 2023
3c1abf3
Remove breaking checked_neg implementations
chipshort Jun 29, 2023
e2b7437
Actually test constructors
chipshort Jun 29, 2023
e16f13d
Don't fix bnum version
chipshort Jun 29, 2023
a173bb8
Add signed int trait check back in
chipshort Jun 29, 2023
6f01a81
Add changelog entry
chipshort Jun 30, 2023
a4d6603
Merge pull request #1755 from CosmWasm/cover-recompiles
webmaster128 Jun 30, 2023
cad5513
Merge pull request #1718 from CosmWasm/chipshort/signed-math
chipshort Jun 30, 2023
7d5edd5
Set version: 1.3.0-rc.0
chipshort Jul 3, 2023
f6301da
Update changelog
chipshort Jul 3, 2023
eec1333
Merge branch 'release/1.3'
chipshort Jul 3, 2023
1d58dc9
Fix clippy lints
chipshort Jul 3, 2023
5a45332
Fix changelog
chipshort Jul 3, 2023
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
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ workflows:
# Add your branch here if benchmarking matters to your work
- fix-benchmarking
- w3
- coverage
# - coverage # disabled temporarily because Rust version is too low
deploy:
jobs:
- build_and_upload_devcontracts:
Expand Down
66 changes: 43 additions & 23 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,26 @@ and this project adheres to

## [Unreleased]

### Changed

- cosmwasm-vm: Avoid using loupe for getting the `Module` size in the file
system cache to prepare for the Wasmer 3 upgrade.
- cosmwasm-vm: When enabling `print_debug` the debug logs are now printed to
STDERR instead of STDOUT by default ([#1667]).
- cosmwasm-vm: Add `Instance::set_debug_handler`/`unset_debug_handler` to allow
customizing the handling of debug messages emitted by the contract ([#1667]).
- cosmwasm-vm: Upgrade Wasmer to version 4.0.0.
- cosmwasm-check: Update clap dependency to version 4 ([#1677])

[#1667]: https://github.com/CosmWasm/cosmwasm/pull/1667
[#1677]: https://github.com/CosmWasm/cosmwasm/pull/1677

## [1.3.0-rc.0] - 2023-07-03

### Fixed

- cosmwasm-vm: Add missing cache stats increment when calling `pin`.

### Added

- cosmwasm-std: Implement `BankQuery::AllDenomMetadata` to allow querying all
Expand All @@ -14,47 +34,46 @@ and this project adheres to
enabled for the `cosmwasm_std` dependency. This makes the contract
incompatible with chains running anything lower than CosmWasm `1.3.0`.
([#1647])
- cosmwasm-std: Add `DistributionQuery::DelegatorWithdrawAddress`. Also needs
the `cosmwasm_1_3` feature (see above). ([#1593])
- cosmwasm-std: Add `DistributionMsg::FundCommunityPool`. Also needs the
`cosmwasm_1_3` feature (see above). ([#1747])
- cosmwasm-std: Add `FromStr` impl for `Coin`. ([#1684])
- cosmwasm-std: Add `Coins` helper to handle multiple coins. ([#1687])
- cosmwasm-vm: Add `Cache::save_wasm_unchecked` to save Wasm blobs that have
been checked before. This is useful for state-sync where we know the Wasm code
was checked when it was first uploaded. ([#1635])
- cosmwasm-std: Add `FromStr` impl for `Coin`. ([#1684])
- cosmwasm-std: Add `Decimal::bps` and `Decimal256::bps` to create a decimal
from a basis point value ([#1715]).

- cosmwasm-vm: Allow sign extension Wasm opcodes in static validation. This
allows contracts to be compiled with Rust 1.70.0 and above. ([#1727])
- cosmwasm-std: Add trait functions `Storage::range_keys` and
`Storage::range_values`. The default implementations just use
`Storage::range`. Later this can be implemented more efficiently. ([#1748])
- cosmwasm-std: Add `Int64`, `Int128`, `Int256` and `Int512` signed integer
types. ([#1718])

[#1593]: https://github.com/CosmWasm/cosmwasm/pull/1593
[#1635]: https://github.com/CosmWasm/cosmwasm/pull/1635
[#1647]: https://github.com/CosmWasm/cosmwasm/pull/1647
[#1684]: https://github.com/CosmWasm/cosmwasm/pull/1684
[#1715]: https://github.com/CosmWasm/cosmwasm/pull/1715
[#1687]: https://github.com/CosmWasm/cosmwasm/pull/1687
[#1718]: https://github.com/CosmWasm/cosmwasm/pull/1718
[#1727]: https://github.com/CosmWasm/cosmwasm/issues/1727
[#1747]: https://github.com/CosmWasm/cosmwasm/pull/1747
[#1748]: https://github.com/CosmWasm/cosmwasm/pull/1748

### Changed

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

[#1511]: https://github.com/CosmWasm/cosmwasm/issues/1511
[#1629]: https://github.com/CosmWasm/cosmwasm/pull/1629
[#1631]: https://github.com/CosmWasm/cosmwasm/pull/1631
[#1664]: https://github.com/CosmWasm/cosmwasm/pull/1664
[#1667]: https://github.com/CosmWasm/cosmwasm/pull/1667
[#1677]: https://github.com/CosmWasm/cosmwasm/pull/1677
[#1686]: https://github.com/CosmWasm/cosmwasm/pull/1686
chipshort marked this conversation as resolved.
Show resolved Hide resolved
[#1704]: https://github.com/CosmWasm/cosmwasm/pull/1704

### Deprecated

Expand Down Expand Up @@ -1773,7 +1792,8 @@ Some main points:

All future Changelog entries will reference this base

[unreleased]: https://github.com/CosmWasm/cosmwasm/compare/v1.2.7...HEAD
[unreleased]: https://github.com/CosmWasm/cosmwasm/compare/v1.3.0-rc.0...HEAD
[1.3.0-rc.0]: https://github.com/CosmWasm/cosmwasm/compare/v1.2.7...v1.3.0-rc.0
chipshort marked this conversation as resolved.
Show resolved Hide resolved
[1.2.7]: https://github.com/CosmWasm/cosmwasm/compare/v1.2.6...v1.2.7
[1.2.6]: https://github.com/CosmWasm/cosmwasm/compare/v1.2.5...v1.2.6
[1.2.5]: https://github.com/CosmWasm/cosmwasm/compare/v1.2.4...v1.2.5
Expand Down
48 changes: 15 additions & 33 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 13 additions & 31 deletions contracts/burner/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading