Documentation ¶
Index ¶
Constants ¶
View Source
const ( UserPie = "pie" Pie = "Pie" Dsr = "dsr" Chi = "chi" Vat = "vat" Vow = "vow" Rho = "rho" Live = "live" )
Variables ¶
View Source
var ( UserPieIndex = vdbStorage.IndexOne PieKey = common.HexToHash(vdbStorage.IndexTwo) PieMetadata = vdbStorage.GetValueMetadata(Pie, nil, vdbStorage.Uint256) DsrKey = common.HexToHash(vdbStorage.IndexThree) DsrMetadata = vdbStorage.GetValueMetadata(Dsr, nil, vdbStorage.Uint256) ChiKey = common.HexToHash(vdbStorage.IndexFour) ChiMetadata = vdbStorage.GetValueMetadata(Chi, nil, vdbStorage.Uint256) VatKey = common.HexToHash(vdbStorage.IndexFive) VatMetadata = vdbStorage.GetValueMetadata(Vat, nil, vdbStorage.Address) VowKey = common.HexToHash(vdbStorage.IndexSix) VowMetadata = vdbStorage.GetValueMetadata(Vow, nil, vdbStorage.Address) RhoKey = common.HexToHash(vdbStorage.IndexSeven) RhoMetadata = vdbStorage.GetValueMetadata(Rho, nil, vdbStorage.Uint256) LiveKey = common.HexToHash(vdbStorage.IndexEight) LiveMetadata = vdbStorage.GetValueMetadata(Live, nil, vdbStorage.Uint256) )
Functions ¶
func NewKeysLoader ¶
func NewKeysLoader(storageRepository mcdStorage.IMakerStorageRepository) storage.KeysLoader
Types ¶
type PotStorageRepository ¶
type PotStorageRepository struct {
// contains filtered or unexported fields
}
func (PotStorageRepository) Create ¶
func (repository PotStorageRepository) Create(diffID, headerID int64, metadata storage.ValueMetadata, value interface{}) error
func (*PotStorageRepository) SetDB ¶
func (repository *PotStorageRepository) SetDB(db *postgres.DB)
Click to show internal directories.
Click to hide internal directories.