Documentation ¶
Index ¶
Constants ¶
View Source
const (
InsertKicksQuery = `INSERT INTO maker.flap_kicks (diff_id, header_id, address_id, kicks) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING`
)
Variables ¶
View Source
var ( BidsIndex = vdbStorage.IndexOne VatStorageKey = common.HexToHash(vdbStorage.IndexTwo) VatMetadata = vdbStorage.GetValueMetadata(mcdStorage.Vat, nil, vdbStorage.Address) GemStorageKey = common.HexToHash(vdbStorage.IndexThree) GemMetadata = vdbStorage.GetValueMetadata(mcdStorage.Gem, nil, vdbStorage.Address) BegStorageKey = common.HexToHash(vdbStorage.IndexFour) BegMetadata = vdbStorage.GetValueMetadata(mcdStorage.Beg, nil, vdbStorage.Uint256) TtlAndTauStorageKey = common.HexToHash(vdbStorage.IndexFive) TtlAndTauMetadata = vdbStorage.GetValueMetadataForPackedSlot(mcdStorage.Packed, nil, vdbStorage.PackedSlot, ttlAndTauNames, ttlAndTauTypes) KicksStorageKey = common.HexToHash(vdbStorage.IndexSix) KicksMetadata = vdbStorage.GetValueMetadata(mcdStorage.Kicks, nil, vdbStorage.Uint256) LiveStorageKey = common.HexToHash(vdbStorage.IndexSeven) LiveMetadata = vdbStorage.GetValueMetadata(mcdStorage.Live, nil, vdbStorage.Uint256) )
Functions ¶
func NewKeysLoader ¶ added in v0.2.15
func NewKeysLoader(storageRepository mcdStorage.IMakerStorageRepository, contractAddress string) storage.KeysLoader
Types ¶
type FlapStorageRepository ¶
type FlapStorageRepository struct { ContractAddress string // contains filtered or unexported fields }
func (*FlapStorageRepository) Create ¶
func (repository *FlapStorageRepository) Create(diffID, headerID int64, metadata vdbStorage.ValueMetadata, value interface{}) error
func (*FlapStorageRepository) SetDB ¶
func (repository *FlapStorageRepository) SetDB(db *postgres.DB)
Click to show internal directories.
Click to hide internal directories.