bank

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

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(
	pooldbClient *dbcl.Client,
	redisClient *redis.Client,
	telegramClient *telegram.Client,
) *Client

func (*Client) BroadcastOutgoingTxs

func (c *Client) BroadcastOutgoingTxs(node types.PayoutNode) error

func (*Client) ConfirmOutgoingTxs

func (c *Client) ConfirmOutgoingTxs(node types.PayoutNode) error

func (*Client) FetchLock

func (c *Client) FetchLock(chain string) (*redislock.Lock, error)

func (*Client) MergeUTXOs

func (c *Client) MergeUTXOs(node types.PayoutNode, count int) error

func (*Client) PrepareOutgoingTxs

func (c *Client) PrepareOutgoingTxs(
	q dbcl.Querier,
	node types.PayoutNode,
	txType types.TransactionType,
	txOutputList ...[]*types.TxOutput,
) ([]*pooldb.Transaction, error)

func (*Client) RegisterIncomingTx

func (c *Client) RegisterIncomingTx(node types.PayoutNode, txid string) (bool, error)

Jump to

Keyboard shortcuts

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