Documentation ¶
Index ¶
Constants ¶
View Source
const ( IlkDuty = "duty" IlkRho = "rho" Vat = "vat" Vow = "vow" Base = "base" )
View Source
const ( InsertJugIlkRhoQuery = `INSERT INTO maker.jug_ilk_rho (diff_id, header_id, ilk_id, rho) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING` InsertJugIlkDutyQuery = `INSERT INTO maker.jug_ilk_duty (diff_id, header_id, ilk_id, duty) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING` )
Variables ¶
View Source
var ( IlkMappingIndex = vdbStorage.IndexOne VatKey = common.HexToHash(vdbStorage.IndexTwo) VatMetadata = vdbStorage.GetValueMetadata(Vat, nil, vdbStorage.Address) VowKey = common.HexToHash(vdbStorage.IndexThree) VowMetadata = vdbStorage.GetValueMetadata(Vow, nil, vdbStorage.Bytes32) BaseKey = common.HexToHash(vdbStorage.IndexFour) BaseMetadata = vdbStorage.GetValueMetadata(Base, nil, vdbStorage.Uint256) )
Functions ¶
func NewKeysLoader ¶ added in v0.2.15
func NewKeysLoader(storageRepository mcdStorage.IMakerStorageRepository, contractAddress string) storage.KeysLoader
Types ¶
type JugStorageRepository ¶
type JugStorageRepository struct { ContractAddress string // contains filtered or unexported fields }
func (JugStorageRepository) Create ¶
func (repository JugStorageRepository) Create(diffID, headerID int64, metadata storage.ValueMetadata, value interface{}) error
func (*JugStorageRepository) SetDB ¶
func (repository *JugStorageRepository) SetDB(db *postgres.DB)
Click to show internal directories.
Click to hide internal directories.