Trait CompilerContract

Source
pub trait CompilerContract:
    Serialize
    + Send
    + Sync
    + Debug
    + Clone
    + Eq
    + Sized {
    // Required methods
    fn abi_ref(&self) -> Option<&JsonAbi>;
    fn bin_ref(&self) -> Option<&BytecodeObject>;
    fn bin_runtime_ref(&self) -> Option<&BytecodeObject>;

    // Provided method
    fn as_compact_contract_ref(&self) -> CompactContractRef<'_> { ... }
}
Expand description

Represents a compiled contract

Required Methods§

Source

fn abi_ref(&self) -> Option<&JsonAbi>

Reference to contract ABI

Source

fn bin_ref(&self) -> Option<&BytecodeObject>

Source

fn bin_runtime_ref(&self) -> Option<&BytecodeObject>

Provided Methods§

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.

Implementations on Foreign Types§

Source§

impl CompilerContract for Contract

Implementors§