Documentation
¶
Index ¶
- Constants
- func AddHashedKeys(currentMappings map[common.Hash]utils.StorageValueMetadata) map[common.Hash]utils.StorageValueMetadata
- func GetIncrementedKey(original common.Hash, incrementBy int64) common.Hash
- func GetMapping(indexOnContract, key string) common.Hash
- func GetNestedMapping(indexOnContract, primaryKey, secondaryKey string) common.Hash
- type IStorageQueue
- type Mappings
- type StorageQueue
Constants ¶
View Source
const ( IndexZero = "0000000000000000000000000000000000000000000000000000000000000000" IndexOne = "0000000000000000000000000000000000000000000000000000000000000001" IndexTwo = "0000000000000000000000000000000000000000000000000000000000000002" IndexThree = "0000000000000000000000000000000000000000000000000000000000000003" IndexFour = "0000000000000000000000000000000000000000000000000000000000000004" IndexFive = "0000000000000000000000000000000000000000000000000000000000000005" IndexSix = "0000000000000000000000000000000000000000000000000000000000000006" IndexSeven = "0000000000000000000000000000000000000000000000000000000000000007" IndexEight = "0000000000000000000000000000000000000000000000000000000000000008" IndexNine = "0000000000000000000000000000000000000000000000000000000000000009" IndexTen = "000000000000000000000000000000000000000000000000000000000000000a" IndexEleven = "000000000000000000000000000000000000000000000000000000000000000b" )
Variables ¶
This section is empty.
Functions ¶
func AddHashedKeys ¶ added in v0.0.8
func AddHashedKeys(currentMappings map[common.Hash]utils.StorageValueMetadata) map[common.Hash]utils.StorageValueMetadata
func GetIncrementedKey ¶
func GetMapping ¶
func GetNestedMapping ¶
Types ¶
type IStorageQueue ¶
type IStorageQueue interface { Add(diff utils.StorageDiff) error Delete(id int) error GetAll() ([]utils.StorageDiff, error) }
type StorageQueue ¶
type StorageQueue struct {
// contains filtered or unexported fields
}
func NewStorageQueue ¶
func NewStorageQueue(db *postgres.DB) StorageQueue
func (StorageQueue) Add ¶
func (queue StorageQueue) Add(diff utils.StorageDiff) error
func (StorageQueue) Delete ¶ added in v0.0.2
func (queue StorageQueue) Delete(id int) error
func (StorageQueue) GetAll ¶ added in v0.0.2
func (queue StorageQueue) GetAll() ([]utils.StorageDiff, error)
Click to show internal directories.
Click to hide internal directories.