Documentation
¶
Index ¶
Constants ¶
View Source
const ( InsertFlopKicksQuery = `` /* 127-byte string literal not displayed */ InsertFlopBidBidQuery = `` /* 139-byte string literal not displayed */ InsertFlopBidLotQuery = `` /* 139-byte string literal not displayed */ InsertFlopBidGuyQuery = `` /* 139-byte string literal not displayed */ InsertFlopBidTicQuery = `` /* 139-byte string literal not displayed */ InsertFlopBidEndQuery = `` /* 141-byte string literal not displayed */ )
View Source
const ( Vat = "vat" Gem = "gem" Beg = "beg" Ttl = "ttl" Tau = "tau" Kicks = "kicks" Live = "live" Packed = "packed_storage_values" BidBid = "bid" BidLot = "lot" BidGuy = "guy" BidTic = "tic" BidEnd = "end" )
Variables ¶
View Source
var ( BidsIndex = storage.IndexOne VatKey = common.HexToHash(storage.IndexTwo) VatMetadata = utils.GetStorageValueMetadata(Vat, nil, utils.Address) GemKey = common.HexToHash(storage.IndexThree) GemMetadata = utils.GetStorageValueMetadata(Gem, nil, utils.Address) BegKey = common.HexToHash(storage.IndexFour) BegMetadata = utils.GetStorageValueMetadata(Beg, nil, utils.Uint256) TtlAndTauKey = common.HexToHash(storage.IndexFive) TtlAndTauMetadata = utils.GetStorageValueMetadataForPackedSlot(Packed, nil, utils.PackedSlot, packedNames, packedTypes) KicksKey = common.HexToHash(storage.IndexSix) KicksMetadata = utils.GetStorageValueMetadata(Kicks, nil, utils.Uint256) LiveKey = common.HexToHash(storage.IndexSeven) LiveMetadata = utils.GetStorageValueMetadata(Live, nil, utils.Uint256) )
Functions ¶
This section is empty.
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)
type StorageKeysLookup ¶
type StorageKeysLookup struct {
StorageRepository s2.IMakerStorageRepository
ContractAddress string
// contains filtered or unexported fields
}
func (StorageKeysLookup) Lookup ¶
func (mappings StorageKeysLookup) Lookup(key common.Hash) (utils.StorageValueMetadata, error)
func (*StorageKeysLookup) SetDB ¶
func (mappings *StorageKeysLookup) SetDB(db *postgres.DB)
Click to show internal directories.
Click to hide internal directories.