jug

package
v0.2.11-docker Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	IlkDuty = "duty"
	IlkRho  = "rho"
	JugVat  = "vat"
	JugVow  = "vow"
	JugBase = "base"
)
View Source
const (
	InsertJugIlkRhoQuery  = `INSERT INTO maker.jug_ilk_rho (block_number, block_hash, ilk_id, rho) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING`
	InsertJugIlkDutyQuery = `INSERT INTO maker.jug_ilk_duty (block_number, block_hash, ilk_id, duty) VALUES ($1, $2, $3, $4) ON CONFLICT DO NOTHING`
)

Variables

Functions

This section is empty.

Types

type JugMappings

type JugMappings struct {
	StorageRepository storage2.IMakerStorageRepository
	// contains filtered or unexported fields
}

func (*JugMappings) Lookup

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

func (*JugMappings) SetDB

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

type JugStorageRepository

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

func (JugStorageRepository) Create

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

func (*JugStorageRepository) SetDB

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