Builder

class Builder
Result of the swap, a SigningInput struct for the specific chain
Protobuf type TW.THORChainSwap.Proto.SwapOutput

Functions

Link copied to clipboard
.TW.Binance.Proto.SigningInput binance = 6;
Link copied to clipboard
.TW.Bitcoin.Proto.SigningInput bitcoin = 4;
Link copied to clipboard
.TW.Cosmos.Proto.SigningInput cosmos = 7;
Link copied to clipboard
Error code, filled in case of error, OK/empty on success
.TW.THORChainSwap.Proto.Error error = 3;
Link copied to clipboard
.TW.Ethereum.Proto.SigningInput ethereum = 5;
Link copied to clipboard
Source chain
.TW.THORChainSwap.Proto.Chain from_chain = 1;
Link copied to clipboard
Destination chain
.TW.THORChainSwap.Proto.Chain to_chain = 2;
Link copied to clipboard
open fun getBinance(): SigningInput
.TW.Binance.Proto.SigningInput binance = 6;
Link copied to clipboard
open fun getBitcoin(): SigningInput
.TW.Bitcoin.Proto.SigningInput bitcoin = 4;
Link copied to clipboard
open fun getCosmos(): SigningInput
.TW.Cosmos.Proto.SigningInput cosmos = 7;
Link copied to clipboard
open fun getError(): Error
Error code, filled in case of error, OK/empty on success
.TW.THORChainSwap.Proto.Error error = 3;
Link copied to clipboard
open fun getEthereum(): SigningInput
.TW.Ethereum.Proto.SigningInput ethereum = 5;
Link copied to clipboard
open fun getFromChain(): Chain
Source chain
.TW.THORChainSwap.Proto.Chain from_chain = 1;
Link copied to clipboard
Source chain
.TW.THORChainSwap.Proto.Chain from_chain = 1;
Link copied to clipboard
open fun getToChain(): Chain
Destination chain
.TW.THORChainSwap.Proto.Chain to_chain = 2;
Link copied to clipboard
open fun getToChainValue(): Int
Destination chain
.TW.THORChainSwap.Proto.Chain to_chain = 2;
Link copied to clipboard
open fun hasBinance(): Boolean
.TW.Binance.Proto.SigningInput binance = 6;
Link copied to clipboard
open fun hasBitcoin(): Boolean
.TW.Bitcoin.Proto.SigningInput bitcoin = 4;
Link copied to clipboard
open fun hasCosmos(): Boolean
.TW.Cosmos.Proto.SigningInput cosmos = 7;
Link copied to clipboard
open fun hasError(): Boolean
Error code, filled in case of error, OK/empty on success
.TW.THORChainSwap.Proto.Error error = 3;
Link copied to clipboard
open fun hasEthereum(): Boolean
.TW.Ethereum.Proto.SigningInput ethereum = 5;
Link copied to clipboard
open fun mergeBinance(value: SigningInput): THORChainSwap.SwapOutput.Builder
.TW.Binance.Proto.SigningInput binance = 6;
Link copied to clipboard
open fun mergeBitcoin(value: SigningInput): THORChainSwap.SwapOutput.Builder
.TW.Bitcoin.Proto.SigningInput bitcoin = 4;
Link copied to clipboard
open fun mergeCosmos(value: SigningInput): THORChainSwap.SwapOutput.Builder
.TW.Cosmos.Proto.SigningInput cosmos = 7;
Link copied to clipboard
Error code, filled in case of error, OK/empty on success
.TW.THORChainSwap.Proto.Error error = 3;
Link copied to clipboard
open fun mergeEthereum(value: SigningInput): THORChainSwap.SwapOutput.Builder
.TW.Ethereum.Proto.SigningInput ethereum = 5;
Link copied to clipboard
open fun setBinance(builderForValue: Builder): THORChainSwap.SwapOutput.Builder
open fun setBinance(value: SigningInput): THORChainSwap.SwapOutput.Builder
.TW.Binance.Proto.SigningInput binance = 6;
Link copied to clipboard
open fun setBitcoin(builderForValue: Builder): THORChainSwap.SwapOutput.Builder
open fun setBitcoin(value: SigningInput): THORChainSwap.SwapOutput.Builder
.TW.Bitcoin.Proto.SigningInput bitcoin = 4;
Link copied to clipboard
open fun setCosmos(builderForValue: Builder): THORChainSwap.SwapOutput.Builder
open fun setCosmos(value: SigningInput): THORChainSwap.SwapOutput.Builder
.TW.Cosmos.Proto.SigningInput cosmos = 7;
Link copied to clipboard
open fun setError(builderForValue: Builder): THORChainSwap.SwapOutput.Builder
Error code, filled in case of error, OK/empty on success
.TW.THORChainSwap.Proto.Error error = 3;
Link copied to clipboard
open fun setEthereum(builderForValue: Builder): THORChainSwap.SwapOutput.Builder
open fun setEthereum(value: SigningInput): THORChainSwap.SwapOutput.Builder
.TW.Ethereum.Proto.SigningInput ethereum = 5;
Link copied to clipboard
Source chain
.TW.THORChainSwap.Proto.Chain from_chain = 1;
Link copied to clipboard
Source chain
.TW.THORChainSwap.Proto.Chain from_chain = 1;
Link copied to clipboard
Destination chain
.TW.THORChainSwap.Proto.Chain to_chain = 2;
Link copied to clipboard
Destination chain
.TW.THORChainSwap.Proto.Chain to_chain = 2;