runtime

package
v0.0.0-...-7621e06 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package runtime provides low-level components of the Solana Execution Layer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Lamports   uint64
	Data       []byte
	Owner      [32]byte
	Executable bool
	RentEpoch  uint64
}

func (*Account) MarshalWihEncoder

func (a *Account) MarshalWihEncoder(encoder *bin.Encoder) error

func (*Account) UnmarshalWithDecoder

func (a *Account) UnmarshalWithDecoder(decoder *bin.Decoder) (err error)

type Accounts

type Accounts interface {
	GetAccount(pubkey *[32]byte) (*Account, error)
	SetAccount(pubkey *[32]byte, acc *Account) error
}

type EpochSchedule

type EpochSchedule struct {
	SlotPerEpoch             uint64
	LeaderScheduleSlotOffset uint64
	Warmup                   bool
	FirstNormalEpoch         uint64
	FirstNormalSlot          uint64
}

type FeeParams

type FeeParams struct {
	TargetLamportsPerSig uint64
	TargetSigsPerSlot    uint64
	MinLamportsPerSig    uint64
	MaxLamportsPerSig    uint64
	BurnPercent          uint8
}

type InflationParams

type InflationParams struct {
	Initial        float64
	Terminal       float64
	Taper          float64
	Foundation     float64
	FoundationTerm float64
	Padding00      [8]byte
}

type MemAccounts

type MemAccounts struct {
	Map map[[32]byte]*Account
}

func NewMemAccounts

func NewMemAccounts() MemAccounts

func (MemAccounts) GetAccount

func (m MemAccounts) GetAccount(pubkey *[32]byte) (*Account, error)

func (MemAccounts) SetAccount

func (m MemAccounts) SetAccount(pubkey *[32]byte, acc *Account) error

type PohParams

type PohParams struct {
	TickDuration     time.Duration
	HasTickCount     bool
	TickCount        uint64
	HasHashesPerTick bool
	HashesPerTick    uint64
}

func (*PohParams) MarshalWithDecoder

func (a *PohParams) MarshalWithDecoder(encoder *bin.Encoder) (err error)

func (*PohParams) UnmarshalWithDecoder

func (a *PohParams) UnmarshalWithDecoder(decoder *bin.Decoder) (err error)

type RentParams

type RentParams struct {
	LamportsPerByteYear uint64
	ExemptionThreshold  float64
	BurnPercent         uint8
}

Jump to

Keyboard shortcuts

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