Documentation ¶
Index ¶
Constants ¶
View Source
const ( IlkPip = "pip" IlkMat = "mat" Vat = "vat" Par = "par" Live = "live" )
View Source
const ( InsertSpotIlkPipQuery = `INSERT INTO maker.spot_ilk_pip (diff_id, header_id, ilk_id, pip) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING` InsertSpotIlkMatQuery = `INSERT INTO maker.spot_ilk_mat (diff_id, header_id, ilk_id, mat) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING` )
Variables ¶
View Source
var ( IlkMappingIndex = vdbStorage.IndexOne VatKey = common.HexToHash(vdbStorage.IndexTwo) VatMetadata = types.GetValueMetadata(Vat, nil, types.Address) ParKey = common.HexToHash(vdbStorage.IndexThree) ParMetadata = types.GetValueMetadata(Par, nil, types.Uint256) LiveKey = common.HexToHash(vdbStorage.IndexFour) LiveMetadata = types.GetValueMetadata(Live, nil, types.Uint256) )
Functions ¶
func NewKeysLoader ¶ added in v0.2.15
func NewKeysLoader(storageRepository mcdStorage.IMakerStorageRepository, contractAddress string) storage.KeysLoader
Types ¶
type StorageRepository ¶
type StorageRepository struct { ContractAddress string // contains filtered or unexported fields }
func (StorageRepository) Create ¶
func (repository StorageRepository) Create(diffID, headerID int64, metadata types.ValueMetadata, value interface{}) error
func (*StorageRepository) SetDB ¶
func (repository *StorageRepository) SetDB(db *postgres.DB)
Click to show internal directories.
Click to hide internal directories.