registrar

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RegistrarAPI = "registrar"

	QueryConfigLabel       = "config"
	QueryNftRegistrarLabel = "nft-registrar"
	QueryControllersLabel  = "controllers"
)

Variables

This section is empty.

Functions

func ExecSetController

func ExecSetController(xnsContext *types.XnsContext, topDomain string) error

func ExecSetResolver

func ExecSetResolver(xnsContext *types.XnsContext) error

func ExecuteRegistrar

func ExecuteRegistrar(xnsContext *types.XnsContext, msg, amount string) (*xtypes.TxRes, error)

func NewRegistrarControllersQueryMsg

func NewRegistrarControllersQueryMsg(startAfter interface{}, limit interface{}) (string, error)

func NewRegistrarGetConfigQueryMsg

func NewRegistrarGetConfigQueryMsg() (string, error)

func NewRegistrarNftRegistrarAddressQueryMsg

func NewRegistrarNftRegistrarAddressQueryMsg() (string, error)

func NewRegistrarRemoveControllerExecuteMsg

func NewRegistrarRemoveControllerExecuteMsg(controllerAddress string) (string, error)

func NewRegistrarSetControllerExecuteMsg

func NewRegistrarSetControllerExecuteMsg(controllerAddress, topDomain string) (string, error)

func NewRegistrarSetResolverExecuteMsg

func NewRegistrarSetResolverExecuteMsg(resolverAddress string) (string, error)

func NewService

func NewService() service.Service

func Query

func Query(xnsContext *types.XnsContext, msg string) (*service.QueryResponse, error)

func QueryConfig

func QueryConfig(xnsContext *types.XnsContext) (*service.QueryResponse, error)

QueryConfig godoc @Summary Config of the contract @Description Get configuration of the registrar contract @Tags Registrar @Accept json @Produce json @Success 200 {object} service.QueryResponse @Failure 400 {object} service.QueryResponse @Router /registrar/config [get]

func QueryControllers

func QueryControllers(xnsContext *types.XnsContext, startAfter, limit string) (*service.QueryResponse, error)

QueryController godoc @Summary linked controllers @Description Get linked controller contracts @Tags Registrar @Accept json @Produce json @Success 200 {object} service.QueryResponse @Failure 400 {object} service.QueryResponse @Router /registrar/controllers [get]

func QueryNftRegistrar

func QueryNftRegistrar(xnsContext *types.XnsContext) (*service.QueryResponse, error)

QueryNftRegistrar godoc @Summary linked NFT registrar @Description Get linked the NFT registrar contract @Tags Registrar @Accept json @Produce json @Success 200 {object} service.QueryResponse @Failure 400 {object} service.QueryResponse @Router /registrar/nft-registrar [get]

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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