types

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName is the name of the module
	ModuleName = "domain"

	// StoreKey is the default store key for NFT
	StoreKey = ModuleName

	// QuerierRoute is the querier route for the NFT store.
	QuerierRoute = ModuleName

	// RouterKey is the message route for the NFT module
	RouterKey = ModuleName
)
View Source
const (
	TypeMsgTransferDomain = "transfer_domain"
	TypeMsgEditDomain     = "edit_domain"
	TypeMsgRegisterDomain = "register_domain"
	TypeMsgRemoveDomain   = "remove_domain"
)

constant used to indicate that some field should not be updated

View Source
const (
	QueryParams = "params"
	QueryDomain = "domain"
)

query endpoints supported by the NFT Querier

View Source
const (
	DoNotModify      = "[do-not-modify]"
	MinDenomLen      = 3
	MaxDenomLen      = 128
	MinDomainLen     = 1
	MaxDomainLen     = 255
	MaxDomainPartLen = 63

	MaxTokenURILen = 256

	ReservedPeg  = "peg"
	ReservedIBC  = "ibc"
	ReservedHTLT = "htlt"
	ReservedTIBC = "tibc"
)

Variables

View Source
var (
	ErrInvalidLengthDomain        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDomain          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDomain = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrDomainAlreadyExists    = sdkerrors.Register(ModuleName, 5, "domain already exists")
	ErrUnknownDomain          = sdkerrors.Register(ModuleName, 6, "unknown domain")
	ErrUnauthorized           = sdkerrors.Register(ModuleName, 8, "unauthorized address")
	ErrInvalidDenom           = sdkerrors.Register(ModuleName, 9, "invalid denom")
	ErrInvalidTokenID         = sdkerrors.Register(ModuleName, 10, "invalid domain name")
	ErrDomainPermissionDenied = sdkerrors.Register(ModuleName, 12, "ownership check for domain failed")
)
View Source
var (
	AttributeValueCategory = ModuleName

	AttributeKeySender = "sender"
)

NFT module event types

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	PrefixDomain     = []byte{0x01}
	PrefixOwners     = []byte{0x02} // key for a owner
	PrefixCollection = []byte{0x03} // key for balance of Domains held by the denom
	PrefixDenom      = []byte{0x04} // key for denom of the nft
	PrefixDenomName  = []byte{0x05} // key for denom name of the nft

)
View Source
var (
	KeyDomainPrice                  = []byte("DomainPrice")
	KeySubDomainPrice               = []byte("SubDomainPrice")
	KeyDomainExpirationHours        = []byte("DomainExpiration")
	KeyDomainOwnerProlongationHours = []byte("DomainOwnerProlongation")
	KeyBlockedTLDs                  = []byte("BlockedTLDs")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// IsAlphaNumeric only accepts [a-z0-9]
	IsAlphaNumeric = regexp.MustCompile(`^[a-z0-9]+$`).MatchString
	// IsDomainValidChars only accepts [a-z0-9\.]
	IsDomainValidChars = regexp.MustCompile(`^[a-z0-9\.-]+$`).MatchString
	// IsBeginWithAlpha only begin with [a-z]
	IsBeginWithAlpha = regexp.MustCompile(`^[a-z].*`).MatchString
)
View Source
var DefaultDomainsBlockList = []string{}/* 1487 elements not displayed */
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func KeyCollection

func KeyCollection(denomID string) []byte

KeyCollection gets the storeKey by the collection

func KeyDenomID

func KeyDenomID(id string) []byte

KeyDenom gets the storeKey by the denom id

func KeyDenomName

func KeyDenomName(name string) []byte

KeyDenomName gets the storeKey by the denom name

func KeyDomain

func KeyDomain(denomID, tokenID string) []byte

KeyDomain gets the key of nft stored by an denom and id

func KeyOwner

func KeyOwner(address sdk.AccAddress, tokenID string) []byte

KeyOwner gets the key of a collection owned by an account address

func Modified

func Modified(target string) bool

Modified returns whether the field is modified

func MustMarshalSupply

func MustMarshalSupply(cdc codec.Codec, supply uint64) []byte

return supply protobuf code

func MustMarshalTokenID

func MustMarshalTokenID(cdc codec.Codec, tokenID string) []byte

return the tokenID protobuf code

func MustUnMarshalSupply

func MustUnMarshalSupply(cdc codec.Codec, value []byte) uint64

return th supply

func MustUnMarshalTokenID

func MustUnMarshalTokenID(cdc codec.Codec, value []byte) string

return th tokenID

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec concrete types on codec

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func SplitKeyDenom

func SplitKeyDenom(key []byte) (denomID, tokenID string, err error)

func SplitKeyOwner

func SplitKeyOwner(key []byte) (address sdk.AccAddress, domainName string, err error)

SplitKeyOwner return the address,denom,id from the key of stored owner

func ValidateDenomID

func ValidateDenomID(denomID string) error

ValidateDenomID verifies whether the parameters are legal

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

ValidateGenesis performs basic validation of nfts genesis data returning an error for any failed validation criteria.

func ValidateKeywords

func ValidateKeywords(denomId string) error

ValidateKeywords checks if the given denomId begins with `DenomKeywords`

func ValidateTokenID

func ValidateTokenID(tokenID string) error

ValidateTokenID verify that the tokenID is legal

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
}

AccountKeeper defines the expected account keeper for query account

type BankKeeper

type BankKeeper interface {
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	LockedCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected interface needed to retrieve account balances.

type BaseDomain

type BaseDomain struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Data  string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
}

BaseDomain defines a non-fungible domain token

func NewBaseNFT

func NewBaseNFT(id string, owner sdk.AccAddress, data string) BaseDomain

NewBaseNFT creates a new Domain instance

func (*BaseDomain) Descriptor

func (*BaseDomain) Descriptor() ([]byte, []int)

func (*BaseDomain) Equal

func (this *BaseDomain) Equal(that interface{}) bool

func (BaseDomain) GetData

func (bnft BaseDomain) GetData() string

GetData return the Data of BaseNFT

func (BaseDomain) GetID

func (bnft BaseDomain) GetID() string

GetID return the id of BaseNFT

func (BaseDomain) GetOwner

func (bnft BaseDomain) GetOwner() sdk.AccAddress

GetOwner return the owner of BaseNFT

func (*BaseDomain) Marshal

func (m *BaseDomain) Marshal() (dAtA []byte, err error)

func (*BaseDomain) MarshalTo

func (m *BaseDomain) MarshalTo(dAtA []byte) (int, error)

func (*BaseDomain) MarshalToSizedBuffer

func (m *BaseDomain) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BaseDomain) ProtoMessage

func (*BaseDomain) ProtoMessage()

func (*BaseDomain) Reset

func (m *BaseDomain) Reset()

func (*BaseDomain) Size

