Documentation ¶
Index ¶
- func MatchOwners(owners *secp256k1fx.OutputOwners, addrs set.Set[ids.ShortID], ...) ([]uint32, bool)
- type ChainUTXOs
- type Option
- func UnionOptions(first, second []Option) []Option
- func WithAssumeDecided() Option
- func WithBaseFee(baseFee *big.Int) Option
- func WithChangeOwner(changeOwner *secp256k1fx.OutputOwners) Option
- func WithContext(ctx context.Context) Option
- func WithCustomAddresses(addrs set.Set[ids.ShortID]) Option
- func WithCustomEthAddresses(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
- type 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) Context() context.Context
- func (o *Options) EthAddresses(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
- type PostIssuanceFunc
- type UTXOs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func 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 ¶
type ChainUTXOs ¶ added in v1.10.9
type ChainUTXOs interface { AddUTXO(ctx context.Context, destinationChainID ids.ID, utxo *avax.UTXO) error RemoveUTXO(ctx context.Context, sourceChainID, utxoID ids.ID) error UTXOs(ctx context.Context, sourceChainID ids.ID) ([]*avax.UTXO, error) GetUTXO(ctx context.Context, sourceChainID, utxoID ids.ID) (*avax.UTXO, error) }
func NewChainUTXOs ¶ added in v1.11.1
func NewChainUTXOs(chainID ids.ID, utxos UTXOs) ChainUTXOs
type Option ¶
type Option func(*Options)
func UnionOptions ¶
func WithAssumeDecided ¶
func WithAssumeDecided() Option
func WithBaseFee ¶ added in v1.10.9
func WithChangeOwner ¶
func WithChangeOwner(changeOwner *secp256k1fx.OutputOwners) Option
func WithContext ¶
func WithCustomEthAddresses ¶ added in v1.10.9
func WithMinIssuanceTime ¶
func WithPollFrequency ¶
func WithPostIssuanceFunc ¶ added in v1.10.10
func WithPostIssuanceFunc(f PostIssuanceFunc) Option
func WithStakeableLocked ¶
func WithStakeableLocked() Option
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func NewOptions ¶
func (*Options) AllowStakeableLocked ¶
func (*Options) AssumeDecided ¶
func (*Options) ChangeOwner ¶
func (o *Options) ChangeOwner(defaultOwner *secp256k1fx.OutputOwners) *secp256k1fx.OutputOwners
func (*Options) EthAddresses ¶ added in v1.10.9
func (*Options) MinIssuanceTime ¶
func (*Options) PollFrequency ¶
func (*Options) PostIssuanceFunc ¶ added in v1.10.10
func (o *Options) PostIssuanceFunc() PostIssuanceFunc
type PostIssuanceFunc ¶ added in v1.10.10
Signature of the function that will be called after a transaction has been issued with the ID of the issued transaction.
type UTXOs ¶ added in v1.11.1
type UTXOs interface { AddUTXO(ctx context.Context, sourceChainID, destinationChainID ids.ID, utxo *avax.UTXO) error RemoveUTXO(ctx context.Context, sourceChainID, destinationChainID, utxoID ids.ID) error UTXOs(ctx context.Context, sourceChainID, destinationChainID ids.ID) ([]*avax.UTXO, error) GetUTXO(ctx context.Context, sourceChainID, destinationChainID, utxoID ids.ID) (*avax.UTXO, error) }
Click to show internal directories.
Click to hide internal directories.