contract

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToAddress

func ConvertToAddress(b []byte) (a common.Address)

Types

type AbiPair

type AbiPair struct {
	ABI     abi.ABI
	Address string
}

func (*AbiPair) UnmarshalJSON

func (ap *AbiPair) UnmarshalJSON(b []byte) error

type Contracts

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

func NewContracts

func NewContracts() *Contracts

func (*Contracts) GetAddresses

func (c *Contracts) GetAddresses() (addrs []common.Address)

func (*Contracts) GetAllVersions

func (c *Contracts) GetAllVersions(a common.Address) (cc []ContractsContents, ok bool)

func (*Contracts) GetByAddress

func (c *Contracts) GetByAddress(a common.Address) (cc ContractsContents, ok bool)

func (*Contracts) SetAllVersions

func (c *Contracts) SetAllVersions(a common.Address, cc []ContractsContents)

type ContractsContents

type ContractsContents struct {
	Name    string
	Addr    common.Address
	Abi     abi.ABI
	Bound   *bind.BoundContract
	Version string
}

type Manager

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

func NewManager

func NewManager() *Manager

func (*Manager) AddGlobalEvents

func (m *Manager) AddGlobalEvents(readr io.Reader) error

func (*Manager) GetContract

func (m *Manager) GetContract(addr common.Address) (ContractsContents, bool)

func (*Manager) GetContractByNameVersion

func (m *Manager) GetContractByNameVersion(name, version string) (ContractsContents, bool)

func (*Manager) GetContractsByNames

func (m *Manager) GetContractsByNames(names []string) *Contracts

func (*Manager) LoadContract

func (m *Manager) LoadContract(name, addr, version string, abiContents abi.ABI) error

func (*Manager) LoadContractsFromDir

func (m *Manager) LoadContractsFromDir(inputFolder string) error

LoadContractsFromDir loads abi contracts specifically from skale-network repo path

type NV

type NV struct {
	Name    string
	Version string
}

Jump to

Keyboard shortcuts

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