Documentation ¶
Index ¶
Constants ¶
View Source
const ( InsertFlipKicksQuery = `INSERT INTO maker.flip_kicks (diff_id, header_id, address_id, kicks) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING` InsertFlipBidBidQuery = `` /* 127-byte string literal not displayed */ InsertFlipBidLotQuery = `` /* 127-byte string literal not displayed */ InsertFlipBidGuyQuery = `` /* 127-byte string literal not displayed */ InsertFlipBidTicQuery = `` /* 127-byte string literal not displayed */ InsertFlipBidEndQuery = `` /* 129-byte string literal not displayed */ InsertFlipBidUsrQuery = `` /* 127-byte string literal not displayed */ InsertFlipBidGalQuery = `` /* 127-byte string literal not displayed */ InsertFlipBidTabQuery = `` /* 127-byte string literal not displayed */ )
Variables ¶
View Source
var ( BidsMappingIndex = vdbStorage.IndexOne VatKey = common.HexToHash(vdbStorage.IndexTwo) VatMetadata = vdbStorage.GetValueMetadata(mcdStorage.Vat, nil, vdbStorage.Address) IlkKey = common.HexToHash(vdbStorage.IndexThree) IlkMetadata = vdbStorage.GetValueMetadata(mcdStorage.Ilk, nil, vdbStorage.Bytes32) BegKey = common.HexToHash(vdbStorage.IndexFour) BegMetadata = vdbStorage.GetValueMetadata(mcdStorage.Beg, nil, vdbStorage.Uint256) TtlAndTauStorageKey = common.HexToHash(vdbStorage.IndexFive) TtlAndTauMetadata = vdbStorage.GetValueMetadataForPackedSlot(mcdStorage.Packed, nil, vdbStorage.PackedSlot, ttlAndTauNames, ttlAndTauTypes) KicksKey = common.HexToHash(vdbStorage.IndexSix) KicksMetadata = vdbStorage.GetValueMetadata(mcdStorage.Kicks, nil, vdbStorage.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(diffID, headerID int64, metadata vdbStorage.ValueMetadata, value interface{}) error
func (*FlipStorageRepository) SetDB ¶
func (repository *FlipStorageRepository) SetDB(db *postgres.DB)
Click to show internal directories.
Click to hide internal directories.