Skip to content

Commit c53aef5

Browse files
committed
use pallet-contracts crate
1 parent be1d901 commit c53aef5

10 files changed

+201
-606
lines changed

Cargo.lock

+175-590
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ xxhash-rust = { version = "0.8" }
8383
const_env = { version = "0.1"}
8484

8585
# Substrate dependencies
86-
pallet-contracts-primitives = { version = "=29.0.0", default-features = false }
86+
pallet-contracts = { version = "27.0.0", default-features = false }
8787
pallet-contracts-uapi = { package = "ink-pallet-contracts-uapi", version = "=6.0.0", default-features = false }
88-
sp-core = { version = "=26.0.0", default-features = false }
89-
sp-keyring = { version = "=29.0.0", default-features = false }
90-
sp-runtime = { version = "=29.0.0", default-features = false }
91-
sp-weights = { version = "=27.0.0", default-features = false }
88+
sp-core = { version = "28.0.0", default-features = false }
89+
sp-keyring = { version = "31.0.0", default-features = false }
90+
sp-runtime = { version = "31.0.1", default-features = false }
91+
sp-weights = { version = "27.0.0", default-features = false }
9292

9393
# Local dependencies
9494
ink = { version = "=5.0.0-rc.1", path = "crates/ink", default-features = false }

crates/e2e/Cargo.toml

+12-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ wasm-instrument = { workspace = true }
4040
which = { workspace = true }
4141

4242
# Substrate
43-
pallet-contracts-primitives = { workspace = true }
43+
pallet-contracts = { workspace = true }
4444
sp-core = { workspace = true }
4545
sp-keyring = { workspace = true }
4646
sp-runtime = { workspace = true }
@@ -52,7 +52,17 @@ scale-info = { workspace = true, features = ["derive"] }
5252

5353
[features]
5454
default = ["std"]
55-
std = []
55+
std = [
56+
"impl-serde/std",
57+
"pallet-contracts/std",
58+
"scale/std",
59+
"scale-info/std",
60+
"serde/std",
61+
"sp-core/std",
62+
"sp-runtime/std",
63+
"sp-weights/std",
64+
"ink_e2e_macro/std"
65+
]
5666
drink = [
5767
"dep:drink",
5868
"subxt-metadata",

crates/e2e/macro/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ quote = { workspace = true }
3232
temp-env = "0.3.6"
3333

3434
[features]
35+
std = []
3536
drink = []

crates/e2e/src/contract_results.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use ink_primitives::{
2121
ConstructorResult,
2222
MessageResult,
2323
};
24-
use pallet_contracts_primitives::{
24+
use pallet_contracts::{
2525
CodeUploadResult,
2626
ContractExecResult,
2727
ContractInstantiateResult,

crates/e2e/src/drink_client.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,15 @@ use drink::{
4242
RuntimeCall,
4343
Sandbox,
4444
SandboxConfig,
45+
Weight,
4546
DEFAULT_GAS_LIMIT,
4647
};
4748

48-
use sp_weigths::Weight;
49-
50-
use pallet_contracts_primitives::ContractResult;
49+
use pallet_contracts::ContractResult;
5150

5251
use ink_env::Environment;
5352
use jsonrpsee::core::async_trait;
54-
use pallet_contracts_primitives::{
53+
use pallet_contracts::{
5554
CodeUploadReturnValue,
5655
ContractInstantiateResult,
5756
InstantiateReturnValue,

crates/e2e/src/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
use pallet_contracts_primitives::ContractExecResult;
15+
use pallet_contracts::ContractExecResult;
1616

1717
use std::fmt;
1818

crates/e2e/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ use ink_env::{
8585
ContractEnv,
8686
Environment,
8787
};
88-
use pallet_contracts_primitives::{
88+
use pallet_contracts::{
8989
ContractExecResult,
9090
ContractInstantiateResult,
9191
};

crates/e2e/src/subxt_client.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ use ink_env::{
5050
Environment,
5151
};
5252
use jsonrpsee::core::async_trait;
53-
use pallet_contracts_primitives::ContractResult;
53+
use pallet_contracts::ContractResult;
5454
use scale::{
5555
Decode,
5656
Encode,

crates/e2e/src/xts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use super::{
2222
use ink_env::Environment;
2323

2424
use core::marker::PhantomData;
25-
use pallet_contracts_primitives::CodeUploadResult;
25+
use pallet_contracts::CodeUploadResult;
2626
use sp_core::H256;
2727
use subxt::{
2828
backend::{

0 commit comments

Comments
 (0)