cat

package
v1.1.2-mainnet.rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2020 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

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 GetIlkChopKey(ilk string) common.Hash

func GetIlkChopMetadata

func GetIlkChopMetadata(ilk string) types.ValueMetadata

func GetIlkFlipKey

func GetIlkFlipKey(ilk string) common.Hash

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL