global_constant

package
v0.0.0-...-3eec7cb Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	*core.Postgres
}

Storage -

func NewStorage

func NewStorage(pg *core.Postgres) *Storage

NewStorage -

func (*Storage) All

func (storage *Storage) All(ctx context.Context, addresses ...string) (response []contract.GlobalConstant, err error)

All -

func (*Storage) ContractList

func (storage *Storage) ContractList(ctx context.Context, address string, size, offset int64) ([]contract.Contract, error)

ContractList -

func (*Storage) ForContract

func (storage *Storage) ForContract(ctx context.Context, address string, size, offset int64) (response []contract.GlobalConstant, err error)

ForContract -

func (*Storage) Get

func (storage *Storage) Get(ctx context.Context, address string) (response contract.GlobalConstant, err error)

Get -

func (*Storage) List

func (storage *Storage) List(ctx context.Context, size, offset int64, orderBy, sort string) ([]contract.ListGlobalConstantItem, error)

List -

Jump to

Keyboard shortcuts

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