abi

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbiManager

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

AbiManager handles an ABI cache that fetches the ABI from an API on cache miss.

func NewAbiManager

func NewAbiManager(cache *cache.Cache, api *eos.API) *AbiManager

Create a new ABI Manager

func (*AbiManager) GetAbi

func (mgr *AbiManager) GetAbi(account eos.AccountName) (*eos.ABI, error)

Get an ABI from the cache, on cache miss it is fetched from the API, gets cached and then returned to the user

func (*AbiManager) SetAbi

func (mgr *AbiManager) SetAbi(account eos.AccountName, abi *eos.ABI) error

Set or update an ABI in the cache.

Jump to

Keyboard shortcuts

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