firo

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: BlueOak-1.0.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BipID = 136 // Zcoin XZC

)

Variables

This section is empty.

Functions

func NewBackend

func NewBackend(cfg *asset.BackendConfig) (asset.Backend, error)

NewBackend generates the network parameters and creates a dgb backend as a btc clone using an asset/btc helper function.

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 DigiByte.

func (*Driver) MinBondSize

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

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

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) Name

func (d *Driver) Name() string

Name is the asset's name.

func (*Driver) Setup

func (d *Driver) Setup(cfg *asset.BackendConfig) (asset.Backend, error)

Setup creates the DGB backend. Start the backend with its Run method.

func (*Driver) UnitInfo

func (d *Driver) UnitInfo() dex.UnitInfo

UnitInfo returns the dex.UnitInfo for the asset.

func (*Driver) Version

func (d *Driver) Version() uint32

Version returns the Backend implementation's version number.

type FiroBlock

type FiroBlock struct {
	wire.MsgBlock
	// ProgPOW
	Height  uint32
	Nonce64 uint64
	MixHash chainhash.Hash
	// MTP
	NVersionMTP  int32
	MTPHashValue chainhash.Hash
	Reserved     [2]chainhash.Hash
	HashRootMTP  [16]byte
	// contains filtered or unexported fields
}

func NewFiroBlock

func NewFiroBlock(net dex.Network) *FiroBlock

Jump to

Keyboard shortcuts

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