Re-exports§
pub use storage::storage_clear;pub use storage::storage_get;pub use storage::storage_get_len;pub use storage::storage_set;pub use testnumbat_codec;pub use hex_call_data::*;pub use io::*;
Modules§
Macros§
- derive_
imports - Imports required for deriving serialization and TypeAbi.
- imports
- Getting all imports needed for a smart contract.
- non_
zero_ usize - Converts usize to NonZeroUsize or returns SCError.
- only_
owner - Very compact way of not allowing anyone but the owner to call a function.
- require
- Allows us to write Solidity style
require!(<condition>, <error_msg>)and avoid if statements. - sc_
error - Compact way of returning a static error message.
- sc_try
Deprecated - Equivalent to the
?operator for SCResult.