contract

package
v0.0.0-...-b1b3a06 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 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) AllExceptDelegators

func (storage *Storage) AllExceptDelegators(ctx context.Context) (contracts []contract.Contract, err error)

func (*Storage) ByHash

func (storage *Storage) ByHash(ctx context.Context, hash string) (result contract.Script, err error)

ByHash -

func (*Storage) Code

func (storage *Storage) Code(ctx context.Context, id int64) ([]byte, error)

Code -

func (*Storage) FindOne

func (storage *Storage) FindOne(ctx context.Context, tags types.Tags) (result contract.Contract, err error)

FindOne -

func (*Storage) Get

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

Get -

func (*Storage) Parameter

func (storage *Storage) Parameter(ctx context.Context, id int64) ([]byte, error)

Parameter -

func (*Storage) Script

func (storage *Storage) Script(ctx context.Context, address string, symLink string) (contract.Script, error)

Script -

func (*Storage) ScriptPart

func (storage *Storage) ScriptPart(ctx context.Context, address string, symLink, part string) ([]byte, error)

ScriptPart -

func (*Storage) Storage

func (storage *Storage) Storage(ctx context.Context, id int64) ([]byte, error)

Storage -

func (*Storage) Views

func (storage *Storage) Views(ctx context.Context, id int64) ([]byte, error)

Views -

Jump to

Keyboard shortcuts

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