func (m *BaseDomain) Size() (n int)

func (*BaseDomain) String

func (m *BaseDomain) String() string

func (*BaseDomain) Unmarshal

func (m *BaseDomain) Unmarshal(dAtA []byte) error

func (*BaseDomain) XXX_DiscardUnknown

func (m *BaseDomain) XXX_DiscardUnknown()

func (*BaseDomain) XXX_Marshal

func (m *BaseDomain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BaseDomain) XXX_Merge

func (m *BaseDomain) XXX_Merge(src proto.Message)

func (*BaseDomain) XXX_Size

func (m *BaseDomain) XXX_Size() int

func (*BaseDomain) XXX_Unmarshal

func (m *BaseDomain) XXX_Unmarshal(b []byte) error

type Collection

type Collection struct {
	Denom Denom        `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom"`
	NFTs  []BaseDomain `protobuf:"bytes,2,rep,name=nfts,proto3" json:"nfts"`
}

Collection defines a type of collection

func NewCollection

func NewCollection(denom Denom, domains []exported.Domain) (c Collection)

NewCollection creates a new Domain Collection

func NewCollections

func NewCollections(c ...Collection) []Collection

NewCollection creates a new Domain Collection

func (Collection) AddDomain

func (c Collection) AddDomain(nft BaseDomain) Collection

AddDomain adds an Domain to the collection

func (*Collection) Descriptor

func (*Collection) Descriptor() ([]byte, []int)

func (*Collection) Equal

func (this *Collection) Equal(that interface{}) bool

func (*Collection) Marshal

func (m *Collection) Marshal() (dAtA []byte, err error)

func (*Collection) MarshalTo

func (m *Collection) MarshalTo(dAtA []byte) (int, error)

func (*Collection) MarshalToSizedBuffer

func (m *Collection) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Collection) ProtoMessage

func (*Collection) ProtoMessage()

func (*Collection) Reset

func (m *Collection) Reset()

func (*Collection) Size

func (m *Collection) Size() (n int)

func (*Collection) String

func (m *Collection) String() string

func (Collection) Supply

func (c Collection) Supply() int

func (*Collection) Unmarshal

func (m *Collection) Unmarshal(dAtA []byte) error

func (*Collection) XXX_DiscardUnknown

func (m *Collection) XXX_DiscardUnknown()

func (*Collection) XXX_Marshal

func (m *Collection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Collection) XXX_Merge

func (m *Collection) XXX_Merge(src proto.Message)

func (*Collection) XXX_Size

func (m *Collection) XXX_Size() int

func (*Collection) XXX_Unmarshal

func (m *Collection) XXX_Unmarshal(b []byte) error

type DNSRecords

type DNSRecords struct {
	Type   string   `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
}

func (*DNSRecords) Descriptor

func (*DNSRecords) Descriptor() ([]byte, []int)

func (*DNSRecords) Equal

func (m *DNSRecords) Equal(dnsRec *DNSRecords) bool

func (*DNSRecords) GetType

func (m *DNSRecords) GetType() string

func (*DNSRecords) GetValues

func (m *DNSRecords) GetValues() []string

func (*DNSRecords) Marshal

func (m *DNSRecords) Marshal() (dAtA []byte, err error)

func (*DNSRecords) MarshalTo

func (m *DNSRecords) MarshalTo(dAtA []byte) (int, error)

func (*DNSRecords) MarshalToSizedBuffer

func (m *DNSRecords) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DNSRecords) ProtoMessage

func (*DNSRecords) ProtoMessage()

func (*DNSRecords) Reset

func (m *DNSRecords) Reset()

func (*DNSRecords) Size

func (m *DNSRecords) Size() (n int)

func (*DNSRecords) String

func (m *DNSRecords) String() string

func (*DNSRecords) Unmarshal

func (m *DNSRecords) Unmarshal(dAtA []byte) error

func (*DNSRecords) XXX_DiscardUnknown

func (m *DNSRecords) XXX_DiscardUnknown()

func (*DNSRecords) XXX_Marshal

func (m *DNSRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DNSRecords) XXX_Merge

func (m *DNSRecords) XXX_Merge(src proto.Message)

func (*DNSRecords) XXX_Size

func (m *DNSRecords) XXX_Size() int

func (*DNSRecords) XXX_Unmarshal

func (m *DNSRecords) XXX_Unmarshal(b []byte) error

type Denom

type Denom struct {
	Id               string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name             string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Schema           string `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"`
	Creator          string `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"`
	Symbol           string `protobuf:"bytes,5,opt,name=symbol,proto3" json:"symbol,omitempty"`
	MintRestricted   bool   `protobuf:"varint,6,opt,name=mint_restricted,json=mintRestricted,proto3" json:"mint_restricted,omitempty"`
	UpdateRestricted bool   `protobuf:"varint,7,opt,name=update_restricted,json=updateRestricted,proto3" json:"update_restricted,omitempty"`
	Description      string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
	Uri              string `protobuf:"bytes,9,opt,name=uri,proto3" json:"uri,omitempty"`
	UriHash          string `protobuf:"bytes,10,opt,name=uri_hash,json=uriHash,proto3" json:"uri_hash,omitempty"`
	Data             string `protobuf:"bytes,11,opt,name=data,proto3" json:"data,omitempty"`
}

Denom defines a type of NFT

func NewDenom

func NewDenom(
	id, name, schema, symbol, description, uri, uriHash, data string,
	creator sdk.AccAddress,
	mintRestricted, updateRestricted bool,
) Denom

NewDenom return a new denom

func (*Denom) Descriptor

func (*Denom) Descriptor() ([]byte, []int)

func (*Denom) Equal

func (this *Denom) Equal(that interface{}) bool

func (*Denom) Marshal

func (m *Denom) Marshal() (dAtA []byte, err error)

func (*Denom) MarshalTo

func (m *Denom) MarshalTo(dAtA []byte) (int, error)

func (*Denom) MarshalToSizedBuffer

func (m *Denom) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Denom) ProtoMessage

func (*Denom) ProtoMessage()

func (*Denom) Reset

func (m *Denom) Reset()

func (*Denom) Size

func (m *Denom) Size() (n int)

func (*Denom) String

func (m *Denom) String() string

func (*Denom) Unmarshal

func (m *Denom) Unmarshal(dAtA []byte) error

func (*Denom) XXX_DiscardUnknown

func (m *Denom) XXX_DiscardUnknown()

func (*Denom) XXX_Marshal

func (m *Denom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Denom) XXX_Merge

func (m *Denom) XXX_Merge(src proto.Message)

func (*Denom) XXX_Size

func (m *Denom) XXX_Size() int

func (*Denom) XXX_Unmarshal

func (m *Denom) XXX_Unmarshal(b []byte) error

type GenesisState

type GenesisState struct {
	Collections []Collection `protobuf:"bytes,1,rep,name=collections,proto3" json:"collections"`
	Params      Params       `protobuf:"bytes,3,opt,name=params,proto3" json:"params"`
}

GenesisState defines the NFT module's genesis state

func NewGenesisState

func NewGenesisState(collections []Collection, params Params) *GenesisState

NewGenesisState creates a new genesis state.

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetCollections

func (m *GenesisState) GetCollections() []Collection

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type IDCollection

type IDCollection struct {
	DenomId  string   `protobuf:"bytes,1,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty" yaml:"denom_id"`
	TokenIds []string `protobuf:"bytes,2,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty" yaml:"token_ids"`
}

IDCollection defines a type of collection with specified ID

func NewIDCollection

func NewIDCollection(denomID string, tokenIDs []string) IDCollection

NewIDCollection creates a new IDCollection instance

func (IDCollection) AddID

func (idc IDCollection) AddID(tokenID string) IDCollection

AddID adds an tokenID to the idCollection

func (*IDCollection) Descriptor

func (*IDCollection) Descriptor() ([]byte, []int)

func (*IDCollection) Equal

func (this *IDCollection) Equal(that interface{}) bool

func (*IDCollection) Marshal

func (m *IDCollection) Marshal() (dAtA []byte, err error)

func (*IDCollection) MarshalTo

func (m *IDCollection) MarshalTo(dAtA []byte) (int, error)

func (*IDCollection) MarshalToSizedBuffer

func (m *IDCollection) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IDCollection) ProtoMessage

func (*IDCollection) ProtoMessage()

func (*IDCollection) Reset

func (m *IDCollection) Reset()

func (*IDCollection) Size

func (m *IDCollection) Size() (n int)

func (*IDCollection) String

func (m *IDCollection) String() string

func (IDCollection) Supply

func (idc IDCollection) Supply() int

Supply return the amount of the denom

func (*IDCollection) Unmarshal

func (m *IDCollection) Unmarshal(dAtA []byte) error

func (*IDCollection) XXX_DiscardUnknown

func (m *IDCollection) XXX_DiscardUnknown()

func (*IDCollection) XXX_Marshal

func (m *IDCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IDCollection) XXX_Merge

func (m *IDCollection) XXX_Merge(src proto.Message)

func (*IDCollection) XXX_Size

func (m *IDCollection) XXX_Size() int

func (*IDCollection) XXX_Unmarshal

func (m *IDCollection) XXX_Unmarshal(b []byte) error

type IDCollections

type IDCollections []IDCollection

---------------------------------------------------------------------------- IDCollections is an array of ID Collections

func (IDCollections) Add

func (idcs IDCollections) Add(denomID, tokenID string) IDCollections

Add adds an ID to the idCollection

func (IDCollections) String

func (idcs IDCollections) String() string

String follows stringer interface

type MsgClient

type MsgClient interface {
	// MintNFT defines a method for mint a new nft
	RegisterDomain(ctx context.Context, in *MsgRegisterDomain, opts ...grpc.CallOption) (*MsgRegisterDomainResponse, error)
	// RefundHTLC defines a method for editing a nft.
	EditDomain(ctx context.Context, in *MsgEditDomain, opts ...grpc.CallOption) (*MsgEditdomainResponse, error)
	// TransferNFT defines a method for transferring a nft.
	TransferDomain(ctx context.Context, in *MsgTransferDomain, opts ...grpc.CallOption) (*MsgTransferDomainResponse, error)
	// BurnNFT defines a method for burning a nft.
	RemoveDomain(ctx context.Context, in *MsgRemoveDomain, opts ...grpc.CallOption) (*MsgRemoveDomainResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgEditDomain

type MsgEditDomain struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Data   string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
}

MsgEditNFT defines an SDK message for editing a nft.

func NewMsgEditDomain

func NewMsgEditDomain(tokenID, tokenData, sender string) *MsgEditDomain

NewMsgEditDomain is a constructor function for MsgSetName

func (*MsgEditDomain) Descriptor

func (*MsgEditDomain) Descriptor() ([]byte, []int)

func (*MsgEditDomain) Equal

func (this *MsgEditDomain) Equal(that interface{}) bool

func (MsgEditDomain) GetSignBytes

func (msg MsgEditDomain) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgEditDomain) GetSigners

func (msg MsgEditDomain) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgEditDomain) Marshal

func (m *MsgEditDomain) Marshal() (dAtA []byte, err error)

func (*MsgEditDomain) MarshalTo

func (m *MsgEditDomain) MarshalTo(dAtA []byte) (int, error)

func (*MsgEditDomain) MarshalToSizedBuffer

func (m *MsgEditDomain) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgEditDomain) ProtoMessage

func (*MsgEditDomain) ProtoMessage()

func (*MsgEditDomain) Reset

func (m *MsgEditDomain) Reset()

func (MsgEditDomain) Route

func (msg MsgEditDomain) Route() string

Route Implements Msg

func (*MsgEditDomain) Size

func (m *MsgEditDomain) Size() (n int)

func (*MsgEditDomain) String

func (m *MsgEditDomain) String() string

func (MsgEditDomain) Type

func (msg MsgEditDomain) Type() string

Type Implements Msg

func (*MsgEditDomain) Unmarshal

func (m *MsgEditDomain) Unmarshal(dAtA []byte) error

func (MsgEditDomain) ValidateBasic

func (msg MsgEditDomain) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgEditDomain) XXX_DiscardUnknown

func (m *MsgEditDomain) XXX_DiscardUnknown()

func (*MsgEditDomain) XXX_Marshal

func (m *MsgEditDomain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgEditDomain) XXX_Merge

func (m *MsgEditDomain) XXX_Merge(src proto.Message)

func (*MsgEditDomain) XXX_Size

func (m *MsgEditDomain) XXX_Size() int

func (*MsgEditDomain) XXX_Unmarshal

func (m *MsgEditDomain) XXX_Unmarshal(b []byte) error

type MsgEditdomainResponse

type MsgEditdomainResponse struct {
}

MsgEditNFTResponse defines the Msg/EditNFT response type.

func (*MsgEditdomainResponse) Descriptor

func (*MsgEditdomainResponse) Descriptor() ([]byte, []int)

func (*MsgEditdomainResponse) Marshal

func (m *MsgEditdomainResponse) Marshal() (dAtA []byte, err error)

func (*MsgEditdomainResponse) MarshalTo

func (m *MsgEditdomainResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgEditdomainResponse) MarshalToSizedBuffer

func (m *MsgEditdomainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgEditdomainResponse) ProtoMessage

func (*MsgEditdomainResponse) ProtoMessage()

func (*MsgEditdomainResponse) Reset

func (m *MsgEditdomainResponse) Reset()

func (*MsgEditdomainResponse) Size

func (m *MsgEditdomainResponse) Size() (n int)

func (*MsgEditdomainResponse) String

func (m *MsgEditdomainResponse) String() string

func (*MsgEditdomainResponse) Unmarshal

func (m *MsgEditdomainResponse) Unmarshal(dAtA []byte) error

func (*MsgEditdomainResponse) XXX_DiscardUnknown

func (m *MsgEditdomainResponse) XXX_DiscardUnknown()

func (*MsgEditdomainResponse) XXX_Marshal

func (m *MsgEditdomainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgEditdomainResponse) XXX_Merge

func (m *MsgEditdomainResponse) XXX_Merge(src proto.Message)

func (*MsgEditdomainResponse) XXX_Size

func (m *MsgEditdomainResponse) XXX_Size() int

func (*MsgEditdomainResponse) XXX_Unmarshal

func (m *MsgEditdomainResponse) XXX_Unmarshal(b []byte) error

type MsgRegisterDomain

type MsgRegisterDomain struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Data      string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Sender    string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
	Recipient string `protobuf:"bytes,4,opt,name=recipient,proto3" json:"recipient,omitempty"`
}

MsgMintNFT defines an SDK message for creating a new NFT.

func NewMsgRegisterDomain

func NewMsgRegisterDomain(tokenID, tokenData, sender, recipient string) *MsgRegisterDomain

NewMsgRegisterDomain is a constructor function for MsgMintNFT

func (*MsgRegisterDomain) Descriptor

func (*MsgRegisterDomain) Descriptor() ([]byte, []int)

func (*MsgRegisterDomain) Equal

func (this *MsgRegisterDomain) Equal(that interface{}) bool

func (MsgRegisterDomain) GetSignBytes

func (msg MsgRegisterDomain) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgRegisterDomain) GetSigners

func (msg MsgRegisterDomain) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgRegisterDomain) Marshal

func (m *MsgRegisterDomain) Marshal() (dAtA []byte, err error)

func (*MsgRegisterDomain) MarshalTo

func (m *MsgRegisterDomain) MarshalTo(dAtA []byte) (int, error)

func (*MsgRegisterDomain) MarshalToSizedBuffer

func (m *MsgRegisterDomain) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRegisterDomain) ProtoMessage

func (*MsgRegisterDomain) ProtoMessage()

func (*MsgRegisterDomain) Reset

func (m *MsgRegisterDomain) Reset()

func (MsgRegisterDomain) Route

func (msg MsgRegisterDomain) Route() string

Route Implements Msg

func (*MsgRegisterDomain) Size

func (m *MsgRegisterDomain) Size() (n int)

func (*MsgRegisterDomain) String

func (m *MsgRegisterDomain) String() string

func (MsgRegisterDomain) Type

func (msg MsgRegisterDomain) Type() string

Type Implements Msg

func (*MsgRegisterDomain) Unmarshal

func (m *MsgRegisterDomain) Unmarshal(dAtA []byte) error

func (MsgRegisterDomain) ValidateBasic

func (msg MsgRegisterDomain) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgRegisterDomain) XXX_DiscardUnknown

func (m *MsgRegisterDomain) XXX_DiscardUnknown()

func (*MsgRegisterDomain) XXX_Marshal

func (m *MsgRegisterDomain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRegisterDomain) XXX_Merge

func (m *MsgRegisterDomain) XXX_Merge(src proto.Message)

func (*MsgRegisterDomain) XXX_Size

func (m *MsgRegisterDomain) XXX_Size() int

func (*MsgRegisterDomain) XXX_Unmarshal

func (m *MsgRegisterDomain) XXX_Unmarshal(b []byte) error

type MsgRegisterDomainResponse

type MsgRegisterDomainResponse struct {
}

MsgMintNFTResponse defines the Msg/MintNFT response type.

func (*MsgRegisterDomainResponse) Descriptor

func (*MsgRegisterDomainResponse) Descriptor() ([]byte, []int)

func (*MsgRegisterDomainResponse) Marshal

func (m *MsgRegisterDomainResponse) Marshal() (dAtA []byte, err error)

func (*MsgRegisterDomainResponse) MarshalTo

func (m *MsgRegisterDomainResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgRegisterDomainResponse) MarshalToSizedBuffer

func (m *MsgRegisterDomainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRegisterDomainResponse) ProtoMessage

func (*MsgRegisterDomainResponse) ProtoMessage()

func (*MsgRegisterDomainResponse) Reset

func (m *MsgRegisterDomainResponse) Reset()

func (*MsgRegisterDomainResponse) Size

func (m *MsgRegisterDomainResponse) Size() (n int)

func (*MsgRegisterDomainResponse) String

func (m *MsgRegisterDomainResponse) String() string

func (*MsgRegisterDomainResponse) Unmarshal

func (m *MsgRegisterDomainResponse) Unmarshal(dAtA []byte) error

func (*MsgRegisterDomainResponse) XXX_DiscardUnknown

func (m *MsgRegisterDomainResponse) XXX_DiscardUnknown()

func (*MsgRegisterDomainResponse) XXX_Marshal

func (m *MsgRegisterDomainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRegisterDomainResponse) XXX_Merge

func (m *MsgRegisterDomainResponse) XXX_Merge(src proto.Message)

func (*MsgRegisterDomainResponse) XXX_Size

func (m *MsgRegisterDomainResponse) XXX_Size() int

func (*MsgRegisterDomainResponse) XXX_Unmarshal

func (m *MsgRegisterDomainResponse) XXX_Unmarshal(b []byte) error

type MsgRemoveDomain

type MsgRemoveDomain struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
}

MsgBurnNFT defines an SDK message for burning a NFT.

func NewMsgRemoveDomain

func NewMsgRemoveDomain(sender, tokenID string) *MsgRemoveDomain

NewMsgRemoveDomain is a constructor function for MsgBurnNFT

func (*MsgRemoveDomain) Descriptor

func (*MsgRemoveDomain) Descriptor() ([]byte, []int)

func (*MsgRemoveDomain) Equal

func (this *MsgRemoveDomain) Equal(that interface{}) bool

func (MsgRemoveDomain) GetSignBytes

func (msg MsgRemoveDomain) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgRemoveDomain) GetSigners

func (msg MsgRemoveDomain) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgRemoveDomain) Marshal

func (m *MsgRemoveDomain) Marshal() (dAtA []byte, err error)

func (*MsgRemoveDomain) MarshalTo

func (m *MsgRemoveDomain) MarshalTo(dAtA []byte) (int, error)

func (*MsgRemoveDomain) MarshalToSizedBuffer

func (m *MsgRemoveDomain) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRemoveDomain) ProtoMessage

func (*MsgRemoveDomain) ProtoMessage()

func (*MsgRemoveDomain) Reset

func (m *MsgRemoveDomain) Reset()

func (MsgRemoveDomain) Route

