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) ChainUTXOsConfirmationHandler
ConfirmationHandler is called when a transaction is confirmed
ConfirmationReceipt
ConfirmationReceipt contains information about a confirmed transaction
Option
func UnionOptions(first, second []Option) []Optionfunc WithAssumeDecided() Optionfunc WithBaseFee(baseFee *big.Int) Optionfunc WithChangeOwner(changeOwner *secp256k1fx.OutputOwners) Optionfunc WithConfirmationHandler(f ConfirmationHandler) Optionfunc WithContext(ctx context.Context) Optionfunc WithCustomAddresses(addrs set.Set[ids.ShortID]) Optionfunc WithCustomEVMAddresses(addrs set.Set[ethcommon.Address]) Optionfunc WithMemo(memo []byte) Optionfunc WithMinIssuanceTime(minIssuanceTime uint64) Optionfunc WithPollFrequency(pollFrequency time.Duration) Optionfunc WithPostIssuanceFunc(f PostIssuanceFunc) Optionfunc WithStakeableLocked() OptionOptions
func NewOptions(ops []Option) *Optionsfunc (o *Options) Addresses(defaultAddresses set.Set[ids.ShortID]) set.Set[ids.ShortID]func (o *Options) AllowStakeableLocked() boolfunc (o *Options) AssumeDecided() boolfunc (o *Options) BaseFee(defaultBaseFee *big.Int) *big.Intfunc (o *Options) ChangeOwner(defaultOwner *secp256k1fx.OutputOwners) *secp256k1fx.OutputOwnersfunc (o *Options) ConfirmationHandler() ConfirmationHandlerfunc (o *Options) Context() context.Contextfunc (o *Options) EVMAddresses(defaultAddresses set.Set[ethcommon.Address]) set.Set[ethcommon.Address]func (o *Options) Memo() []bytefunc (o *Options) MinIssuanceTime() uint64func (o *Options) PollFrequency() time.Durationfunc (o *Options) PostIssuanceFunc() PostIssuanceFuncPostIssuanceFunc
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