t3rn_sdk_primitives/
lib.rs1#![cfg_attr(not(feature = "std"), no_std)]
2
3use codec::Error as CodecError;
4
5pub use scale_info::prelude::{boxed::Box, collections::BTreeMap, fmt::Debug, vec::Vec};
6
7pub mod error;
8pub mod signal;
9pub mod state;
10pub mod storage;
11pub mod xc;
12
13pub const GET_STATE_FUNCTION_CODE: u32 = 1;
15pub const SUBMIT_FUNCTION_CODE: u32 = 2;
17pub const POST_SIGNAL_FUNCTION_CODE: u32 = 3;
19
20pub const MAX_SELECTION_NAME_LENGTH: usize = 4;
22pub const MAX_PARAMETERS_IN_FUNCTION: usize = 16;
24
25pub const DEFAULT_MAX_STEPS_IN_EXECUTION: usize = 10;