vat

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Dai     = "dai"
	Gem     = "gem"
	IlkArt  = "Art"
	IlkInk  = "Ink"
	IlkRate = "rate"
	IlkTake = "take"
	Sin     = "sin"
	UrnArt  = "art"
	UrnInk  = "ink"
	VatDebt = "debt"
	VatVice = "vice"
)

Variables

View Source
var (
	DebtKey      = common.HexToHash(storage.IndexSix)
	DebtMetadata = utils.StorageValueMetadata{
		Name: VatDebt,
		Keys: nil,
		Type: utils.Uint256,
	}

	IlksMappingIndex = storage.IndexOne
	UrnsMappingIndex = storage.IndexTwo
	GemsMappingIndex = storage.IndexThree
	DaiMappingIndex  = storage.IndexFour
	SinMappingIndex  = storage.IndexFive

	ViceKey      = common.HexToHash(storage.IndexSeven)
	ViceMetadata = utils.StorageValueMetadata{
		Name: VatVice,
		Keys: nil,
		Type: utils.Uint256,
	}
)

Functions

This section is empty.

Types

type VatMappings

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

func (VatMappings) Lookup

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

func (*VatMappings) SetDB

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

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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