contract

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTables

func CreateTables(ctx context.Context, pgDB *bun.DB) error

Types

type Repository

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

func NewRepository

func NewRepository(db *bun.DB) *Repository

func (*Repository) AddInterface

func (r *Repository) AddInterface(ctx context.Context, i *core.ContractInterface) error

func (*Repository) AddOperation

func (r *Repository) AddOperation(ctx context.Context, op *core.ContractOperation) error

func (*Repository) DelInterface added in v0.2.2

func (r *Repository) DelInterface(ctx context.Context, name string) error

func (*Repository) GetInterfaces

func (r *Repository) GetInterfaces(ctx context.Context) ([]*core.ContractInterface, error)

func (*Repository) GetMethodDescription added in v0.3.2

func (r *Repository) GetMethodDescription(ctx context.Context, name abi.ContractName, method string) (abi.GetMethodDesc, error)

func (*Repository) GetOperationByID

func (r *Repository) GetOperationByID(ctx context.Context, t core.MessageType, interfaces []abi.ContractName, outgoing bool, id uint32) (*core.ContractOperation, error)

func (*Repository) GetOperations

func (r *Repository) GetOperations(ctx context.Context) ([]*core.ContractOperation, error)

Jump to

Keyboard shortcuts

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