Contract class

Implemented types
Implementers

Constructors

Contract({required Map params, dynamic messenger, Wallet? wallet, ContractStatus? status = ContractStatus.INITIALISED, bool? toDS = false})

Properties

callPayload Map
no setter
code String
getter/setter pair
contractAddress String?
getter/setter pair
deployPayload Map
no setter
hashCode int
The hash code for this object.
no setterinherited
init List<Map>?
getter/setter pair
messenger ↔ dynamic
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signer Account?
no setter
status ContractStatus?
getter/setter pair
toDS bool?
getter/setter pair
transaction Transaction?
getter/setter pair
version int?
getter/setter pair
wallet Wallet?
getter/setter pair

Methods

call({String? transition, dynamic params, BigInt? amount, int gasLimit = 1000, BigInt? gasPrice, Account? account, String? passphrase, int maxAttempts = 20, int interval = 1000, bool toDS = false}) Future<Contract>
confirmTx({int maxAttempts = 20, int interval = 1000}) Future<Contract>
deploy({int? gasLimit, BigInt? gasPrice, Account? account, String? passphrase, int maxAttempts = 20, int interval = 1000, bool toDS = false}) Future<Contract>
getState() Future<SuccessMiddleware?>
isDeployed() bool
isInitialised() bool
isRejected() bool
isSent() bool
isSigned() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendContract({Account? account, String? passphrase}) Future<Contract>
setCallPayload({String? transition, List<Map>? params, BigInt? amount, int? gasLimit, BigInt? gasPrice, bool toDS = false}) Contract
setDeployPayload({BigInt? gasPrice, int? gasLimit, bool toDS = false}) Contract
setInitParamsValues(List<Map> initParams, List<Map> arrayOfValues) Contract
setStatus(ContractStatus status) → void
signTxn({Account? account, String? passphrase}) Future<Contract>
toString() String
A string representation of this object.
inherited

Operators

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