ExchangeInjectContract class

Injects capital into the transaction. The purpose of injecting capital into the trading pair is to prevent price fluctuation from affecting the transaction.

Inheritance

Constructors

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

Properties

contractType TransactionContractType
no setteroverride
exchangeId BigInt?
Exchange id
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
Account address
final
quant BigInt?
The amount of tokens to be injected
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>?
The id of the token to be injected
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 ExchangeInjectContract object to a JSON representation.
override
toString() String
Convert the ExchangeInjectContract object to its string representation.
override

Operators

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