t3rn_sdk_primitives/
lib.rs

1#![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
13/// A function pointer for getting local state
14pub const GET_STATE_FUNCTION_CODE: u32 = 1;
15/// A function pointer for submitting side effects
16pub const SUBMIT_FUNCTION_CODE: u32 = 2;
17/// A function pointer for posting execution signals
18pub const POST_SIGNAL_FUNCTION_CODE: u32 = 3;
19
20/// The max length in bytes that a selector name can be, e.g for Kusama, `ksm`
21pub const MAX_SELECTION_NAME_LENGTH: usize = 4;
22/// The maximum amount of parameters we allow users to pass to a function
23pub const MAX_PARAMETERS_IN_FUNCTION: usize = 16;
24
25pub const DEFAULT_MAX_STEPS_IN_EXECUTION: usize = 10;