Documentation ¶
Index ¶
Constants ¶
View Source
const ( Vat = "vat" Flapper = "flapper" Flopper = "flopper" SinMapping = "sin" SinInteger = "Sin" Ash = "Ash" Wait = "wait" Dump = "dump" Sump = "sump" Bump = "bump" Hump = "hump" )
Variables ¶
View Source
var ( VatKey = common.HexToHash(vdbStorage.IndexOne) VatMetadata = vdbStorage.ValueMetadata{ Name: Vat, Keys: nil, Type: vdbStorage.Address, } FlapperKey = common.HexToHash(vdbStorage.IndexTwo) FlapperMetadata = vdbStorage.ValueMetadata{ Name: Flapper, Keys: nil, Type: vdbStorage.Address, } FlopperKey = common.HexToHash(vdbStorage.IndexThree) FlopperMetadata = vdbStorage.ValueMetadata{ Name: Flopper, Keys: nil, Type: vdbStorage.Address, } SinMappingIndex = vdbStorage.IndexFour SinIntegerKey = common.HexToHash(vdbStorage.IndexFive) SinIntegerMetadata = vdbStorage.ValueMetadata{ Name: SinInteger, Keys: nil, Type: vdbStorage.Uint256, } AshKey = common.HexToHash(vdbStorage.IndexSix) AshMetadata = vdbStorage.ValueMetadata{ Name: Ash, Keys: nil, Type: vdbStorage.Uint256, } WaitKey = common.HexToHash(vdbStorage.IndexSeven) WaitMetadata = vdbStorage.ValueMetadata{ Name: Wait, Keys: nil, Type: vdbStorage.Uint256, } DumpKey = common.HexToHash(vdbStorage.IndexEight) DumpMetadata = vdbStorage.ValueMetadata{ Name: Dump, Keys: nil, Type: vdbStorage.Uint256, } SumpKey = common.HexToHash(vdbStorage.IndexNine) SumpMetadata = vdbStorage.ValueMetadata{ Name: Sump, Keys: nil, Type: vdbStorage.Uint256, } BumpKey = common.HexToHash(vdbStorage.IndexTen) BumpMetadata = vdbStorage.ValueMetadata{ Name: Bump, Keys: nil, Type: vdbStorage.Uint256, } HumpKey = common.HexToHash(vdbStorage.IndexEleven) HumpMetadata = vdbStorage.ValueMetadata{ Name: Hump, Keys: nil, Type: vdbStorage.Uint256, } )
Functions ¶
func NewKeysLoader ¶ added in v0.2.15
func NewKeysLoader(storageRepository mcdStorage.IMakerStorageRepository) storage.KeysLoader
Types ¶
type VowStorageRepository ¶
type VowStorageRepository struct {
// contains filtered or unexported fields
}
func (VowStorageRepository) Create ¶
func (repository VowStorageRepository) Create(diffID, headerID int64, metadata storage.ValueMetadata, value interface{}) error
func (*VowStorageRepository) SetDB ¶
func (repository *VowStorageRepository) SetDB(db *postgres.DB)
Click to show internal directories.
Click to hide internal directories.