account

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2018 License: LGPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	// ERC 20
	InsertERC20(code *model.ERC20) error
	FindERC20(address common.Address) (result *model.ERC20, err error)
	ListERC20() ([]model.ERC20, error)

	// ERC 20 storage
	InsertERC20Storage(storage *model.ERC20Storage) error
	FindERC20Storage(address common.Address, key common.Hash, blockNr int64) (result *model.ERC20Storage, err error)
	DeleteERC20Storage(address common.Address, from, to int64) error
	LastSyncERC20Storage(address common.Address, blockNr int64) (result int64, err error)

	// ERC 20 transfer events
	InsertERC20Transfer(event *model.ERC20Transfer) error
	DeleteERC20Transfer(address common.Address, from, to int64) error

	// ETH transfer events
	InsertETHTransfer(event *model.ETHTransfer) error
	DeleteETHTransfer(from, to int64) error

	// Accounts
	InsertAccount(account *model.Account) error
	FindAccount(address common.Address, blockNr ...int64) (result *model.Account, err error)
	DeleteAccounts(from, to int64) error
}

func NewWithDB

func NewWithDB(db *gorm.DB) Store

Directories

Path Synopsis
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0

Jump to

Keyboard shortcuts

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