ExchangeTransactionContract class

Participate the transaction of exchange pair

Inheritance

Constructors

ExchangeTransactionContract({required TronAddress ownerAddress, BigInt? exchangeId, List<int>? tokenId, BigInt? quant, BigInt? expected})
Create a new ExchangeTransactionContract instance with specified parameters.
ExchangeTransactionContract.deserialize(List<int> bytes)
factory
ExchangeTransactionContract.fromJson(Map<String, dynamic> json)
Create a new ExchangeTransactionContract instance by parsing a JSON map.
factory

Properties

contractType TransactionContractType
no setteroverride
exchangeId BigInt?
Transaction Pair ID
final
expected BigInt?
Expected quantity of the token being purchased.
final
fieldIds List<int>
List of field IDs corresponding to the values.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
ownerAddress TronAddress
Trader's wallet address
final
quant BigInt?
Quantity of the token being sold. If TRX being sold, need to express in units of SUN.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toHex String
Gets the hexadecimal representation of the protocol buffer data.
no setterinherited
tokenId List<int>?
ID of the sold token
final
typeURL String
no setterinherited
values List
List of dynamic values to be encoded.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBuffer() List<int>
Converts the protocol buffer data to a byte buffer.
inherited
toJson() Map<String, dynamic>
Convert the ExchangeTransactionContract object to a JSON representation.
override
toString() String
Convert the ExchangeTransactionContract object to its string representation.
override

Operators

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