migrations

package
v0.13.1-patch.3 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: AGPL-3.0 Imports: 18 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MultipleContractsSpecialMigrations = make(map[string]func(ledger.Payload) ([]ledger.Payload, error))
)

Functions

func AddMissingKeysMigration

func AddMissingKeysMigration(payloads []ledger.Payload) ([]ledger.Payload, error)

func MultipleContractMigration

func MultipleContractMigration(payloads []ledger.Payload) ([]ledger.Payload, error)

func NoOpMigration

func NoOpMigration(p []ledger.Payload) ([]ledger.Payload, error)

func StorageFeesMigration added in v0.13.0

func StorageFeesMigration(payload []ledger.Payload) ([]ledger.Payload, error)

iterates through registers keeping a map of register sizes after it has reached the end it add storage used and storage capacity for each address

Types

type MultipleContractMigrationError

type MultipleContractMigrationError struct {
	Errors []error
}

func (*MultipleContractMigrationError) Error

type StorageReporter added in v0.13.0

type StorageReporter struct {
	Log zerolog.Logger
}

iterates through registers keeping a map of register sizes reports on storage metrics

func (StorageReporter) Report added in v0.13.0

func (r StorageReporter) Report(payload []ledger.Payload) error

Jump to

Keyboard shortcuts

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