Re-exports

pub use elrond_wasm_derive as derive;
pub use elrond_codec::arrayvec;
pub use elrond_codec;
pub use hex_call_data::*;
pub use hex_literal;

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_ownerDeprecated

Very 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_tryDeprecated

Equivalent to the ? operator for SCResult.

Functions

Useful for storage mappers. Also calls to it generated by macro.

Useful for storage mappers. Also calls to it generated by macro.

Attribute Macros