Skip to content

Commit 4f2df7b

Browse files
committed
refactor: cleanup
1 parent 1058eb0 commit 4f2df7b

File tree

5 files changed

+17
-44
lines changed

5 files changed

+17
-44
lines changed

Cargo.lock

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

crates/e2e/Cargo.toml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,13 @@ ink_revive_types = { workspace = true, default-features = true }
2424
cargo_metadata = { workspace = true }
2525
contract-build = { workspace = true }
2626
funty = { workspace = true }
27-
impl-serde = { workspace = true }
2827
jsonrpsee = { workspace = true, features = ["ws-client"] }
2928
serde = { workspace = true, features = ["derive"] }
30-
serde_json = { workspace = true }
3129
tokio = { workspace = true, features = ["rt-multi-thread"] }
3230
tracing = { workspace = true }
3331
tracing-subscriber = { workspace = true, features = ["env-filter"] }
3432
scale = { workspace = true }
3533
subxt = { workspace = true }
36-
subxt-metadata = { workspace = true, optional = true }
3734
subxt-signer = { workspace = true, features = ["subxt", "sr25519", "unstable-eth"] }
3835
thiserror = { workspace = true }
3936
which = { workspace = true }
@@ -48,25 +45,19 @@ sp-weights = { workspace = true }
4845
regex = "1.11.2"
4946
itertools = "0.14.0"
5047

51-
sp-io = { git = "https://github.com/use-ink/polkadot-sdk.git", rev = "a71ec19a94702ea71767ba5ac97603ea6c6305c1", default-features = false, features = ["disable_panic_handler", "disable_oom", "disable_allocator"] }
52-
sp-runtime-interface = { git = "https://github.com/use-ink/polkadot-sdk.git", rev = "a71ec19a94702ea71767ba5ac97603ea6c6305c1", default-features = false, features = ["disable_target_static_assertions"] }
53-
5448
[dev-dependencies]
5549
# Required for the doctest of `MessageBuilder::call`
5650
scale-info = { workspace = true, features = ["derive"] }
5751

5852
[features]
5953
default = [ "std" ]
6054
std = [
61-
"impl-serde/std",
6255
"scale-info/std",
6356
"scale/std",
6457
"serde/std",
6558
"sp-core/std",
6659
"sp-keyring/std",
6760
"sp-runtime/std",
68-
"sp-io/std",
69-
"sp-runtime-interface/std",
7061
"sp-weights/std",
7162
"ink_e2e_macro/std",
7263
"ink_revive_types/std",

crates/e2e/macro/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ darling = { workspace = true }
2323
ink_ir = { workspace = true, default-features = true }
2424
derive_more = { workspace = true, features = ["from"] }
2525
tracing-subscriber = { workspace = true, features = ["env-filter"] }
26-
serde_json = { workspace = true }
2726
syn = { workspace = true }
2827
proc-macro2 = { workspace = true }
2928
quote = { workspace = true }

crates/sandbox/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ jsonrpsee = { workspace = true, features = ["ws-client"] }
3232
thiserror = { workspace = true }
3333
paste = { workspace = true }
3434
scale-info = { workspace = true }
35-
subxt = { workspace = true }
3635
subxt-metadata = { workspace = true }
37-
subxt-signer = { workspace = true, features = ["subxt", "sr25519", "unstable-eth"] }
3836

3937
[features]
4038
default = [

crates/sandbox/src/client.rs

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ use ink_e2e::{
6161
keypair_to_account,
6262
log_error,
6363
salt,
64+
subxt::{
65+
self,
66+
dynamic::Value,
67+
tx::Payload,
68+
},
69+
subxt_signer::sr25519::{
70+
Keypair,
71+
dev,
72+
},
6473
};
6574
use ink_env::{
6675
Environment,
@@ -90,22 +99,6 @@ use std::{
9099
marker::PhantomData,
91100
path::PathBuf,
92101
};
93-
pub use subxt::{
94-
self,
95-
backend::rpc::RpcClient,
96-
};
97-
use subxt::{
98-
dynamic::Value,
99-
tx::Payload,
100-
};
101-
pub use subxt_signer::{
102-
self,
103-
sr25519::{
104-
self,
105-
Keypair,
106-
dev::*,
107-
},
108-
};
109102

110103
type BalanceOf<R> = <R as pallet_balances::Config>::Balance;
111104
type ContractsBalanceOf<R> =
@@ -143,14 +136,14 @@ where
143136
const TOKENS: u128 = 1_000_000_000_000_000;
144137

145138
let accounts = [
146-
subxt_signer::sr25519::dev::alice(),
147-
subxt_signer::sr25519::dev::bob(),
148-
subxt_signer::sr25519::dev::charlie(),
149-
subxt_signer::sr25519::dev::dave(),
150-
subxt_signer::sr25519::dev::eve(),
151-
subxt_signer::sr25519::dev::ferdie(),
152-
subxt_signer::sr25519::dev::one(),
153-
subxt_signer::sr25519::dev::two(),
139+
dev::alice(),
140+
dev::bob(),
141+
dev::charlie(),
142+
dev::dave(),
143+
dev::eve(),
144+
dev::ferdie(),
145+
dev::one(),
146+
dev::two(),
154147
]
155148
.map(|kp| kp.public_key().0)
156149
.map(From::from);

0 commit comments

Comments
 (0)