Documentation ¶
Index ¶
- Constants
- Variables
- func GetRepoPath() (string, error)
- func MakeTransaction(w *bitcoincash.SPVWallet, utxos []wallet.Utxo, ipfsScript Script) (*chainhash.Hash, error)
- func MinimumInputSize(w *bitcoincash.SPVWallet) (uint64, error)
- func NewWallet(params *chaincfg.Params, repoPath string, trustedPeer net.Addr) (*bitcoincash.SPVWallet, error)
- type AddFileScript
- type BitcoinCashPriceFetcher
- func (b *BitcoinCashPriceFetcher) GetAllRates(cacheOK bool) (map[string]float64, error)
- func (b *BitcoinCashPriceFetcher) GetExchangeRate(currencyCode string) (float64, error)
- func (b *BitcoinCashPriceFetcher) GetLatestRate(currencyCode string) (float64, error)
- func (b *BitcoinCashPriceFetcher) UnitsPerCoin() int
- type BitfinexDecoder
- type BittrexDecoder
- type Command
- type DataType
- type ExchangeRateDecoder
- type ExchangeRateProvider
- type KrakenDecoder
- type OpenBazaarDecoder
- type ParsedScript
- type PoloniexDecoder
- type Script
- type TransactionListener
- type UserEntry
- type VoteScript
Constants ¶
View Source
const ( FlagByte = 0x9F MinScriptSize = 1 + 1 + 2 + 1 + 32 MaxScriptSize = 220 HashSize = 32 )
Variables ¶
Functions ¶
func GetRepoPath ¶
func MakeTransaction ¶
func MinimumInputSize ¶
Set equal to one USD penny. Must use exchange rate provider for this.
Types ¶
type AddFileScript ¶
func (*AddFileScript) Command ¶
func (as *AddFileScript) Command() Command
func (*AddFileScript) ID ¶
func (as *AddFileScript) ID() []byte
func (*AddFileScript) Parsed ¶
func (as *AddFileScript) Parsed() ParsedScript
func (*AddFileScript) Serialize ¶
func (as *AddFileScript) Serialize() ([]byte, error)
type BitcoinCashPriceFetcher ¶
func NewBitcoinCashPriceFetcher ¶
func NewBitcoinCashPriceFetcher(dialer proxy.Dialer) *BitcoinCashPriceFetcher
func (*BitcoinCashPriceFetcher) GetAllRates ¶
func (b *BitcoinCashPriceFetcher) GetAllRates(cacheOK bool) (map[string]float64, error)
func (*BitcoinCashPriceFetcher) GetExchangeRate ¶
func (b *BitcoinCashPriceFetcher) GetExchangeRate(currencyCode string) (float64, error)
func (*BitcoinCashPriceFetcher) GetLatestRate ¶
func (b *BitcoinCashPriceFetcher) GetLatestRate(currencyCode string) (float64, error)
func (*BitcoinCashPriceFetcher) UnitsPerCoin ¶
func (b *BitcoinCashPriceFetcher) UnitsPerCoin() int
type BitfinexDecoder ¶
type BitfinexDecoder struct{}
type BittrexDecoder ¶
type BittrexDecoder struct{}
type ExchangeRateDecoder ¶
type ExchangeRateDecoder interface {
// contains filtered or unexported methods
}
type ExchangeRateProvider ¶
type ExchangeRateProvider struct {
// contains filtered or unexported fields
}
type KrakenDecoder ¶
type KrakenDecoder struct{}
type OpenBazaarDecoder ¶
type OpenBazaarDecoder struct{}
type ParsedScript ¶
type PoloniexDecoder ¶
type PoloniexDecoder struct{}
type Script ¶
type Script interface { Command() Command ID() []byte Parsed() ParsedScript Serialize() ([]byte, error) }
func ParseScript ¶
type TransactionListener ¶
type TransactionListener struct { UserEntries map[string]UserEntry // contains filtered or unexported fields }
func NewTransactionListener ¶
func NewTransactionListener(wallet *bitcoincash.SPVWallet, db *db.Database, addrChan chan [2]string) *TransactionListener
func (*TransactionListener) ListenBitcoinCash ¶
func (l *TransactionListener) ListenBitcoinCash(tx wallet.TransactionCallback)
type VoteScript ¶
func (*VoteScript) Command ¶
func (vs *VoteScript) Command() Command
func (*VoteScript) ID ¶
func (vs *VoteScript) ID() []byte
func (*VoteScript) Parsed ¶
func (vs *VoteScript) Parsed() ParsedScript
func (*VoteScript) Serialize ¶
func (vs *VoteScript) Serialize() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.