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