mock

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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) GetInfo added in v0.9.1

func (c *NamespaceManager) GetInfo(username string) (*ecdsa.PublicKey, string, error)

GetInfo returns the public key of the user

func (*NamespaceManager) GetInfoFromNameHash added in v0.9.3

func (c *NamespaceManager) GetInfoFromNameHash(node [32]byte) (common.Address, *ecdsa.PublicKey, string, error)

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

SetResolver sets the resolver for the username

Jump to

Keyboard shortcuts

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