Skip to content

Commit

Permalink
chore: bump versions for pre.5 release
Browse files Browse the repository at this point in the history
  • Loading branch information
austinabell committed Dec 24, 2021
1 parent b67e404 commit 2d867cb
Show file tree
Hide file tree
Showing 28 changed files with 47 additions and 41 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
# Changelog

## [unreleased]
## `4.0.0-pre.5` [12-23-2021]
- fix(standards): Fix NFT impl macros to not import `HashMap` and `near_sdk::json_types::U128`. [PR 571](https://github.com/near/near-sdk-rs/pull/571).
- Add drain iterator for `near_sdk::store::UnorderedMap`. [PR 613](https://github.com/near/near-sdk-rs/pull/613).
- Will remove all values and iterate over owned values that were removed
- Fix codegen for methods inside a `#[near_bindgen]` to allow using `mut self` which will generate the same code as `self` and will not persist state. [PR 616](https://github.com/near/near-sdk-rs/pull/616).
- Make function call terminology consistent by switching from method name usages. [PR 633](https://github.com/near/near-sdk-rs/pull/633).
- This is only a breaking change if inspecting the `VmAction`s of receipts in mocked environments. All other changes are positional argument names.
- Implement new iterator for `collections::Vec` to optimize for `nth` and `count`. [PR 634](https://github.com/near/near-sdk-rs/pull/634)
- This is useful specifically for things like pagination, where `.skip(x)` will not load the first `x` elements anymore
- Does not affect any `store` collections, which are already optimized, this just optimizes the legacy `collections` that use `Vec`
- Add consts for near, yocto, and tgas. [PR 640](https://github.com/near/near-sdk-rs/pull/640).
- `near_sdk::ONE_NEAR`, `near_sdk::ONE_YOCTO`, `near_sdk::Gas::ONE_TERA`
- Update SDK dependencies for `nearcore` crates used for mocking (`0.10`) and `borsh` (`0.9`)
- Implemented `Debug` for all `collection` and `store` types. [PR 647](https://github.com/near/near-sdk-rs/pull/647)
- Added new internal mint function to allow specifying or ignoring refund. [PR 618](https://github.com/near/near-sdk-rs/pull/618)
- store: Implement caching `LookupSet` type. This is the new iteration of the previous version of `near_sdk::collections::LookupSet` that has an updated API, and is located at `near_sdk::store::LookupSet`. [PR 654](https://github.com/near/near-sdk-rs/pull/654), [PR 664](https://github.com/near/near-sdk-rs/pull/664).
- Deprecate `testing_env_with_promise_results`, `setup_with_config`, and `setup` due to these functions being unneeded anymore or have unintended side effects [PR 671](https://github.com/near/near-sdk-rs/pull/671)
- Added missing pattern for only including context and vm config to `testing_env!` to remove friction
- Added `_array` suffix versions of `sha256`, `keccak256`, and `keccak512` hash functions in `env` [PR 646](https://github.com/near/near-sdk-rs/pull/646)
- These return a fixed length array instead of heap allocating with `Vec<u8>`
- Added `ripemd160_array` hash function that returns a fixed length byte array [PR 648](https://github.com/near/near-sdk-rs/pull/648)
- Added `ecrecover` under `unstable` feature for recovering signer address by message hash and a corresponding signature. [PR 658](https://github.com/near/near-sdk-rs/pull/658).
- standards: Add require statement to ensure minimum needed gas in FT and NFT transfers at start of method. [PR 678](https://github.com/near/near-sdk-rs/pull/678)

## `4.0.0-pre.4` [10-15-2021]
- Unpin `syn` dependency in macros from `=1.0.57` to be more composable with other crates. [PR 605](https://github.com/near/near-sdk-rs/pull/605)
Expand Down
6 changes: 3 additions & 3 deletions examples/callback-results/Cargo.lock

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

Binary file modified examples/callback-results/res/callback_results.wasm
Binary file not shown.
6 changes: 3 additions & 3 deletions examples/cross-contract-high-level/Cargo.lock

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

Binary file not shown.
6 changes: 3 additions & 3 deletions examples/cross-contract-low-level/Cargo.lock

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

Binary file not shown.
8 changes: 4 additions & 4 deletions examples/fungible-token/Cargo.lock

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

Binary file modified examples/fungible-token/res/defi.wasm
Binary file not shown.
Binary file modified examples/fungible-token/res/fungible_token.wasm
Binary file not shown.
4 changes: 2 additions & 2 deletions examples/gas-fee-tester/Cargo.lock

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

4 changes: 2 additions & 2 deletions examples/lockable-fungible-token/Cargo.lock

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

Binary file not shown.
4 changes: 2 additions & 2 deletions examples/mission-control/Cargo.lock

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

Binary file modified examples/mission-control/res/mission_control.wasm
Binary file not shown.
8 changes: 4 additions & 4 deletions examples/non-fungible-token/Cargo.lock

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

Binary file modified examples/non-fungible-token/res/approval_receiver.wasm
Binary file not shown.
Binary file modified examples/non-fungible-token/res/non_fungible_token.wasm
Binary file not shown.
Binary file modified examples/non-fungible-token/res/token_receiver.wasm
Binary file not shown.
4 changes: 2 additions & 2 deletions examples/status-message-collections/Cargo.lock

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

4 changes: 2 additions & 2 deletions examples/status-message/Cargo.lock

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

Binary file modified examples/status-message/res/status_message.wasm
Binary file not shown.
4 changes: 2 additions & 2 deletions examples/test-contract/Cargo.lock

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

4 changes: 2 additions & 2 deletions near-contract-standards/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "near-contract-standards"
version = "4.0.0-pre.4"
version = "4.0.0-pre.5"
authors = ["Near Inc <[email protected]>"]
edition = "2018"
license = "GPL-3.0"
Expand All @@ -13,4 +13,4 @@ NEAR smart contracts standard library.
"""

[dependencies]
near-sdk = { path = "../near-sdk", version = "=4.0.0-pre.4" }
near-sdk = { path = "../near-sdk", version = "=4.0.0-pre.5" }
2 changes: 1 addition & 1 deletion near-sdk-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "near-sdk-macros"
version = "4.0.0-pre.4"
version = "4.0.0-pre.5"
authors = ["Near Inc <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions near-sdk-sim/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "near-sdk-sim"
version = "4.0.0-pre.4"
version = "4.0.0-pre.5"
authors = ["Near Inc <[email protected]>"]
edition = "2018"
license = "GPL-3.0"
Expand All @@ -13,7 +13,7 @@ NEAR Simulator & cross-contract testing library


[dependencies]
near-sdk = { path = "../near-sdk", version = "=4.0.0-pre.4" }
near-sdk = { path = "../near-sdk", version = "=4.0.0-pre.5" }
near-crypto = "=0.1.0"
near-primitives = "=0.1.0-pre.1"
near-vm-logic = "=4.0.0-pre.1"
Expand Down
8 changes: 4 additions & 4 deletions near-sdk-sim/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ Currently this crate depends on a the GitHub repo of [nearcore](https://github.c

```toml
[dev-dependencies]
near-sdk-sim = "4.0.0-pre.4"
near-sdk-sim = "4.0.0-pre.5"

```

And update `near-sdk` too:

```toml
[dependencies]
near-sdk = "4.0.0-pre.4"
near-sdk = "4.0.0-pre.5"

```

Expand All @@ -64,8 +64,8 @@ Now in the root of the project (`contract-wrap`), create a new `Cargo.toml`. You

```toml
[dev-dependencies]
near-sdk = "4.0.0-pre.4"
near-sdk-sim = "4.0.0-pre.4"
near-sdk = "4.0.0-pre.5"
near-sdk-sim = "4.0.0-pre.5"
contract = { path = "./contract" }

[workspace]
Expand Down
4 changes: 2 additions & 2 deletions near-sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "near-sdk"
version = "4.0.0-pre.4"
version = "4.0.0-pre.5"
authors = ["Near Inc <[email protected]>"]
edition = "2018"
license = "GPL-3.0"
Expand All @@ -20,7 +20,7 @@ path = "compilation_tests/all.rs"
# Provide near_bidgen macros.
serde = { version = "1", features = ["derive"] }
serde_json = "1"
near-sdk-macros = { path = "../near-sdk-macros", version = "=4.0.0-pre.4" }
near-sdk-macros = { path = "../near-sdk-macros", version = "=4.0.0-pre.5" }
near-sys = { path = "../sys", version = "0.1" }
base64 = "0.13"
borsh = "0.9"
Expand Down

0 comments on commit 2d867cb

Please sign in to comment.