walletmgr

package
v0.0.0-...-73b4c3b Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const MempoolGasFee = "mempool:gas:fee:cache"

Variables

View Source
var (
	ErrNotFindWalletWifInCache = errors.New("get wallet wif cache failed")
	ErrNotFindPrevInfoInCache  = errors.New("get wallet previous tx info in cache failed")
	ErrWritePrevInfoInCache    = errors.New("write wallet previous tx info in cache failed")
)

Functions

func InitAndCacheWalletWif

func InitAndCacheWalletWif(cacheDir string, net *chaincfg.Params) error

Types

type Cache

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

func InitCache

func InitCache(cacheDir string) (*Cache, error)

func (*Cache) CacheWalletMintTxInfo

func (c *Cache) CacheWalletMintTxInfo(address string, txHash string, txHex string) error

func (*Cache) CacheWalletPrevInfo

func (c *Cache) CacheWalletPrevInfo(address string, data txbuilder.PrevInfo) error

func (*Cache) ReadAllWalletWiF

func (c *Cache) ReadAllWalletWiF() ([]string, error)

func (*Cache) ReadMemPoolGas

func (c *Cache) ReadMemPoolGas() (int64, error)

func (*Cache) ReadWalletPrevInfo

func (c *Cache) ReadWalletPrevInfo(address string) (*txbuilder.PrevInfo, error)

func (*Cache) WriteAllWalletWiF

func (c *Cache) WriteAllWalletWiF(walletWifs []string) error

type Wallet

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

func InitWallet

func InitWallet(wif string, cache *Cache, net *chaincfg.Params) (*Wallet, error)

func (*Wallet) MintRunes

func (w *Wallet) MintRunes(cli *rpcclient.Client, runeId string, destination string) error

type WalletMgr

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

func InitWalletMgr

func InitWalletMgr(cacheDir string, net *chaincfg.Params) (*WalletMgr, error)

func (*WalletMgr) GetMintProcessing

func (wm *WalletMgr) GetMintProcessing(runeId string, destination string)

func (*WalletMgr) MintsRunes

func (wm *WalletMgr) MintsRunes(cli *rpcclient.Client, runeId string, destination string)

Jump to

Keyboard shortcuts

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