Documentation ¶
Index ¶
Constants ¶
View Source
const ( InsertFlopKicksQuery = `INSERT INTO maker.flop_kicks (block_number, block_hash, address_id, kicks) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING` InsertFlopBidBidQuery = `` /* 133-byte string literal not displayed */ InsertFlopBidLotQuery = `` /* 133-byte string literal not displayed */ InsertFlopBidGuyQuery = `` /* 133-byte string literal not displayed */ InsertFlopBidTicQuery = `` /* 133-byte string literal not displayed */ InsertFlopBidEndQuery = `` /* 135-byte string literal not displayed */ )
Variables ¶
View Source
var ( BidsIndex = utils.IndexOne VatKey = common.HexToHash(utils.IndexTwo) VatMetadata = utils.GetStorageValueMetadata(mcdStorage.Vat, nil, utils.Address) GemKey = common.HexToHash(utils.IndexThree) GemMetadata = utils.GetStorageValueMetadata(mcdStorage.Gem, nil, utils.Address) BegKey = common.HexToHash(utils.IndexFour) BegMetadata = utils.GetStorageValueMetadata(mcdStorage.Beg, nil, utils.Uint256) PadKey = common.HexToHash(utils.IndexFive) PadMetadata = utils.GetStorageValueMetadata(mcdStorage.Pad, nil, utils.Uint256) TtlAndTauKey = common.HexToHash(utils.IndexSix) TtlAndTauMetadata = utils.GetStorageValueMetadataForPackedSlot(mcdStorage.Packed, nil, utils.PackedSlot, ttlAndTauNames, ttlAndTauTypes) KicksKey = common.HexToHash(utils.IndexSeven) KicksMetadata = utils.GetStorageValueMetadata(mcdStorage.Kicks, nil, utils.Uint256) LiveKey = common.HexToHash(utils.IndexEight) LiveMetadata = utils.GetStorageValueMetadata(mcdStorage.Live, nil, utils.Uint256) )
Functions ¶
func NewKeysLoader ¶ added in v0.2.15
func NewKeysLoader(storageRepository mcdStorage.IMakerStorageRepository, contractAddress string) storage.KeysLoader
Types ¶
type FlopStorageRepository ¶
type FlopStorageRepository struct { ContractAddress string // contains filtered or unexported fields }
func (*FlopStorageRepository) Create ¶
func (repository *FlopStorageRepository) Create(blockNumber int, blockHash string, metadata utils.StorageValueMetadata, value interface{}) error
func (*FlopStorageRepository) SetDB ¶
func (repository *FlopStorageRepository) SetDB(db *postgres.DB)
Click to show internal directories.
Click to hide internal directories.