storage

package
v0.0.0-...-16063ba Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	ID uint64

	Name        string
	Signature   string
	SignatureID []byte
	MetadataID  uint64
	Anonymous   bool `pg:"default:false"`

	Metadata *Metadata `pg:",rel:has-one"`
	// contains filtered or unexported fields
}

Event -

func (Event) TableName

func (Event) TableName() string

TableName -

type IEvent

type IEvent interface {
	storage.Table[*Event]
}

IEvent -

type IMetadata

type IMetadata interface {
	storage.Table[*Metadata]

	GetByAddress(ctx context.Context, address string) (*Metadata, error)
	GetByMethod(ctx context.Context, signature string, limit, offset uint64, order storage.SortOrder) ([]*Metadata, error)
	GetByTopic(ctx context.Context, topic string, limit, offset uint64, order storage.SortOrder) ([]*Metadata, error)
}

IMetadata -

type IMethod

type IMethod interface {
	storage.Table[*Method]
}

IMethod -

type Metadata

type Metadata struct {
	ID uint64

	Contract   string `pg:",unique:metadata_contract,notnull"`
	Metadata   []byte
	JSONSchema []byte
	// contains filtered or unexported fields
}

Metadata -

func (Metadata) TableName

func (Metadata) TableName() string

TableName -

type Method

type Method struct {
	ID uint64

	Name        string
	Type        int
	Mutability  string
	IsConst     bool `pg:"default:false"`
	IsPayable   bool `pg:"default:false"`
	Signature   string
	SignatureID []byte
	MetadataID  uint64

	Metadata *Metadata `pg:",rel:has-one"`
	// contains filtered or unexported fields
}

Method -

func (Method) TableName

func (Method) TableName() string

TableName -

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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