Documentation ¶
Index ¶
- func MatchOwners(owners *secp256k1fx.OutputOwners, addrs set.Set[ids.ShortID], ...) ([]uint32, bool)
- type ChainUTXOs
- type DeterministicChainUTXOs
- 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 ¶
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 ¶
func NewChainUTXOs(chainID ids.ID, utxos UTXOs) ChainUTXOs
type DeterministicChainUTXOs ¶
type DeterministicChainUTXOs struct {
ChainUTXOs
}
func NewDeterministicChainUTXOs ¶
func NewDeterministicChainUTXOs(require *require.Assertions, utxoSets map[ids.ID][]*avax.UTXO) *DeterministicChainUTXOs
type Option ¶
type Option func(*Options)
func UnionOptions ¶
func WithAssumeDecided ¶
func WithAssumeDecided() Option
func WithBaseFee ¶
func WithChangeOwner ¶
func WithChangeOwner(changeOwner *secp256k1fx.OutputOwners) Option
func WithContext ¶
func WithMinIssuanceTime ¶
func WithPollFrequency ¶
func WithPostIssuanceFunc ¶
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 ¶
func (*Options) MinIssuanceTime ¶
func (*Options) PollFrequency ¶
func (*Options) PostIssuanceFunc ¶
func (o *Options) PostIssuanceFunc() PostIssuanceFunc
type PostIssuanceFunc ¶
Signature of the function that will be called after a transaction has been issued with the ID of the issued transaction.
type UTXOs ¶
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.