Documentation ¶
Index ¶
- type Implementer
- type Registry
- func (r *Registry) InterfaceImplementer(iface string, address *common.Address) (*common.Address, error)
- func (r *Registry) Manager(address *common.Address) (*common.Address, error)
- func (r *Registry) SetInterfaceImplementer(opts *bind.TransactOpts, iface string, address *common.Address, ...) (*types.Transaction, error)
- func (r *Registry) SetManager(opts *bind.TransactOpts, address *common.Address, manager *common.Address) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Implementer ¶
type Implementer struct {
// contains filtered or unexported fields
}
Implementer is the struct that holds information about an ERC-1820 interface implementer
func NewImplementer ¶
func NewImplementer(backend bind.ContractBackend, address *common.Address) (*Implementer, error)
NewImplementer creates a new ERC-1820 registry implementer client
func (*Implementer) ImplementsInterface ¶
ImplementsInterface returns true if the address implements the given interface for the given address
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is the struct that holds information about the ERC-1820 registry
func NewRegistry ¶
func NewRegistry(backend bind.ContractBackend) (*Registry, error)
NewRegistry creates a new ERC-1820 registry client
func (*Registry) InterfaceImplementer ¶
func (r *Registry) InterfaceImplementer(iface string, address *common.Address) (*common.Address, error)
InterfaceImplementer returns the address of the implementer of the given interface for the given address
func (*Registry) SetInterfaceImplementer ¶
func (r *Registry) SetInterfaceImplementer(opts *bind.TransactOpts, iface string, address *common.Address, implementer *common.Address) (*types.Transaction, error)
SetInterfaceImplementer sets the address of the implementer of the given interface for the given address
func (*Registry) SetManager ¶
func (r *Registry) SetManager(opts *bind.TransactOpts, address *common.Address, manager *common.Address) (*types.Transaction, error)
SetManager sets the manager of the given address