From 2e59cedb60a8e51c588c7fbecc4962a666fe806a Mon Sep 17 00:00:00 2001 From: Fraser Hutchison Date: Thu, 25 Jan 2024 15:24:07 +0000 Subject: [PATCH] version bumps --- Cargo.lock | 6 +-- execution_engine/CHANGELOG.md | 25 ++++++------ execution_engine/Cargo.toml | 2 +- execution_engine/src/lib.rs | 2 +- .../test_support/CHANGELOG.md | 10 +++++ .../test_support/Cargo.toml | 4 +- .../test_support/src/lib.rs | 2 +- node/Cargo.toml | 4 +- node/src/components/rpc_server/rpcs/docs.rs | 2 +- node/src/lib.rs | 2 +- resources/production/chainspec.toml | 2 +- resources/test/rpc_schema_hashing.json | 38 +++++++++---------- smart_contracts/contract_as/package-lock.json | 2 +- smart_contracts/contract_as/package.json | 2 +- 14 files changed, 57 insertions(+), 46 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 415a03e133..12cfd55fba 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -448,7 +448,7 @@ dependencies = [ [[package]] name = "casper-engine-test-support" -version = "7.0.0" +version = "7.0.1" dependencies = [ "casper-execution-engine", "casper-hashing", @@ -502,7 +502,7 @@ dependencies = [ [[package]] name = "casper-execution-engine" -version = "7.0.0" +version = "7.0.1" dependencies = [ "anyhow", "assert_matches", @@ -592,7 +592,7 @@ dependencies = [ [[package]] name = "casper-node" -version = "1.5.5" +version = "1.5.6" dependencies = [ "ansi_term", "anyhow", diff --git a/execution_engine/CHANGELOG.md b/execution_engine/CHANGELOG.md index d088d28ca1..f00d5a2dbc 100644 --- a/execution_engine/CHANGELOG.md +++ b/execution_engine/CHANGELOG.md @@ -12,18 +12,19 @@ All notable changes to this project will be documented in this file. The format ## 7.0.1 ### Changed -* Increased the `gas_per_byte` cost from `630_000` to `1_117_587` -* Changed the cost of the host function `add_associated_key` to `1_200_000` from `9_000`. -* Changed the cost weight of argument `entry_point_size` for `add_contract_version` from `0` to `120_000` -* Changed the cost of the host function `blake2b` to `1_200_000` and the argument `in_size` to `120_000` -* Changed the cost of the host function `call_contract` and the arguments `entry_point_name_size`, `args_size` to `120_000` -* Changed the cost of the host function `call_versioned_contract` and the arguments `entry_point_name_size`, `args_size` to `120_000` -* Changed the cost of the host function `get_balance` to `3_000_000` -* Changed the cost weight of arguments `name_size` and `dest_size` for `get_named_arg` to `120_000` -* Changed the cost of the host function `put_key` to `100_000_000` and the arguments `name_size` and `key_size` to `120_000` -* Changed the cost of the host function `read_value` to `60_000` and the argument `key_size` to `120_000` -* Changed the weight of the argument `label_size` for the host function `remove_contract_user_group_urefs` to `120_000` -* Changed the cost of the host function `transfer_from_purse_to_purse` to `82_000_000` +* Change the cost of `wasm.storage_costs.gas_per_byte` and `shared::storage_costs::DEFAULT_GAS_PER_BYTE_COST` from `630_000` to `1_117_587`. +* Change the cost of the host function `casper_add_associated_key` from `9_000` to `1_200_000`. +* Change the cost of the argument `entry_points_size` of host function `casper_add_contract_version` from `0` to `120_000`. +* Change the cost of the host function `casper_blake2b`and its argument `in_size` from `200` and `0` respectively to `1_200_000` to `120_000`. +* Change the cost of the host function `casper_call_contract` and its arguments `entry_point_name_size` and `runtime_args_size` from `4_500`, `0` and `420` respectively to `300_000_000`, `120_000` and `120_000`. +* Change the cost of the host function `casper_call_versioned_contract` and the arguments `entry_point_name_size` and `runtime_args_size` from `4_500`, `0` and `420` respectively to `300_000_000`, `120_000` and `120_000`. +* Change the cost of the host function `casper_get_balance` from `3_800` to `3_000_000`. +* Change the cost of arguments `name_size` and `dest_size` of host function `casper_get_named_arg` from `0` to `120_000`. +* Change the cost of the host function `casper_put_key` and its arguments `name_size` and `key_size` from `38_000`, `1_100` and `0` respectively to `100_000_000`, `120_000` and `120_000`. +* Change the cost of the host function `casper_read_value` and its argument `key_size` from `6_000` and `0` respectively to `60_000` and `120_000`. +* Change the cost of the argument `urefs_size` of host function `casper_remove_contract_user_group_urefs` from `0` to `120_000`. +* Change the cost of the host function `casper_transfer_from_purse_to_purse` from `82_000` to `82_000_000`. + ## 7.0.0 diff --git a/execution_engine/Cargo.toml b/execution_engine/Cargo.toml index 0d4a633afe..f28cf2a43a 100644 --- a/execution_engine/Cargo.toml +++ b/execution_engine/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "casper-execution-engine" -version = "7.0.0" # when updating, also update 'html_root_url' in lib.rs +version = "7.0.1" # when updating, also update 'html_root_url' in lib.rs authors = ["Henry Till ", "Ed Hastings "] edition = "2021" description = "Casper execution engine crates." diff --git a/execution_engine/src/lib.rs b/execution_engine/src/lib.rs index 9b54784861..23a5fc0e64 100644 --- a/execution_engine/src/lib.rs +++ b/execution_engine/src/lib.rs @@ -1,6 +1,6 @@ //! The engine which executes smart contracts on the Casper network. -#![doc(html_root_url = "https://docs.rs/casper-execution-engine/7.0.0")] +#![doc(html_root_url = "https://docs.rs/casper-execution-engine/7.0.1")] #![doc( html_favicon_url = "https://raw.githubusercontent.com/casper-network/casper-node/blob/dev/images/Casper_Logo_Favicon_48.png", html_logo_url = "https://raw.githubusercontent.com/casper-network/casper-node/blob/dev/images/Casper_Logo_Favicon.png", diff --git a/execution_engine_testing/test_support/CHANGELOG.md b/execution_engine_testing/test_support/CHANGELOG.md index d780fc96a3..e2fb36747c 100644 --- a/execution_engine_testing/test_support/CHANGELOG.md +++ b/execution_engine_testing/test_support/CHANGELOG.md @@ -11,6 +11,16 @@ All notable changes to this project will be documented in this file. The format +## 7.0.1 + +### Added +* Provide `from_chainspec_path` and `max_associated_keys` helper methods on `ChainspecConfig`. +* Provide functions for converting from `ChainspecConfig` to `EngineConfig`. +* Provide `try_exec` method on `WamTestBuilder` for fallible contract execution. +* Provide `PRODUCTION_CHAINSPEC_PATH`: a lazy static defining the path to the production chainspec.toml file. + + + ## 7.0.0 ### Added diff --git a/execution_engine_testing/test_support/Cargo.toml b/execution_engine_testing/test_support/Cargo.toml index dcff62453c..ec7dc440f0 100644 --- a/execution_engine_testing/test_support/Cargo.toml +++ b/execution_engine_testing/test_support/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "casper-engine-test-support" -version = "7.0.0" # when updating, also update 'html_root_url' in lib.rs +version = "7.0.1" # when updating, also update 'html_root_url' in lib.rs authors = ["Fraser Hutchison "] edition = "2021" description = "Library to support testing of Wasm smart contracts for use on the Casper network." @@ -11,7 +11,7 @@ repository = "https://github.com/CasperLabs/casper-node/tree/master/execution_en license = "Apache-2.0" [dependencies] -casper-execution-engine = { version = "7.0.0", path = "../../execution_engine", features = ["test-support"] } +casper-execution-engine = { version = "7.0.1", path = "../../execution_engine", features = ["test-support"] } casper-hashing = { version = "3.0.0", path = "../../hashing" } casper-types = { version = "4.0.1", path = "../../types" } humantime = "2" diff --git a/execution_engine_testing/test_support/src/lib.rs b/execution_engine_testing/test_support/src/lib.rs index 20f9d9e2ad..4458b42a7b 100644 --- a/execution_engine_testing/test_support/src/lib.rs +++ b/execution_engine_testing/test_support/src/lib.rs @@ -1,6 +1,6 @@ //! A library to support testing of Wasm smart contracts for use on the Casper Platform. -#![doc(html_root_url = "https://docs.rs/casper-engine-test-support/7.0.0")] +#![doc(html_root_url = "https://docs.rs/casper-engine-test-support/7.0.1")] #![doc( html_favicon_url = "https://raw.githubusercontent.com/casper-network/casper-node/blob/dev/images/Casper_Logo_Favicon_48.png", html_logo_url = "https://raw.githubusercontent.com/casper-network/casper-node/blob/dev/images/Casper_Logo_Favicon.png", diff --git a/node/Cargo.toml b/node/Cargo.toml index 94e4c27d7e..733b33e2ac 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "casper-node" -version = "1.5.5" # when updating, also update 'html_root_url' in lib.rs +version = "1.5.6" # when updating, also update 'html_root_url' in lib.rs authors = ["Marc Brinkmann ", "Fraser Hutchison "] edition = "2021" description = "The Casper blockchain node" @@ -22,7 +22,7 @@ base16 = "0.2.1" base64 = "0.13.0" bincode = "1" bytes = "1.0.1" -casper-execution-engine = { version = "7.0.0", path = "../execution_engine" } +casper-execution-engine = { version = "7.0.1", path = "../execution_engine" } casper-hashing = { version = "3.0.0", path = "../hashing" } casper-json-rpc = { version = "1.1.0", path = "../json_rpc" } casper-types = { version = "4.0.1", path = "../types", features = ["datasize", "json-schema", "std"] } diff --git a/node/src/components/rpc_server/rpcs/docs.rs b/node/src/components/rpc_server/rpcs/docs.rs index 9b43fe1a05..2e2dbc6c49 100644 --- a/node/src/components/rpc_server/rpcs/docs.rs +++ b/node/src/components/rpc_server/rpcs/docs.rs @@ -30,7 +30,7 @@ use super::{ use crate::effect::EffectBuilder; pub(crate) const DOCS_EXAMPLE_PROTOCOL_VERSION: ProtocolVersion = - ProtocolVersion::from_parts(1, 5, 5); + ProtocolVersion::from_parts(1, 5, 6); const DEFINITIONS_PATH: &str = "#/components/schemas/"; diff --git a/node/src/lib.rs b/node/src/lib.rs index 3bdf5280b4..3bbd416507 100644 --- a/node/src/lib.rs +++ b/node/src/lib.rs @@ -8,7 +8,7 @@ //! While the [`main`](fn.main.html) function is the central entrypoint for the node application, //! its core event loop is found inside the [reactor](reactor/index.html). -#![doc(html_root_url = "https://docs.rs/casper-node/1.5.5")] +#![doc(html_root_url = "https://docs.rs/casper-node/1.5.6")] #![doc( html_favicon_url = "https://raw.githubusercontent.com/casper-network/casper-node/blob/dev/images/Casper_Logo_Favicon_48.png", html_logo_url = "https://raw.githubusercontent.com/casper-network/casper-node/blob/dev/images/Casper_Logo_Favicon.png", diff --git a/resources/production/chainspec.toml b/resources/production/chainspec.toml index 3507e93262..1656c69fe4 100644 --- a/resources/production/chainspec.toml +++ b/resources/production/chainspec.toml @@ -1,6 +1,6 @@ [protocol] # Protocol version. -version = '1.5.5' +version = '1.5.6' # Whether we need to clear latest blocks back to the switch block just before the activation point or not. hard_reset = true # This protocol version becomes active at this point. diff --git a/resources/test/rpc_schema_hashing.json b/resources/test/rpc_schema_hashing.json index 21ec141864..4cc9b224c5 100644 --- a/resources/test/rpc_schema_hashing.json +++ b/resources/test/rpc_schema_hashing.json @@ -1,7 +1,7 @@ { "openrpc": "1.0.0-rc1", "info": { - "version": "1.5.5", + "version": "1.5.6", "title": "Client API of Casper Node", "description": "This describes the JSON-RPC 2.0 API of a node on the Casper network.", "contact": { @@ -116,7 +116,7 @@ "result": { "name": "account_put_deploy_example_result", "value": { - "api_version": "1.5.5", + "api_version": "1.5.6", "deploy_hash": "5c9b3b099c1378aa8e4a5f07f59ff1fcdc69a83179427c7e67ae0377d94d93fa" } } @@ -201,7 +201,7 @@ "result": { "name": "info_get_deploy_example_result", "value": { - "api_version": "1.5.5", + "api_version": "1.5.6", "deploy": { "hash": "5c9b3b099c1378aa8e4a5f07f59ff1fcdc69a83179427c7e67ae0377d94d93fa", "header": { @@ -368,7 +368,7 @@ "result": { "name": "state_get_account_info_example_result", "value": { - "api_version": "1.5.5", + "api_version": "1.5.6", "account": { "account_hash": "account-hash-e94daaff79c2ab8d9c31d9c3058d7d0a0dd31204a5638dc1451fa67b2e3fb88c", "named_keys": [], @@ -464,7 +464,7 @@ "result": { "name": "state_get_dictionary_item_example_result", "value": { - "api_version": "1.5.5", + "api_version": "1.5.6", "dictionary_key": "dictionary-67518854aa916c97d4e53df8570c8217ccc259da2721b692102d76acd0ee8d1f", "stored_value": { "CLValue": { @@ -579,7 +579,7 @@ "result": { "name": "query_global_state_example_result", "value": { - "api_version": "1.5.5", + "api_version": "1.5.6", "block_header": { "parent_hash": "0707070707070707070707070707070707070707070707070707070707070707", "state_root_hash": "0808080808080808080808080808080808080808080808080808080808080808", @@ -713,7 +713,7 @@ "result": { "name": "query_balance_example_result", "value": { - "api_version": "1.5.5", + "api_version": "1.5.6", "balance": "123456" } } @@ -753,7 +753,7 @@ "result": { "name": "info_get_peers_example_result", "value": { - "api_version": "1.5.5", + "api_version": "1.5.6", "peers": [ { "node_id": "tls:0101..0101", @@ -888,7 +888,7 @@ "address": "127.0.0.1:54321" } ], - "api_version": "1.5.5", + "api_version": "1.5.6", "build_version": "1.0.0-xxxxxxxxx@DEBUG", "chainspec_name": "casper-example", "starting_state_root_hash": "0000000000000000000000000000000000000000000000000000000000000000", @@ -966,7 +966,7 @@ "result": { "name": "info_get_validator_changes_example_result", "value": { - "api_version": "1.5.5", + "api_version": "1.5.6", "changes": [ { "public_key": "01d9bf2148748a85c89da5aad8ee0b0fc2d105fd39d41a4c796536354f0ae2900c", @@ -1015,7 +1015,7 @@ "result": { "name": "info_get_chainspec_example_result", "value": { - "api_version": "1.5.5", + "api_version": "1.5.6", "chainspec_bytes": { "chainspec_bytes": "2a2a", "maybe_genesis_accounts_bytes": null, @@ -1081,7 +1081,7 @@ "result": { "name": "chain_get_block_example_result", "value": { - "api_version": "1.5.5", + "api_version": "1.5.6", "block": { "hash": "13c2d7a68ecdd4b74bf4393c88915c836c863fc4bf11d7f2bd930a1bbccacdcb", "header": { @@ -1209,7 +1209,7 @@ "result": { "name": "chain_get_block_transfers_example_result", "value": { - "api_version": "1.5.5", + "api_version": "1.5.6", "block_hash": "13c2d7a68ecdd4b74bf4393c88915c836c863fc4bf11d7f2bd930a1bbccacdcb", "transfers": [ { @@ -1283,7 +1283,7 @@ "result": { "name": "chain_get_state_root_hash_example_result", "value": { - "api_version": "1.5.5", + "api_version": "1.5.6", "state_root_hash": "0808080808080808080808080808080808080808080808080808080808080808" } } @@ -1372,7 +1372,7 @@ "result": { "name": "state_get_item_example_result", "value": { - "api_version": "1.5.5", + "api_version": "1.5.6", "stored_value": { "CLValue": { "cl_type": "U64", @@ -1450,7 +1450,7 @@ "result": { "name": "state_get_balance_example_result", "value": { - "api_version": "1.5.5", + "api_version": "1.5.6", "balance_value": "123456", "merkle_proof": "01000000006ef2e0949ac76e55812421f755abe129b6244fe7168b77f47a72536147614625016ef2e0949ac76e55812421f755abe129b6244fe7168b77f47a72536147614625000000003529cde5c621f857f75f3810611eb4af3f998caaa9d4a3413cf799f99c67db0307010000006ef2e0949ac76e55812421f755abe129b6244fe7168b77f47a7253614761462501010102000000006e06000000000074769d28aac597a36a03a932d4b43e4f10bf0403ee5c41dd035102553f5773631200b9e173e8f05361b681513c14e25e3138639eb03232581db7557c9e8dbbc83ce94500226a9a7fe4f2b7b88d5103a4fc7400f02bf89c860c9ccdd56951a2afe9be0e0267006d820fb5676eb2960e15722f7725f3f8f41030078f8b2e44bf0dc03f71b176d6e800dc5ae9805068c5be6da1a90b2528ee85db0609cc0fb4bd60bbd559f497a98b67f500e1e3e846592f4918234647fca39830b7e1e6ad6f5b7a99b39af823d82ba1873d000003000000010186ff500f287e9b53f823ae1582b1fa429dfede28015125fd233a31ca04d5012002015cc42669a55467a1fdf49750772bfc1aed59b9b085558eb81510e9b015a7c83b0301e3cf4a34b1db6bfa58808b686cb8fe21ebe0c1bcbcee522649d2b135fe510fe3" } @@ -1513,7 +1513,7 @@ "result": { "name": "chain_get_era_info_by_switch_block_example_result", "value": { - "api_version": "1.5.5", + "api_version": "1.5.6", "era_summary": { "block_hash": "13c2d7a68ecdd4b74bf4393c88915c836c863fc4bf11d7f2bd930a1bbccacdcb", "era_id": 42, @@ -1593,7 +1593,7 @@ "result": { "name": "state_get_auction_info_example_result", "value": { - "api_version": "1.5.5", + "api_version": "1.5.6", "auction_state": { "state_root_hash": "0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b", "block_height": 10, @@ -1675,7 +1675,7 @@ "result": { "name": "chain_get_era_summary_example_result", "value": { - "api_version": "1.5.5", + "api_version": "1.5.6", "era_summary": { "block_hash": "13c2d7a68ecdd4b74bf4393c88915c836c863fc4bf11d7f2bd930a1bbccacdcb", "era_id": 42, diff --git a/smart_contracts/contract_as/package-lock.json b/smart_contracts/contract_as/package-lock.json index 2b1bcce6d2..e1d6902082 100644 --- a/smart_contracts/contract_as/package-lock.json +++ b/smart_contracts/contract_as/package-lock.json @@ -1,6 +1,6 @@ { "name": "casper-contract", - "version": "1.5.5", + "version": "1.5.6", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/smart_contracts/contract_as/package.json b/smart_contracts/contract_as/package.json index 5e00e5db4c..0b8f7ed40a 100644 --- a/smart_contracts/contract_as/package.json +++ b/smart_contracts/contract_as/package.json @@ -1,6 +1,6 @@ { "name": "casper-contract", - "version": "1.5.5", + "version": "1.5.6", "description": "Library for developing Casper smart contracts.", "homepage": "https://docs.casperlabs.io/en/latest/dapp-dev-guide/index.html", "repository": {