diff --git a/CHANGELOG.md b/CHANGELOG.md index 4959e2b02..96ff94f89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,11 +2,14 @@ ## [Unreleased] +## [4.0.0-pre.8] - 2022-04-19 + ### Added - Added `Debug` and `PartialEq` implementations for `PromiseError`. [PR 728](https://github.com/near/near-sdk-rs/pull/728). - Added convenience function `env::block_timestamp_ms` to return ms since 1970. [PR 736](https://github.com/near/near-sdk-rs/pull/728) - Added an optional way to handle contract errors with `Result`. [PR 745](https://github.com/near/near-sdk-rs/pull/745), [PR 754](https://github.com/near/near-sdk-rs/pull/754) and [PR 757](https://github.com/near/near-sdk-rs/pull/757). - Added support for using `#[callback_result]` with a function that doesn't have a return. [PR 738](https://github.com/near/near-sdk-rs/pull/738) +- Support for multi-architecture docker builds and updated Rust version to 1.56 with latest [contract builder](https://hub.docker.com/r/nearprotocol/contract-builder). [PR 751](https://github.com/near/near-sdk-rs/pull/751) ### Fixes - Disallow invalid `Promise::then` chains. Will now panic with `promise_1.then(promise_2.then(promise_3))` syntax. [PR 410](https://github.com/near/near-sdk-rs/pull/410) diff --git a/examples/callback-results/Cargo.lock b/examples/callback-results/Cargo.lock index bf463fc0e..3dbea1d93 100644 --- a/examples/callback-results/Cargo.lock +++ b/examples/callback-results/Cargo.lock @@ -1484,7 +1484,7 @@ dependencies = [ [[package]] name = "near-sdk" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" dependencies = [ "base64 0.13.0", "borsh", @@ -1500,7 +1500,7 @@ dependencies = [ [[package]] name = "near-sdk-macros" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" dependencies = [ "Inflector", "proc-macro2", diff --git a/examples/callback-results/res/callback_results.wasm b/examples/callback-results/res/callback_results.wasm index a689687c4..fe8eba8a5 100755 Binary files a/examples/callback-results/res/callback_results.wasm and b/examples/callback-results/res/callback_results.wasm differ diff --git a/examples/cross-contract-calls/Cargo.lock b/examples/cross-contract-calls/Cargo.lock index 4704c7dda..edfa65560 100644 --- a/examples/cross-contract-calls/Cargo.lock +++ b/examples/cross-contract-calls/Cargo.lock @@ -1534,7 +1534,7 @@ dependencies = [ [[package]] name = "near-sdk" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" dependencies = [ "base64 0.13.0", "borsh", @@ -1550,7 +1550,7 @@ dependencies = [ [[package]] name = "near-sdk-macros" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" dependencies = [ "Inflector", "proc-macro2", diff --git a/examples/cross-contract-calls/res/cross_contract_high_level.wasm b/examples/cross-contract-calls/res/cross_contract_high_level.wasm index b31024a14..c49c2376b 100755 Binary files a/examples/cross-contract-calls/res/cross_contract_high_level.wasm and b/examples/cross-contract-calls/res/cross_contract_high_level.wasm differ diff --git a/examples/cross-contract-calls/res/cross_contract_low_level.wasm b/examples/cross-contract-calls/res/cross_contract_low_level.wasm index 2e050f488..1d0342429 100755 Binary files a/examples/cross-contract-calls/res/cross_contract_low_level.wasm and b/examples/cross-contract-calls/res/cross_contract_low_level.wasm differ diff --git a/examples/factory-contract/Cargo.lock b/examples/factory-contract/Cargo.lock index fdd949172..24210a044 100644 --- a/examples/factory-contract/Cargo.lock +++ b/examples/factory-contract/Cargo.lock @@ -1534,7 +1534,7 @@ dependencies = [ [[package]] name = "near-sdk" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" dependencies = [ "base64 0.13.0", "borsh", @@ -1550,7 +1550,7 @@ dependencies = [ [[package]] name = "near-sdk-macros" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" dependencies = [ "Inflector", "proc-macro2", diff --git a/examples/factory-contract/res/factory_contract_high_level.wasm b/examples/factory-contract/res/factory_contract_high_level.wasm index cd835d48b..e787f9c3d 100755 Binary files a/examples/factory-contract/res/factory_contract_high_level.wasm and b/examples/factory-contract/res/factory_contract_high_level.wasm differ diff --git a/examples/factory-contract/res/factory_contract_low_level.wasm b/examples/factory-contract/res/factory_contract_low_level.wasm index dd37c2d43..1e7f1daab 100755 Binary files a/examples/factory-contract/res/factory_contract_low_level.wasm and b/examples/factory-contract/res/factory_contract_low_level.wasm differ diff --git a/examples/fungible-token/Cargo.lock b/examples/fungible-token/Cargo.lock index 1687e0285..46db2e6ed 100644 --- a/examples/fungible-token/Cargo.lock +++ b/examples/fungible-token/Cargo.lock @@ -1226,7 +1226,7 @@ dependencies = [ [[package]] name = "near-contract-standards" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" dependencies = [ "near-sdk", "serde", @@ -1522,7 +1522,7 @@ dependencies = [ [[package]] name = "near-sdk" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" dependencies = [ "base64 0.13.0", "borsh", @@ -1538,7 +1538,7 @@ dependencies = [ [[package]] name = "near-sdk-macros" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" dependencies = [ "Inflector", "proc-macro2", diff --git a/examples/fungible-token/res/defi.wasm b/examples/fungible-token/res/defi.wasm index 82ea677f7..b31ebb4fa 100755 Binary files a/examples/fungible-token/res/defi.wasm and b/examples/fungible-token/res/defi.wasm differ diff --git a/examples/fungible-token/res/fungible_token.wasm b/examples/fungible-token/res/fungible_token.wasm index 7294bd9c6..db9b17266 100755 Binary files a/examples/fungible-token/res/fungible_token.wasm and b/examples/fungible-token/res/fungible_token.wasm differ diff --git a/examples/lockable-fungible-token/Cargo.lock b/examples/lockable-fungible-token/Cargo.lock index 08aab81e3..87f9f8811 100644 --- a/examples/lockable-fungible-token/Cargo.lock +++ b/examples/lockable-fungible-token/Cargo.lock @@ -1544,7 +1544,7 @@ dependencies = [ [[package]] name = "near-sdk" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" dependencies = [ "base64 0.13.0", "borsh", @@ -1560,7 +1560,7 @@ dependencies = [ [[package]] name = "near-sdk-macros" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" dependencies = [ "Inflector", "proc-macro2", diff --git a/examples/lockable-fungible-token/res/lockable_fungible_token.wasm b/examples/lockable-fungible-token/res/lockable_fungible_token.wasm index 2d88e5195..4560e5450 100755 Binary files a/examples/lockable-fungible-token/res/lockable_fungible_token.wasm and b/examples/lockable-fungible-token/res/lockable_fungible_token.wasm differ diff --git a/examples/mission-control/Cargo.lock b/examples/mission-control/Cargo.lock index aee6a6a5f..43e798916 100644 --- a/examples/mission-control/Cargo.lock +++ b/examples/mission-control/Cargo.lock @@ -629,7 +629,7 @@ dependencies = [ [[package]] name = "near-sdk" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" dependencies = [ "base64 0.13.0", "borsh", @@ -645,7 +645,7 @@ dependencies = [ [[package]] name = "near-sdk-macros" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" dependencies = [ "Inflector", "proc-macro2", diff --git a/examples/mission-control/res/mission_control.wasm b/examples/mission-control/res/mission_control.wasm index 0a2e98e79..28b28fbd5 100755 Binary files a/examples/mission-control/res/mission_control.wasm and b/examples/mission-control/res/mission_control.wasm differ diff --git a/examples/non-fungible-token/Cargo.lock b/examples/non-fungible-token/Cargo.lock index 94b3c27af..437a424d5 100644 --- a/examples/non-fungible-token/Cargo.lock +++ b/examples/non-fungible-token/Cargo.lock @@ -1203,7 +1203,7 @@ dependencies = [ [[package]] name = "near-contract-standards" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" dependencies = [ "near-sdk", "serde", @@ -1499,7 +1499,7 @@ dependencies = [ [[package]] name = "near-sdk" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" dependencies = [ "base64 0.13.0", "borsh", @@ -1515,7 +1515,7 @@ dependencies = [ [[package]] name = "near-sdk-macros" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" dependencies = [ "Inflector", "proc-macro2", diff --git a/examples/non-fungible-token/res/approval_receiver.wasm b/examples/non-fungible-token/res/approval_receiver.wasm index 881684ec2..2a3b0653e 100755 Binary files a/examples/non-fungible-token/res/approval_receiver.wasm and b/examples/non-fungible-token/res/approval_receiver.wasm differ diff --git a/examples/non-fungible-token/res/non_fungible_token.wasm b/examples/non-fungible-token/res/non_fungible_token.wasm index 7ab18f665..262ba42bc 100755 Binary files a/examples/non-fungible-token/res/non_fungible_token.wasm and b/examples/non-fungible-token/res/non_fungible_token.wasm differ diff --git a/examples/non-fungible-token/res/token_receiver.wasm b/examples/non-fungible-token/res/token_receiver.wasm index 7c038c87e..3368a1c7d 100755 Binary files a/examples/non-fungible-token/res/token_receiver.wasm and b/examples/non-fungible-token/res/token_receiver.wasm differ diff --git a/examples/status-message-collections/Cargo.lock b/examples/status-message-collections/Cargo.lock index 2d6a367fb..f3eeb02a8 100644 --- a/examples/status-message-collections/Cargo.lock +++ b/examples/status-message-collections/Cargo.lock @@ -622,7 +622,7 @@ dependencies = [ [[package]] name = "near-sdk" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" dependencies = [ "base64 0.13.0", "borsh", @@ -638,7 +638,7 @@ dependencies = [ [[package]] name = "near-sdk-macros" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" dependencies = [ "Inflector", "proc-macro2", diff --git a/examples/status-message-collections/res/status_message_collections.wasm b/examples/status-message-collections/res/status_message_collections.wasm index 79d8babfe..d26a78e69 100755 Binary files a/examples/status-message-collections/res/status_message_collections.wasm and b/examples/status-message-collections/res/status_message_collections.wasm differ diff --git a/examples/status-message/Cargo.lock b/examples/status-message/Cargo.lock index c9971878f..59ad2d897 100644 --- a/examples/status-message/Cargo.lock +++ b/examples/status-message/Cargo.lock @@ -622,7 +622,7 @@ dependencies = [ [[package]] name = "near-sdk" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" dependencies = [ "base64 0.13.0", "borsh", @@ -638,7 +638,7 @@ dependencies = [ [[package]] name = "near-sdk-macros" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" dependencies = [ "Inflector", "proc-macro2", diff --git a/examples/status-message/res/status_message.wasm b/examples/status-message/res/status_message.wasm index 229715d02..0e2e1fa4f 100755 Binary files a/examples/status-message/res/status_message.wasm and b/examples/status-message/res/status_message.wasm differ diff --git a/examples/test-contract/Cargo.lock b/examples/test-contract/Cargo.lock index 3370ec118..4a2795597 100644 --- a/examples/test-contract/Cargo.lock +++ b/examples/test-contract/Cargo.lock @@ -622,7 +622,7 @@ dependencies = [ [[package]] name = "near-sdk" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" dependencies = [ "base64 0.13.0", "borsh", @@ -638,7 +638,7 @@ dependencies = [ [[package]] name = "near-sdk-macros" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" dependencies = [ "Inflector", "proc-macro2", diff --git a/near-contract-standards/Cargo.toml b/near-contract-standards/Cargo.toml index 76af9e441..ab7b45dbc 100644 --- a/near-contract-standards/Cargo.toml +++ b/near-contract-standards/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "near-contract-standards" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" authors = ["Near Inc "] edition = "2018" license = "GPL-3.0" @@ -13,6 +13,6 @@ NEAR smart contracts standard library. """ [dependencies] -near-sdk = { path = "../near-sdk", version = "=4.0.0-pre.7" } +near-sdk = { path = "../near-sdk", version = "=4.0.0-pre.8" } serde = "1" serde_json = "1" diff --git a/near-sdk-macros/Cargo.toml b/near-sdk-macros/Cargo.toml index 683fcb450..c0248eff0 100644 --- a/near-sdk-macros/Cargo.toml +++ b/near-sdk-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "near-sdk-macros" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" authors = ["Near Inc "] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/near-sdk-sim/Cargo.toml b/near-sdk-sim/Cargo.toml index 198fc96d0..6488de965 100644 --- a/near-sdk-sim/Cargo.toml +++ b/near-sdk-sim/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "near-sdk-sim" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" authors = ["Near Inc "] edition = "2018" license = "GPL-3.0" @@ -13,7 +13,7 @@ NEAR Simulator & cross-contract testing library [dependencies] -near-sdk = { path = "../near-sdk", version = "=4.0.0-pre.7" } +near-sdk = { path = "../near-sdk", version = "=4.0.0-pre.8" } near-crypto = "=0.1.0" near-primitives = "=0.1.0-pre.1" near-vm-logic = "=4.0.0-pre.1" diff --git a/near-sdk-sim/README.md b/near-sdk-sim/README.md index 9e6b48c4f..a6895b1ef 100644 --- a/near-sdk-sim/README.md +++ b/near-sdk-sim/README.md @@ -31,7 +31,7 @@ Currently this crate depends on a the GitHub repo of [nearcore](https://github.c ```toml [dev-dependencies] -near-sdk-sim = "4.0.0-pre.6" +near-sdk-sim = "4.0.0-pre.8" ``` @@ -39,7 +39,7 @@ And update `near-sdk` too: ```toml [dependencies] -near-sdk = "4.0.0-pre.6" +near-sdk = "4.0.0-pre.8" ``` @@ -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.6" -near-sdk-sim = "4.0.0-pre.6" +near-sdk = "4.0.0-pre.8" +near-sdk-sim = "4.0.0-pre.8" contract = { path = "./contract" } [workspace] diff --git a/near-sdk/Cargo.toml b/near-sdk/Cargo.toml index 82f06fe1e..c064ff82d 100644 --- a/near-sdk/Cargo.toml +++ b/near-sdk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "near-sdk" -version = "4.0.0-pre.7" +version = "4.0.0-pre.8" authors = ["Near Inc "] edition = "2018" license = "GPL-3.0" @@ -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.7" } +near-sdk-macros = { path = "../near-sdk-macros", version = "=4.0.0-pre.8" } near-sys = { path = "../sys", version = "0.1" } base64 = "0.13" borsh = "0.9"