Run NodesReferencewalletNetworkprimary

common

Package common

import "github.com/luxfi/node/wallet/network/primary/common"

Functions

MatchOwners

func MatchOwners(
	owners *secp256k1fx.OutputOwners,
	addrs set.Set[ids.ShortID],
	minIssuanceTime uint64,
) ([]uint32, bool)

MatchOwners attempts to match a list of addresses up to the provided threshold.

Types

ChainUTXOs

func NewChainUTXOs(chainID ids.ID, utxos UTXOs) ChainUTXOs

ConfirmationHandler

ConfirmationHandler is called when a transaction is confirmed

ConfirmationReceipt

ConfirmationReceipt contains information about a confirmed transaction

Option

func UnionOptions(first, second []Option) []Option
func WithAssumeDecided() Option
func WithBaseFee(baseFee *big.Int) Option
func WithChangeOwner(changeOwner *secp256k1fx.OutputOwners) Option
func WithConfirmationHandler(f ConfirmationHandler) Option
func WithContext(ctx context.Context) Option
func WithCustomAddresses(addrs set.Set[ids.ShortID]) Option
func WithCustomEVMAddresses(addrs set.Set[ethcommon.Address]) Option
func WithMemo(memo []byte) Option
func WithMinIssuanceTime(minIssuanceTime uint64) Option
func WithPollFrequency(pollFrequency time.Duration) Option
func WithPostIssuanceFunc(f PostIssuanceFunc) Option
func WithStakeableLocked() Option

Options

func NewOptions(ops []Option) *Options
func (o *Options) Addresses(defaultAddresses set.Set[ids.ShortID]) set.Set[ids.ShortID]
func (o *Options) AllowStakeableLocked() bool
func (o *Options) AssumeDecided() bool
func (o *Options) BaseFee(defaultBaseFee *big.Int) *big.Int
func (o *Options) ChangeOwner(defaultOwner *secp256k1fx.OutputOwners) *secp256k1fx.OutputOwners
func (o *Options) ConfirmationHandler() ConfirmationHandler
func (o *Options) Context() context.Context
func (o *Options) EVMAddresses(defaultAddresses set.Set[ethcommon.Address]) set.Set[ethcommon.Address]
func (o *Options) Memo() []byte
func (o *Options) MinIssuanceTime() uint64
func (o *Options) PollFrequency() time.Duration
func (o *Options) PostIssuanceFunc() PostIssuanceFunc

PostIssuanceFunc

Signature of the function that will be called after a transaction has been issued with the ID of the issued transaction.

UTXOs

func NewUTXOs() UTXOs