Skip to content

Commit 883cad2

Browse files
authored
Merge pull request #5250 from igor-casper/core-78
Update casper-wasmi, bump toolchain for smart contracts
2 parents e9aa024 + da6f2f6 commit 883cad2

File tree

15 files changed

+32
-29
lines changed

15 files changed

+32
-29
lines changed

Cargo.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ci/casper_updater/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
macro_expanded_macro_exports_accessed_by_absolute_paths,
2626
mutable_transmutes,
2727
no_mangle_const_items,
28-
order_dependent_trait_objects,
2928
overflowing_literals,
3029
pub_use_of_private_extern_crate,
3130
unknown_crate_types

execution_engine/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ blake3 = { version = "1.5.0", default-features = false, features = ["pure"] }
1919
sha2 = { version = "0.10.8", default-features = false }
2020
casper-storage = { version = "2.1.0", path = "../storage", default-features = true }
2121
casper-types = { version = "6.0.0", path = "../types", default-features = false, features = ["datasize", "gens", "json-schema", "std"] }
22-
casper-wasm = { version = "0.46.0", default-features = false, features = ["sign_ext"] }
23-
casper-wasm-utils = { version = "3.0.0", default-features = false, features = ["sign_ext"] }
24-
casper-wasmi = { version = "0.14.0", features = ["sign_ext"] }
22+
casper-wasm = { version = "1.0.0", default-features = false, features = ["sign_ext", "call_indirect_overlong"] }
23+
casper-wasm-utils = { version = "4.0.0", default-features = false, features = ["sign_ext", "call_indirect_overlong"] }
24+
casper-wasmi = { version = "1.0.0", features = ["sign_ext", "call_indirect_overlong"] }
2525
datasize = "0.2.4"
2626
either = "1.8.1"
2727
hex-buffer-serde = "0.2.1"

execution_engine_testing/tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ casper-execution-engine = { path = "../../execution_engine", features = ["test-s
1111
casper-storage = { path = "../../storage" }
1212
casper-types = { path = "../../types", default-features = false, features = ["datasize", "json-schema"] }
1313
ed25519-dalek = { version = "2.1.1", default-features = false, features = ["alloc", "zeroize"] }
14-
casper-wasm = "0.46.0"
14+
casper-wasm = "1.0.0"
1515
clap = "2"
1616
fs_extra = "1.2.0"
1717
log = "0.4.8"

execution_engine_testing/tests/src/test/explorer/faucet.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -663,14 +663,14 @@ fn faucet_costs() {
663663
// This test will fail if execution costs vary. The expected costs should not be updated
664664
// without understanding why the cost has changed. If the costs do change, it should be
665665
// reflected in the "Costs by Entry Point" section of the faucet crate's README.md.
666-
const EXPECTED_FAUCET_INSTALL_COST: u64 = 147_060_757_349;
666+
const EXPECTED_FAUCET_INSTALL_COST: u64 = 149_230_872_143;
667667
const EXPECTED_FAUCET_INSTALL_COST_ALT: u64 = 158_323_799_135;
668668

669-
const EXPECTED_FAUCET_SET_VARIABLES_COST: u64 = 79_640_385;
669+
const EXPECTED_FAUCET_SET_VARIABLES_COST: u64 = 79_455_975;
670670

671-
const EXPECTED_FAUCET_CALL_BY_INSTALLER_COST: u64 = 2_652_701_548;
671+
const EXPECTED_FAUCET_CALL_BY_INSTALLER_COST: u64 = 2_652_626_533;
672672

673-
const EXPECTED_FAUCET_CALL_BY_USER_COST: u64 = 2_558_410_901;
673+
const EXPECTED_FAUCET_CALL_BY_USER_COST: u64 = 2_558_318_531;
674674

675675
let installer_account = AccountHash::new([1u8; 32]);
676676
let user_account: AccountHash = AccountHash::new([2u8; 32]);

node/src/reactor/main_reactor/tests/transactions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub(crate) static CHARLIE_PUBLIC_KEY: Lazy<PublicKey> =
4646
// The amount of gas it takes to execute the generated do_nothing.wasm.
4747
// Passing this around as a constant is brittle and should be replaced
4848
// with a more sustainable solution in the future.
49-
const DO_NOTHING_WASM_EXECUTION_GAS: u64 = 116955_u64;
49+
const DO_NOTHING_WASM_EXECUTION_GAS: u64 = 117720_u64;
5050
pub(crate) const MIN_GAS_PRICE: u8 = 1;
5151
const CHAIN_NAME: &str = "single-transaction-test-net";
5252

smart_contracts/contracts/explorer/faucet/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ If you try to invoke the contract before these variables are set, then you'll ge
3535

3636
| feature | cost |
3737
|--------------------------|-------------------|
38-
| faucet install | `142_640_262_074` |
39-
| faucet set variables | `134_259_210` |
40-
| faucet call by installer | `2_879_594_967` |
41-
| faucet call by user | `2_615_492_876` |
38+
| faucet install | `1492_30_872_143` |
39+
| faucet set variables | `79_455_975` |
40+
| faucet call by installer | `265_26_265_33` |
41+
| faucet call by user | `2_558_318_531` |

smart_contracts/contracts/test/host-function-costs/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ fn measure_arg_size(bytes: usize) {
251251
.expect("should have key")
252252
.into();
253253

254-
let argument: Vec<u8> = iter::repeat(b'1').take(bytes).collect();
254+
let argument: Vec<u8> = iter::repeat_n(b'1', bytes).collect();
255255

256256
runtime::call_versioned_contract::<()>(
257257
contract_package_hash,

smart_contracts/rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2024-07-31
1+
nightly-2025-02-16

smart_contracts/sdk/src/contrib/cep18.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ use crate as casper_contract_sdk;
6666
use crate::{collections::Map, macros::blake2b256, prelude::*};
6767

6868
/// While the code consuming this contract needs to define further error variants, it can
69-
/// return those via the [`Error::User`] variant or equivalently via the [`ApiError::User`]
69+
/// return those via the `Error::User` variant or equivalently via the `ApiError::User`
7070
/// variant.
7171
#[derive(Debug, PartialEq, Eq)]
7272
#[casper]

0 commit comments

Comments
 (0)