Documentation ¶
Index ¶
- Constants
- Variables
- func GetIlkChopKey(ilk string) common.Hash
- func GetIlkChopMetadata(ilk string) types.ValueMetadata
- func GetIlkFlipKey(ilk string) common.Hash
- func GetIlkFlipMetadata(ilk string) types.ValueMetadata
- func LoadSharedMappings(mappings map[common.Hash]types.ValueMetadata, address string, ...) (map[common.Hash]types.ValueMetadata, error)
- type StorageRepository
Constants ¶
View Source
const ( Live = "live" Vat = "vat" Vow = "vow" Box = "box" Litter = "litter" IlkFlip = "flip" IlkChop = "chop" IlkLump = "lump" IlkDunk = "dunk" InsertCatIlkChopQuery = `` /* 128-byte string literal not displayed */ InsertCatIlkFlipQuery = `` /* 128-byte string literal not displayed */ InsertCatIlkLumpQuery = `` /* 128-byte string literal not displayed */ )
Variables ¶
View Source
var ( IlksMappingIndex = vdbStorage.IndexOne // bytes32 => flip address; chop (ray), lump (wad) uint256 LiveKey = common.HexToHash(vdbStorage.IndexTwo) LiveMetadata = types.GetValueMetadata(Live, nil, types.Uint256) VatKey = common.HexToHash(vdbStorage.IndexThree) VatMetadata = types.GetValueMetadata(Vat, nil, types.Address) VowKey = common.HexToHash(vdbStorage.IndexFour) VowMetadata = types.GetValueMetadata(Vow, nil, types.Address) )
Functions ¶
func GetIlkChopKey ¶
func GetIlkChopMetadata ¶
func GetIlkChopMetadata(ilk string) types.ValueMetadata
func GetIlkFlipKey ¶
func GetIlkFlipMetadata ¶
func GetIlkFlipMetadata(ilk string) types.ValueMetadata
func LoadSharedMappings ¶
func LoadSharedMappings(mappings map[common.Hash]types.ValueMetadata, address string, repository mcdStorage.IMakerStorageRepository) (map[common.Hash]types.ValueMetadata, error)
Types ¶
type StorageRepository ¶
type StorageRepository struct { ContractAddress string // contains filtered or unexported fields }
func (*StorageRepository) ContractAddressID ¶
func (repository *StorageRepository) ContractAddressID() (int64, error)
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.