Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Update cosmos #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update cosmos #16

wants to merge 1 commit into from

Conversation

figure-renovate[bot]
Copy link
Contributor

@figure-renovate figure-renovate bot commented Jan 26, 2023

This PR contains the following updates:

Package Type Update Change
cosmwasm-schema dependencies minor =1.1.9 -> =1.4.0
cosmwasm-std dependencies minor =1.1.9 -> =1.4.0
cosmwasm-storage dependencies minor =1.1.9 -> =1.4.0
cw-storage-plus (source) dependencies minor =1.0.1 -> =1.1.0

Release Notes

CosmWasm/cosmwasm

v1.4.0

Compare Source

Added
  • cosmwasm-std: Implement Not for Uint{64,128,256} (#​1799).
  • cosmwasm-std: Add iterators for Coins (#​1806).
  • cosmwasm-std: Make abs_diff const for Uint{256,512} and
    Int{64,128,256,512}. It is now const for all integer types.
  • cosmwasm-std: Implement TryFrom<Decimal256> for Decimal (#​1832)
  • cosmwasm-std: Add StdAck. (#​1512)
  • cosmwasm-std: Add new imports db_next_{key, value} for iterating storage
    keys / values only and make Storage::{range_keys, range_values} more
    efficient. This requires the cosmwasm_1_4 feature to be enabled. (#​1834)
  • cosmwasm-std: Add
    DistributionQuery::{DelegationRewards, DelegationTotalRewards, DelegatorValidators}.
    This requires the cosmwasm_1_4 feature to be enabled. (#​1788)
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.1. (#​1674, #​1693, #​1701,
    #​1793)
  • cosmwasm-check: Update clap dependency to version 4 (#​1677)
  • cosmwasm-vm: Use wasmparser for initial validation instead of parity-wasm
    (#​1786)
  • cosmwasm-std: Make constructors Decimal{,256}::{percent,permille,bps} const
  • cosmwasm-std: Use new db_next_key import to make skip and nth
    implementation of range iterators more efficient. This requires the
    cosmwasm_1_4 feature to be enabled. (#​1838)

v1.3.3

Compare Source

Added
  • cosmwasm-std: Implement into_empty for QuerierWrapper, Deps and
    DepsMut.

v1.3.2

Compare Source

Fixed
  • cosmwasm-std: Export CoinFromStrError, CoinsError and DivisionError

v1.3.1

Compare Source

Fixed
  • cosmwasm-std: Export DelegatorWithdrawAddressResponse,
    DenomMetadataResponse and AllDenomMetadataResponse which were added in
    1.3.0 (#​1795).
Changed
  • cosmwasm-std: Query responses are now exported, even if the corresponding
    cargo feature is not enabled (#​1795).

v1.3.0

Compare Source

Fixed
  • cosmwasm-vm: Add missing cache stats increment when calling pin.
Added
  • cosmwasm-std: Implement BankQuery::AllDenomMetadata to allow querying all
    the denom metadata and BankQuery::DenomMetadata to query a specific one. In
    order to use this query in a contract, the cosmwasm_1_3 feature needs to be
    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-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)
Changed
  • cosmwasm-vm: Add checks for table section of Wasm blob (#​1631).
  • cosmwasm-vm: Limit number of imports during static validation (#​1629).
  • 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 "v6". (#​1664)
  • cosmwasm-vm: Add .wasm extension to stored wasm files (#​1686).
Deprecated
  • cosmwasm-storage: All exports are deprecated because this crate will be
    removed with CosmWasm 2.0 (#​1596).

v1.2.7

Compare Source

Added
  • cosmwasm-std: Add << and <<= implementation for Uint{64,128,256,512}
    types. (#​1723)
  • cosmwasm-std: Add Timestamp::{plus,minus}_{minutes, hours, days}. (#​1729)
  • cosmwasm-std: Add Decimal::bps and Decimal256::bps to create a decimal
    from a basis point value (#​1715).
Changed
  • cosmwasm-std: Coin uses shorter Coin { 123 "ucosm" } format for Debug
    (#​1704)

v1.2.6

Compare Source

Changed

v1.2.5

Compare Source

Added
  • cosmwasm-std: Implement PartialEq for Addr == &Addr and &Addr == Addr as
    well as Event == &Event and &Event == Event (#​1672).
  • cosmwasm-std: Add #[must_use] annotations to Uint64, Uint128, Uint256,
    Uint512, Decimal and Decimal256 math operations (#​1678)
Deprecated
  • cosmwasm-std: The PartialEq implementations between Addr and &str/String
    are deprecated because they are not considered to be safe. In almost all cases
    you want to convert both sides of the equation to Addr first. If you really
    want to do a string comparison, use Addr::as_str() explicitly. (#​1671)

v1.2.4

Compare Source

Fixed
  • cosmwasm-vm: Add call depths limit

v1.2.3

Compare Source

  • cosmwasm-vm: Use saturating increments for Stats fields to ensure we don't
    run into overflow issues.

v1.2.2

Compare Source

Added
  • cosmwasm-std: Add an IBC querier implementation to testing::MockQuerier
    (#​1620, #​1624).
  • cosmwasm-std: Add #[must_use] annotations to Timestamp math functions.
Fixed
  • all: Fix backtraces feature for newer versions of Rust. This still requires
    Rust nightly (#​1613).
  • cosmwasm-std: Add missing export CheckedMultiplyFractionError (#​1608).

v1.2.1

Compare Source

Added
  • cosmwasm-std: Add Decimal{,256}::to_uint_floor and ::to_uint_ceil for
    efficient and explicit decimal to uint conversion (#​1603).
Fixed
  • cosmwasm-std: Make fields of WeightedVoteOption public to allow constructing
    it (#​1597).
Changed
  • cosmwasm-std: Improve readability of Debug output for Decimal and
    Decimal256 (#​1600).

v1.2.0

Compare Source

Added
  • cosmwasm-std: Add GovMsg::VoteWeighted. In order to use this in a contract,
    the cosmwasm_1_2 feature needs to be enabled for the cosmwasm_std
    dependency. This makes the contract incompatible with chains running versions
    of CosmWasm earlier than 1.2.0 (#​1481).
  • cosmwasm-std: Add instantiate2_address which allows calculating the
    predictable addresses for MsgInstantiateContract2 (#​1437, #​1554).
  • cosmwasm-std: Add WasmMsg::Instantiate2 (requires cosmwasm_1_2, see
    GovMsg::VoteWeighted above) to instantiate contracts at a predictable
    address (#​1436, #​1554)).
  • cosmwasm-schema: In contracts, cosmwasm schema will now output a separate
    JSON Schema file for each entrypoint in the raw subdirectory (#​1478,
    #​1533).
  • cosmwasm-std: Upgrade serde-json-wasm dependency to 0.5.0 which adds map
    support to to_vec/to_binary and friends.
  • cosmwasm-std: Implement AsRef<[u8]> for Binary and HexBinary (#​1550).
  • cosmwasm-std: Allow constructing SupplyResponse via a Default
    implementation (#​1552, #​1560).
  • cosmwasm-std: Add Never type which cannot be instantiated. This can be used
    as the error type for ibc_packet_receive or ibc_packet_ack to gain
    confidence that the implementations never errors and the transaction does not
    get reverted. (#​1513)
  • cosmwasm-std: Add new WasmQuery::CodeInfo to get the checksum of a code ID
    (#​1561).
  • cosmwasm-vm: Add Cache::remove_wasm to remove obsolete Wasm blobs and their
    compiled modules.
  • cosmwasm-std: Implement fraction multiplication and division. Assists with
    Uint & Decimal arithmetic and exposes methods for flooring/ceiling result
    (#​1485, #​1566).
Changed
  • cosmwasm-vm: Avoid exposing OS specific file system errors in order to test
    cosmwasm-vm on Windows. This gives us confidence for integrating cosmwasm-vm
    in a libwasmvm build on Windows. This change is likely to be consensus
    breaking as error messages change. (#​1406)
  • cosmwasm-vm: Use Display representation for embedding Wasmer
    InstantiationErrors (#​1508).
Fixed
  • cosmwasm-schema: Nested QueryMsg with generics is now supported by the
    QueryResponses macro (#​1516).
  • cosmwasm-schema: A nested QueryMsg no longer causes runtime errors if it
    contains doc comments.
  • cosmwasm-std/cosmwasm-vm: Increase length limit for address conversion in
    MockApi to support addresses longer than 54 bytes (#​1529).

v1.1.10

Compare Source

Attached there are some build artifacts generated at this tag. Those are for development purposes only! Please use crates.io to find the packages of this release.

CosmWasm/cw-storage-plus

v1.1.0

Compare Source

Full Changelog

Implemented enhancements:

  • Add Item::exists since Item is optional #​14

Closed issues:

  • About the requirement of using Uint256 as key in Map. #​40
  • Add methods to fetch the first or last item in a Map #​35
  • Add a method to delete all Map elements under a prefix #​29

Merged pull requests:


Configuration

📅 Schedule: Branch creation - "on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

@figure-renovate figure-renovate bot requested a review from a team January 26, 2023 18:15
@figure-renovate figure-renovate bot added the dependencies An update to project dependencies label Jan 26, 2023
@github-actions
Copy link

github-actions bot commented Jan 26, 2023

Test Results

0 tests   - 16   0 ✔️  - 16   0s ⏱️ -7s
0 suites  -   2   0 💤 ±  0 
1 files   ±  0   0 ±  0 

Results for commit 64a887a. ± Comparison against base commit bf1747a.

♻️ This comment has been updated with latest results.

@figure-renovate figure-renovate bot changed the title Update cosmos from 1.1.9 to 1.2.0 Update cosmos from 1.1.9 to 1.2.1 Jan 31, 2023
@figure-renovate figure-renovate bot changed the title Update cosmos from 1.1.9 to 1.2.1 Update cosmos from 1.1.9 to 1.2.2 Mar 8, 2023
@figure-renovate figure-renovate bot changed the title Update cosmos from 1.1.9 to 1.2.2 Update cosmos from 1.1.9 to 1.2.3 Mar 22, 2023
@figure-renovate figure-renovate bot changed the title Update cosmos from 1.1.9 to 1.2.3 Update cosmos from 1.1.9 to 1.2.4 Apr 18, 2023
@figure-renovate figure-renovate bot changed the title Update cosmos from 1.1.9 to 1.2.4 Update cosmos from 1.1.9 to 1.2.5 May 3, 2023
@figure-renovate figure-renovate bot changed the title Update cosmos from 1.1.9 to 1.2.5 Update cosmos from 1.1.9 to 1.2.6 Jun 5, 2023
@figure-renovate figure-renovate bot changed the title Update cosmos from 1.1.9 to 1.2.6 Update cosmos Jun 13, 2023
@figure-renovate figure-renovate bot force-pushed the renovate/cosmos branch 2 times, most recently from dea955d to 8e77a44 Compare July 26, 2023 14:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies An update to project dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants