pit

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 (
	IlkLine = "line"
	IlkSpot = "spot"
	PitDrip = "drip"
	PitLine = "Line"
	PitLive = "live"
	PitVat  = "vat"
)

Variables

View Source
var (
	// storage key and value metadata for "drip" on the Pit contract
	DripKey      = common.HexToHash(storage.IndexFive)
	DripMetadata = utils.StorageValueMetadata{
		Name: PitDrip,
		Keys: nil,
		Type: utils.Address,
	}

	IlkSpotIndex = storage.IndexOne

	// storage key and value metadata for "Spot" on the Pit contract
	LineKey      = common.HexToHash(storage.IndexThree)
	LineMetadata = utils.StorageValueMetadata{
		Name: PitLine,
		Keys: nil,
		Type: utils.Uint256,
	}

	// storage key and value metadata for "live" on the Pit contract
	LiveKey      = common.HexToHash(storage.IndexTwo)
	LiveMetadata = utils.StorageValueMetadata{
		Name: PitLive,
		Keys: nil,
		Type: utils.Uint256,
	}

	// storage key and value metadata for "vat" on the Pit contract
	VatKey      = common.HexToHash(storage.IndexFour)
	VatMetadata = utils.StorageValueMetadata{
		Name: PitVat,
		Keys: nil,
		Type: utils.Address,
	}
)

Functions

This section is empty.

Types

type PitMappings

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

func (*PitMappings) Lookup

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

func (*PitMappings) SetDB

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

type PitStorageRepository

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

func (PitStorageRepository) Create

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

func (*PitStorageRepository) SetDB

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