mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 07:01:05 +00:00
34 lines
875 B
Rust
34 lines
875 B
Rust
#![cfg_attr(feature = "without-std", no_std)]
|
|
#![cfg_attr(feature = "strict", deny(warnings))]
|
|
|
|
#[macro_use]
|
|
extern crate runtime_support;
|
|
|
|
#[cfg(test)]
|
|
extern crate rustc_hex;
|
|
|
|
mod codec;
|
|
#[macro_use]
|
|
mod support;
|
|
mod runtime;
|
|
pub use codec::{endiansensitive, streamreader, joiner, slicable, keyedvec};
|
|
pub use support::{primitives, function, environment, storage, storagevec};
|
|
#[cfg(test)]
|
|
pub use support::{testing, statichex};
|
|
|
|
use runtime_support::Vec;
|
|
use slicable::Slicable;
|
|
use primitives::{Block, UncheckedTransaction};
|
|
|
|
pub fn execute_block(input: Vec<u8>) -> Vec<u8> {
|
|
runtime::system::execute_block(Block::from_slice(&input).unwrap());
|
|
Vec::new()
|
|
}
|
|
|
|
pub fn execute_transaction(input: Vec<u8>) -> Vec<u8> {
|
|
runtime::system::execute_transaction(&UncheckedTransaction::from_slice(&input).unwrap());
|
|
Vec::new()
|
|
}
|
|
|
|
impl_stubs!(execute_block, execute_transaction);
|