Documentation ¶
Index ¶
Constants ¶
View Source
const ( Dai = "dai" Gem = "gem" IlkArt = "Art" IlkDust = "dust" IlkLine = "line" IlkRate = "rate" IlkSpot = "spot" Sin = "sin" UrnArt = "art" UrnInk = "ink" Debt = "debt" Vice = "vice" Line = "Line" Live = "live" )
View Source
const ( InsertIlkArtQuery = `INSERT INTO maker.vat_ilk_art (block_number, block_hash, ilk_id, art) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING` InsertIlkDustQuery = `INSERT INTO maker.vat_ilk_dust (block_number, block_hash, ilk_id, dust) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING` InsertIlkLineQuery = `INSERT INTO maker.vat_ilk_line (block_number, block_hash, ilk_id, line) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING` InsertIlkRateQuery = `INSERT INTO maker.vat_ilk_rate (block_number, block_hash, ilk_id, rate) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING` InsertIlkSpotQuery = `INSERT INTO maker.vat_ilk_spot (block_number, block_hash, ilk_id, spot) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING` InsertUrnArtQuery = `INSERT INTO maker.vat_urn_art (block_number, block_hash, urn_id, art) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING` InsertUrnInkQuery = `INSERT INTO maker.vat_urn_ink (block_number, block_hash, urn_id, ink) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING` )
Variables ¶
View Source
var ( IlksMappingIndex = utils.IndexTwo UrnsMappingIndex = utils.IndexThree GemsMappingIndex = utils.IndexFour DaiMappingIndex = utils.IndexFive SinMappingIndex = utils.IndexSix DebtKey = common.HexToHash(utils.IndexSeven) DebtMetadata = utils.StorageValueMetadata{ Name: Debt, Keys: nil, Type: utils.Uint256, } ViceKey = common.HexToHash(utils.IndexEight) ViceMetadata = utils.StorageValueMetadata{ Name: Vice, Keys: nil, Type: utils.Uint256, } LineKey = common.HexToHash(utils.IndexNine) LineMetadata = utils.StorageValueMetadata{ Name: Line, Keys: nil, Type: utils.Uint256, } LiveKey = common.HexToHash(utils.IndexTen) LiveMetadata = utils.StorageValueMetadata{ Name: Live, Keys: nil, Type: utils.Uint256, } )
Functions ¶
func NewKeysLoader ¶ added in v0.2.13
func NewKeysLoader(storageRepository mcdStorage.IMakerStorageRepository) storage.KeysLoader
Types ¶
type VatStorageRepository ¶
type VatStorageRepository struct {
// contains filtered or unexported fields
}
func (*VatStorageRepository) Create ¶
func (repository *VatStorageRepository) Create(blockNumber int, blockHash string, metadata utils.StorageValueMetadata, value interface{}) error
func (*VatStorageRepository) SetDB ¶
func (repository *VatStorageRepository) SetDB(db *postgres.DB)
Click to show internal directories.
Click to hide internal directories.