mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-29 23:19:49 +00:00
contracts: Reduce the API surface (#8359)
* contracts: Remove types and storage from the public interface * contracts: Remove current_schedule() getter * contracts: Improve documentation * Update README.md * Fix integration test
This commit is contained in:
1 parent
d343683ca9
commit
d98a3c7942
14 files changed
+256
-238
No files matched your search
@@ -519,7 +519,7 @@ pub mod benchmarking {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::{exec::Ext, Limits};
|
||||
use crate::{exec::Ext, schedule::Limits};
|
||||
use std::fmt;
|
||||
|
||||
impl fmt::Debug for PrefabWasmModule<crate::tests::Test> {
|
||||
|
||||
@@ -18,10 +18,11 @@
|
||||
//! Environment definition of the wasm smart-contract runtime.
|
||||
|
||||
use crate::{
|
||||
HostFnWeights, Config, CodeHash, BalanceOf, Error,
|
||||
Config, CodeHash, BalanceOf, Error,
|
||||
exec::{Ext, StorageKey, TopicOf},
|
||||
gas::{GasMeter, Token, ChargedAmount},
|
||||
wasm::env_def::ConvertibleToWasm,
|
||||
schedule::HostFnWeights,
|
||||
};
|
||||
use parity_wasm::elements::ValueType;
|
||||
use frame_support::{dispatch::DispatchError, ensure, traits::Get, weights::Weight};
|
||||
|
||||
Reference in new issue
Block a user