Documentation ¶
Index ¶
- func ConvertToAddress(b []byte) (a common.Address)
- type AbiPair
- type Contracts
- func (c *Contracts) GetAddresses() (addrs []common.Address)
- func (c *Contracts) GetAllVersions(a common.Address) (cc []ContractsContents, ok bool)
- func (c *Contracts) GetByAddress(a common.Address) (cc ContractsContents, ok bool)
- func (c *Contracts) SetAllVersions(a common.Address, cc []ContractsContents)
- type ContractsContents
- type Manager
- func (m *Manager) AddGlobalEvents(readr io.Reader) error
- func (m *Manager) GetContract(addr common.Address) (ContractsContents, bool)
- func (m *Manager) GetContractByNameVersion(name, version string) (ContractsContents, bool)
- func (m *Manager) GetContractsByNames(names []string) *Contracts
- func (m *Manager) LoadContract(name, addr, version string, abiContents abi.ABI) error
- func (m *Manager) LoadContractsFromDir(inputFolder string) error
- type NV
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToAddress ¶
Types ¶
type AbiPair ¶
func (*AbiPair) UnmarshalJSON ¶
type Contracts ¶
type Contracts struct {
// contains filtered or unexported fields
}
func NewContracts ¶
func NewContracts() *Contracts
func (*Contracts) GetAddresses ¶
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 Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
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 (*Manager) LoadContract ¶
func (*Manager) LoadContractsFromDir ¶
LoadContractsFromDir loads abi contracts specifically from skale-network repo path
Click to show internal directories.
Click to hide internal directories.