Documentation ¶
Index ¶
Constants ¶
View Source
const ( IlkPip = "pip" IlkMat = "mat" SpotVat = "vat" SpotPar = "par" )
View Source
const ( InsertSpotIlkPipQuery = `INSERT INTO maker.spot_ilk_pip (block_number, block_hash, ilk_id, pip) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING` InsertSpotIlkMatQuery = `INSERT INTO maker.spot_ilk_mat (block_number, block_hash, ilk_id, mat) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING` )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type SpotMappings ¶
type SpotMappings struct { StorageRepository storage2.IMakerStorageRepository // contains filtered or unexported fields }
func (*SpotMappings) Lookup ¶
func (mappings *SpotMappings) Lookup(key common.Hash) (utils.StorageValueMetadata, error)
func (*SpotMappings) SetDB ¶
func (mappings *SpotMappings) SetDB(db *postgres.DB)
type SpotStorageRepository ¶
type SpotStorageRepository struct {
// contains filtered or unexported fields
}
func (SpotStorageRepository) Create ¶
func (repository SpotStorageRepository) Create(blockNumber int, blockHash string, metadata utils.StorageValueMetadata, value interface{}) error
func (*SpotStorageRepository) SetDB ¶
func (repository *SpotStorageRepository) SetDB(db *postgres.DB)
Click to show internal directories.
Click to hide internal directories.