Skip to content

Commit d47e00c

Browse files
authored
Update api to enable custom runtime (#99)
1 parent 4255618 commit d47e00c

File tree

26 files changed

+423
-402
lines changed

26 files changed

+423
-402
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ homepage = "https://github.com/Cardinal-Cryptography/drink"
1818
license = "Apache-2.0"
1919
readme = "README.md"
2020
repository = "https://github.com/Cardinal-Cryptography/drink"
21-
version = "0.8.6"
21+
version = "0.9.0"
2222

2323
[workspace.dependencies]
2424
anyhow = { version = "1.0.71" }
@@ -57,5 +57,5 @@ sp-runtime-interface = { version = "24.0.0" }
5757

5858
# Local dependencies
5959

60-
drink = { version = "0.8.6", path = "drink" }
61-
drink-test-macro = { version = "0.8.6", path = "drink/test-macro" }
60+
drink = { version = "0.9.0", path = "drink" }
61+
drink-test-macro = { version = "0.9.0", path = "drink/test-macro" }

drink-cli/src/app_state/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
use std::{env, path::PathBuf};
22

33
pub use contracts::{Contract, ContractIndex, ContractRegistry};
4-
use drink::{
5-
runtime::{MinimalRuntime, Runtime},
6-
session::Session,
7-
Weight, DEFAULT_GAS_LIMIT,
8-
};
4+
use drink::{runtime::MinimalRuntime, session::Session, SandboxConfig, Weight, DEFAULT_GAS_LIMIT};
95
use sp_core::crypto::AccountId32;
106
pub use user_input::UserInput;
117

drink-cli/src/app_state/print.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use drink::contract_api::decode_debug_buffer;
1+
use drink::contracts_api::decode_debug_buffer;
22
use pallet_contracts::ContractResult;
33
use ratatui::{
44
style::{Color, Modifier, Style},

drink/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ use parity_scale_codec::{Decode, Encode};
2929
/// Export pallets that are used in the minimal runtime.
3030
pub use {frame_support, frame_system, pallet_balances, pallet_contracts, pallet_timestamp};
3131

32+
pub use crate::runtime::minimal::{self, MinimalRuntime};
3233
use crate::{
33-
errors::MessageResult,
34-
mock::MockRegistry,
35-
runtime::{pallet_contracts_debugging::InterceptingExtT, *},
34+
errors::MessageResult, mock::MockRegistry,
35+
runtime::pallet_contracts_debugging::InterceptingExtT,
3636
};
3737

3838
/// Alias for `frame-system`'s `RuntimeCall` type.

0 commit comments

Comments
 (0)