func (msg MsgRemoveDomain) Route() string

Route Implements Msg

func (*MsgRemoveDomain) Size

func (m *MsgRemoveDomain) Size() (n int)

func (*MsgRemoveDomain) String

func (m *MsgRemoveDomain) String() string

func (MsgRemoveDomain) Type

func (msg MsgRemoveDomain) Type() string

Type Implements Msg

func (*MsgRemoveDomain) Unmarshal

func (m *MsgRemoveDomain) Unmarshal(dAtA []byte) error

func (MsgRemoveDomain) ValidateBasic

func (msg MsgRemoveDomain) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgRemoveDomain) XXX_DiscardUnknown

func (m *MsgRemoveDomain) XXX_DiscardUnknown()

func (*MsgRemoveDomain) XXX_Marshal

func (m *MsgRemoveDomain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRemoveDomain) XXX_Merge

func (m *MsgRemoveDomain) XXX_Merge(src proto.Message)

func (*MsgRemoveDomain) XXX_Size

func (m *MsgRemoveDomain) XXX_Size() int

func (*MsgRemoveDomain) XXX_Unmarshal

func (m *MsgRemoveDomain) XXX_Unmarshal(b []byte) error

type MsgRemoveDomainResponse

type MsgRemoveDomainResponse struct {
}

MsgBurnNFTResponse defines the Msg/BurnNFT response type.

func (*MsgRemoveDomainResponse) Descriptor

func (*MsgRemoveDomainResponse) Descriptor() ([]byte, []int)

func (*MsgRemoveDomainResponse) Marshal

func (m *MsgRemoveDomainResponse) Marshal() (dAtA []byte, err error)

func (*MsgRemoveDomainResponse) MarshalTo

func (m *MsgRemoveDomainResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgRemoveDomainResponse) MarshalToSizedBuffer

func (m *MsgRemoveDomainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRemoveDomainResponse) ProtoMessage

func (*MsgRemoveDomainResponse) ProtoMessage()

func (*MsgRemoveDomainResponse) Reset

func (m *MsgRemoveDomainResponse) Reset()

func (*MsgRemoveDomainResponse) Size

func (m *MsgRemoveDomainResponse) Size() (n int)

func (*MsgRemoveDomainResponse) String

func (m *MsgRemoveDomainResponse) String() string

func (*MsgRemoveDomainResponse) Unmarshal

func (m *MsgRemoveDomainResponse) Unmarshal(dAtA []byte) error

func (*MsgRemoveDomainResponse) XXX_DiscardUnknown

func (m *MsgRemoveDomainResponse) XXX_DiscardUnknown()

func (*MsgRemoveDomainResponse) XXX_Marshal

func (m *MsgRemoveDomainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRemoveDomainResponse) XXX_Merge

func (m *MsgRemoveDomainResponse) XXX_Merge(src proto.Message)

func (*MsgRemoveDomainResponse) XXX_Size

func (m *MsgRemoveDomainResponse) XXX_Size() int

func (*MsgRemoveDomainResponse) XXX_Unmarshal

func (m *MsgRemoveDomainResponse) XXX_Unmarshal(b []byte) error

type MsgServer

type MsgServer interface {
	// MintNFT defines a method for mint a new nft
	RegisterDomain(context.Context, *MsgRegisterDomain) (*MsgRegisterDomainResponse, error)
	// RefundHTLC defines a method for editing a nft.
	EditDomain(context.Context, *MsgEditDomain) (*MsgEditdomainResponse, error)
	// TransferNFT defines a method for transferring a nft.
	TransferDomain(context.Context, *MsgTransferDomain) (*MsgTransferDomainResponse, error)
	// BurnNFT defines a method for burning a nft.
	RemoveDomain(context.Context, *MsgRemoveDomain) (*MsgRemoveDomainResponse, error)
}

MsgServer is the server API for Msg service.

type MsgTransferDomain

type MsgTransferDomain struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Price     uint64 `protobuf:"varint,2,opt,name=price,proto3" json:"price,omitempty"`
	Cancel    bool   `protobuf:"varint,3,opt,name=cancel,proto3" json:"cancel,omitempty"`
	Sender    string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"`
	Recipient string `protobuf:"bytes,5,opt,name=recipient,proto3" json:"recipient,omitempty"`
}

MsgTransferNFT defines an SDK message for transferring an NFT to recipient.

func NewMsgTransferDomain

func NewMsgTransferDomain(
	tokenID string, transferPrice uint64, cancelTransfer bool, sender, recipient string,
) *MsgTransferDomain

NewMsgTransferDomain is a constructor function for MsgSetName

func (*MsgTransferDomain) Descriptor

func (*MsgTransferDomain) Descriptor() ([]byte, []int)

func (*MsgTransferDomain) Equal

func (this *MsgTransferDomain) Equal(that interface{}) bool

func (MsgTransferDomain) GetSignBytes

func (msg MsgTransferDomain) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgTransferDomain) GetSigners

func (msg MsgTransferDomain) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgTransferDomain) Marshal

func (m *MsgTransferDomain) Marshal() (dAtA []byte, err error)

func (*MsgTransferDomain) MarshalTo

func (m *MsgTransferDomain) MarshalTo(dAtA []byte) (int, error)

func (*MsgTransferDomain) MarshalToSizedBuffer

func (m *MsgTransferDomain) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgTransferDomain) ProtoMessage

func (*MsgTransferDomain) ProtoMessage()

func (*MsgTransferDomain) Reset

func (m *MsgTransferDomain) Reset()

func (MsgTransferDomain) Route

func (msg MsgTransferDomain) Route() string

Route Implements Msg

func (*MsgTransferDomain) Size

func (m *MsgTransferDomain) Size() (n int)

func (*MsgTransferDomain) String

func (m *MsgTransferDomain) String() string

func (MsgTransferDomain) Type

func (msg MsgTransferDomain) Type() string

Type Implements Msg

func (*MsgTransferDomain) Unmarshal

func (m *MsgTransferDomain) Unmarshal(dAtA []byte) error

func (MsgTransferDomain) ValidateBasic

func (msg MsgTransferDomain) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgTransferDomain) XXX_DiscardUnknown

func (m *MsgTransferDomain) XXX_DiscardUnknown()

func (*MsgTransferDomain) XXX_Marshal

func (m *MsgTransferDomain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgTransferDomain) XXX_Merge

func (m *MsgTransferDomain) XXX_Merge(src proto.Message)

func (*MsgTransferDomain) XXX_Size

func (m *MsgTransferDomain) XXX_Size() int

func (*MsgTransferDomain) XXX_Unmarshal

func (m *MsgTransferDomain) XXX_Unmarshal(b []byte) error

type MsgTransferDomainResponse

type MsgTransferDomainResponse struct {
}

MsgTransferNFTResponse defines the Msg/TransferNFT response type.

