genesis

package
v0.54.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapAccount added in v0.33.0

type BootstrapAccount struct {
	IdentityPubkey  string `pulumi:"identityPubkey" yaml:"identity_account"`
	VotePubkey      string `pulumi:"votePubkey" yaml:"vote_account"`
	StakePubkey     string `pulumi:"stakePubkey" yaml:"stake_account"`
	BalanceLamports *int   `pulumi:"balanceLamports,optional" yaml:"balance_lamports"`
	StakeLamports   *int   `pulumi:"stakeLamports,optional" yaml:"stake_lamports"`
}

maps to --validator-accounts-file

type BootstrapValidator added in v0.36.0

type BootstrapValidator struct {
	IdentityPubkey string `pulumi:"identityPubkey" yaml:"identity_account"`
	VotePubkey     string `pulumi:"votePubkey" yaml:"vote_account"`
	StakePubkey    string `pulumi:"stakePubkey" yaml:"stake_account"`
}

maps to --bootstrap-validator

type CreateCommand

type CreateCommand struct {
	Genesis
}

func (*CreateCommand) AddToPayload

func (cmd *CreateCommand) AddToPayload(p *runner.Payload) error

func (*CreateCommand) BuildAccountsYaml added in v0.33.0

func (cmd *CreateCommand) BuildAccountsYaml(w io.Writer) (err error)

func (*CreateCommand) BuildPrimordialYaml added in v0.31.0

func (cmd *CreateCommand) BuildPrimordialYaml(w io.Writer) (err error)

func (*CreateCommand) Check

func (cmd *CreateCommand) Check() error

func (*CreateCommand) Env

func (cmd *CreateCommand) Env() *runner.EnvBuilder

type DeleteCommand added in v0.45.1

type DeleteCommand struct {
	Genesis
}

func (*DeleteCommand) AddToPayload added in v0.45.1

func (d *DeleteCommand) AddToPayload(p *runner.Payload) error

AddToPayload implements runner.Command. Subtle: this method shadows the method (Genesis).AddToPayload of DeleteCommand.Genesis.

func (*DeleteCommand) Check added in v0.45.1

func (d *DeleteCommand) Check() error

Check implements runner.Command.

func (*DeleteCommand) Config added in v0.45.1

func (d *DeleteCommand) Config() *runner.Config

Config implements runner.Command. Subtle: this method shadows the method (Genesis).Config of DeleteCommand.Genesis.

func (*DeleteCommand) Env added in v0.45.1

func (d *DeleteCommand) Env() *runner.EnvBuilder

Env implements runner.Command. Subtle: this method shadows the method (Genesis).Env of DeleteCommand.Genesis.

type Genesis

type Genesis struct {
	runner.RunnerCommand

	Flags          GenesisFlags        `pulumi:"flags"`
	Primordial     []PrimordialAccount `pulumi:"primordial"`
	Accounts       []BootstrapAccount  `pulumi:"accounts,optional"`
	Version        *string             `pulumi:"version,optional"`
	DeletionPolicy *deletion.Policy    `pulumi:"deletionPolicy,optional"`
}

func (*Genesis) Create

func (g *Genesis) Create() runner.Command

func (*Genesis) Delete added in v0.45.1

func (g *Genesis) Delete() runner.Command

func (*Genesis) GetDeletionPolicy added in v0.45.1

func (g *Genesis) GetDeletionPolicy() deletion.Policy

func (*Genesis) ManagedFiles added in v0.45.1

func (g *Genesis) ManagedFiles() []string

type GenesisFlags

type GenesisFlags struct {
	LedgerPath string `pulumi:"ledgerPath"`

	BootstrapValidators             []BootstrapValidator `pulumi:"bootstrapValidators"`
	BootstrapStakeAuthorizedPubkey  *string              `pulumi:"bootstrapStakeAuthorizedPubkey,optional"`
	BootstrapValidatorLamports      *int                 `pulumi:"bootstrapValidatorLamports,optional"`
	BootstrapValidatorStakeLamports *int                 `pulumi:"bootstrapValidatorStakeLamports,optional"`
	ClusterType                     *string              `pulumi:"clusterType,optional"`
	CreationTime                    *string              `pulumi:"creationTime,optional"`
	DeactivateFeatures              *[]string            `pulumi:"deactivateFeatures,optional"`
	EnableWarmupEpochs              *bool                `pulumi:"enableWarmupEpochs,optional"`
	FaucetPubkey                    *string              `pulumi:"faucetPubkey,optional"`
	FaucetLamports                  *int                 `pulumi:"faucetLamports,optional"`
	FeeBurnPercentage               *int                 `pulumi:"feeBurnPercentage,optional"`
	HashesPerTick                   *string              `pulumi:"hashesPerTick,optional"` // can be "auto", "sleep", or a number
	Inflation                       *string              `pulumi:"inflation,optional"`
	LamportsPerByteYear             *int                 `pulumi:"lamportsPerByteYear,optional"`
	MaxGenesisArchiveUnpackedSize   *int                 `pulumi:"maxGenesisArchiveUnpackedSize,optional"`
	RentBurnPercentage              *int                 `pulumi:"rentBurnPercentage,optional"`
	RentExemptionThreshold          *int                 `pulumi:"rentExemptionThreshold,optional"`
	SlotsPerEpoch                   *int                 `pulumi:"slotsPerEpoch,optional"`
	TargetLamportsPerSignature      *int                 `pulumi:"targetLamportsPerSignature,optional"`
	TargetSignaturesPerSlot         *int                 `pulumi:"targetSignaturesPerSlot,optional"`
	TargetTickDuration              *int                 `pulumi:"targetTickDuration,optional"`
	TicksPerSlot                    *int                 `pulumi:"ticksPerSlot,optional"`
	Url                             *string              `pulumi:"url,optional"`
	VoteCommissionPercentage        *int                 `pulumi:"voteCommissionPercentage,optional"`
	ExtraFlags                      *[]string            `pulumi:"extraFlags,optional"`
}

func (GenesisFlags) Args

func (f GenesisFlags) Args(accounts []BootstrapAccount) []string

type PrimordialAccount added in v0.31.0

type PrimordialAccount struct {
	Pubkey     string `pulumi:"pubkey" yaml:"-"`
	Lamports   int64  `pulumi:"lamports" yaml:"balance"`
	Owner      string `pulumi:"owner,optional" yaml:"owner"`
	Executable bool   `pulumi:"executable,optional" yaml:"executable"`
	Data       string `pulumi:"data,optional" yaml:"data"`
}

Jump to

Keyboard shortcuts

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