token_db

package
v0.2.3-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenDB

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

func Open

func Open(path string) (*TokenDB, error)

func (*TokenDB) Close

func (t *TokenDB) Close() error

func (*TokenDB) Commit

func (t *TokenDB) Commit() (arry.Hash, error)

func (*TokenDB) Root

func (t *TokenDB) Root() arry.Hash

func (*TokenDB) SetRoot

func (t *TokenDB) SetRoot(hash arry.Hash) error

func (*TokenDB) SetToken

func (t *TokenDB) SetToken(token *types.TokenRecord)

func (*TokenDB) Token

func (t *TokenDB) Token(address arry.Address) *types.TokenRecord

Jump to

Keyboard shortcuts

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