diff --git a/CHANGELOG.md b/CHANGELOG.md index 68f291d..f6eb303 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,11 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [0.13.0] +## [Unreleased] -- Rework Sandbox API to better support custom Runtime +## [0.14.0] -## [Unreleased] +- Bump `ink` to `5.0.0` and `cargo-contract` to `4.0.0` + +- Rework Sandbox API to better support custom Runtime # [0.13.0] diff --git a/Cargo.lock b/Cargo.lock index de072de..e912e2f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -153,9 +153,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.80" +version = "1.0.81" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "5ad32ce52e4161730f7098c077cd2ed6229b5804ccf99e5366be1ab72a98b4e1" +checksum = "0952808a6c2afd1aa8947271f3a60f1a6763c7b912d210184c5149b5cf147247" [[package]] name = "approx" @@ -791,9 +791,9 @@ checksum = "cd7e35aee659887cbfb97aaf227ac12cad1a9d7c71e55ff3376839ed4e282d08" [[package]] name = "contract-build" -version = "4.0.0-rc.4" +version = "4.0.0" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "a0cace153488962932541d89bc7e8e515cf1c4606ea45fe55826d59505078fa4" +checksum = "9f4e6c03a261bc36c858fb67f12c21045d372b731b2239372584ded4648b3538" dependencies = [ "anyhow", "blake2", @@ -814,7 +814,7 @@ dependencies = [ "semver", "serde", "serde_json", - "strum 0.26.1", + "strum 0.26.2", "tempfile", "term_size", "tokio", @@ -831,9 +831,9 @@ dependencies = [ [[package]] name = "contract-metadata" -version = "4.0.0-rc.4" +version = "4.0.0" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "664ab6d50dbdba63b7c4e61ca9830252c69e0e507a20f2f74fc2c6b6582e3bf1" +checksum = "71d239a78947aa2d0c63a9936754927551f275d3064a221384427c2c2ff1504b" dependencies = [ "anyhow", "impl-serde", @@ -845,9 +845,9 @@ dependencies = [ [[package]] name = "contract-transcode" -version = "4.0.0-rc.4" +version = "4.0.0" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "aaf881647e38164a63be6dfed4af4ce2bf418c4464fc8cb15eb495292c149dc3" +checksum = "3d300ad8af2ba7be1bb77f88be352bdb2e7a78daf998d727128dd090054e1ad3" dependencies = [ "anyhow", "base58", @@ -1290,7 +1290,7 @@ checksum = "9ea835d29036a4087793836fa931b08837ad5e957da9e23886b29586fb9b6650" [[package]] name = "drink" -version = "0.13.0" +version = "0.14.0" dependencies = [ "contract-metadata", "contract-transcode", @@ -1316,7 +1316,7 @@ dependencies = [ [[package]] name = "drink-cli" -version = "0.13.0" +version = "0.14.0" dependencies = [ "anyhow", "clap", @@ -1332,7 +1332,7 @@ dependencies = [ [[package]] name = "drink-test-macro" -version = "0.13.0" +version = "0.14.0" dependencies = [ "cargo_metadata", "contract-build", @@ -1999,12 +1999,12 @@ dependencies = [ [[package]] name = "http-body-util" -version = "0.1.0" +version = "0.1.1" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "41cb79eb393015dadd30fc252023adb0b2400a0caee0fa2a077e6e21a551e840" +checksum = "0475f8b2ac86659c21b64320d5d653f9efe42acd2a4e560073ec61a155a34f1d" dependencies = [ "bytes", - "futures-util", + "futures-core", "http", "http-body", "pin-project-lite", @@ -2208,18 +2208,18 @@ checksum = "8e04e2fd2b8188ea827b32ef11de88377086d690286ab35747ef7f9bf3ccb590" [[package]] name = "ink_allocator" -version = "5.0.0-rc.3" +version = "5.0.0" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "4509501e7eaee3988cc7f22a044f3be6599c8532a303b80b0c5761c8d940e413" +checksum = "5cee56055bac6d928d425e944c5f3b69baa33c9635822fd1c00cd4afc70fde3e" dependencies = [ "cfg-if", ] [[package]] name = "ink_engine" -version = "5.0.0-rc.3" +version = "5.0.0" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "cc1967c441dd9cca93af1cea6601115b8ac5a596befd01090ddf68607259dc57" +checksum = "4f357e2e867f4e222ffc4015a6e61d1073548de89f70a4e36a8b0385562777fa" dependencies = [ "blake2", "derive_more", @@ -2233,9 +2233,9 @@ dependencies = [ [[package]] name = "ink_env" -version = "5.0.0-rc.3" +version = "5.0.0" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "42ff8e745688bfe87f6d5ecb39ad3e3d712465a756f4a7b76fd9214b8310061c" +checksum = "42cec50b7e4f8406aab25801b015d3802a52d76cfbe48ce11cfb4200fa88e296" dependencies = [ "blake2", "cfg-if", @@ -2263,9 +2263,9 @@ dependencies = [ [[package]] name = "ink_metadata" -version = "5.0.0-rc.3" +version = "5.0.0" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "1e7a6dbb5dee1ed28e022cd99866ae426cae4e8172d66f40349fe1c022034579" +checksum = "a98fcc0ff9292ff68c7ee7b84c93533c9ff13859ec3b148faa822e2da9954fe6" dependencies = [ "derive_more", "impl-serde", @@ -2280,18 +2280,18 @@ dependencies = [ [[package]] name = "ink_prelude" -version = "5.0.0-rc.3" +version = "5.0.0" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "ddfed647babce3e9f2ca528866b16edce8156b49550fa971bf11e52410239703" +checksum = "ea1734d058c80aa72e59c8ae75624fd8a51791efba21469f273156c0f4cad5c9" dependencies = [ "cfg-if", ] [[package]] name = "ink_primitives" -version = "5.0.0-rc.3" +version = "5.0.0" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "22dcad2912e7faadd116fc7952956c87225fe751a99da77d051a83d8fa404ca7" +checksum = "11ec35ef7f45e67a53b6142d7e7f18e6d9292d76c3a2a1da14cf8423e481813d" dependencies = [ "derive_more", "ink_prelude", @@ -2304,9 +2304,9 @@ dependencies = [ [[package]] name = "ink_storage_traits" -version = "5.0.0-rc.3" +version = "5.0.0" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "782122a6be4e7a0022d4e9ad70d99311adc64402635731436d26bbee5eb3c590" +checksum = "83ce49e3d2935fc1ec3e73117119712b187d3123339f6a31624e92f75fa2293d" dependencies = [ "ink_metadata", "ink_prelude", @@ -3317,9 +3317,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.78" +version = "1.0.79" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae" +checksum = "e835ff2298f5721608eb1a980ecaee1aef2c132bf95ecc026a11b7bf3c01c02e" dependencies = [ "unicode-ident", ] @@ -3636,9 +3636,9 @@ dependencies = [ [[package]] name = "scale-info" -version = "2.10.0" +version = "2.11.0" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "7f7d66a1128282b7ef025a8ead62a4a9fcf017382ec53b8ffbf4d7bf77bd3c60" +checksum = "2ef2175c2907e7c8bc0a9c3f86aeb5ec1f3b275300ad58a44d0c3ae379a5e52e" dependencies = [ "bitvec", "cfg-if", @@ -3651,9 +3651,9 @@ dependencies = [ [[package]] name = "scale-info-derive" -version = "2.10.0" +version = "2.11.0" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "abf2c68b89cafb3b8d918dd07b42be0da66ff202cf1155c5739a4e0c1ea0dc19" +checksum = "634d9b8eb8fd61c5cdd3390d9b2132300a7e7618955b98b8416f118c1b4e144f" dependencies = [ "proc-macro-crate 1.3.1", "proc-macro2", @@ -3862,9 +3862,9 @@ dependencies = [ [[package]] name = "serde_with" -version = "3.6.1" +version = "3.7.0" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "15d167997bd841ec232f5b2b8e0e26606df2e7caa4c31b95ea9ca52b200bd270" +checksum = "ee80b0e361bbf88fd2f6e242ccd19cfda072cb0faa6ae694ecee08199938569a" dependencies = [ "base64 0.21.7", "chrono", @@ -4618,11 +4618,11 @@ checksum = "063e6045c0e62079840579a7e47a355ae92f60eb74daaf156fb1e84ba164e63f" [[package]] name = "strum" -version = "0.26.1" +version = "0.26.2" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "723b93e8addf9aa965ebe2d11da6d7540fa2283fcea14b3371ff055f7ba13f5f" +checksum = "5d8cec3501a5194c432b2b7976db6b7d10ec95c253208b45f83f7136aa985e29" dependencies = [ - "strum_macros 0.26.1", + "strum_macros 0.26.2", ] [[package]] @@ -4640,9 +4640,9 @@ dependencies = [ [[package]] name = "strum_macros" -version = "0.26.1" +version = "0.26.2" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "7a3417fc93d76740d974a01654a09777cb500428cc874ca9f45edfe0c4d4cd18" +checksum = "c6cf59daf282c0a494ba14fd21610a0325f9f90ec9d1231dea26bcb1d696c946" dependencies = [ "heck", "proc-macro2", @@ -4737,18 +4737,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.57" +version = "1.0.58" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "1e45bcbe8ed29775f228095caf2cd67af7a4ccf756ebff23a306bf3e8b47b24b" +checksum = "03468839009160513471e86a034bb2c5c0e4baae3b43f79ffc55c4a5427b3297" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.57" +version = "1.0.58" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "a953cb265bef375dae3de6663da4d3804eee9682ea80d8e2542529b73c531c81" +checksum = "c61f3ba182994efc43764a46c018c347bc492c79f024e705f46567b418f6d4f7" dependencies = [ "proc-macro2", "quote", @@ -4877,14 +4877,14 @@ dependencies = [ [[package]] name = "toml" -version = "0.8.10" +version = "0.8.11" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "9a9aad4a3066010876e8dcf5a8a06e70a558751117a145c6ce2b82c2e2054290" +checksum = "af06656561d28735e9c1cd63dfd57132c8155426aa6af24f36a00a351f88c48e" dependencies = [ "serde", "serde_spanned", "toml_datetime", - "toml_edit 0.22.6", + "toml_edit 0.22.7", ] [[package]] @@ -4931,9 +4931,9 @@ dependencies = [ [[package]] name = "toml_edit" -version = "0.22.6" +version = "0.22.7" source = "registry+/~https://github.com/rust-lang/crates.io-index" -checksum = "2c1b5fd4128cc8d3e0cb74d4ed9a9cc7c7284becd4df68f5f940e1ad123606f6" +checksum = "18769cd1cec395d70860ceb4d932812a0b4d06b1a4bb336745a4d21b9496e992" dependencies = [ "indexmap 2.2.5", "serde", diff --git a/Cargo.toml b/Cargo.toml index 79a7bea..ef5fc84 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,15 +18,15 @@ homepage = "/~https://github.com/Cardinal-Cryptography/drink" license = "Apache-2.0" readme = "README.md" repository = "/~https://github.com/Cardinal-Cryptography/drink" -version = "0.13.0" +version = "0.14.0" [workspace.dependencies] anyhow = { version = "1.0.71" } cargo_metadata = { version = "0.18.1" } clap = { version = "4.3.4" } -contract-build = { version = "4.0.0-rc.4" } -contract-metadata = { version = "4.0.0-rc.4" } -contract-transcode = { version = "4.0.0-rc.4" } +contract-build = { version = "4.0.0" } +contract-metadata = { version = "4.0.0" } +contract-transcode = { version = "4.0.0" } convert_case = { version = "0.6.0" } crossterm = { version = "0.26.0" } darling = { version = "0.20.3" } @@ -58,5 +58,5 @@ sp-runtime-interface = { version = "26.0.0" } # Local dependencies -drink = { version = "=0.13.0", path = "drink" } -drink-test-macro = { version = "=0.13.0", path = "drink/test-macro" } +drink = { version = "=0.14.0", path = "drink" } +drink-test-macro = { version = "=0.14.0", path = "drink/test-macro" } diff --git a/examples/chain-extension/Cargo.toml b/examples/chain-extension/Cargo.toml index 9f43b19..3d5f4f1 100644 --- a/examples/chain-extension/Cargo.toml +++ b/examples/chain-extension/Cargo.toml @@ -10,7 +10,7 @@ version = "0.1.0" path = "src/lib.rs" [dependencies] -ink = { version = "=5.0.0-rc.3", default-features = false } +ink = { version = "=5.0.0", default-features = false } scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } scale-info = { version = "2.6", default-features = false, features = ["derive"], optional = true } diff --git a/examples/contract-events/Cargo.toml b/examples/contract-events/Cargo.toml index dfa0906..2eb4d72 100644 --- a/examples/contract-events/Cargo.toml +++ b/examples/contract-events/Cargo.toml @@ -10,7 +10,7 @@ version = "0.1.0" path = "lib.rs" [dependencies] -ink = { version = "=5.0.0-rc.3", default-features = false } +ink = { version = "=5.0.0", default-features = false } scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } scale-info = { version = "2.6", default-features = false, features = ["derive"], optional = true } diff --git a/examples/cross-contract-call-tracing/Cargo.toml b/examples/cross-contract-call-tracing/Cargo.toml index df1df3e..a9070f1 100644 --- a/examples/cross-contract-call-tracing/Cargo.toml +++ b/examples/cross-contract-call-tracing/Cargo.toml @@ -7,7 +7,7 @@ repository = "/~https://github.com/Cardinal-Cryptography/drink" version = "0.1.0" [dependencies] -ink = { version = "=5.0.0-rc.3", default-features = false } +ink = { version = "=5.0.0", default-features = false } scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } scale-info = { version = "2.6", default-features = false, features = ["derive"], optional = true } diff --git a/examples/dry-running/Cargo.toml b/examples/dry-running/Cargo.toml index 0e39fd6..1993ceb 100644 --- a/examples/dry-running/Cargo.toml +++ b/examples/dry-running/Cargo.toml @@ -7,7 +7,7 @@ repository = "/~https://github.com/Cardinal-Cryptography/drink" version = "0.1.0" [dependencies] -ink = { version = "=5.0.0-rc.3", default-features = false } +ink = { version = "=5.0.0", default-features = false } [dev-dependencies] drink = { path = "../../drink" } diff --git a/examples/flipper/Cargo.toml b/examples/flipper/Cargo.toml index ac435a2..7e45b4f 100755 --- a/examples/flipper/Cargo.toml +++ b/examples/flipper/Cargo.toml @@ -7,7 +7,7 @@ repository = "/~https://github.com/Cardinal-Cryptography/drink" version = "0.1.0" [dependencies] -ink = { version = "=5.0.0-rc.3", default-features = false, features = ["ink-debug"] } +ink = { version = "=5.0.0", default-features = false, features = ["ink-debug"] } scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } scale-info = { version = "2.6", default-features = false, features = ["derive"], optional = true } diff --git a/examples/mocking/Cargo.toml b/examples/mocking/Cargo.toml index 21f980b..dca7803 100755 --- a/examples/mocking/Cargo.toml +++ b/examples/mocking/Cargo.toml @@ -7,7 +7,7 @@ repository = "/~https://github.com/Cardinal-Cryptography/drink" version = "0.1.0" [dependencies] -ink = { version = "=5.0.0-rc.3", default-features = false } +ink = { version = "=5.0.0", default-features = false } scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } scale-info = { version = "2.6", default-features = false, features = ["derive"], optional = true } diff --git a/examples/multiple-contracts/Cargo.toml b/examples/multiple-contracts/Cargo.toml index dc7117c..60f44e2 100755 --- a/examples/multiple-contracts/Cargo.toml +++ b/examples/multiple-contracts/Cargo.toml @@ -7,7 +7,7 @@ repository = "/~https://github.com/Cardinal-Cryptography/drink" version = "0.1.0" [dependencies] -ink = { version = "=5.0.0-rc.3", default-features = false, features = ["ink-debug"] } +ink = { version = "=5.0.0", default-features = false, features = ["ink-debug"] } psp22 = { git = "/~https://github.com/Cardinal-Cryptography/PSP22.git", branch = "ink5", default-features = false, features = ["contract", "ink-as-dependency"] } [dev-dependencies] diff --git a/examples/quick-start-with-drink/Cargo.toml b/examples/quick-start-with-drink/Cargo.toml index 4969661..86942e9 100755 --- a/examples/quick-start-with-drink/Cargo.toml +++ b/examples/quick-start-with-drink/Cargo.toml @@ -13,7 +13,7 @@ path = "lib.rs" # We use standard dependencies for an ink! smart-contract. # For debugging from contract, we enable the `ink-debug` feature of `ink` crate. -ink = { version = "=5.0.0-rc.3", default-features = false, features = ["ink-debug"] } +ink = { version = "=5.0.0", default-features = false, features = ["ink-debug"] } scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } scale-info = { version = "2.6", default-features = false, features = ["derive"], optional = true }