Documentation ¶
Index ¶
- func KeyToRegisterID(key ledger.Key) (flow.RegisterID, error)
- func NewView(payloads []ledger.Payload) *view
- func NoOpMigration(p []ledger.Payload) ([]ledger.Payload, error)
- func PruneMigration(payload []ledger.Payload) ([]ledger.Payload, error)
- func StorageFeesMigration(payload []ledger.Payload) ([]ledger.Payload, error)
- type AccountsAtreeLedger
- func (a *AccountsAtreeLedger) AllocateStorageIndex(owner []byte) (atree.StorageIndex, error)
- func (a *AccountsAtreeLedger) GetValue(owner, key []byte) ([]byte, error)
- func (a *AccountsAtreeLedger) SetValue(owner, key, value []byte) error
- func (a *AccountsAtreeLedger) ValueExists(owner, key []byte) (exists bool, err error)
- type OrderedMapMigration
- type Pair
- type RawStorable
- func (v RawStorable) Accept(interpreter *interpreter.Interpreter, visitor interpreter.Visitor)
- func (r RawStorable) ByteSize() uint32
- func (r RawStorable) ChildStorables() []atree.Storable
- func (v RawStorable) Clone(_ *interpreter.Interpreter) interpreter.Value
- func (RawStorable) ConformsToStaticType(_ *interpreter.Interpreter, _ func() interpreter.LocationRange, ...) bool
- func (RawStorable) DeepRemove(_ *interpreter.Interpreter)
- func (r RawStorable) Encode(enc *atree.Encoder) error
- func (v RawStorable) Equal(_ *interpreter.Interpreter, _ func() interpreter.LocationRange, ...) bool
- func (RawStorable) IsImportable(_ *interpreter.Interpreter) bool
- func (RawStorable) IsResourceKinded(_ *interpreter.Interpreter) bool
- func (RawStorable) IsValue()
- func (v RawStorable) MeteredString(common.MemoryGauge, interpreter.SeenReferences) string
- func (RawStorable) NeedsStoreTo(_ atree.Address) bool
- func (v RawStorable) RecursiveString(_ interpreter.SeenReferences) string
- func (RawStorable) StaticType(_ *interpreter.Interpreter) interpreter.StaticType
- func (r RawStorable) Storable(_ atree.SlabStorage, _ atree.Address, _ uint64) (atree.Storable, error)
- func (r RawStorable) StoredValue(storage atree.SlabStorage) (atree.Value, error)
- func (RawStorable) String() string
- func (v RawStorable) Transfer(interpreter *interpreter.Interpreter, _ func() interpreter.LocationRange, ...) interpreter.Value
- func (RawStorable) Walk(*interpreter.Interpreter, func(interpreter.Value))
- type StorageUsedUpdateMigration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyToRegisterID ¶ added in v0.23.2
func KeyToRegisterID(key ledger.Key) (flow.RegisterID, error)
func PruneMigration ¶ added in v0.16.2
PruneMigration removes all the payloads with empty value this prunes the trie for values that has been deleted
Types ¶
type AccountsAtreeLedger ¶ added in v0.23.2
func NewAccountsAtreeLedger ¶ added in v0.23.2
func NewAccountsAtreeLedger(accounts fvmState.Accounts) *AccountsAtreeLedger
func (*AccountsAtreeLedger) AllocateStorageIndex ¶ added in v0.23.2
func (a *AccountsAtreeLedger) AllocateStorageIndex(owner []byte) (atree.StorageIndex, error)
AllocateStorageIndex allocates new storage index under the owner accounts to store a new register
func (*AccountsAtreeLedger) GetValue ¶ added in v0.23.2
func (a *AccountsAtreeLedger) GetValue(owner, key []byte) ([]byte, error)
func (*AccountsAtreeLedger) SetValue ¶ added in v0.23.2
func (a *AccountsAtreeLedger) SetValue(owner, key, value []byte) error
func (*AccountsAtreeLedger) ValueExists ¶ added in v0.23.2
func (a *AccountsAtreeLedger) ValueExists(owner, key []byte) (exists bool, err error)
type OrderedMapMigration ¶ added in v0.25.1
type OrderedMapMigration struct { Log zerolog.Logger OutputDir string NewStorage *runtime.Storage Interpreter *interpreter.Interpreter // contains filtered or unexported fields }
type RawStorable ¶ added in v0.25.1
type RawStorable []byte
func (RawStorable) Accept ¶ added in v0.25.1
func (v RawStorable) Accept(interpreter *interpreter.Interpreter, visitor interpreter.Visitor)
func (RawStorable) ByteSize ¶ added in v0.25.1
func (r RawStorable) ByteSize() uint32
func (RawStorable) ChildStorables ¶ added in v0.25.1
func (r RawStorable) ChildStorables() []atree.Storable
func (RawStorable) Clone ¶ added in v0.25.1
func (v RawStorable) Clone(_ *interpreter.Interpreter) interpreter.Value
func (RawStorable) ConformsToStaticType ¶ added in v0.26.0
func (RawStorable) ConformsToStaticType(_ *interpreter.Interpreter, _ func() interpreter.LocationRange, _ interpreter.StaticType, _ interpreter.TypeConformanceResults, ) bool
func (RawStorable) DeepRemove ¶ added in v0.25.1
func (RawStorable) DeepRemove(_ *interpreter.Interpreter)
func (RawStorable) Equal ¶ added in v0.25.1
func (v RawStorable) Equal(_ *interpreter.Interpreter, _ func() interpreter.LocationRange, other interpreter.Value) bool
func (RawStorable) IsImportable ¶ added in v0.26.0
func (RawStorable) IsImportable(_ *interpreter.Interpreter) bool
func (RawStorable) IsResourceKinded ¶ added in v0.25.1
func (RawStorable) IsResourceKinded(_ *interpreter.Interpreter) bool
func (RawStorable) IsValue ¶ added in v0.25.1
func (RawStorable) IsValue()
func (RawStorable) MeteredString ¶ added in v0.26.1
func (v RawStorable) MeteredString(common.MemoryGauge, interpreter.SeenReferences) string
func (RawStorable) NeedsStoreTo ¶ added in v0.25.1
func (RawStorable) NeedsStoreTo(_ atree.Address) bool
func (RawStorable) RecursiveString ¶ added in v0.25.1
func (v RawStorable) RecursiveString(_ interpreter.SeenReferences) string
func (RawStorable) StaticType ¶ added in v0.25.1
func (RawStorable) StaticType(_ *interpreter.Interpreter) interpreter.StaticType
func (RawStorable) Storable ¶ added in v0.25.1
func (r RawStorable) Storable(_ atree.SlabStorage, _ atree.Address, _ uint64) (atree.Storable, error)
func (RawStorable) StoredValue ¶ added in v0.25.1
func (r RawStorable) StoredValue(storage atree.SlabStorage) (atree.Value, error)
func (RawStorable) String ¶ added in v0.25.1
func (RawStorable) String() string
func (RawStorable) Transfer ¶ added in v0.25.1
func (v RawStorable) Transfer( interpreter *interpreter.Interpreter, _ func() interpreter.LocationRange, _ atree.Address, remove bool, storable atree.Storable, ) interpreter.Value
func (RawStorable) Walk ¶ added in v0.25.1
func (RawStorable) Walk(*interpreter.Interpreter, func(interpreter.Value))
type StorageUsedUpdateMigration ¶ added in v0.21.0
Click to show internal directories.
Click to hide internal directories.