func (*MsgTransferDomainResponse) Descriptor

func (*MsgTransferDomainResponse) Descriptor() ([]byte, []int)

func (*MsgTransferDomainResponse) Marshal

func (m *MsgTransferDomainResponse) Marshal() (dAtA []byte, err error)

func (*MsgTransferDomainResponse) MarshalTo

func (m *MsgTransferDomainResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgTransferDomainResponse) MarshalToSizedBuffer

func (m *MsgTransferDomainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgTransferDomainResponse) ProtoMessage

func (*MsgTransferDomainResponse) ProtoMessage()

func (*MsgTransferDomainResponse) Reset

func (m *MsgTransferDomainResponse) Reset()

func (*MsgTransferDomainResponse) Size

func (m *MsgTransferDomainResponse) Size() (n int)

func (*MsgTransferDomainResponse) String

func (m *MsgTransferDomainResponse) String() string

func (*MsgTransferDomainResponse) Unmarshal

func (m *MsgTransferDomainResponse) Unmarshal(dAtA []byte) error

func (*MsgTransferDomainResponse) XXX_DiscardUnknown

func (m *MsgTransferDomainResponse) XXX_DiscardUnknown()

func (*MsgTransferDomainResponse) XXX_Marshal

func (m *MsgTransferDomainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgTransferDomainResponse) XXX_Merge

func (m *MsgTransferDomainResponse) XXX_Merge(src proto.Message)

func (*MsgTransferDomainResponse) XXX_Size

func (m *MsgTransferDomainResponse) XXX_Size() int

func (*MsgTransferDomainResponse) XXX_Unmarshal

func (m *MsgTransferDomainResponse) XXX_Unmarshal(b []byte) error

type Owner

type Owner struct {
	Address       string         `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	IDCollections []IDCollection `protobuf:"bytes,2,rep,name=id_collections,json=idCollections,proto3" json:"id_collections" yaml:"idcs"`
}

Owner defines a type of owner

func NewOwner

func NewOwner(owner sdk.AccAddress, idCollections ...IDCollection) Owner

NewOwner creates a new Owner

func (*Owner) Descriptor

func (*Owner) Descriptor() ([]byte, []int)

func (*Owner) Equal

func (this *Owner) Equal(that interface{}) bool

func (*Owner) Marshal

func (m *Owner) Marshal() (dAtA []byte, err error)

func (*Owner) MarshalTo

func (m *Owner) MarshalTo(dAtA []byte) (int, error)

func (*Owner) MarshalToSizedBuffer

func (m *Owner) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Owner) ProtoMessage

func (*Owner) ProtoMessage()

func (*Owner) Reset

func (m *Owner) Reset()

func (*Owner) Size

func (m *Owner) Size() (n int)

func (*Owner) String

func (m *Owner) String() string

func (*Owner) Unmarshal

func (m *Owner) Unmarshal(dAtA []byte) error

func (*Owner) XXX_DiscardUnknown

func (m *Owner) XXX_DiscardUnknown()

func (*Owner) XXX_Marshal

func (m *Owner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Owner) XXX_Merge

func (m *Owner) XXX_Merge(src proto.Message)

func (*Owner) XXX_Size

func (m *Owner) XXX_Size() int

func (*Owner) XXX_Unmarshal

func (m *Owner) XXX_Unmarshal(b []byte) error

type Owners

type Owners []Owner

func NewOwners

func NewOwners(owner ...Owner) Owners

NewOwner creates a new Owner

func (Owners) String

func (owners Owners) String() string

String follows stringer interface

type Params

type Params struct {
	DomainPrice                  uint64   `protobuf:"varint,1,opt,name=domainPrice,proto3" json:"domainPrice,omitempty"`
	DomainExpirationHours        int64    `protobuf:"varint,2,opt,name=domainExpirationHours,proto3" json:"domainExpirationHours,omitempty"`
	DomainOwnerProlongationHours int64    `protobuf:"varint,3,opt,name=domainOwnerProlongationHours,proto3" json:"domainOwnerProlongationHours,omitempty"`
	SubDomainPrice               uint64   `protobuf:"varint,4,opt,name=subDomainPrice,proto3" json:"subDomainPrice,omitempty"`
	BlockTLDs                    []string `protobuf:"bytes,5,rep,name=blockTLDs,proto3" json:"blockTLDs,omitempty"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(domainPrice uint64, subDomainPrice uint64, domainExpirationHours int64, domainOwnerProlong int64, blockTLDs []string) Params

NewParams creates a new Params instance

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) GetBlockTLDs

func (m *Params) GetBlockTLDs() []string

func (*Params) GetDomainExpirationHours

func (m *Params) GetDomainExpirationHours() int64

func (*Params) GetDomainOwnerProlongationHours

func (m *Params) GetDomainOwnerProlongationHours() int64

func (*Params) GetDomainPrice

func (m *Params) GetDomainPrice() uint64

func (*Params) GetSubDomainPrice

