assetdb

package
v0.0.0-...-7e2f347 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: GPL-3.0, LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetDB

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

func New

func New() *AssetDB

func (AssetDB) GetAll

func (store AssetDB) GetAll() []commontype.Asset

func (AssetDB) GetAsset

func (store AssetDB) GetAsset(assetId common.Hash) (commontype.Asset, error)

func (AssetDB) GetAssetByOwner

func (store AssetDB) GetAssetByOwner(owner common.Address) []commontype.Asset

func (AssetDB) RegisterAsset

func (store AssetDB) RegisterAsset(assetId common.Hash, owner common.Address, name string)

func (AssetDB) UpdateLocation

func (store AssetDB) UpdateLocation(assetId common.Hash, location string) error

func (AssetDB) UpdateName

func (store AssetDB) UpdateName(assetId common.Hash, name string) error

Jump to

Keyboard shortcuts

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