Documentation ¶
Index ¶
- Variables
- func GenerateBCHAddress(walletType string) (string, error)
- func GenerateBCHMultisigAddress(buyerPublicKey, sellerPublicKey string) (string, string, string, error)
- func GenerateBTCAddress(walletType string) (string, error)
- func GenerateBTCMultisigAddress(buyerPublicKey, sellerPublicKey string) (string, string, string, error)
- func GenerateETHAddress(walletType string) (string, error)
- func GetCurrencyRates(baseCurrency string) (map[string]float64, error)
- func PostMattermostEvent(url, text string)
- func PostMattermostRawEvent(url string, ir MattermostEvent)
- type BCHPayment
- type BCHPaymentResult
- func EstimateBCHFeeFromMultipleWalletsWithAmountSplit(addressFrom []string, btcPayments []BCHPayment) (BCHPaymentResult, error)
- func SendBCHFromMultipleWalletsWithAmountSplit(addressFrom []string, btcPayments []BCHPayment) (BCHPaymentResult, error)
- func SendBCHFromSingleWalletWithPercentSplit(addressFrom string, btcPayments []BCHPayment) (BCHPaymentResult, error)
- type BCHTxOutput
- type BCHWalletBalance
- type BTCPayment
- type BTCPaymentResult
- func EstimateBTCFeeFromMultipleWalletsWithAmountSplit(addressFrom []string, btcPayments []BTCPayment) (BTCPaymentResult, error)
- func SendBCHToBTC(bchAddress, btcAddress string) (BTCPaymentResult, error)
- func SendBTCFromMultipleWalletsWithAmountSplit(addressFrom []string, btcPayments []BTCPayment) (BTCPaymentResult, error)
- func SendBTCFromSingleWalletWithPercentSplit(addressFrom string, btcPayments []BTCPayment) (BTCPaymentResult, error)
- type BTCTxOutput
- type BTCWalletBalance
- type ETHPayment
- type ETHPaymentResult
- type ETHWalletBalance
- type MattermostEvent
- type MattermostEventAttachment
- type MattermostEventField
Constants ¶
This section is empty.
Variables ¶
View Source
var (
APPLICATION_SETTINGS = settings.GetSettings()
)
Functions ¶
func GenerateBCHAddress ¶
func GenerateBTCAddress ¶
func GenerateETHAddress ¶
func PostMattermostEvent ¶
func PostMattermostEvent(url, text string)
func PostMattermostRawEvent ¶
func PostMattermostRawEvent(url string, ir MattermostEvent)
Types ¶
type BCHPayment ¶
type BCHPaymentResult ¶
type BCHPaymentResult struct { Fee int `json:"fee"` Description string `json:"description"` Hash string `json:"hash"` RawTransaction string `json:"rawTransaction"` Outputs []BCHTxOutput `json:"outputs"` Error *string `json:"error"` }
func EstimateBCHFeeFromMultipleWalletsWithAmountSplit ¶
func EstimateBCHFeeFromMultipleWalletsWithAmountSplit( addressFrom []string, btcPayments []BCHPayment, ) (BCHPaymentResult, error)
func SendBCHFromMultipleWalletsWithAmountSplit ¶
func SendBCHFromMultipleWalletsWithAmountSplit(addressFrom []string, btcPayments []BCHPayment) (BCHPaymentResult, error)
func SendBCHFromSingleWalletWithPercentSplit ¶
func SendBCHFromSingleWalletWithPercentSplit(addressFrom string, btcPayments []BCHPayment) (BCHPaymentResult, error)
type BCHTxOutput ¶
type BCHWalletBalance ¶
type BCHWalletBalance struct { Balance float64 `json:"balance"` UnconfirmedBalance float64 `json:"unconfirmed_balance"` }
func GetAmountOnBCHAddress ¶
func GetAmountOnBCHAddress(address string) (BCHWalletBalance, error)
type BTCPayment ¶
type BTCPaymentResult ¶
type BTCPaymentResult struct { Fee int `json:"fee"` Description string `json:"description"` Hash string `json:"hash"` RawTransaction string `json:"rawTransaction"` Outputs []BTCTxOutput `json:"outputs"` Error *string `json:"error"` }
func EstimateBTCFeeFromMultipleWalletsWithAmountSplit ¶
func EstimateBTCFeeFromMultipleWalletsWithAmountSplit(addressFrom []string, btcPayments []BTCPayment) (BTCPaymentResult, error)
func SendBCHToBTC ¶
func SendBCHToBTC(bchAddress, btcAddress string) (BTCPaymentResult, error)
func SendBTCFromMultipleWalletsWithAmountSplit ¶
func SendBTCFromMultipleWalletsWithAmountSplit(addressFrom []string, btcPayments []BTCPayment) (BTCPaymentResult, error)
func SendBTCFromSingleWalletWithPercentSplit ¶
func SendBTCFromSingleWalletWithPercentSplit(addressFrom string, btcPayments []BTCPayment) (BTCPaymentResult, error)
type BTCTxOutput ¶
type BTCWalletBalance ¶
type BTCWalletBalance struct { Balance float64 `json:"balance"` UnconfirmedBalance float64 `json:"unconfirmed_balance"` }
func GetAmountOnBTCAddress ¶
func GetAmountOnBTCAddress(address string) (BTCWalletBalance, error)
type ETHPayment ¶
type ETHPaymentResult ¶
type ETHPaymentResult struct { Hash string `json:"hash"` RawTx string `json:"rawTransaction"` WalletFrom string `json:"wallet_from"` WalletTo string `json:"wallet_to"` Cost int64 `json:"cost"` Amount int64 `json:"amount"` Contract string `json:"contract,omitempty"` ContractMethod string `json:"contract_method,omitempty"` }
func SendETH ¶
func SendETH(addressFrom string, btcPayments []ETHPayment) (ETHPaymentResult, error)
type ETHWalletBalance ¶
type ETHWalletBalance struct {
Balance float64 `json:"balance"`
}
func GetAmountOnETHAddress ¶
func GetAmountOnETHAddress(address string) (ETHWalletBalance, error)
type MattermostEvent ¶
type MattermostEvent struct { Text string `json:"text"` Attachments []MattermostEventAttachment `json:"attachments,omitempty"` Short bool }
type MattermostEventAttachment ¶
type MattermostEventAttachment struct { Fallback string `json:"fallback"` Text string `json:"text,omitempty""` Color string `json:"color,omitempty"` AuthorName string `json:"author_name,omitempty"` AuthorLink string `json:"author_link,omitempty"` Pretext string `json:"pretext,omitempty"` Fields []MattermostEventField `json:"fields,omitempty"` }
type MattermostEventField ¶
Click to show internal directories.
Click to hide internal directories.