Documentation ¶
Index ¶
Constants ¶
View Source
const ( InsertFlipKicksQuery = `INSERT INTO maker.flip_kicks (block_number, block_hash, address_id, kicks) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING` InsertFlipBidBidQuery = `` /* 133-byte string literal not displayed */ InsertFlipBidLotQuery = `` /* 133-byte string literal not displayed */ InsertFlipBidGuyQuery = `` /* 133-byte string literal not displayed */ InsertFlipBidTicQuery = `` /* 133-byte string literal not displayed */ InsertFlipBidEndQuery = `` /* 135-byte string literal not displayed */ InsertFlipBidUsrQuery = `` /* 133-byte string literal not displayed */ InsertFlipBidGalQuery = `` /* 133-byte string literal not displayed */ InsertFlipBidTabQuery = `` /* 133-byte string literal not displayed */ )
Variables ¶
View Source
var ( BidsMappingIndex = utils.IndexOne VatKey = common.HexToHash(utils.IndexTwo) VatMetadata = utils.GetStorageValueMetadata(mcdStorage.Vat, nil, utils.Address) IlkKey = common.HexToHash(utils.IndexThree) IlkMetadata = utils.GetStorageValueMetadata(mcdStorage.Ilk, nil, utils.Bytes32) BegKey = 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) KicksKey = common.HexToHash(utils.IndexSix) KicksMetadata = utils.GetStorageValueMetadata(mcdStorage.Kicks, nil, utils.Uint256) )
Functions ¶
func NewKeysLoader ¶ added in v0.2.15
func NewKeysLoader(storageRepository mcdStorage.IMakerStorageRepository, contractAddress string) storage.KeysLoader
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)
Click to show internal directories.
Click to hide internal directories.