Documentation ¶
Index ¶
Constants ¶
View Source
const ( Dai = "dai" Gem = "gem" IlkArt = "Art" IlkDust = "dust" IlkLine = "line" IlkRate = "rate" IlkSpot = "spot" Sin = "sin" UrnArt = "art" UrnInk = "ink" VatDebt = "debt" VatVice = "vice" VatLine = "Line" VatLive = "live" )
Variables ¶
View Source
var ( IlksMappingIndex = storage.IndexTwo UrnsMappingIndex = storage.IndexThree GemsMappingIndex = storage.IndexFour DaiMappingIndex = storage.IndexFive SinMappingIndex = storage.IndexSix DebtKey = common.HexToHash(storage.IndexSeven) DebtMetadata = utils.StorageValueMetadata{ Name: VatDebt, Keys: nil, Type: utils.Uint256, } ViceKey = common.HexToHash(storage.IndexEight) ViceMetadata = utils.StorageValueMetadata{ Name: VatVice, Keys: nil, Type: utils.Uint256, } LineKey = common.HexToHash(storage.IndexNine) LineMetadata = utils.StorageValueMetadata{ Name: VatLine, Keys: nil, Type: utils.Uint256, } LiveKey = common.HexToHash(storage.IndexTen) LiveMetadata = utils.StorageValueMetadata{ Name: VatLive, Keys: nil, Type: utils.Uint256, } )
Functions ¶
This section is empty.
Types ¶
type VatMappings ¶
type VatMappings struct { StorageRepository s2.IMakerStorageRepository // contains filtered or unexported fields }
func (VatMappings) Lookup ¶
func (mappings VatMappings) Lookup(key common.Hash) (utils.StorageValueMetadata, error)
func (*VatMappings) SetDB ¶
func (mappings *VatMappings) SetDB(db *postgres.DB)
type VatStorageRepository ¶
type VatStorageRepository struct {
// contains filtered or unexported fields
}
func (*VatStorageRepository) Create ¶
func (repository *VatStorageRepository) Create(blockNumber int, blockHash string, metadata utils.StorageValueMetadata, value interface{}) error
func (*VatStorageRepository) SetDB ¶
func (repository *VatStorageRepository) SetDB(db *postgres.DB)
Click to show internal directories.
Click to hide internal directories.