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 = types.GetValueMetadata(Pie, nil, types.Uint256) DsrKey = common.HexToHash(vdbStorage.IndexThree) DsrMetadata = types.GetValueMetadata(Dsr, nil, types.Uint256) ChiKey = common.HexToHash(vdbStorage.IndexFour) ChiMetadata = types.GetValueMetadata(Chi, nil, types.Uint256) VatKey = common.HexToHash(vdbStorage.IndexFive) VatMetadata = types.GetValueMetadata(Vat, nil, types.Address) VowKey = common.HexToHash(vdbStorage.IndexSix) VowMetadata = types.GetValueMetadata(Vow, nil, types.Address) RhoKey = common.HexToHash(vdbStorage.IndexSeven) RhoMetadata = types.GetValueMetadata(Rho, nil, types.Uint256) LiveKey = common.HexToHash(vdbStorage.IndexEight) LiveMetadata = types.GetValueMetadata(Live, nil, types.Uint256) )
Functions ¶
func NewKeysLoader ¶
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.