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

feat: bump up cosmwasm from v1.1.9 to v1.4.0 #331

Merged
merged 884 commits into from
Dec 7, 2023

Conversation

da1suk8
Copy link
Member

@da1suk8 da1suk8 commented Nov 8, 2023

Description

Adopted Cosmwasm/cosmwasm v1.4.0 to Finschia/cosmwasm.
This changes the base version of Finschia/cosmwasm from v1.1.9 to v1.4.0.

The test involving cosmwasm, wasmvm, and wasmd has not been done yet, so we will first merge into feat/bump_1.4.0. Once the test with all components working together is successful, will merge into main.

Version bump as follows

  1. 79abfdd applied Cosmwasm/cosmwasm v1.4.0 to Finschia/cosmwasm.
  2. Subsequent commits were made to adapt the changes made in v1.4.0 to Finschia/cosmwasm.

Main changes

  • e43cc7a -new_native_with_env -> new_typed_with_env
    • The function names have been changed since wasmer3.
  • 1812811, 6bc3424 - Changed the default rust toolchain for CI from 1.60.0 to 1.67.0
    • Cargo.lock is currently the latest among the package dependencies and a build error occurred, so only cosmwasm-vm is set to 1.70.0.
  • 02a2d69 - The current version of wat is v1.0.78, so I corrected the old wat expressions.
  • 1dc3259 - Since cosmwasm-storage has been deprecated, I made modifications to no longer use cosmwasm-storage.
  • 811bc7c - Modified the tests to ensure that each engine and module pair properly corresponds one-to-one.

Types of changes

  • Bug fix (changes which fixes an issue)
  • New feature (changes which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • ETC (build, ci, docs, perf, refactor, style, test)

Checklist

chipshort and others added 30 commits July 6, 2023 14:46
DefaultHasher is part of std module and is not available on no_std
builds.  Remove dependency on that type to pave the path for no_std
support.

This is done by adding test_utils::check_hash_impl helper function
which tests whether type implements Hash trait.  That function uses
crc32fast::Hasher instead of DefaultHasher thus eliminating need
for std.

Furthermore, Binary and HexBinary tests checking AsRef implementation
call AsRef::as_ref directly and explicitly check the result rather
than unnecessarily hashing the data.

As an added bonus, this diff has negative delta. \o/
cosmwasm_std: remove dependency on DefaultHasher in tests
To make it easier to implement no_std in cosmwasm_std prefer core
and alloc modules over std module.  std remains used
- for std::backtrace module when backtraces feature is enabled,
- for std::panic::set_hook if abort feature is enabled,
- in testing::mock module for HashMap and
- in tests.

Furthermore, std is forced by some of the dependencies.  Those
cases will be dealt with in another change which will add default
std feature.
cosmwasm_std: prefer core and alloc modules to prepare for no_std
Checking whether a type can be used with a HashSet doesn’t actually
need to involve using the HashSet.  It’s sufficient to check Eq and
Hash traits implementations.

Simplify the tests by extending assert_hash_works macro to also test
Eq trait.

This also helps with eventual no_std support since there’ll be less
need for conditional compilation.
Merge `release/1.3` into `main`
Co-authored-by: Mauro Lacy <maurolacy@users.noreply.github.com>
Co-authored-by: Christoph Otter <chris@confio.gmbh>
@da1suk8 da1suk8 changed the base branch from main to feat/bump_1.4.0 November 30, 2023 00:52
@da1suk8 da1suk8 marked this pull request as ready for review November 30, 2023 01:43
@170210
Copy link
Contributor

170210 commented Dec 4, 2023

It seems that many links are linking to Cosmos, starting with: https://github.com/cosmos/cosmos-sdk/blob/.
Is it necessary to change them to FInschia/finschia-sdk

@da1suk8
Copy link
Member Author

da1suk8 commented Dec 6, 2023

@170210

Regarding the schema, it is auto-generated, so there is no need to change it. Also, some files are not reflected in Finschia/fisnchia-sdk, so I think it is better to leave them as they are. I will leave a note in the issue.

Thank you!

@da1suk8 da1suk8 requested a review from loloicci December 7, 2023 03:13
@da1suk8 da1suk8 merged commit dae2b85 into Finschia:feat/bump_1.4.0 Dec 7, 2023
20 of 21 checks passed
@da1suk8 da1suk8 deleted the bump/v1.4.0 branch December 7, 2023 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants