dash

package
v0.0.0-...-5cc1e8b Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: BlueOak-1.0.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BipID = 5
)

Variables

View Source
var (

	// WalletInfo defines some general information about a Dash wallet.
	WalletInfo = &asset.WalletInfo{
		Name:              "Dash",
		Version:           version,
		SupportedVersions: []uint32{version},
		UnitInfo:          dexdash.UnitInfo,
		AvailableWallets: []*asset.WalletDefinition{
			{
				Type:              walletTypeRPC,
				Tab:               "Dash Core (external)",
				Description:       "Connect to dashd",
				DefaultConfigPath: dexbtc.SystemConfigPath("dash"),
				ConfigOpts:        configOpts,
			},
		},
	}
)

Functions

This section is empty.

Types

type Driver

type Driver struct{}

Driver implements asset.Driver.

func (*Driver) DecodeCoinID

func (d *Driver) DecodeCoinID(coinID []byte) (string, error)

DecodeCoinID creates a human-readable representation of a coin ID for Dash

func (*Driver) Info

func (d *Driver) Info() *asset.WalletInfo

Info returns basic information about the wallet and asset.

func (*Driver) MinLotSize

func (d *Driver) MinLotSize(maxFeeRate uint64) uint64

MinLotSize calculates the minimum bond size for a given fee rate that avoids dust outputs on the swap and refund txs, assuming the maxFeeRate doesn't change.

func (*Driver) Open

func (d *Driver) Open(cfg *asset.WalletConfig, logger dex.Logger, network dex.Network) (asset.Wallet, error)

Open creates the Dash exchange wallet. Start the wallet with its Run method.

Jump to

Keyboard shortcuts

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