Asset

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

Types

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

Functions

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 getDefaultInstance(): Asset
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
Link copied to clipboard
open fun parseDelimitedFrom(input: InputStream): Asset
open fun parseDelimitedFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): Asset
Link copied to clipboard
open fun parseFrom(data: Array<Byte>): Asset
open fun parseFrom(data: ByteString): Asset
open fun parseFrom(input: CodedInputStream): Asset
open fun parseFrom(input: InputStream): Asset
open fun parseFrom(data: ByteBuffer): Asset
open fun parseFrom(data: Array<Byte>, extensionRegistry: ExtensionRegistryLite): Asset
open fun parseFrom(data: ByteString, extensionRegistry: ExtensionRegistryLite): Asset
open fun parseFrom(input: CodedInputStream, extensionRegistry: ExtensionRegistryLite): Asset
open fun parseFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): Asset
open fun parseFrom(data: ByteBuffer, extensionRegistry: ExtensionRegistryLite): Asset
Link copied to clipboard
open fun parser(): Parser<Asset>

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard