Skip to content

Commit 7771516

Browse files
committed
Replace default off-chain engine with experimental one, remove old one
1 parent 2f86746 commit 7771516

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+418
-4533
lines changed

.gitlab-ci.yml

-27
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,6 @@ test:
257257
- cargo test --verbose --all-features --no-fail-fast --workspace
258258
- cargo test --verbose --all-features --no-fail-fast --workspace --doc
259259

260-
# Just needed as long as we have the `ink-experimental-engine` feature.
261-
# We do not invoke `--all-features` here -- this would imply the feature
262-
# `ink-experimental-engine`. So in order to still run the tests without the
263-
# experimental engine feature we need this command.
264-
- cargo test --verbose --features std --no-fail-fast --workspace
265-
266260
docs:
267261
stage: workspace
268262
<<: *docker-env
@@ -318,11 +312,6 @@ codecov:
318312
# RUSTFLAGS are the cause target cache can't be used here
319313
- cargo build --verbose --all-features --workspace
320314
- cargo test --verbose --all-features --no-fail-fast --workspace
321-
# Just needed as long as we have the `ink-experimental-engine` feature.
322-
# We must additionally run the coverage without `--all-features` here -- this
323-
# would imply the feature `ink-experimental-engine`. So in order to still run
324-
# the tests without the experimental engine feature we need this command.
325-
- cargo test --verbose --features std --no-fail-fast --workspace
326315
# coverage with branches
327316
- grcov . --binary-path ./target/debug/ --source-dir . --output-type lcov --llvm --branch
328317
--ignore-not-existing --ignore "/*" --ignore "tests/*" --output-path lcov-w-branch.info
@@ -352,22 +341,6 @@ examples-test:
352341
cargo test --verbose --manifest-path examples/delegator/${contract}/Cargo.toml;
353342
done
354343

355-
examples-test-experimental-engine:
356-
stage: examples
357-
<<: *docker-env
358-
<<: *test-refs
359-
needs:
360-
- job: clippy-std
361-
artifacts: false
362-
script:
363-
# We test only the examples for which the tests have already been migrated to
364-
# use the experimental engine.
365-
- cargo test --no-default-features --features std, ink-experimental-engine --verbose --manifest-path examples/erc20/Cargo.toml
366-
- cargo test --no-default-features --features std, ink-experimental-engine --verbose --manifest-path examples/erc1155/Cargo.toml
367-
- cargo test --no-default-features --features std, ink-experimental-engine --verbose --manifest-path examples/contract-terminate/Cargo.toml
368-
- cargo test --no-default-features --features std, ink-experimental-engine --verbose --manifest-path examples/contract-transfer/Cargo.toml
369-
370-
371344
examples-contract-build:
372345
stage: examples
373346
<<: *docker-env

crates/engine/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ readme = "README.md"
99
repository = "https://github.com/paritytech/ink"
1010
documentation = "https://docs.rs/ink_engine/"
1111
homepage = "https://www.parity.io/"
12-
description = "[ink!] Experimental off-chain environment for testing."
12+
description = "[ink!] Off-chain environment for testing."
1313
keywords = ["wasm", "parity", "webassembly", "blockchain", "edsl"]
1414
categories = ["no-std", "embedded"]
1515
include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"]

crates/env/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ std = [
5656
"ink_allocator/std",
5757
"ink_prelude/std",
5858
"ink_primitives/std",
59+
"ink_engine/std",
5960
"scale/std",
6061
"scale-info/std",
6162
"secp256k1",
@@ -69,5 +70,4 @@ std = [
6970
]
7071
# Enable contract debug messages via `debug_print!` and `debug_println!`.
7172
ink-debug = []
72-
ink-experimental-engine = ["ink_engine"]
7373
wee-alloc = ["ink_allocator/wee-alloc"]

crates/env/src/backend.rs

-6
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ impl ReturnFlags {
4444
}
4545
self
4646
}
47-
48-
/// Returns the underlying `u32` representation.
49-
#[cfg(not(feature = "ink-experimental-engine"))]
50-
pub(crate) fn into_u32(self) -> u32 {
51-
self.value
52-
}
5347
}
5448

5549
/// The flags used to change the behavior of a contract call.

0 commit comments

Comments
 (0)