Documentation
¶
Index ¶
- type Backend
- type Builder
- func (b *Builder) NewAddDelegatorTx(vdr *txs.Validator, rewardsOwner *secp256k1fx.OutputOwners, ...) (*txs.Tx, error)
- func (b *Builder) NewAddPermissionlessDelegatorTx(vdr *txs.SupernetValidator, assetID ids.ID, ...) (*txs.Tx, error)
- func (b *Builder) NewAddPermissionlessValidatorTx(vdr *txs.SupernetValidator, signer vmsigner.Signer, assetID ids.ID, ...) (*txs.Tx, error)
- func (b *Builder) NewAddSupernetValidatorTx(vdr *txs.SupernetValidator, keys []*secp256k1.PrivateKey, ...) (*txs.Tx, error)
- func (b *Builder) NewAddValidatorTx(vdr *txs.Validator, rewardsOwner *secp256k1fx.OutputOwners, shares uint32, ...) (*txs.Tx, error)
- func (b *Builder) NewBaseTx(outputs []*avax.TransferableOutput, keys []*secp256k1.PrivateKey, ...) (*txs.Tx, error)
- func (b *Builder) NewCreateChainTx(supernetID ids.ID, genesis []byte, vmID ids.ID, fxIDs []ids.ID, ...) (*txs.Tx, error)
- func (b *Builder) NewCreateSupernetTx(owner *secp256k1fx.OutputOwners, keys []*secp256k1.PrivateKey, ...) (*txs.Tx, error)
- func (b *Builder) NewExportTx(chainID ids.ID, outputs []*avax.TransferableOutput, ...) (*txs.Tx, error)
- func (b *Builder) NewImportTx(chainID ids.ID, to *secp256k1fx.OutputOwners, keys []*secp256k1.PrivateKey, ...) (*txs.Tx, error)
- func (b *Builder) NewRemoveSupernetValidatorTx(nodeID ids.NodeID, supernetID ids.ID, keys []*secp256k1.PrivateKey, ...) (*txs.Tx, error)
- func (b *Builder) NewTransferSupernetOwnershipTx(supernetID ids.ID, owner *secp256k1fx.OutputOwners, ...) (*txs.Tx, error)
- func (b *Builder) NewTransformSupernetTx(supernetID ids.ID, assetID ids.ID, initialRewardPoolSupply uint64, ...) (*txs.Tx, error)
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 ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
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 (*Builder) NewCreateSupernetTx ¶
func (b *Builder) NewCreateSupernetTx( owner *secp256k1fx.OutputOwners, keys []*secp256k1.PrivateKey, options ...common.Option, ) (*txs.Tx, error)
func (*Builder) NewExportTx ¶
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 (*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)
Click to show internal directories.
Click to hide internal directories.