func (m *Params) GetSubDomainPrice() uint64

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Query domain info by domain name
	Domain(ctx context.Context, in *QueryDomainRequest, opts ...grpc.CallOption) (*QueryDomainResponse, error)
	// Query domains owned by user
	OwnedDomains(ctx context.Context, in *QueryOwnedDomainsRequest, opts ...grpc.CallOption) (*QueryOwnedDomainsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryDomainParams

type QueryDomainParams struct {
	TokenID string
}

QueryDomainParams params for query 'custom/nfts/nft'

func NewQueryDomainsParams

func NewQueryDomainsParams(id string) QueryDomainParams

NewQueryDomainsParams creates a new instance of QueryDomainParams

type QueryDomainRequest

type QueryDomainRequest struct {
	DomainName string `protobuf:"bytes,1,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty" yaml:"domain_name"`
}

QueryNFTRequest is the request type for the Query/NFT RPC method

func (*QueryDomainRequest) Descriptor

func (*QueryDomainRequest) Descriptor() ([]byte, []int)

func (*QueryDomainRequest) GetDomainName

func (m *QueryDomainRequest) GetDomainName() string

func (*QueryDomainRequest) Marshal

func (m *QueryDomainRequest) Marshal() (dAtA []byte, err error)

func (*QueryDomainRequest) MarshalTo

func (m *QueryDomainRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryDomainRequest) MarshalToSizedBuffer

func (m *QueryDomainRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDomainRequest) ProtoMessage

func (*QueryDomainRequest) ProtoMessage()

func (*QueryDomainRequest) Reset

func (m *QueryDomainRequest) Reset()

func (*QueryDomainRequest) Size

func (m *QueryDomainRequest) Size() (n int)

func (*QueryDomainRequest) String

func (m *QueryDomainRequest) String() string

func (*QueryDomainRequest) Unmarshal

func (m *QueryDomainRequest) Unmarshal(dAtA []byte) error

func (*QueryDomainRequest) XXX_DiscardUnknown

func (m *QueryDomainRequest) XXX_DiscardUnknown()

func (*QueryDomainRequest) XXX_Marshal

func (m *QueryDomainRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDomainRequest) XXX_Merge

func (m *QueryDomainRequest) XXX_Merge(src proto.Message)

func (*QueryDomainRequest) XXX_Size

func (m *QueryDomainRequest) XXX_Size() int

func (*QueryDomainRequest) XXX_Unmarshal

func (m *QueryDomainRequest) XXX_Unmarshal(b []byte) error

type QueryDomainResponse

type QueryDomainResponse struct {
	Domain *ResponseDomain `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
}

QueryNFTResponse is the response type for the Query/NFT RPC method

func (*QueryDomainResponse) Descriptor

func (*QueryDomainResponse) Descriptor() ([]byte, []int)

func (*QueryDomainResponse) GetDomain

func (m *QueryDomainResponse) GetDomain() *ResponseDomain

func (*QueryDomainResponse) Marshal

func (m *QueryDomainResponse) Marshal() (dAtA []byte, err error)

func (*QueryDomainResponse) MarshalTo

func (m *QueryDomainResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryDomainResponse) MarshalToSizedBuffer

func (m *QueryDomainResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDomainResponse) ProtoMessage

func (*QueryDomainResponse) ProtoMessage()

func (*QueryDomainResponse) Reset

func (m *QueryDomainResponse) Reset()

func (*QueryDomainResponse) Size

func (m *QueryDomainResponse) Size() (n int)

func (*QueryDomainResponse) String

func (m *QueryDomainResponse) String() string

func (*QueryDomainResponse) Unmarshal

func (m *QueryDomainResponse) Unmarshal(dAtA []byte) error

func (*QueryDomainResponse) XXX_DiscardUnknown

func (m *QueryDomainResponse) XXX_DiscardUnknown()

func (*QueryDomainResponse) XXX_Marshal

func (m *QueryDomainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDomainResponse) XXX_Merge

func (m *QueryDomainResponse) XXX_Merge(src proto.Message)

func (*QueryDomainResponse) XXX_Size

func (m *QueryDomainResponse) XXX_Size() int

func (*QueryDomainResponse) XXX_Unmarshal

func (m *QueryDomainResponse) XXX_Unmarshal(b []byte) error

type QueryOwnedDomainsRequest

type QueryOwnedDomainsRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Offset  int64  `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	Count   int64  `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
}

QueryNFTRequest is the request type for the Query/NFT RPC method

func (*QueryOwnedDomainsRequest) Descriptor

func (*QueryOwnedDomainsRequest) Descriptor() ([]byte, []int)

func (*QueryOwnedDomainsRequest) GetAddress

func (m *QueryOwnedDomainsRequest) GetAddress() string

func (*QueryOwnedDomainsRequest) GetCount

func (m *QueryOwnedDomainsRequest) GetCount() int64

func (*QueryOwnedDomainsRequest) GetOffset

func (m *QueryOwnedDomainsRequest) GetOffset() int64

func (*QueryOwnedDomainsRequest) Marshal

func (m *QueryOwnedDomainsRequest) Marshal() (dAtA []byte, err error)

func (*QueryOwnedDomainsRequest) MarshalTo

func (m *QueryOwnedDomainsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryOwnedDomainsRequest) MarshalToSizedBuffer

func (m *QueryOwnedDomainsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryOwnedDomainsRequest) ProtoMessage

func (*QueryOwnedDomainsRequest) ProtoMessage()

func (*QueryOwnedDomainsRequest) Reset

func (m *QueryOwnedDomainsRequest) Reset()

func (*QueryOwnedDomainsRequest) Size

func (m *QueryOwnedDomainsRequest) Size() (n int)

func (*QueryOwnedDomainsRequest) String

func (m *QueryOwnedDomainsRequest) String() string

func (*QueryOwnedDomainsRequest) Unmarshal

func (m *QueryOwnedDomainsRequest) Unmarshal(dAtA []byte) error

func (*QueryOwnedDomainsRequest) XXX_DiscardUnknown

func (m *QueryOwnedDomainsRequest) XXX_DiscardUnknown()

func (*QueryOwnedDomainsRequest) XXX_Marshal

func (m *QueryOwnedDomainsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryOwnedDomainsRequest) XXX_Merge

func (m *QueryOwnedDomainsRequest) XXX_Merge(src proto.Message)

func (*QueryOwnedDomainsRequest) XXX_Size

func (m *QueryOwnedDomainsRequest) XXX_Size() int

func (*QueryOwnedDomainsRequest) XXX_Unmarshal

func (m *QueryOwnedDomainsRequest) XXX_Unmarshal(b []byte) error

type QueryOwnedDomainsResponse

type QueryOwnedDomainsResponse struct {
	Total   int64             `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Domains []*ResponseDomain `protobuf:"bytes,2,rep,name=domains,proto3" json:"domains,omitempty"`
}

QueryNFTResponse is the response type for the Query/NFT RPC method

func (*QueryOwnedDomainsResponse) Descriptor

func (*QueryOwnedDomainsResponse) Descriptor() ([]byte, []int)

func (*QueryOwnedDomainsResponse) GetDomains

func (m *QueryOwnedDomainsResponse) GetDomains() []*ResponseDomain

func (*QueryOwnedDomainsResponse) GetTotal

func (m *QueryOwnedDomainsResponse) GetTotal() int64

func (*QueryOwnedDomainsResponse) Marshal

func (m *QueryOwnedDomainsResponse) Marshal() (dAtA []byte, err error)

func (*QueryOwnedDomainsResponse) MarshalTo

func (m *QueryOwnedDomainsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryOwnedDomainsResponse) MarshalToSizedBuffer

func (m *QueryOwnedDomainsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryOwnedDomainsResponse) ProtoMessage

func (*QueryOwnedDomainsResponse) ProtoMessage()

func (*QueryOwnedDomainsResponse) Reset

func (m *QueryOwnedDomainsResponse) Reset()

func (*QueryOwnedDomainsResponse) Size

func (m *QueryOwnedDomainsResponse) Size() (n int)

func (*QueryOwnedDomainsResponse) String

func (m *QueryOwnedDomainsResponse) String() string

func (*QueryOwnedDomainsResponse) Unmarshal

func (m *QueryOwnedDomainsResponse) Unmarshal(dAtA []byte) error

func (*QueryOwnedDomainsResponse) XXX_DiscardUnknown

func (m *QueryOwnedDomainsResponse) XXX_DiscardUnknown()

func (*QueryOwnedDomainsResponse) XXX_Marshal

func (m *QueryOwnedDomainsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryOwnedDomainsResponse) XXX_Merge

func (m *QueryOwnedDomainsResponse) XXX_Merge(src proto.Message)

func (*QueryOwnedDomainsResponse) XXX_Size

func (m *QueryOwnedDomainsResponse) XXX_Size() int

func (*QueryOwnedDomainsResponse) XXX_Unmarshal

func (m *QueryOwnedDomainsResponse) XXX_Unmarshal(b []byte) error

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

func (*QueryParamsRequest) Marshal

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsRequest) XXX_Merge

