pub trait ContractWithAbi {
    type Storage;

    // Required method
    fn abi(&self, include_modules: bool) -> ContractAbi;
}
Expand description

ContractWithAbi is the means by which a contract can provide an ABI.

Required Associated Types§

source

type Storage

The generated ABI generation code sometimes references the contract storage manager type, e.g. with storage mappers.

Required Methods§

source

fn abi(&self, include_modules: bool) -> ContractAbi

Generate a raw ABI object. Contracts would not call this function, so it never ends up in the wasm bytecode. It is, however, still no_std.

Implementors§