multiversx_sc::contract_base

Trait ContractAbiProvider

Source
pub trait ContractAbiProvider {
    type Api: VMApi;

    // Required method
    fn abi() -> ContractAbi;
}
Expand description

Required by contract ABI generators. Provides the same associated types as the ContractBase, so that associated types that show up in arguments and results match.

Required Associated Types§

Required Methods§

Source

fn abi() -> ContractAbi

Associated function that provides the contract or module ABI. Since ABI generation is static, no state from the contract is required.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§