common

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AED Fiat = "AED"
	AFN      = "AFN"
	ALL      = "ALL"
	AMD      = "AMD"
	ANG      = "ANG"
	AOA      = "AOA"
	ARS      = "ARS"
	AUD      = "AUD"
	AWG      = "AWG"
	AZN      = "AZN"
	BAM      = "BAM"
	BBD      = "BBD"
	BDT      = "BDT"
	BGN      = "BGN"
	BHD      = "BHD"
	BIF      = "BIF"
	BMD      = "BMD"
	BND      = "BND"
	BOB      = "BOB"
	BRL      = "BRL"
	BSD      = "BSD"
	BTN      = "BTN"
	BWP      = "BWP"
	BYN      = "BYN"
	BYR      = "BYR"
	BZD      = "BZD"
	CAD      = "CAD"
	CDF      = "CDF"
	CHF      = "CHF"
	CLF      = "CLF"
	CLP      = "CLP"
	CNY      = "CNY"
	COP      = "COP"
	CRC      = "CRC"
	CUC      = "CUC"
	CUP      = "CUP"
	CVE      = "CVE"
	CZK      = "CZK"
	DJF      = "DJF"
	DKK      = "DKK"
	DOP      = "DOP"
	DZD      = "DZD"
	EGP      = "EGP"
	ERN      = "ERN"
	ETB      = "ETB"
	EUR      = "EUR"
	FJD      = "FJD"
	FKP      = "FKP"
	GBP      = "GBP"
	GEL      = "GEL"
	GGP      = "GGP"
	GHS      = "GHS"
	GIP      = "GIP"
	GMD      = "GMD"
	GNF      = "GNF"
	GTQ      = "GTQ"
	GYD      = "GYD"
	HKD      = "HKD"
	HNL      = "HNL"
	HRK      = "HRK"
	HTG      = "HTG"
	HUF      = "HUF"
	IDR      = "IDR"
	ILS      = "ILS"
	IMP      = "IMP"
	INR      = "INR"
	IQD      = "IQD"
	IRR      = "IRR"
	ISK      = "ISK"
	JEP      = "JEP"
	JMD      = "JMD"
	JOD      = "JOD"
	JPY      = "JPY"
	KES      = "KES"
	KGS      = "KGS"
	KHR      = "KHR"
	KMF      = "KMF"
	KPW      = "KPW"
	KRW      = "KRW"
	KWD      = "KWD"
	KYD      = "KYD"
	KZT      = "KZT"
	LAK      = "LAK"
	LBP      = "LBP"
	LKR      = "LKR"
	LRD      = "LRD"
	LSL      = "LSL"
	LTL      = "LTL"
	LVL      = "LVL"
	LYD      = "LYD"
	MAD      = "MAD"
	MDL      = "MDL"
	MGA      = "MGA"
	MKD      = "MKD"
	MMK      = "MMK"
	MNT      = "MNT"
	MOP      = "MOP"
	MRO      = "MRO"
	MUR      = "MUR"
	MVR      = "MVR"
	MWK      = "MWK"
	MXN      = "MXN"
	MYR      = "MYR"
	MZN      = "MZN"
	NAD      = "NAD"
	NGN      = "NGN"
	NIO      = "NIO"
	NOK      = "NOK"
	NPR      = "NPR"
	NZD      = "NZD"
	OMR      = "OMR"
	PAB      = "PAB"
	PEN      = "PEN"
	PGK      = "PGK"
	PHP      = "PHP"
	PKR      = "PKR"
	PLN      = "PLN"
	PYG      = "PYG"
	QAR      = "QAR"
	RON      = "RON"
	RSD      = "RSD"
	RUB      = "RUB"
	RWF      = "RWF"
	SAR      = "SAR"
	SBD      = "SBD"
	SCR      = "SCR"
	SDG      = "SDG"
	SEK      = "SEK"
	SGD      = "SGD"
	SHP      = "SHP"
	SLL      = "SLL"
	SOS      = "SOS"
	SRD      = "SRD"
	STD      = "STD"
	SVC      = "SVC"
	SYP      = "SYP"
	SZL      = "SZL"
	THB      = "THB"
	TJS      = "TJS"
	TMT      = "TMT"
	TND      = "TND"
	TOP      = "TOP"
	TRY      = "TRY"
	TTD      = "TTD"
	TWD      = "TWD"
	TZS      = "TZS"
	UAH      = "UAH"
	UGX      = "UGX"
	USD      = "USD"
	UYU      = "UYU"
	UZS      = "UZS"
	VEF      = "VEF"
	VND      = "VND"
	VUV      = "VUV"
	WST      = "WST"
	XAF      = "XAF"
	XAG      = "XAG"
	XAU      = "XAU"
	XCD      = "XCD"
	XDR      = "XDR"
	XOF      = "XOF"
	XPF      = "XPF"
	YER      = "YER"
	ZAR      = "ZAR"
	ZMK      = "ZMK"
	ZMW      = "ZMW"
	ZWL      = "ZWL"
)
View Source
const (
	PAYMENT                OperationType = "PAYMENT"
	WITHDRAWAL                           = "WITHDRAWAL"
	BLOCKCHAIN_TRANSACTION               = "BLOCKCHAIN_TRANSACTION"
	EXCHANGE                             = "EXCHANGE"
	//FAILED = "FAILED" // TO-DO
	DEPOSIT = "DEPOSIT"
	MINT    = "MINT"
	REVOKE  = "REVOKE"
)
View Source
const (
	ACCOUNT_BALANCE_LIMIT                   SubscriptionType = "ACCOUNT_BALANCE_LIMIT"
	OFFCHAIN_WITHDRAWAL                                      = "OFFCHAIN_WITHDRAWAL"
	TRANSACTION_HISTORY_REPORT                               = "TRANSACTION_HISTORY_REPORT"
	ACCOUNT_INCOMING_BLOCKCHAIN_TRANSACTION                  = "ACCOUNT_INCOMING_BLOCKCHAIN_TRANSACTION"
	COMPLETE_BLOCKCHAIN_TRANSACTION                          = "COMPLETE_BLOCKCHAIN_TRANSACTION"
)
View Source
const (
	FAILED                  TransactionType = "FAILED"
	DEBIT_PAYMENT                           = "DEBIT_PAYMENT"
	CREDIT_PAYMENT                          = "CREDIT_PAYMENT"
	CREDIT_DEPOSIT                          = "CREDIT_DEPOSIT"
	DEBIT_WITHDRAWAL                        = "DEBIT_WITHDRAWAL"
	CANCEL_WITHDRAWAL                       = "CANCEL_WITHDRAWAL"
	DEBIT_OUTGOING_PAYMENT                  = "DEBIT_OUTGOING_PAYMENT"
	CREDIT_INCOMING_PAYMENT                 = "CREDIT_INCOMING_PAYMENT"
	EXCHANGE_BUY                            = "EXCHANGE_BUY"
	EXCHANGE_SELL                           = "EXCHANGE_SELL"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Balance

type Balance struct {
	Balance decimal.Decimal
}

type BlockHash

type BlockHash struct {
	Hash string
}

type Fiat

type Fiat string

func (Fiat) IsValid

func (c Fiat) IsValid() (*string, bool)

func (Fiat) String

func (c Fiat) String() (*string, error)

type Id

type Id struct {
	Id string
}

type OperationType

type OperationType string

type Rate

type Rate struct {
	Id        string
	Value     string
	BasePair  Fiat
	Timestamp uint64
	Source    string
}

type Status

type Status struct {
	Status string
}

type SubscriptionType

type SubscriptionType string

type TransactionHash

type TransactionHash struct {
	/**
	 * TX hash of successful transaction.
	 * @type {string}
	 * @memberof TransactionHash
	 */
	TxId string
}

func (TransactionHash) New

func (tx TransactionHash) New(txId string) *TransactionHash

type TransactionType

type TransactionType string

type TxHash

type TxHash struct {

	/**
	 * TX hash of successful transaction.
	 * @type {string}
	 * @memberof TxHash
	 */
	TxId string

	/**
	 * Whethet withdrawal was completed in Tatum's internal ledger. If not, it must be done manually.
	 * @type {boolean}
	 * @memberof TxHash
	 */
	Completed bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL