storage

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SavePoint

type SavePoint struct {
	LastBlock   uint64
	LastTxIndex uint
}

type Storage

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

Storage manages the application state

func New

func New(path string) (*Storage, error)

New creates a new storage path.

func (*Storage) AddTransfer

func (s *Storage) AddTransfer(transfer *Transfer) error

func (*Storage) GetTransfer

func (s *Storage) GetTransfer(address *common.Address, count uint64) (*Transfer, error)

func (*Storage) GetTransferCount

func (s *Storage) GetTransferCount(address *common.Address) (uint64, error)

func (*Storage) LoadSavePoint

func (s *Storage) LoadSavePoint() (*SavePoint, error)

func (*Storage) RawDump

func (s *Storage) RawDump() error

func (*Storage) SetSavePoint

func (s *Storage) SetSavePoint(savePoint SavePoint) error

SetGlobals in the storage.

type Transfer

type Transfer struct {
	Timestamp uint64
	From      common.Address
	To        common.Address
	Value     *big.Int
}

Jump to

Keyboard shortcuts

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