Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountEntry ¶
func (*AccountEntry) MarshalWihEncoder ¶
func (a *AccountEntry) MarshalWihEncoder(encoder *bin.Encoder) (err error)
func (*AccountEntry) UnmarshalWithDecoder ¶
func (a *AccountEntry) UnmarshalWithDecoder(decoder *bin.Decoder) (err error)
type BuiltinProgram ¶
func (*BuiltinProgram) MarshalWihEncoder ¶
func (*BuiltinProgram) MarshalWihEncoder(_ *bin.Encoder) (err error)
func (*BuiltinProgram) UnmarshalWithDecoder ¶
func (b *BuiltinProgram) UnmarshalWithDecoder(decoder *bin.Decoder) (err error)
type Genesis ¶
type Genesis struct {
CreationTime time.Time
Accounts []AccountEntry
Builtins []BuiltinProgram
RewardPools []AccountEntry
TicksPerSlot uint64
PohParams runtime.PohParams
Fees runtime.FeeParams
Rent runtime.RentParams
Inflation runtime.InflationParams
EpochSchedule runtime.EpochSchedule
ClusterID uint32
}
Genesis contains the genesis state of a Solana ledger.
func ReadGenesisFromArchive ¶
ReadGenesisFromArchive reads a `genesis.tar.bz2` file.
func ReadGenesisFromFile ¶
ReadGenesisFromFile is a convenience wrapper for ReadGenesisFromArchive.
func (*Genesis) FillAccounts ¶
func (*Genesis) MarshalWithEncoder ¶
Click to show internal directories.
Click to hide internal directories.