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.SubnetValidator, assetID ids.ID, ...) (*txs.Tx, error)
- func (b *Builder) NewAddPermissionlessValidatorTx(vdr *txs.SubnetValidator, signer vmsigner.Signer, assetID ids.ID, ...) (*txs.Tx, error)
- func (b *Builder) NewAddSubnetValidatorTx(vdr *txs.SubnetValidator, 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(subnetID ids.ID, genesis []byte, vmID ids.ID, fxIDs []ids.ID, chainName string, ...) (*txs.Tx, error)
- func (b *Builder) NewCreateSubnetTx(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) NewRemoveSubnetValidatorTx(nodeID ids.NodeID, subnetID ids.ID, keys []*secp256k1.PrivateKey, ...) (*txs.Tx, error)
- func (b *Builder) NewTransferSubnetOwnershipTx(subnetID ids.ID, owner *secp256k1fx.OutputOwners, keys []*secp256k1.PrivateKey, ...) (*txs.Tx, error)
- func (b *Builder) NewTransformSubnetTx(subnetID ids.ID, assetID ids.ID, initialSupply uint64, maxSupply 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) GetSubnetOwner ¶
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.SubnetValidator, assetID ids.ID, rewardsOwner *secp256k1fx.OutputOwners, keys []*secp256k1.PrivateKey, options ...common.Option, ) (*txs.Tx, error)
func (*Builder) NewAddPermissionlessValidatorTx ¶
func (b *Builder) NewAddPermissionlessValidatorTx( vdr *txs.SubnetValidator, 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) NewAddSubnetValidatorTx ¶
func (b *Builder) NewAddSubnetValidatorTx( vdr *txs.SubnetValidator, 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) NewCreateSubnetTx ¶
func (b *Builder) NewCreateSubnetTx( 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) NewRemoveSubnetValidatorTx ¶
func (*Builder) NewTransferSubnetOwnershipTx ¶
func (b *Builder) NewTransferSubnetOwnershipTx( subnetID ids.ID, owner *secp256k1fx.OutputOwners, keys []*secp256k1.PrivateKey, options ...common.Option, ) (*txs.Tx, error)
func (*Builder) NewTransformSubnetTx ¶
func (b *Builder) NewTransformSubnetTx( subnetID ids.ID, assetID ids.ID, initialSupply uint64, maxSupply uint64, minConsumptionRate uint64, maxConsumptionRate uint64, minValidatorStake uint64, maxValidatorStake uint64, minStakeDuration time.Duration, maxStakeDuration time.Duration, minDelegationFee 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.