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 (block_number, block_hash, ilk_id, rho) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING` InsertJugIlkDutyQuery = `INSERT INTO maker.jug_ilk_duty (block_number, block_hash, ilk_id, duty) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING` )
Variables ¶
View Source
var ( IlkMappingIndex = utils.IndexOne VatKey = common.HexToHash(utils.IndexTwo) VatMetadata = utils.GetStorageValueMetadata(Vat, nil, utils.Address) VowKey = common.HexToHash(utils.IndexThree) VowMetadata = utils.GetStorageValueMetadata(Vow, nil, utils.Bytes32) BaseKey = common.HexToHash(utils.IndexFour) BaseMetadata = utils.GetStorageValueMetadata(Base, nil, utils.Uint256) )
Functions ¶
func NewKeysLoader ¶ added in v0.2.15
func NewKeysLoader(storageRepository mcdStorage.IMakerStorageRepository) storage.KeysLoader
Types ¶
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.