Documentation
¶
Index ¶
Constants ¶
View Source
const (
// BipID is the Bip 44 coin ID for Bitcoin Cash.
BipID = 145
)
Variables ¶
View Source
var ( // WalletInfo defines some general information about a Bitcoin Cash wallet. WalletInfo = &asset.WalletInfo{ Name: "Bitcoin Cash", Units: "Satoshi", Version: version, DefaultConfigPath: dexbtc.SystemConfigPath("bitcoin"), ConfigOpts: configOpts, } )
Functions ¶
func NewWallet ¶
func NewWallet(cfg *asset.WalletConfig, logger dex.Logger, network dex.Network) (asset.Wallet, error)
NewWallet is the exported constructor by which the DEX will import the exchange wallet. The wallet will shut down when the provided context is canceled. The configPath can be an empty string, in which case the standard system location of the daemon config file is assumed.
Types ¶
type BCHWallet ¶
type BCHWallet struct {
*btc.ExchangeWallet
}
BCHWallet embeds btc.ExchangeWallet, but re-implements a couple of methods to perform on-the-fly address translation.
type Driver ¶
type Driver struct{}
Driver implements asset.Driver.
func (*Driver) DecodeCoinID ¶
DecodeCoinID creates a human-readable representation of a coin ID for Bitcoin Cash.
func (*Driver) Info ¶
func (d *Driver) Info() *asset.WalletInfo
Info returns basic information about the wallet and asset.
Click to show internal directories.
Click to hide internal directories.