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 = types.GetValueMetadata(mcdStorage.Vat, nil, types.Address) GemStorageKey = common.HexToHash(vdbStorage.IndexThree) GemMetadata = types.GetValueMetadata(mcdStorage.Gem, nil, types.Address) BegStorageKey = common.HexToHash(vdbStorage.IndexFour) BegMetadata = types.GetValueMetadata(mcdStorage.Beg, nil, types.Uint256) TTLAndTauStorageKey = common.HexToHash(vdbStorage.IndexFive) TTLAndTauMetadata = types.GetValueMetadataForPackedSlot(mcdStorage.Packed, nil, types.PackedSlot, ttlAndTauNames, ttlAndTauTypes) KicksStorageKey = common.HexToHash(vdbStorage.IndexSix) KicksMetadata = types.GetValueMetadata(mcdStorage.Kicks, nil, types.Uint256) LiveStorageKey = common.HexToHash(vdbStorage.IndexSeven) LiveMetadata = types.GetValueMetadata(mcdStorage.Live, nil, types.Uint256) )
Functions ¶
func NewKeysLoader ¶ added in v0.2.15
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.