Crate oasis_runtime_sdk_macros

Source

Macros§

version_from_cargo
Constructs an oasis_sdk::core::common::version::Version from the Cargo.toml version.

Attribute Macros§

evm_contract_address
A helper attribute for #[sdk_derive(...)]. It doesn’t do anything on its own; it only marks the function within a contract implementation that returns its address.
evm_method
A helper attribute for #[sdk_derive(...)]. It doesn’t do anything on its own; it only marks functions that represent contract methods.
handler
A helper attribute for #[sdk_derive(...)]. It doesn’t do anyting on its own; it only marks functions that represent a paratime method handler. The permitted forms are:
migration
A helper attribute for #[sdk_derive(...)]. It doesn’t do anything on its own; it only marks functions that represent a module state migration.
sdk_derive
Derives traits from a non-trait impl block (rather than from a struct).

Derive Macros§

Error
Derives the Error trait on an enum.
Event
Derives the Event trait on an enum.
EvmError
Derives the EvmError trait on an enum.
EvmEvent
Derives the EvmEvent trait on a struct.