Documentation ¶
Index ¶
Constants ¶
View Source
const ( InsertFlopKicksQuery = `INSERT INTO maker.flop_kicks (diff_id, header_id, address_id, kicks) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING` InsertFlopBidBidQuery = `` /* 127-byte string literal not displayed */ InsertFlopBidLotQuery = `` /* 127-byte string literal not displayed */ InsertFlopBidGuyQuery = `` /* 127-byte string literal not displayed */ InsertFlopBidTicQuery = `` /* 127-byte string literal not displayed */ InsertFlopBidEndQuery = `` /* 129-byte string literal not displayed */ )
Variables ¶
View Source
var ( BidsIndex = vdbStorage.IndexOne VatKey = common.HexToHash(vdbStorage.IndexTwo) VatMetadata = types.GetValueMetadata(mcdStorage.Vat, nil, types.Address) GemKey = common.HexToHash(vdbStorage.IndexThree) GemMetadata = types.GetValueMetadata(mcdStorage.Gem, nil, types.Address) BegKey = common.HexToHash(vdbStorage.IndexFour) BegMetadata = types.GetValueMetadata(mcdStorage.Beg, nil, types.Uint256) PadKey = common.HexToHash(vdbStorage.IndexFive) PadMetadata = types.GetValueMetadata(mcdStorage.Pad, nil, types.Uint256) TTLAndTauKey = common.HexToHash(vdbStorage.IndexSix) TTLAndTauMetadata = types.GetValueMetadataForPackedSlot(mcdStorage.Packed, nil, types.PackedSlot, ttlAndTauNames, ttlAndTauTypes) KicksKey = common.HexToHash(vdbStorage.IndexSeven) KicksMetadata = types.GetValueMetadata(mcdStorage.Kicks, nil, types.Uint256) LiveKey = common.HexToHash(vdbStorage.IndexEight) LiveMetadata = types.GetValueMetadata(mcdStorage.Live, nil, types.Uint256) VowKey = common.HexToHash(vdbStorage.IndexNine) VowMetadata = types.GetValueMetadata(mcdStorage.Vow, nil, types.Address) )
Functions ¶
func NewKeysLoader ¶ added in v0.2.15
func NewKeysLoader(storageRepository mcdStorage.IMakerStorageRepository, contractAddress string) storage.KeysLoader
Types ¶
type StorageRepository ¶
type StorageRepository struct { ContractAddress string // contains filtered or unexported fields }
func (*StorageRepository) Create ¶
func (repository *StorageRepository) Create(diffID, headerID int64, metadata types.ValueMetadata, value interface{}) error
func (*StorageRepository) SetDB ¶
func (repository *StorageRepository) SetDB(db *postgres.DB)
Click to show internal directories.
Click to hide internal directories.