Documentation ¶
Index ¶
Constants ¶
View Source
const ( Live = "live" Vat = "vat" Vow = "vow" IlkFlip = "flip" IlkChop = "chop" IlkLump = "lump" )
View Source
const ( InsertCatIlkChopQuery = `INSERT INTO maker.cat_ilk_chop (block_number, block_hash, ilk_id, chop) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING` InsertCatIlkFlipQuery = `INSERT INTO maker.cat_ilk_flip (block_number, block_hash, ilk_id, flip) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING` InsertCatIlkLumpQuery = `INSERT INTO maker.cat_ilk_lump (block_number, block_hash, ilk_id, lump) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING` )
Variables ¶
View Source
var ( // wards takes up index 0 IlksMappingIndex = storage.IndexOne // bytes32 => flip address; chop (ray), lump (wad) uint256 LiveKey = common.HexToHash(storage.IndexTwo) LiveMetadata = utils.GetStorageValueMetadata(Live, nil, utils.Uint256) VatKey = common.HexToHash(storage.IndexThree) VatMetadata = utils.GetStorageValueMetadata(Vat, nil, utils.Address) VowKey = common.HexToHash(storage.IndexFour) VowMetadata = utils.GetStorageValueMetadata(Vow, nil, utils.Address) )
Functions ¶
This section is empty.
Types ¶
type CatMappings ¶
type CatMappings struct { StorageRepository s2.IMakerStorageRepository // contains filtered or unexported fields }
func (CatMappings) Lookup ¶
func (mappings CatMappings) Lookup(key common.Hash) (utils.StorageValueMetadata, error)
func (*CatMappings) SetDB ¶
func (mappings *CatMappings) SetDB(db *postgres.DB)
type CatStorageRepository ¶
type CatStorageRepository struct {
// contains filtered or unexported fields
}
func (*CatStorageRepository) Create ¶
func (repository *CatStorageRepository) Create(blockNumber int, blockHash string, metadata utils.StorageValueMetadata, value interface{}) error
func (*CatStorageRepository) SetDB ¶
func (repository *CatStorageRepository) SetDB(db *postgres.DB)
Click to show internal directories.
Click to hide internal directories.