Crate multiversx_sc

Source

Re-exports§

pub use storage::storage_clear;
pub use storage::storage_get;
pub use storage::storage_get;
pub use storage::storage_get_len;
pub use storage::storage_set;
pub use storage::storage_set;
pub use multiversx_sc_derive as derive;
pub use multiversx_sc_codec as codec;
pub use multiversx_chain_core as chain_core;
pub use crate::codec::arrayvec;
pub use hex_literal;
pub use hex_call_data::*;

Modules§

abi
api
contract_base
derive_imports
Conveniently groups all imports required for deriving framework-related traits for types.
err_msg
external_view_contract
formatter
hex_call_data
imports
Conveniently groups all framework imports required by a smart contract form the framework.
io
log_util
non_zero_util
proxy_imports
Conveniently groups all imports required for generated proxies.
storage
tuple_util
types

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_ownerDeprecated
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.
require_oldDeprecated
Allows us to write Solidity style require!(<condition>, <error_msg>) and avoid if statements.
sc_errorDeprecated
Compact way of returning a static error message.
sc_format
sc_panic
sc_print
sc_tryDeprecated
Equivalent to the ? operator for SCResult.

Attribute Macros§

contract
module
proxy