Builder

class Builder
Represents an asset.  Examples: BNB.BNB, RUNE.RUNE, BNB.RUNE-67C
Protobuf type TW.THORChainSwap.Proto.Asset

Functions

Link copied to clipboard
Chain ID
.TW.THORChainSwap.Proto.Chain chain = 1;
Link copied to clipboard
Symbol
string symbol = 2;
Link copied to clipboard
The ID of the token (blockchain-specific format)
string token_id = 3;
Link copied to clipboard
open fun getChain(): Chain
Chain ID
.TW.THORChainSwap.Proto.Chain chain = 1;
Link copied to clipboard
open fun getChainValue(): Int
Chain ID
.TW.THORChainSwap.Proto.Chain chain = 1;
Link copied to clipboard
open fun getSymbol(): String
Symbol
string symbol = 2;
Link copied to clipboard
open fun getSymbolBytes(): ByteString
Symbol
string symbol = 2;
Link copied to clipboard
open fun getTokenId(): String
The ID of the token (blockchain-specific format)
string token_id = 3;
Link copied to clipboard
open fun getTokenIdBytes(): ByteString
The ID of the token (blockchain-specific format)
string token_id = 3;
Link copied to clipboard
open fun setChain(value: Chain): THORChainSwap.Asset.Builder
Chain ID
.TW.THORChainSwap.Proto.Chain chain = 1;
Link copied to clipboard
Chain ID
.TW.THORChainSwap.Proto.Chain chain = 1;
Link copied to clipboard
Symbol
string symbol = 2;
Link copied to clipboard
open fun setSymbolBytes(value: ByteString): THORChainSwap.Asset.Builder
Symbol
string symbol = 2;
Link copied to clipboard
The ID of the token (blockchain-specific format)
string token_id = 3;
Link copied to clipboard
open fun setTokenIdBytes(value: ByteString): THORChainSwap.Asset.Builder
The ID of the token (blockchain-specific format)
string token_id = 3;