contract

package
v0.0.0-...-335c537 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract

type Contract struct {
	*abi.Contract
}

Contract is a smart contract.

func Bind

func Bind(contractAddress string, backend bind.ContractBackend) (*Contract, error)

Bind binds to already deployed contract.

func (*Contract) GetGroup

func (ec *Contract) GetGroup(ctx context.Context, id int64) (*models.Group, error)

GetIndex fetches contract group by ID.

func (*Contract) GetGroupIDs

func (ec *Contract) GetGroupIDs(ctx context.Context) ([]int64, error)

GetGroupIDs returns all contract group IDs.

func (*Contract) GetIndex

func (ec *Contract) GetIndex(ctx context.Context, id int64) (*models.Index, error)

GetIndex fetches contract index by ID.

Jump to

Keyboard shortcuts

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