cat

package
v0.2.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NFlip = "nflip"
	Live  = "live"
	Vat   = "vat"
	Vow   = "vow"

	IlkFlip = "flip"
	IlkChop = "chop"
	IlkLump = "lump"

	FlipIlk = "ilk"
	FlipUrn = "urn"
	FlipInk = "ink"
	FlipTab = "tab"
)

Variables

View Source
var (
	// wards takes up index 0
	IlksMappingIndex  = storage.IndexOne // bytes32 => flip address; chop (ray), lump (wad) uint256
	FlipsMappingIndex = storage.IndexTwo // uint256 => ilk, urn bytes32; ink, tab uint256 (both wad)

	NFlipKey      = common.HexToHash(storage.IndexThree)
	NFlipMetadata = utils.GetStorageValueMetadata(NFlip, nil, utils.Uint256)

	LiveKey      = common.HexToHash(storage.IndexFour)
	LiveMetadata = utils.GetStorageValueMetadata(Live, nil, utils.Uint256)

	VatKey      = common.HexToHash(storage.IndexFive)
	VatMetadata = utils.GetStorageValueMetadata(Vat, nil, utils.Address)

	VowKey      = common.HexToHash(storage.IndexSix)
	VowMetadata = utils.GetStorageValueMetadata(Vow, nil, utils.Address)
)

Functions

This section is empty.

Types

type CatMappings

type CatMappings struct {
	StorageRepository s2.IMakerStorageRepository
	// contains filtered or unexported fields
}

func (CatMappings) Lookup

func (mappings CatMappings) Lookup(key common.Hash) (utils.StorageValueMetadata, error)

func (*CatMappings) SetDB

func (mappings *CatMappings) SetDB(db *postgres.DB)

type CatStorageRepository

type CatStorageRepository struct {
	// contains filtered or unexported fields
}

func (*CatStorageRepository) Create

func (repository *CatStorageRepository) Create(blockNumber int, blockHash string, metadata utils.StorageValueMetadata, value interface{}) error

func (*CatStorageRepository) SetDB

func (repository *CatStorageRepository) 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