DeployedContract class

Helper class that defines a contract with a known ABI that has been deployed on a Ethereum blockchain.

A future version of this library will automatically generate subclasses of this based on the abi given, making it easier to call methods in contracts.

Constructors

DeployedContract(ContractAbi abi, EthereumAddress address)

Properties

abi ContractAbi
The lower-level ABI of this contract used to encode data to send in transactions when calling this contract.
final
address EthereumAddress
The Ethereum address at which this contract is reachable.
final
constructors Iterable<ContractFunction>
Finds all methods that are constructors of this contract.
no setter
events List<ContractEvent>
A list of all events defined in the contract ABI.
no setter
functions List<ContractFunction>
Get a list of all functions defined by the contract ABI.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

event(String name) ContractEvent
Finds the event defined by the contract that has the matching name.
findFunctionsByName(String name) Iterable<ContractFunction>
Finds all external or public functions defined by the contract that have the given name. As solidity supports function overloading, this will return a list as only a combination of name and types will uniquely find a function.
function(String name) ContractFunction
Finds the external or public function defined by the contract that has the provided name.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited