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 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 StorageUsedUpdateMigration ¶ added in v0.21.0
Click to show internal directories.
Click to hide internal directories.