Documentation ¶
Index ¶
Constants ¶
View Source
const (
InsertKicksQuery = `INSERT INTO maker.flap_kicks (block_number, block_hash, address_id, kicks) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING`
)
Variables ¶
View Source
var ( BidsIndex = utils.IndexOne VatStorageKey = common.HexToHash(utils.IndexTwo) VatMetadata = utils.GetStorageValueMetadata(mcdStorage.Vat, nil, utils.Address) GemStorageKey = common.HexToHash(utils.IndexThree) GemMetadata = utils.GetStorageValueMetadata(mcdStorage.Gem, nil, utils.Address) BegStorageKey = common.HexToHash(utils.IndexFour) BegMetadata = utils.GetStorageValueMetadata(mcdStorage.Beg, nil, utils.Uint256) TtlAndTauStorageKey = common.HexToHash(utils.IndexFive) TtlAndTauMetadata = utils.GetStorageValueMetadataForPackedSlot(mcdStorage.Packed, nil, utils.PackedSlot, ttlAndTauNames, ttlAndTauTypes) KicksStorageKey = common.HexToHash(utils.IndexSix) KicksMetadata = utils.GetStorageValueMetadata(mcdStorage.Kicks, nil, utils.Uint256) LiveStorageKey = common.HexToHash(utils.IndexSeven) LiveMetadata = utils.GetStorageValueMetadata(mcdStorage.Live, nil, utils.Uint256) )
Functions ¶
func NewKeysLoader ¶ added in v0.2.13
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(blockNumber int, blockHash string, metadata utils.StorageValueMetadata, value interface{}) error
func (*FlapStorageRepository) SetDB ¶
func (repository *FlapStorageRepository) SetDB(db *postgres.DB)
Click to show internal directories.
Click to hide internal directories.