Contract class
Properties
- contractMeta ↔ Map
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getAbi(
String name) → Map -
Get ABI by
name
. Throws exception if no abi with this name exists for this contract -
getAbis(
) → List< Map> - Get list of ABIs of this contract
-
getBytecode(
) → Uint8List - Get bytecode of this contract
-
getContractName(
) → String? - Get the smart contract Name or null
-
getEventBySignature(
Uint8List sig) → ThorEvent -
getEvents(
) → List< ThorEvent> -
getFunctionByName(
String name) → ThorFunction -
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
Static Methods
-
fromFilePath(
String path) → Contract -
get contract from json file located at
path
-
fromJsonString(
String jsonString) → Contract