Builder

class Builder
Message for HashTimeLock order
Protobuf type TW.Binance.Proto.HTLTOrder

Functions

Link copied to clipboard
open fun addAllAmount(values: Iterable<out Token>): Binance.HTLTOrder.Builder
amounts
repeated .TW.Binance.Proto.SendOrder.Token amount = 7;
Link copied to clipboard
open fun addAmount(builderForValue: Builder): Binance.HTLTOrder.Builder
open fun addAmount(value: Token): Binance.HTLTOrder.Builder
open fun addAmount(index: Int, builderForValue: Builder): Binance.HTLTOrder.Builder
open fun addAmount(index: Int, value: Token): Binance.HTLTOrder.Builder
amounts
repeated .TW.Binance.Proto.SendOrder.Token amount = 7;
Link copied to clipboard
amounts
repeated .TW.Binance.Proto.SendOrder.Token amount = 7;
Link copied to clipboard
set for cross-chain send
bool cross_chain = 10;
Link copied to clipboard
expected gained token on the other chain
string expected_income = 8;
Link copied to clipboard
signer address
bytes from = 1;
Link copied to clipboard
period expressed in block heights
int64 height_span = 9;
Link copied to clipboard
hash of a random number and timestamp, based on SHA256
bytes random_number_hash = 5;
Link copied to clipboard
source on other chain, optional
string recipient_other_chain = 3;
Link copied to clipboard
recipient on other chain, optional
string sender_other_chain = 4;
Link copied to clipboard
timestamp
int64 timestamp = 6;
Link copied to clipboard
recipient address
bytes to = 2;
Link copied to clipboard
open fun getAmount(index: Int): Token
amounts
repeated .TW.Binance.Proto.SendOrder.Token amount = 7;
Link copied to clipboard
open fun getAmountCount(): Int
amounts
repeated .TW.Binance.Proto.SendOrder.Token amount = 7;
Link copied to clipboard
open fun getAmountList(): List<Token>
amounts
repeated .TW.Binance.Proto.SendOrder.Token amount = 7;
Link copied to clipboard
set for cross-chain send
bool cross_chain = 10;
Link copied to clipboard
expected gained token on the other chain
string expected_income = 8;
Link copied to clipboard
open fun getExpectedIncomeBytes(): ByteString
expected gained token on the other chain
string expected_income = 8;
Link copied to clipboard
open fun getFrom(): ByteString
signer address
bytes from = 1;
Link copied to clipboard
open fun getHeightSpan(): Long
period expressed in block heights
int64 height_span = 9;
Link copied to clipboard
open fun getRandomNumberHash(): ByteString
hash of a random number and timestamp, based on SHA256
bytes random_number_hash = 5;
Link copied to clipboard
source on other chain, optional
string recipient_other_chain = 3;
Link copied to clipboard
open fun getRecipientOtherChainBytes(): ByteString
source on other chain, optional
string recipient_other_chain = 3;
Link copied to clipboard
recipient on other chain, optional
string sender_other_chain = 4;
Link copied to clipboard
open fun getSenderOtherChainBytes(): ByteString
recipient on other chain, optional
string sender_other_chain = 4;
Link copied to clipboard
open fun getTimestamp(): Long
timestamp
int64 timestamp = 6;
Link copied to clipboard
open fun getTo(): ByteString
recipient address
bytes to = 2;
Link copied to clipboard
amounts
repeated .TW.Binance.Proto.SendOrder.Token amount = 7;
Link copied to clipboard
open fun setAmount(index: Int, builderForValue: Builder): Binance.HTLTOrder.Builder
open fun setAmount(index: Int, value: Token): Binance.HTLTOrder.Builder
amounts
repeated .TW.Binance.Proto.SendOrder.Token amount = 7;
Link copied to clipboard
set for cross-chain send
bool cross_chain = 10;
Link copied to clipboard
expected gained token on the other chain
string expected_income = 8;
Link copied to clipboard
expected gained token on the other chain
string expected_income = 8;
Link copied to clipboard
open fun setFrom(value: ByteString): Binance.HTLTOrder.Builder
signer address
bytes from = 1;
Link copied to clipboard
period expressed in block heights
int64 height_span = 9;
Link copied to clipboard
open fun setRandomNumberHash(value: ByteString): Binance.HTLTOrder.Builder
hash of a random number and timestamp, based on SHA256
bytes random_number_hash = 5;
Link copied to clipboard
source on other chain, optional
string recipient_other_chain = 3;
Link copied to clipboard
source on other chain, optional
string recipient_other_chain = 3;
Link copied to clipboard
recipient on other chain, optional
string sender_other_chain = 4;
Link copied to clipboard
recipient on other chain, optional
string sender_other_chain = 4;
Link copied to clipboard
timestamp
int64 timestamp = 6;
Link copied to clipboard
open fun setTo(value: ByteString): Binance.HTLTOrder.Builder
recipient address
bytes to = 2;