Crate dharitri_wasm
source ·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 dharitri_wasm_derive as derive;pub use dharitri_codec::arrayvec;pub use dharitri_codec;pub use hex_literal;pub use hex_call_data::*;pub use io::*;
Modules§
Macros§
- Imports required for deriving serialization and TypeAbi.
- Getting all imports needed for a smart contract.
- Converts usize to NonZeroUsize or returns SCError.
- only_ownerDeprecatedVery compact way of not allowing anyone but the owner to call a function.
- Allows us to write Solidity style
require!(<condition>, <error_msg>)and avoid if statements. - Allows us to write Solidity style
require!(<condition>, <error_msg>)and avoid if statements. - Compact way of returning a static error message.
- sc_tryDeprecatedEquivalent to the
?operator for SCResult.
Structs§
- A pointer type that uniquely owns a heap allocation of type
T. - A UTF-8–encoded, growable string.
- A contiguous growable array type, written as
Vec<T>, short for ‘vector’.