vow

package
v0.2.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Vat        = "vat"
	Flapper    = "flapper"
	Flopper    = "flopper"
	SinMapping = "sin"
	SinInteger = "Sin"
	Ash        = "Ash"
	Wait       = "wait"
	Dump       = "dump"
	Sump       = "sump"
	Bump       = "bump"
	Hump       = "hump"
)

Variables

View Source
var (
	VatKey      = common.HexToHash(utils.IndexOne)
	VatMetadata = utils.StorageValueMetadata{
		Name: Vat,
		Keys: nil,
		Type: utils.Address,
	}

	FlapperKey      = common.HexToHash(utils.IndexTwo)
	FlapperMetadata = utils.StorageValueMetadata{
		Name: Flapper,
		Keys: nil,
		Type: utils.Address,
	}

	FlopperKey      = common.HexToHash(utils.IndexThree)
	FlopperMetadata = utils.StorageValueMetadata{
		Name: Flopper,
		Keys: nil,
		Type: utils.Address,
	}

	SinMappingIndex = utils.IndexFour

	SinIntegerKey      = common.HexToHash(utils.IndexFive)
	SinIntegerMetadata = utils.StorageValueMetadata{
		Name: SinInteger,
		Keys: nil,
		Type: utils.Uint256,
	}

	AshKey      = common.HexToHash(utils.IndexSix)
	AshMetadata = utils.StorageValueMetadata{
		Name: Ash,
		Keys: nil,
		Type: utils.Uint256,
	}

	WaitKey      = common.HexToHash(utils.IndexSeven)
	WaitMetadata = utils.StorageValueMetadata{
		Name: Wait,
		Keys: nil,
		Type: utils.Uint256,
	}

	DumpKey      = common.HexToHash(utils.IndexEight)
	DumpMetadata = utils.StorageValueMetadata{
		Name: Dump,
		Keys: nil,
		Type: utils.Uint256,
	}

	SumpKey      = common.HexToHash(utils.IndexNine)
	SumpMetadata = utils.StorageValueMetadata{
		Name: Sump,
		Keys: nil,
		Type: utils.Uint256,
	}

	BumpKey      = common.HexToHash(utils.IndexTen)
	BumpMetadata = utils.StorageValueMetadata{
		Name: Bump,
		Keys: nil,
		Type: utils.Uint256,
	}

	HumpKey      = common.HexToHash(utils.IndexEleven)
	HumpMetadata = utils.StorageValueMetadata{
		Name: Hump,
		Keys: nil,
		Type: utils.Uint256,
	}
)

Functions

func NewKeysLoader added in v0.2.13

func NewKeysLoader(storageRepository mcdStorage.IMakerStorageRepository) storage.KeysLoader

Types

type VowStorageRepository

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

func (VowStorageRepository) Create

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

func (*VowStorageRepository) SetDB

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