Documentation ¶
Index ¶
Constants ¶
View Source
const ( VowVat = "vat" VowCow = "cow" VowRow = "row" SinMapping = "sin" SinInteger = "Sin" VowAsh = "Ash" VowWait = "wait" VowSump = "sump" VowBump = "bump" VowHump = "hump" )
Variables ¶
View Source
var ( VatKey = common.HexToHash(storage.IndexOne) VatMetadata = utils.StorageValueMetadata{ Name: VowVat, Keys: nil, Type: utils.Address, } CowKey = common.HexToHash(storage.IndexTwo) CowMetadata = utils.StorageValueMetadata{ Name: VowCow, Keys: nil, Type: utils.Address, } RowKey = common.HexToHash(storage.IndexThree) RowMetadata = utils.StorageValueMetadata{ Name: VowRow, Keys: nil, Type: utils.Address, } SinMappingIndex = storage.IndexFour SinIntegerKey = common.HexToHash(storage.IndexFive) SinIntegerMetadata = utils.StorageValueMetadata{ Name: SinInteger, Keys: nil, Type: utils.Uint256, } AshKey = common.HexToHash(storage.IndexSix) AshMetadata = utils.StorageValueMetadata{ Name: VowAsh, Keys: nil, Type: utils.Uint256, } WaitKey = common.HexToHash(storage.IndexSeven) WaitMetadata = utils.StorageValueMetadata{ Name: VowWait, Keys: nil, Type: utils.Uint256, } SumpKey = common.HexToHash(storage.IndexEight) SumpMetadata = utils.StorageValueMetadata{ Name: VowSump, Keys: nil, Type: utils.Uint256, } BumpKey = common.HexToHash(storage.IndexNine) BumpMetadata = utils.StorageValueMetadata{ Name: VowBump, Keys: nil, Type: utils.Uint256, } HumpKey = common.HexToHash(storage.IndexTen) HumpMetadata = utils.StorageValueMetadata{ Name: VowHump, Keys: nil, Type: utils.Uint256, } )
Functions ¶
This section is empty.
Types ¶
type VowMappings ¶
type VowMappings struct { StorageRepository s2.IMakerStorageRepository // contains filtered or unexported fields }
func (*VowMappings) Lookup ¶
func (mappings *VowMappings) Lookup(key common.Hash) (utils.StorageValueMetadata, error)
func (*VowMappings) SetDB ¶
func (mappings *VowMappings) SetDB(db *postgres.DB)
type VowStorageRepository ¶
type VowStorageRepository struct {
// contains filtered or unexported fields
}
func (VowStorageRepository) Create ¶
func (repository VowStorageRepository) Create(blockNumber int, blockHash string, metadata utils.StorageValueMetadata, value interface{}) error
func (*VowStorageRepository) SetDB ¶
func (repository *VowStorageRepository) SetDB(db *postgres.DB)
Click to show internal directories.
Click to hide internal directories.