Contract class
Represents a contract entity: contractId, view methods, and change methods
Properties
- callerAccount ↔ Account
-
getter/setter pair
- contractId ↔ String
-
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
-
callFunction(
String functionName, String functionArgs, [double nearAmount = 0.0, int gasFees = Constants.defaultGas]) → Future< Map> - Calls contract mutate state functions
-
callFunctionWithDeposit(
String methodName, String methodArgs, Wallet wallet, double nearAmount, dynamic successURL, dynamic failureURL, dynamic approvalURL, [int gasFees = Constants.defaultGas]) → Future< Map> -
callViewFuntion(
String methodName, String methodArgs) → Future< Map> - Calls contract view functions
-
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