Documentation ¶
Index ¶
Constants ¶
View Source
const ( InsertFlipKicksQuery = `` /* 127-byte string literal not displayed */ InsertFlipBidBidQuery = `` /* 139-byte string literal not displayed */ InsertFlipBidLotQuery = `` /* 139-byte string literal not displayed */ InsertFlipBidGuyQuery = `` /* 139-byte string literal not displayed */ InsertFlipBidTicQuery = `` /* 139-byte string literal not displayed */ InsertFlipBidEndQuery = `` /* 141-byte string literal not displayed */ InsertFlipBidUsrQuery = `` /* 139-byte string literal not displayed */ InsertFlipBidGalQuery = `` /* 139-byte string literal not displayed */ InsertFlipBidTabQuery = `` /* 139-byte string literal not displayed */ )
View Source
const ( Vat = "vat" Ilk = "ilk" Beg = "beg" Ttl = "ttl" Tau = "tau" Kicks = "kicks" Packed = "packed_storage_values" BidBid = "bid" BidLot = "lot" BidGuy = "guy" BidTic = "tic" BidEnd = "end" BidUsr = "usr" BidGal = "gal" BidTab = "tab" )
Variables ¶
View Source
var ( BidsMappingIndex = storage.IndexOne VatKey = common.HexToHash(storage.IndexTwo) VatMetadata = utils.GetStorageValueMetadata(Vat, nil, utils.Address) IlkKey = common.HexToHash(storage.IndexThree) IlkMetadata = utils.GetStorageValueMetadata(Ilk, nil, utils.Bytes32) BegKey = common.HexToHash(storage.IndexFour) BegMetadata = utils.GetStorageValueMetadata(Beg, nil, utils.Uint256) TtlAndTauStorageKey = 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) )
Functions ¶
This section is empty.
Types ¶
type FlipStorageRepository ¶
type FlipStorageRepository struct { ContractAddress string // contains filtered or unexported fields }
func (*FlipStorageRepository) Create ¶
func (repository *FlipStorageRepository) Create(blockNumber int, blockHash string, metadata utils.StorageValueMetadata, value interface{}) error
func (*FlipStorageRepository) SetDB ¶
func (repository *FlipStorageRepository) 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.