Struct enigma_tools_u::web3_utils::enigma_contract::EnigmaContract[][src]

pub struct EnigmaContract {
    pub web3: Web3<Http>,
    pub contract: Contract<Http>,
    pub account: Address,
    pub eloop: EventLoopHandle,
    pub abi_path: String,
    pub address_str: String,
    pub account_str: String,
    pub url: String,
    pub abi_str: String,
}

Main interface to the enigma contract functions on ethereum.

Fields

The ethereum account that interacts with the contract.

Enigma contract address

Ethereum network url

Methods

impl EnigmaContract
[src]

create a new Enigma contract.

Fetch the Enigma contract deployed on Ethereum using an HTTP Web3 provider

connect to web3 and Fetch the Enigma contract deployed on Ethereum using an HTTP Web3 provider

given a path load EnigmaContract.json and extract the ABI

given a path load contract bytecode

contract function, register as a new worker.

connect to the ethereum network

Auto Trait Implementations