From 24ef1df7bd3ba3b10e1f9ea0fb36aaa3b690ed13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Zieli=C5=84ski?= Date: Thu, 15 Jun 2023 21:36:32 +0200 Subject: [PATCH] Update casper crates. (#12) (#15) --- CHANGELOG.md | 6 ++++++ Cargo.toml | 2 +- casper-event-standard/Cargo.toml | 6 +++--- integration-tests/Cargo.toml | 8 ++++---- integration-tests/tests/vm_tests.rs | 3 ++- 5 files changed, 16 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79aa62e..b935e75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ 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.4.0] - 2023-05-11 + +### Changed + +- Updated casper crates to `3.0.0`. + ## [0.3.0] - 2023-05-11 ### Changed diff --git a/Cargo.toml b/Cargo.toml index 8415303..bf88001 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ members = [ ] [workspace.package] -version = "0.3.0" +version = "0.4.0" authors = ["Maciej ZieliƄski "] description = "The smart contract level events for Casper." edition = "2021" diff --git a/casper-event-standard/Cargo.toml b/casper-event-standard/Cargo.toml index 65db077..ae160ce 100644 --- a/casper-event-standard/Cargo.toml +++ b/casper-event-standard/Cargo.toml @@ -12,12 +12,12 @@ license.workspace = true doctest = false [dependencies] -casper-types = "2.0.0" -casper-event-standard-macro = { version = "0.3.0", path = "../casper-event-standard-macro" } +casper-types = "3.0.0" +casper-event-standard-macro = { version = "0.4.0", path = "../casper-event-standard-macro" } serde = { version = "1.0", features = ["derive"], optional = true } [target.'cfg(target_arch = "wasm32")'.dependencies] -casper-contract = { version = "2.0.0", default-features = false } +casper-contract = { version = "3.0.0", default-features = false } [package.metadata.docs.rs] default-target = "wasm32-unknown-unknown" diff --git a/integration-tests/Cargo.toml b/integration-tests/Cargo.toml index 7d6c732..b55b87e 100644 --- a/integration-tests/Cargo.toml +++ b/integration-tests/Cargo.toml @@ -4,11 +4,11 @@ version = "0.1.0" edition = "2021" [dependencies] -casper-types = "2.0.0" +casper-types = "3.0.0" casper-event-standard = { path = "../casper-event-standard" } -casper-contract = { version = "2.0.0", optional = true } -casper-engine-test-support = { version = "4.0.0", optional = true } -casper-execution-engine = { version = "4.0.0", optional = true } +casper-contract = { version = "3.0.0", optional = true } +casper-engine-test-support = { version = "5.0.0", optional = true } +casper-execution-engine = { version = "5.0.0", optional = true } [features] default = ["test-support", "contract-support"] diff --git a/integration-tests/tests/vm_tests.rs b/integration-tests/tests/vm_tests.rs index e648b5c..2046629 100644 --- a/integration-tests/tests/vm_tests.rs +++ b/integration-tests/tests/vm_tests.rs @@ -1,6 +1,6 @@ use casper_engine_test_support::{ ExecuteRequestBuilder, InMemoryWasmTestBuilder, DEFAULT_ACCOUNT_INITIAL_BALANCE, - DEFAULT_GENESIS_CONFIG, DEFAULT_GENESIS_CONFIG_HASH, + DEFAULT_CHAINSPEC_REGISTRY, DEFAULT_GENESIS_CONFIG, DEFAULT_GENESIS_CONFIG_HASH, }; use casper_event_standard::{ Schemas, CES_VERSION, CES_VERSION_KEY, EVENTS_DICT, EVENTS_LENGTH, EVENTS_SCHEMA, @@ -43,6 +43,7 @@ impl TestEnv { *DEFAULT_GENESIS_CONFIG_HASH, genesis_config.protocol_version(), genesis_config.take_ee_config(), + DEFAULT_CHAINSPEC_REGISTRY.clone(), ); let mut context = InMemoryWasmTestBuilder::default();