Documentation ¶
Index ¶
- type NamespaceManager
- func (c *NamespaceManager) GetInfo(username string) (*ecdsa.PublicKey, string, error)
- func (c *NamespaceManager) GetInfoFromNameHash(node [32]byte) (common.Address, *ecdsa.PublicKey, string, error)
- func (*NamespaceManager) GetNameHash(username string) ([32]byte, error)
- func (c *NamespaceManager) GetOwner(username string) (common.Address, error)
- func (c *NamespaceManager) RegisterSubdomain(username string, owner common.Address, _ *ecdsa.PrivateKey) error
- func (c *NamespaceManager) SetAll(username string, owner common.Address, key *ecdsa.PrivateKey) error
- func (*NamespaceManager) SetResolver(string, common.Address, *ecdsa.PrivateKey) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamespaceManager ¶ added in v0.9.1
type NamespaceManager struct {
// contains filtered or unexported fields
}
NamespaceManager is a mock ens provider
func NewMockNamespaceManager ¶
func NewMockNamespaceManager() *NamespaceManager
NewMockNamespaceManager returns a new mock ENS manager Client
func (*NamespaceManager) GetInfoFromNameHash ¶ added in v0.9.3
func (*NamespaceManager) GetNameHash ¶ added in v0.9.3
func (*NamespaceManager) GetNameHash(username string) ([32]byte, error)
func (*NamespaceManager) GetOwner ¶ added in v0.9.1
func (c *NamespaceManager) GetOwner(username string) (common.Address, error)
GetOwner returns the owner of the username
func (*NamespaceManager) RegisterSubdomain ¶ added in v0.9.1
func (c *NamespaceManager) RegisterSubdomain(username string, owner common.Address, _ *ecdsa.PrivateKey) error
RegisterSubdomain registers the username
func (*NamespaceManager) SetAll ¶ added in v0.9.1
func (c *NamespaceManager) SetAll(username string, owner common.Address, key *ecdsa.PrivateKey) error
SetAll sets all the necessary information of the user
func (*NamespaceManager) SetResolver ¶ added in v0.9.1
func (*NamespaceManager) SetResolver(string, common.Address, *ecdsa.PrivateKey) (string, error)
SetResolver sets the resolver for the username
Click to show internal directories.
Click to hide internal directories.