txstest

package
v0.0.0-...-de82531 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

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

func (*Backend) GetSupernetOwner

func (b *Backend) GetSupernetOwner(_ context.Context, supernetID ids.ID) (fx.Owner, error)

func (*Backend) GetUTXO

func (b *Backend) GetUTXO(_ context.Context, chainID, utxoID ids.ID) (*avax.UTXO, error)

func (*Backend) UTXOs

func (b *Backend) UTXOs(_ context.Context, sourceChainID ids.ID) ([]*avax.UTXO, error)

type Builder

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

func NewBuilder

func NewBuilder(
	ctx *snow.Context,
	cfg *config.Config,
	state state.State,
) *Builder

func (*Builder) NewAddDelegatorTx

func (b *Builder) NewAddDelegatorTx(
	vdr *txs.Validator,
	rewardsOwner *secp256k1fx.OutputOwners,
	keys []*secp256k1.PrivateKey,
	options ...common.Option,
) (*txs.Tx, error)

func (*Builder) NewAddPermissionlessDelegatorTx

func (b *Builder) NewAddPermissionlessDelegatorTx(
	vdr *txs.SupernetValidator,
	assetID ids.ID,
	rewardsOwner *secp256k1fx.OutputOwners,
	keys []*secp256k1.PrivateKey,
	options ...common.Option,
) (*txs.Tx, error)

func (*Builder) NewAddPermissionlessValidatorTx

func (b *Builder) NewAddPermissionlessValidatorTx(
	vdr *txs.SupernetValidator,
	signer vmsigner.Signer,
	assetID ids.ID,
	validationRewardsOwner *secp256k1fx.OutputOwners,
	delegationRewardsOwner *secp256k1fx.OutputOwners,
	shares uint32,
	keys []*secp256k1.PrivateKey,
	options ...common.Option,
) (*txs.Tx, error)

func (*Builder) NewAddSupernetValidatorTx

func (b *Builder) NewAddSupernetValidatorTx(
	vdr *txs.SupernetValidator,
	keys []*secp256k1.PrivateKey,
	options ...common.Option,
) (*txs.Tx, error)

func (*Builder) NewAddValidatorTx

func (b *Builder) NewAddValidatorTx(
	vdr *txs.Validator,
	rewardsOwner *secp256k1fx.OutputOwners,
	shares uint32,
	keys []*secp256k1.PrivateKey,
	options ...common.Option,
) (*txs.Tx, error)

func (*Builder) NewBaseTx

func (b *Builder) NewBaseTx(
	outputs []*avax.TransferableOutput,
	keys []*secp256k1.PrivateKey,
	options ...common.Option,
) (*txs.Tx, error)

func (*Builder) NewCreateChainTx

func (b *Builder) NewCreateChainTx(
	supernetID ids.ID,
	genesis []byte,
	vmID ids.ID,
	fxIDs []ids.ID,
	chainName string,
	chainAssetID ids.ID,
	keys []*secp256k1.PrivateKey,
	options ...common.Option,
) (*txs.Tx, error)

func (*Builder) NewCreateSupernetTx

func (b *Builder) NewCreateSupernetTx(
	owner *secp256k1fx.OutputOwners,
	keys []*secp256k1.PrivateKey,
	options ...common.Option,
) (*txs.Tx, error)

func (*Builder) NewExportTx

func (b *Builder) NewExportTx(
	chainID ids.ID,
	outputs []*avax.TransferableOutput,
	keys []*secp256k1.PrivateKey,
	options ...common.Option,
) (*txs.Tx, error)

func (*Builder) NewImportTx

func (b *Builder) NewImportTx(
	chainID ids.ID,
	to *secp256k1fx.OutputOwners,
	keys []*secp256k1.PrivateKey,
	options ...common.Option,
) (*txs.Tx, error)

func (*Builder) NewRemoveSupernetValidatorTx

func (b *Builder) NewRemoveSupernetValidatorTx(
	nodeID ids.NodeID,
	supernetID ids.ID,
	keys []*secp256k1.PrivateKey,
	options ...common.Option,
) (*txs.Tx, error)

func (*Builder) NewTransferSupernetOwnershipTx

func (b *Builder) NewTransferSupernetOwnershipTx(
	supernetID ids.ID,
	owner *secp256k1fx.OutputOwners,
	keys []*secp256k1.PrivateKey,
	options ...common.Option,
) (*txs.Tx, error)

func (*Builder) NewTransformSupernetTx

func (b *Builder) NewTransformSupernetTx(
	supernetID ids.ID,
	assetID ids.ID,
	initialRewardPoolSupply uint64,
	startRewardShare uint64,
	startRewardTime uint64,
	diminishingRewardShare uint64,
	diminishingRewardTime uint64,
	targetRewardShare uint64,
	targetRewardTime uint64,
	minValidatorStake uint64,
	maxValidatorStake uint64,
	minStakeDuration time.Duration,
	maxStakeDuration time.Duration,
	stakePeriodRewardShare uint64,
	minDelegationFee uint32,
	maxDelegationFee uint32,
	minDelegatorStake uint64,
	maxValidatorWeightFactor byte,
	uptimeRequirement uint32,
	keys []*secp256k1.PrivateKey,
	options ...common.Option,
) (*txs.Tx, error)

Jump to

Keyboard shortcuts

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