Documentation ¶
Index ¶
Constants ¶
View Source
const ( IlkTax = "tax" IlkRho = "rho" DripVat = "vat" DripVow = "vow" DripRepo = "repo" )
Variables ¶
View Source
var ( IlkMappingIndex = storage.IndexOne VatKey = common.HexToHash(storage.IndexTwo) VatMetadata = utils.GetStorageValueMetadata(DripVat, nil, utils.Address) VowKey = common.HexToHash(storage.IndexThree) VowMetadata = utils.GetStorageValueMetadata(DripVow, nil, utils.Bytes32) RepoKey = common.HexToHash(storage.IndexFour) RepoMetadata = utils.GetStorageValueMetadata(DripRepo, nil, utils.Uint256) )
Functions ¶
This section is empty.
Types ¶
type DripMappings ¶
type DripMappings struct { StorageRepository storage2.IMakerStorageRepository // contains filtered or unexported fields }
func (*DripMappings) Lookup ¶
func (mappings *DripMappings) Lookup(key common.Hash) (utils.StorageValueMetadata, error)
func (*DripMappings) SetDB ¶
func (mappings *DripMappings) SetDB(db *postgres.DB)
type DripStorageRepository ¶
type DripStorageRepository struct {
// contains filtered or unexported fields
}
func (DripStorageRepository) Create ¶
func (repository DripStorageRepository) Create(blockNumber int, blockHash string, metadata utils.StorageValueMetadata, value interface{}) error
func (*DripStorageRepository) SetDB ¶
func (repository *DripStorageRepository) SetDB(db *postgres.DB)
Click to show internal directories.
Click to hide internal directories.