func (m *QueryParamsRequest) XXX_Merge(src proto.Message)

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParamsResponse) MarshalTo

func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsResponse) MarshalToSizedBuffer

func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

func (m *QueryParamsResponse) Size() (n int)

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsResponse) XXX_Merge

func (m *QueryParamsResponse) XXX_Merge(src proto.Message)

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Query domain info by domain name
	Domain(context.Context, *QueryDomainRequest) (*QueryDomainResponse, error)
	// Query domains owned by user
	OwnedDomains(context.Context, *QueryOwnedDomainsRequest) (*QueryOwnedDomainsResponse, error)
}

QueryServer is the server API for Query service.

type ResponseDomain

type ResponseDomain struct {
	Id                  string         `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Issued              string         `protobuf:"bytes,2,opt,name=issued,proto3" json:"issued,omitempty"`
	ValidTill           string         `protobuf:"bytes,3,opt,name=validTill,proto3" json:"validTill,omitempty"`
	TransferOffer       *TransferOffer `protobuf:"bytes,4,opt,name=transfer_offer,json=transferOffer,proto3" json:"transfer_offer,omitempty"`
	Records             []*DNSRecords  `protobuf:"bytes,5,rep,name=records,proto3" json:"records,omitempty"`
	SubDomainsOnSale    bool           `protobuf:"varint,6,opt,name=subDomainsOnSale,proto3" json:"subDomainsOnSale,omitempty"`
	SubDomainsSalePrice uint64         `protobuf:"varint,7,opt,name=subDomainsSalePrice,proto3" json:"subDomainsSalePrice,omitempty"`
	Owner               string         `protobuf:"bytes,8,opt,name=owner,proto3" json:"owner,omitempty"`
}

func (*ResponseDomain) Descriptor

func (*ResponseDomain) Descriptor() ([]byte, []int)

func (*ResponseDomain) Equal

func (this *ResponseDomain) Equal(that interface{}) bool

func (*ResponseDomain) GetId

func (m *ResponseDomain) GetId() string

func (*ResponseDomain) GetIssued

func (m *ResponseDomain) GetIssued() string

func (*ResponseDomain) GetOwner

func (m *ResponseDomain) GetOwner() string

func (*ResponseDomain) GetRecords

func (m *ResponseDomain) GetRecords() []*DNSRecords

func (*ResponseDomain) GetSubDomainsOnSale

func (m *ResponseDomain) GetSubDomainsOnSale() bool

func (*ResponseDomain) GetSubDomainsSalePrice

func (m *ResponseDomain) GetSubDomainsSalePrice() uint64

func (*ResponseDomain) GetTransferOffer

func (m *ResponseDomain) GetTransferOffer() *TransferOffer

func (*ResponseDomain) GetValidTill

func (m *ResponseDomain) GetValidTill() string

func (*ResponseDomain) Marshal

func (m *ResponseDomain) Marshal() (dAtA []byte, err error)

func (*ResponseDomain) MarshalTo

func (m *ResponseDomain) MarshalTo(dAtA []byte) (int, error)

func (*ResponseDomain) MarshalToSizedBuffer

func (m *ResponseDomain) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ResponseDomain) ProtoMessage

func (*ResponseDomain) ProtoMessage()

func (*ResponseDomain) Reset

func (m *ResponseDomain) Reset()

func (*ResponseDomain) Size

func (m *ResponseDomain) Size() (n int)

func (*ResponseDomain) String

func (m *ResponseDomain) String() string

func (*ResponseDomain) Unmarshal

func (m *ResponseDomain) Unmarshal(dAtA []byte) error

func (*ResponseDomain) XXX_DiscardUnknown

func (m *ResponseDomain) XXX_DiscardUnknown()

func (*ResponseDomain) XXX_Marshal

func (m *ResponseDomain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResponseDomain) XXX_Merge

func (m *ResponseDomain) XXX_Merge(src proto.Message)

func (*ResponseDomain) XXX_Size

func (m *ResponseDomain) XXX_Size() int

func (*ResponseDomain) XXX_Unmarshal

func (m *ResponseDomain) XXX_Unmarshal(b []byte) error

type TransferOffer

type TransferOffer struct {
	Price                uint64 `protobuf:"varint,1,opt,name=price,proto3" json:"price,omitempty"`
	ExpectedOwnerAddress string `protobuf:"bytes,2,opt,name=ExpectedOwnerAddress,proto3" json:"ExpectedOwnerAddress,omitempty"`
}

func (*TransferOffer) Descriptor

func (*TransferOffer) Descriptor() ([]byte, []int)

func (*TransferOffer) Equal

func (m *TransferOffer) Equal(offer *TransferOffer) bool

func (*TransferOffer) GetExpectedOwnerAddress

func (m *TransferOffer) GetExpectedOwnerAddress() string

func (*TransferOffer) GetPrice

func (m *TransferOffer) GetPrice() uint64

func (*TransferOffer) Marshal

func (m *TransferOffer) Marshal() (dAtA []byte, err error)

func (*TransferOffer) MarshalTo

func (m *TransferOffer) MarshalTo(dAtA []byte) (int, error)

func (*TransferOffer) MarshalToSizedBuffer

func (m *TransferOffer) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TransferOffer) ProtoMessage

func (*TransferOffer) ProtoMessage()

func (*TransferOffer) Reset

func (m *TransferOffer) Reset()

func (*TransferOffer) Size

func (m *TransferOffer) Size() (n int)

func (*TransferOffer) String

func (m *TransferOffer) String() string

func (*TransferOffer) Unmarshal

func (m *TransferOffer) Unmarshal(dAtA []byte) error

func (*TransferOffer) XXX_DiscardUnknown

func (m *TransferOffer) XXX_DiscardUnknown()

func (*TransferOffer) XXX_Marshal

func (m *TransferOffer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransferOffer) XXX_Merge

func (m *TransferOffer) XXX_Merge(src proto.Message)

func (*TransferOffer) XXX_Size

func (m *TransferOffer) XXX_Size() int

func (*TransferOffer) XXX_Unmarshal

func (m *TransferOffer) XXX_Unmarshal(b []byte) error

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) EditDomain

func (*UnimplementedMsgServer) RegisterDomain

func (*UnimplementedMsgServer) RemoveDomain

func (*UnimplementedMsgServer) TransferDomain

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Domain

func (*UnimplementedQueryServer) OwnedDomains

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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