repository

package
v1.1.2-mainnet.rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventsRepository

type EventsRepository interface {
	GetForks(startingBlock int) ([]Fork, error)
	GetFrobs(startingBlock int) ([]Frob, error)
	GetGrabs(startingBlock int) ([]Grab, error)
}

func NewEventsRepository

func NewEventsRepository(db *postgres.DB) EventsRepository

type Fork

type Fork struct {
	HeaderID int64 `db:"header_id"`
	Ilk      string
	Src      string
	Dst      string
	Dink     string
	Dart     string
}

type Frob

type Frob struct {
	HeaderID int64 `db:"header_id"`
	UrnID    int64 `db:"urn_id"`
	Dink     string
	Dart     string
}

type Grab

type Grab struct {
	HeaderID int64 `db:"header_id"`
	UrnID    int64 `db:"urn_id"`
	Dink     string
	Dart     string
}

type StorageRepository

type StorageRepository interface {
	GetOrCreateUrn(urn, ilk string) (int64, error)
	GetUrnByID(id int64) (Urn, error)
	InsertDiff(diff types.RawDiff) error
	VatIlkArtExists(ilkID, headerID int64) (bool, error)
	VatUrnArtExists(urnID, headerID int64) (bool, error)
	VatUrnInkExists(urnID, headerID int64) (bool, error)
}

func NewStorageRepository

func NewStorageRepository(db *postgres.DB) StorageRepository

type Urn

type Urn struct {
	Ilk   string
	IlkID int64 `db:"ilk_id"`
	Urn   string
	UrnID int64 `db:"urn_id"`
}

Jump to

Keyboard shortcuts

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