types

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 39 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeConvertCW721          = "convert_cw721"
	EventTypeRefundPacketToken     = "refund_packet_token"
	EventTypeRefundPacketTokenSkip = "refund_packet_token_skip"

	AttributeKeyNFTClass     = "nft_class"
	AttributeKeyNFTID        = "nft_ids"
	AttributeKeyNFTOwner     = "nft_owner"
	AttributeKeyCW721Token   = "cw721_token"     // #nosec
	AttributeKeyCW721TokenID = "cw721_token_ids" // #nosec
	AttributeKeyReceiver     = "receiver"
)

cw721 events.

This list used to mirror Evmos x/erc20's event skeleton; every inherited identifier was unused here: conversion emits convert_cw721 (the contract call itself registers the token, so register_* had no emitter), cross-chain escrow and release belong to nft-transfer (the module only emits refund_packet_token(_skip)), and transfers are carried by CosmWasm execute/query messages (keeper/wasm_adapter.go) rather than decoded from EVM logs, so a hand-rolled LogTransfer had no caller. The inherited convert_nft was never emitted either: the skeleton predates this module settling on convert_cw721 as its conversion event.

Unused exported identifiers are not free in a module that ships as a public Go package: they read as supported surface and invite new code to adopt a shape that nothing exercises or maintains.

View Source
const (

	// DefaultPrefix prefix
	DefaultPrefix = "uptick"

	// ModuleName module name
	ModuleName = "cw721"

	// StoreKey to be used when creating the KVStore
	StoreKey = ModuleName

	// RouterKey to be used for message routing
	RouterKey         = ModuleName
	TransferCW721Memo = ":IBCTransferFromCW721"
)

constants

View Source
const (
	TypeMsgConvertNFT    = "convert_nft"
	TypeMsgConvertCW721  = "convert_CW721"
	TypeMsgTransferCW721 = "transfer_CW721"
)
View Source
const TypeMsgUpdateParams = "cw721/MsgUpdateParams"

Variables

View Source
var (
	ErrInvalidLengthCw721        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCw721          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCw721 = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrCW721Disabled             = sdkerrors.Register(ModuleName, 2, "cw721 module is disabled")
	ErrClassNotExist             = sdkerrors.Register(ModuleName, 3, "nft class not exist")
	ErrNFTNotExist               = sdkerrors.Register(ModuleName, 4, "nft not exist")
	ErrInternalTokenPair         = sdkerrors.Register(ModuleName, 5, "internal nft token mapping error")
	ErrTokenPairNotFound         = sdkerrors.Register(ModuleName, 6, "token pair not found")
	ErrTokenPairAlreadyExists    = sdkerrors.Register(ModuleName, 7, "token pair already exists")
	ErrUndefinedOwner            = sdkerrors.Register(ModuleName, 8, "undefined owner of contract pair")
	ErrUnexpectedEvent           = sdkerrors.Register(ModuleName, 9, "unexpected event")
	ErrABIPack                   = sdkerrors.Register(ModuleName, 10, "contract ABI pack failed")
	ErrABIUnpack                 = sdkerrors.Register(ModuleName, 11, "contract ABI unpack failed")
	ErrEVMCall                   = sdkerrors.Register(ModuleName, 12, "EVM call unexpected error")
	ErrCW721TokenPairDisabled    = sdkerrors.Register(ModuleName, 13, "cw721 token pair is disabled")
	ErrNftIdNotCorrect           = sdkerrors.Register(ModuleName, 14, "nft id is not correct")
	ErrClassIdNotCorrect         = sdkerrors.Register(ModuleName, 15, "nft class is not correct")
	ErrContractAddressNotCorrect = sdkerrors.Register(ModuleName, 16, "contract address is not correct")
	ErrTokenIdNotCorrect         = sdkerrors.Register(ModuleName, 17, "token id is not correct")
	ErrCW721CodeNotFound         = sdkerrors.Register(ModuleName, 18, "cw721 wasm code is not stored")
	ErrNFTMappingConflict        = sdkerrors.Register(ModuleName, 19, "cw721/nft token pair mapping is not one-to-one")
)

errors

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 (
	KeyPrefixTokenPair        = []byte{prefixTokenPair}
	KeyPrefixTokenPairByCW721 = []byte{prefixTokenPairByCW721}
	KeyPrefixTokenPairByClass = []byte{prefixTokenPairByClass}

	KeyPrefixNFTUIDPairByNFTUID   = []byte{prefixNFTUIDPairByNFTUID}
	KeyPrefixNFTUIDPairByTokenUID = []byte{prefixNFTUIDPairByTokenUID}

	KeyPrefixWasmCode                   = []byte{prefixWasmCode}
	KeyPrefixCwAddressByContractTokenId = []byte{prefixCwAddressByContractTokenId}
)

KVStore key prefixes

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 AccModuleAddress sdk.AccAddress
View Source
var (
	KeyPrefixParams = []byte("cw721/params/")
)

Parameter store key

View Source
var ModuleAddress common.Address

ModuleAddress is the native module address for EVM

ModuleCdc references the global cw721 module codec. Note, the codec should ONLY be used in certain instances of tests and for JSON encoding.

The actual codec used for serialization should be provided to modules/cw721 and defined at the application level.

View Source
var Owner_name = map[int32]string{
	0: "OWNER_UNSPECIFIED",
	1: "OWNER_MODULE",
	2: "OWNER_EXTERNAL",
}
View Source
var Owner_value = map[string]int32{
	"OWNER_UNSPECIFIED": 0,
	"OWNER_MODULE":      1,
	"OWNER_EXTERNAL":    2,
}

Functions

func CreateClassIDFromContractAddress

func CreateClassIDFromContractAddress(address string) string

CreateClassIDFromContractAddress derives a class id from a CW721 contract address.

func CreateContractAddressFromClassID

func CreateContractAddressFromClassID(classID string) string

CreateContractAddressFromClassID derives the CW721 contract address from a class id.

func CreateNFTIDFromTokenID

func CreateNFTIDFromTokenID(id string) string

CreateNFTIDFromTokenID derives a Cosmos NFT id from a CW721 token id.

func CreateNFTUID

func CreateNFTUID(classID string, nftID string) string

func CreateTokenIDFromNFTID

func CreateTokenIDFromNFTID(nftID string) string

CreateTokenIDFromNFTID reverses CreateNFTIDFromTokenID. CW721 token IDs are strings, so native Cosmos NFT IDs are used as-is.

func CreateTokenUID

func CreateTokenUID(contractAddress string, tokenID string) string

func EqualMetadata

func EqualMetadata(a, b banktypes.Metadata) error

EqualMetadata checks if all the fields of the provided coin metadata are equal.

func EqualStringSlice

func EqualStringSlice(aliasesA, aliasesB []string) bool

EqualStringSlice checks if two string slices are equal.

func GetNFTFromUID

func GetNFTFromUID(uid string) (string, string)

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces register implementations

func RegisterLegacyAminoCodec added in v0.4.0

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/cw721 interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

func RegisterMsgHandler

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

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

func RegisterMsgHandlerClient

func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error

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

func RegisterMsgHandlerFromEndpoint

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

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

func RegisterMsgHandlerServer

func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error

RegisterMsgHandlerServer registers the http handlers for service Msg to "mux". UnaryRPC :call MsgServer 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 RegisterMsgHandlerFromEndpoint instead.

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 SanitizeCW721Name

func SanitizeCW721Name(name string) string

SanitizeCW721Name removes leading digits and every character that is not a letter, a digit, '/' or '-', truncates to 128 bytes (byte slicing, so a multi-byte rune can be split -- x/erc721 counts runes instead), and then strips a leading "ibc/" or "cw721/" prefix.

func UIDBelongsToRegisteredPair added in v0.5.0

func UIDBelongsToRegisteredPair(tokenUID, nftUID string, tokenPairs []TokenPair) bool

UIDBelongsToRegisteredPair reports whether the token UID's contract and the NFT UID's class resolve to the same registered TokenPair. Contract matching is case-insensitive (bech32).

It is exported because it is not only the import-side check: it is also the predicate ExportGenesis uses to decide which bindings it may write into a genesis file, so that an export can never emit a record this validation (and therefore InitGenesis) rejects.

func ValidateGenesisPairs added in v0.5.0

func ValidateGenesisPairs(pairs []NFTUIDPair, receivers []RefundReceiver, tokenPairs []TokenPair) error

ValidateGenesisPairs performs the import/validate-side integrity checks: non-empty UIDs, one-to-one uniqueness across the batch, UID membership in a registered token pair, and refund receivers that reference registered token pairs. CW721 contracts are bech32: membership matching is case-insensitive (character case is not significant), mirroring the EqualFold comparisons the runtime conversion code uses.

Types

type AccountKeeper

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

AccountKeeper defines the account keeper interface for the cw721 module.

type CW721Data

type CW721Data struct {
	Name   string
	Symbol string
}

CW721Data represents the CW721 token details used to map the token to a Cosmos NFT

func NewCW721Data

func NewCW721Data(name string, symbol string) CW721Data

NewCW721Data creates a new CW721Data instance

type CW721StringResponse

type CW721StringResponse struct {
	Value string
}

CW721StringResponse defines the string value from the call response

type CW721TokenData

type CW721TokenData struct {
	Name   string
	Symbol string
	URI    string
}

func NewCW721TokenData

func NewCW721TokenData(name string, symbol string, uri string) CW721TokenData

type CW721TokenIDResponse

type CW721TokenIDResponse struct {
	Value *big.Int
}

type CW721TokenOwnerResponse

type CW721TokenOwnerResponse struct {
	Value common.Address
}

type CW721TokenStringResponse

type CW721TokenStringResponse struct {
	Value string
}

type ClassEnhance

type ClassEnhance struct {
	Data             string
	Description      string
	MintRestricted   bool
	Schema           string
	UpdateRestricted bool
	Uri              string
	UriHash          string
}

ClassEnhance represents the CW721 token details used to map the token to a Cosmos NFT

func NewClassEnhance

func NewClassEnhance(
	data string, description string, mintRestricted bool, schema string,
	updateRestricted bool, uri string, uriHash string,
) ClassEnhance

NewClassEnhance creates a new CW721Data instance

type GenesisState

type GenesisState struct {
	// module parameters
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// registered token pairs
	TokenPairs []TokenPair `protobuf:"bytes,2,rep,name=token_pairs,json=tokenPairs,proto3" json:"token_pairs"`
	// per-token conversion bindings between CW721 token UIDs and Cosmos NFT
	// UIDs.
	NftUidPairs []NFTUIDPair `protobuf:"bytes,3,rep,name=nft_uid_pairs,json=nftUidPairs,proto3" json:"nft_uid_pairs"`
	// original CW721 owners recorded at IBC send, used for timeout/error
	// refunds.
	RefundReceivers []RefundReceiver `protobuf:"bytes,4,rep,name=refund_receivers,json=refundReceivers,proto3" json:"refund_receivers"`
}

GenesisState defines the module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState sets default evm genesis state with empty accounts and default params and chain config values.

func NewGenesisState

func NewGenesisState(params Params, pairs []TokenPair) GenesisState

NewGenesisState creates a new genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetNftUidPairs added in v0.5.0

func (m *GenesisState) GetNftUidPairs() []NFTUIDPair

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetRefundReceivers added in v0.5.0

func (m *GenesisState) GetRefundReceivers() []RefundReceiver

func (*GenesisState) GetTokenPairs

func (m *GenesisState) GetTokenPairs() []TokenPair

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) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

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 IBCNFTTransferKeeper added in v0.4.0

type IBCNFTTransferKeeper interface {
	Transfer(goCtx context.Context, msg *ibcnfttransfertypes.MsgTransfer) (*ibcnfttransfertypes.MsgTransferResponse, error)
}

IBCNFTTransferKeeper defines the interface for IBC NFT transfer operations.

type MsgClient

type MsgClient interface {
	// ConvertNFT mints a CW721 representation of the native Cosmos nft
	// that is registered on the token mapping.
	ConvertNFT(ctx context.Context, in *MsgConvertNFT, opts ...grpc.CallOption) (*MsgConvertNFTResponse, error)
	// ConvertCW721 mints a native Cosmos coin representation of the CW721 token
	// contract that is registered on the token mapping.
	ConvertCW721(ctx context.Context, in *MsgConvertCW721, opts ...grpc.CallOption) (*MsgConvertCW721Response, error)
	// TransferCW721 defines a method to transfer CW721 tokens between chains via IBC
	TransferCW721(ctx context.Context, in *MsgTransferCW721, opts ...grpc.CallOption) (*MsgTransferCW721Response, error)
	// UpdateParams updates the module parameters. Since the cw721 module has
	// no authority account, this RPC is registered for interface completeness
	// and is only callable by the governance authority.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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 MsgConvertC721Response

type MsgConvertC721Response struct {
}

MsgConvertCW721Response returns no fields

func (*MsgConvertC721Response) Descriptor

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

func (*MsgConvertC721Response) Marshal

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

func (*MsgConvertC721Response) MarshalTo

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

func (*MsgConvertC721Response) MarshalToSizedBuffer

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

func (*MsgConvertC721Response) ProtoMessage

func (*MsgConvertC721Response) ProtoMessage()

func (*MsgConvertC721Response) Reset

func (m *MsgConvertC721Response) Reset()

func (*MsgConvertC721Response) Size

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

func (*MsgConvertC721Response) String

func (m *MsgConvertC721Response) String() string

func (*MsgConvertC721Response) Unmarshal

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

func (*MsgConvertC721Response) XXX_DiscardUnknown

func (m *MsgConvertC721Response) XXX_DiscardUnknown()

func (*MsgConvertC721Response) XXX_Marshal

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

func (*MsgConvertC721Response) XXX_Merge

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

func (*MsgConvertC721Response) XXX_Size

func (m *MsgConvertC721Response) XXX_Size() int

func (*MsgConvertC721Response) XXX_Unmarshal

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

type MsgConvertCW721

type MsgConvertCW721 struct {
	// CW721 token contract address registered in a token pair
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// tokenID to convert
	TokenIds []string `protobuf:"bytes,2,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"`
	// bech32 address to receive native Cosmos NFTs
	Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// sender hex address from the owner of the given CW721 tokens
	Sender string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"`
	// nft classID to convert to CW721
	ClassId string `protobuf:"bytes,5,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// nftID to convert to CW721
	NftIds []string `protobuf:"bytes,6,rep,name=nft_ids,json=nftIds,proto3" json:"nft_ids,omitempty"`
}

MsgConvertCW721 defines a Msg to convert a CW721 token to a native Cosmos nft.

func (*MsgConvertCW721) Descriptor

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

func (*MsgConvertCW721) GetClassId

func (m *MsgConvertCW721) GetClassId() string

func (*MsgConvertCW721) GetContractAddress

func (m *MsgConvertCW721) GetContractAddress() string

func (*MsgConvertCW721) GetNftIds

func (m *MsgConvertCW721) GetNftIds() []string

func (*MsgConvertCW721) GetReceiver

func (m *MsgConvertCW721) GetReceiver() string

func (*MsgConvertCW721) GetSender

func (m *MsgConvertCW721) GetSender() string

func (*MsgConvertCW721) GetSignBytes

func (msg *MsgConvertCW721) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgConvertCW721) GetSigners

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

GetSigners defines whose signature is required

func (*MsgConvertCW721) GetTokenIds

func (m *MsgConvertCW721) GetTokenIds() []string

func (*MsgConvertCW721) Marshal

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

func (*MsgConvertCW721) MarshalTo

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

func (*MsgConvertCW721) MarshalToSizedBuffer

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

func (*MsgConvertCW721) ProtoMessage

func (*MsgConvertCW721) ProtoMessage()

func (*MsgConvertCW721) Reset

func (m *MsgConvertCW721) Reset()

func (MsgConvertCW721) Route

func (msg MsgConvertCW721) Route() string

Route should return the name of the module

func (*MsgConvertCW721) Size

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

func (*MsgConvertCW721) String

func (m *MsgConvertCW721) String() string

func (MsgConvertCW721) Type

func (msg MsgConvertCW721) Type() string

Type should return the action

func (*MsgConvertCW721) Unmarshal

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

func (MsgConvertCW721) ValidateBasic

func (msg MsgConvertCW721) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgConvertCW721) XXX_DiscardUnknown

func (m *MsgConvertCW721) XXX_DiscardUnknown()

func (*MsgConvertCW721) XXX_Marshal

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

func (*MsgConvertCW721) XXX_Merge

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

func (*MsgConvertCW721) XXX_Size

func (m *MsgConvertCW721) XXX_Size() int

func (*MsgConvertCW721) XXX_Unmarshal

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

type MsgConvertCW721Response

type MsgConvertCW721Response struct {
	// CW721 token contract address registered in a token pair
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// tokenID to convert
	TokenIds []string `protobuf:"bytes,2,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"`
	// bech32 address to receive native Cosmos coins
	Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// sender hex address from the owner of the given CW721 tokens
	Sender string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"`
	// nft classID to convert to CW721
	ClassId string `protobuf:"bytes,5,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// nftID to convert to CW721
	NftIds []string `protobuf:"bytes,6,rep,name=nft_ids,json=nftIds,proto3" json:"nft_ids,omitempty"`
}

MsgConvertCW721Response returns no fields

func (*MsgConvertCW721Response) Descriptor

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

func (*MsgConvertCW721Response) GetClassId added in v0.4.0

func (m *MsgConvertCW721Response) GetClassId() string

func (*MsgConvertCW721Response) GetContractAddress added in v0.4.0

func (m *MsgConvertCW721Response) GetContractAddress() string

func (*MsgConvertCW721Response) GetNftIds added in v0.4.0

func (m *MsgConvertCW721Response) GetNftIds() []string

func (*MsgConvertCW721Response) GetReceiver added in v0.4.0

func (m *MsgConvertCW721Response) GetReceiver() string

func (*MsgConvertCW721Response) GetSender added in v0.4.0

func (m *MsgConvertCW721Response) GetSender() string

func (*MsgConvertCW721Response) GetTokenIds added in v0.4.0

func (m *MsgConvertCW721Response) GetTokenIds() []string

func (*MsgConvertCW721Response) Marshal

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

func (*MsgConvertCW721Response) MarshalTo

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

func (*MsgConvertCW721Response) MarshalToSizedBuffer

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

func (*MsgConvertCW721Response) ProtoMessage

func (*MsgConvertCW721Response) ProtoMessage()

func (*MsgConvertCW721Response) Reset

func (m *MsgConvertCW721Response) Reset()

func (*MsgConvertCW721Response) Size

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

func (*MsgConvertCW721Response) String

func (m *MsgConvertCW721Response) String() string

func (*MsgConvertCW721Response) Unmarshal

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

func (*MsgConvertCW721Response) XXX_DiscardUnknown

func (m *MsgConvertCW721Response) XXX_DiscardUnknown()

func (*MsgConvertCW721Response) XXX_Marshal

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

func (*MsgConvertCW721Response) XXX_Merge

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

func (*MsgConvertCW721Response) XXX_Size

func (m *MsgConvertCW721Response) XXX_Size() int

func (*MsgConvertCW721Response) XXX_Unmarshal

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

type MsgConvertNFT

type MsgConvertNFT struct {
	// nft classID to convert to CW721
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// nftID to convert to CW721
	NftIds []string `protobuf:"bytes,2,rep,name=nft_ids,json=nftIds,proto3" json:"nft_ids,omitempty"`
	// recipient hex address to receive CW721 token
	Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// cosmos bech32 address from the owner of the given Cosmos NFTs
	Sender string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"`
	// CW721 token contract address registered in a token pair
	ContractAddress string `protobuf:"bytes,5,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// CW721 token id registered in a token pair
	TokenIds []string `protobuf:"bytes,6,rep,name=token_ids,json=tokenIds,proto3" json:"token_ids,omitempty"`
}

MsgConvertNFT defines a Msg to convert a native Cosmos nft to a CW721 token

func (*MsgConvertNFT) Descriptor

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

func (*MsgConvertNFT) GetClassId

func (m *MsgConvertNFT) GetClassId() string

func (*MsgConvertNFT) GetContractAddress

func (m *MsgConvertNFT) GetContractAddress() string

func (*MsgConvertNFT) GetNftIds

func (m *MsgConvertNFT) GetNftIds() []string

func (*MsgConvertNFT) GetReceiver

func (m *MsgConvertNFT) GetReceiver() string

func (*MsgConvertNFT) GetSender

func (m *MsgConvertNFT) GetSender() string

func (*MsgConvertNFT) GetSignBytes

func (msg *MsgConvertNFT) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgConvertNFT) GetSigners

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

GetSigners defines whose signature is required

func (*MsgConvertNFT) GetTokenIds

func (m *MsgConvertNFT) GetTokenIds() []string

func (*MsgConvertNFT) Marshal

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

func (*MsgConvertNFT) MarshalTo

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

func (*MsgConvertNFT) MarshalToSizedBuffer

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

func (*MsgConvertNFT) ProtoMessage

func (*MsgConvertNFT) ProtoMessage()

func (*MsgConvertNFT) Reset

func (m *MsgConvertNFT) Reset()

func (MsgConvertNFT) Route

func (msg MsgConvertNFT) Route() string

Route should return the name of the module

func (*MsgConvertNFT) Size

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

func (*MsgConvertNFT) String

func (m *MsgConvertNFT) String() string

func (MsgConvertNFT) Type

func (msg MsgConvertNFT) Type() string

Type should return the action

func (*MsgConvertNFT) Unmarshal

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

func (MsgConvertNFT) ValidateBasic

func (msg MsgConvertNFT) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgConvertNFT) XXX_DiscardUnknown

func (m *MsgConvertNFT) XXX_DiscardUnknown()

func (*MsgConvertNFT) XXX_Marshal

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

func (*MsgConvertNFT) XXX_Merge

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

func (*MsgConvertNFT) XXX_Size

func (m *MsgConvertNFT) XXX_Size() int

func (*MsgConvertNFT) XXX_Unmarshal

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

type MsgConvertNFTResponse

type MsgConvertNFTResponse struct {
}

MsgConvertNFTResponse returns no fields

func (*MsgConvertNFTResponse) Descriptor

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

func (*MsgConvertNFTResponse) Marshal

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

func (*MsgConvertNFTResponse) MarshalTo

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

func (*MsgConvertNFTResponse) MarshalToSizedBuffer

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

func (*MsgConvertNFTResponse) ProtoMessage

func (*MsgConvertNFTResponse) ProtoMessage()

func (*MsgConvertNFTResponse) Reset

func (m *MsgConvertNFTResponse) Reset()

func (*MsgConvertNFTResponse) Size

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

func (*MsgConvertNFTResponse) String

func (m *MsgConvertNFTResponse) String() string

func (*MsgConvertNFTResponse) Unmarshal

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

func (*MsgConvertNFTResponse) XXX_DiscardUnknown

func (m *MsgConvertNFTResponse) XXX_DiscardUnknown()

func (*MsgConvertNFTResponse) XXX_Marshal

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

func (*MsgConvertNFTResponse) XXX_Merge

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

func (*MsgConvertNFTResponse) XXX_Size

func (m *MsgConvertNFTResponse) XXX_Size() int

func (*MsgConvertNFTResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// ConvertNFT mints a CW721 representation of the native Cosmos nft
	// that is registered on the token mapping.
	ConvertNFT(context.Context, *MsgConvertNFT) (*MsgConvertNFTResponse, error)
	// ConvertCW721 mints a native Cosmos coin representation of the CW721 token
	// contract that is registered on the token mapping.
	ConvertCW721(context.Context, *MsgConvertCW721) (*MsgConvertCW721Response, error)
	// TransferCW721 defines a method to transfer CW721 tokens between chains via IBC
	TransferCW721(context.Context, *MsgTransferCW721) (*MsgTransferCW721Response, error)
	// UpdateParams updates the module parameters. Since the cw721 module has
	// no authority account, this RPC is registered for interface completeness
	// and is only callable by the governance authority.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgTransferCW721

type MsgTransferCW721 struct {
	CwContractAddress string `protobuf:"bytes,1,opt,name=cw_contract_address,json=cwContractAddress,proto3" json:"cw_contract_address,omitempty"`
	// tokenID to convert
	CwTokenIds []string `protobuf:"bytes,2,rep,name=cw_token_ids,json=cwTokenIds,proto3" json:"cw_token_ids,omitempty"`
	// the port on which the packet will be sent
	SourcePort string `protobuf:"bytes,3,opt,name=source_port,json=sourcePort,proto3" json:"source_port,omitempty"`
	// the channel by which the packet will be sent
	SourceChannel string `protobuf:"bytes,4,opt,name=source_channel,json=sourceChannel,proto3" json:"source_channel,omitempty"`
	// the class_id of tokens to be transferred
	ClassId string `protobuf:"bytes,5,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// the non fungible tokens to be transferred
	CosmosTokenIds []string `protobuf:"bytes,6,rep,name=cosmos_token_ids,json=cosmosTokenIds,proto3" json:"cosmos_token_ids,omitempty"`
	// the sender address
	CwSender string `protobuf:"bytes,7,opt,name=cw_sender,json=cwSender,proto3" json:"cw_sender,omitempty"`
	// the recipient address on the destination chain
	CosmosReceiver string `protobuf:"bytes,8,opt,name=cosmos_receiver,json=cosmosReceiver,proto3" json:"cosmos_receiver,omitempty"`
	// Timeout height relative to the current block height.
	// The timeout is disabled when set to 0.
	TimeoutHeight types.Height `protobuf:"bytes,9,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height"`
	// Timeout timestamp in absolute nanoseconds since unix epoch.
	// The timeout is disabled when set to 0.
	TimeoutTimestamp uint64 `protobuf:"varint,10,opt,name=timeout_timestamp,json=timeoutTimestamp,proto3" json:"timeout_timestamp,omitempty"`
	// optional memo
	Memo string `protobuf:"bytes,11,opt,name=memo,proto3" json:"memo,omitempty"`
}

MsgTransferCW721 defines a message to transfer CW721 tokens between chains via IBC It contains information about the source and destination of the transfer, token identifiers, timeout parameters and optional memo

func (*MsgTransferCW721) Descriptor

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

func (*MsgTransferCW721) GetSignBytes

func (msg *MsgTransferCW721) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgTransferCW721) GetSigners

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

GetSigners defines whose signature is required

func (*MsgTransferCW721) Marshal

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

func (*MsgTransferCW721) MarshalTo

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

func (*MsgTransferCW721) MarshalToSizedBuffer

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

func (*MsgTransferCW721) ProtoMessage

func (*MsgTransferCW721) ProtoMessage()

func (*MsgTransferCW721) Reset

func (m *MsgTransferCW721) Reset()

func (MsgTransferCW721) Route

func (msg MsgTransferCW721) Route() string

Route should return the name of the module

func (*MsgTransferCW721) Size

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

func (*MsgTransferCW721) String

func (m *MsgTransferCW721) String() string

func (MsgTransferCW721) Type

func (msg MsgTransferCW721) Type() string

Type should return the action

func (*MsgTransferCW721) Unmarshal

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

func (MsgTransferCW721) ValidateBasic

func (msg MsgTransferCW721) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgTransferCW721) XXX_DiscardUnknown

func (m *MsgTransferCW721) XXX_DiscardUnknown()

func (*MsgTransferCW721) XXX_Marshal

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

func (*MsgTransferCW721) XXX_Merge

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

func (*MsgTransferCW721) XXX_Size

func (m *MsgTransferCW721) XXX_Size() int

func (*MsgTransferCW721) XXX_Unmarshal

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

type MsgTransferCW721Response

type MsgTransferCW721Response struct {
}

MsgTransferCW721Response defines the response type for TransferCW721 RPC

func (*MsgTransferCW721Response) Descriptor

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

func (*MsgTransferCW721Response) Marshal

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

func (*MsgTransferCW721Response) MarshalTo

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

func (*MsgTransferCW721Response) MarshalToSizedBuffer

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

func (*MsgTransferCW721Response) ProtoMessage

func (*MsgTransferCW721Response) ProtoMessage()

func (*MsgTransferCW721Response) Reset

func (m *MsgTransferCW721Response) Reset()

func (*MsgTransferCW721Response) Size

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

func (*MsgTransferCW721Response) String

func (m *MsgTransferCW721Response) String() string

func (*MsgTransferCW721Response) Unmarshal

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

func (*MsgTransferCW721Response) XXX_DiscardUnknown

func (m *MsgTransferCW721Response) XXX_DiscardUnknown()

func (*MsgTransferCW721Response) XXX_Marshal

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

func (*MsgTransferCW721Response) XXX_Merge

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

func (*MsgTransferCW721Response) XXX_Size

func (m *MsgTransferCW721Response) XXX_Size() int

func (*MsgTransferCW721Response) XXX_Unmarshal

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

type MsgUpdateParams added in v0.4.0

type MsgUpdateParams struct {
	// authority is the address of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the x/cw721 module parameters to update.
	//
	// Since: v0.4.1
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams is the Msg/UpdateParams request type.

func (*MsgUpdateParams) Descriptor added in v0.5.0

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

func (*MsgUpdateParams) GetAuthority added in v0.4.0

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams added in v0.5.0

func (m *MsgUpdateParams) GetParams() Params

func (MsgUpdateParams) GetSigners added in v0.4.0

func (m MsgUpdateParams) GetSigners() []sdk.AccAddress

func (*MsgUpdateParams) Marshal added in v0.4.0

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

func (*MsgUpdateParams) MarshalTo added in v0.5.0

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

func (*MsgUpdateParams) MarshalToSizedBuffer added in v0.4.0

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

func (*MsgUpdateParams) ProtoMessage added in v0.4.0

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset added in v0.4.0

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Route added in v0.4.0

func (m *MsgUpdateParams) Route() string

func (*MsgUpdateParams) Size added in v0.4.0

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

func (*MsgUpdateParams) String added in v0.4.0

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Type added in v0.4.0

func (m *MsgUpdateParams) Type() string

func (*MsgUpdateParams) Unmarshal added in v0.4.0

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

func (MsgUpdateParams) ValidateBasic added in v0.4.0

func (m MsgUpdateParams) ValidateBasic() error

func (*MsgUpdateParams) XXX_DiscardUnknown added in v0.4.0

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal added in v0.4.0

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

func (*MsgUpdateParams) XXX_Merge added in v0.4.0

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

func (*MsgUpdateParams) XXX_Size added in v0.4.0

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal added in v0.4.0

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

type MsgUpdateParamsResponse added in v0.4.0

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse is the Msg/UpdateParams response type.

func (*MsgUpdateParamsResponse) Descriptor added in v0.5.0

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

func (*MsgUpdateParamsResponse) Marshal added in v0.4.0

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

func (*MsgUpdateParamsResponse) MarshalTo added in v0.5.0

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer added in v0.4.0

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

func (*MsgUpdateParamsResponse) ProtoMessage added in v0.4.0

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset added in v0.4.0

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size added in v0.4.0

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

func (*MsgUpdateParamsResponse) String added in v0.4.0

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal added in v0.4.0

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown added in v0.4.0

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal added in v0.4.0

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

func (*MsgUpdateParamsResponse) XXX_Merge added in v0.4.0

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

func (*MsgUpdateParamsResponse) XXX_Size added in v0.4.0

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal added in v0.4.0

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

type NFTEnhance

type NFTEnhance struct {
	Name    string
	Uri     string
	Data    string
	UriHash string
}

NFTEnhance represents the CW721 token details used to map the token to a Cosmos NFT

func NewNFTEnhance

func NewNFTEnhance(name string, uri string, data string, uriHash string) NFTEnhance

NewNFTEnhance creates a new CW721Data instance

type NFTUIDPair added in v0.5.0

type NFTUIDPair struct {
	TokenUid string `protobuf:"bytes,1,opt,name=token_uid,json=tokenUid,proto3" json:"token_uid,omitempty"`
	NftUid   string `protobuf:"bytes,2,opt,name=nft_uid,json=nftUid,proto3" json:"nft_uid,omitempty"`
}

NFTUIDPair binds a CW721 token UID ("<tokenID>,<contractAddress>") to a Cosmos NFT UID ("<nftID>,<classID>"). Import rebuilds both directions of the runtime bidirectional index from this single entry.

func (*NFTUIDPair) Descriptor added in v0.5.0

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

func (*NFTUIDPair) GetNftUid added in v0.5.0

func (m *NFTUIDPair) GetNftUid() string

func (*NFTUIDPair) GetTokenUid added in v0.5.0

func (m *NFTUIDPair) GetTokenUid() string

func (*NFTUIDPair) Marshal added in v0.5.0

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

func (*NFTUIDPair) MarshalTo added in v0.5.0

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

func (*NFTUIDPair) MarshalToSizedBuffer added in v0.5.0

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

func (*NFTUIDPair) ProtoMessage added in v0.5.0

func (*NFTUIDPair) ProtoMessage()

func (*NFTUIDPair) Reset added in v0.5.0

func (m *NFTUIDPair) Reset()

func (*NFTUIDPair) Size added in v0.5.0

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

func (*NFTUIDPair) String added in v0.5.0

func (m *NFTUIDPair) String() string

func (*NFTUIDPair) Unmarshal added in v0.5.0

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

func (*NFTUIDPair) XXX_DiscardUnknown added in v0.5.0

func (m *NFTUIDPair) XXX_DiscardUnknown()

func (*NFTUIDPair) XXX_Marshal added in v0.5.0

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

func (*NFTUIDPair) XXX_Merge added in v0.5.0

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

func (*NFTUIDPair) XXX_Size added in v0.5.0

func (m *NFTUIDPair) XXX_Size() int

func (*NFTUIDPair) XXX_Unmarshal added in v0.5.0

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

type Owner

type Owner int32

Owner enumerates the ownership of a CW721 contract.

const (
	// OWNER_UNSPECIFIED defines an invalid/undefined owner.
	OWNER_UNSPECIFIED Owner = 0
	// OWNER_MODULE cw721 is owned by the cw721 module account.
	OWNER_MODULE Owner = 1
	// EXTERNAL cw721 is owned by an external account.
	OWNER_EXTERNAL Owner = 2
)

func (Owner) EnumDescriptor

func (Owner) EnumDescriptor() ([]byte, []int)

func (Owner) String

func (x Owner) String() string

type Params

type Params struct {
	// parameter to enable the conversion of Cosmos nft <--> CW721 tokens.
	EnableCw721 bool `protobuf:"varint,1,opt,name=enable_cw721,json=enableCw721,proto3" json:"enable_cw721,omitempty"`
	// parameter to enable the EVM hook that converts an CW721 token to a Cosmos
	// NFT by transferring the Tokens through a MsgEthereumTx to the
	// ModuleAddress Ethereum address.
	EnableEVMHook bool `protobuf:"varint,2,opt,name=enable_evm_hook,json=enableEvmHook,proto3" json:"enable_evm_hook,omitempty"`
	// code ID of the CW721 wasm contract used for auto-instantiation.
	WasmCodeId uint64 `protobuf:"varint,3,opt,name=wasm_code_id,json=wasmCodeId,proto3" json:"wasm_code_id,omitempty"`
}

Params defines the cw721 module params

func DefaultParams

func DefaultParams() Params

func NewParams

func NewParams(
	enableCw721 bool,
	enableEVMHook bool,
) Params

NewParams creates a new Params object

func (*Params) Descriptor

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

func (*Params) GetEnableCw721

func (m *Params) GetEnableCw721() bool

func (*Params) GetEnableEVMHook

func (m *Params) GetEnableEVMHook() bool

func (*Params) GetWasmCodeId added in v0.5.0

func (m *Params) GetWasmCodeId() 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) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate performs basic sanity checks on the module parameters.

There is deliberately nothing to reject today:

  • EnableCw721 / EnableEVMHook are booleans — every value is meaningful.
  • WasmCodeId is a uint64 code ID. Zero is a LEGAL value meaning "not configured": keeper.GetParams back-fills it from the store-backed wasm code ID, and keeper.SetParams only persists it when non-zero. Whether a non-zero ID actually resolves to an uploaded contract is a state question that cannot be answered here (this package has no keeper/state access); it surfaces as a runtime error at contract instantiation.

The check is kept (rather than inlined) so a future param with real constraints has an obvious home.

Read this before adding a rule. Validate is reached from BOTH the genesis path (GenesisState.Validate, called by module.go's AppModuleBasic.ValidateGenesis) and the governance path (MsgUpdateParams.ValidateBasic -> keeper.UpdateParams). A rejecting rule here is therefore not a local change: it is a statement about what the chain will accept from its own genesis file, and a wrong one makes an operator unable to validate the backup they would restore from.

Live-chain evidence, queried 2026-09-13:

mainnet (v0.3.3)  GET https://rest.uptick.network/uptick/cw721/v1/params
  -> {"enable_cw721":true,"enable_evm_hook":true}            (wasm_code_id 0)
testnet (v0.4.0)  GET https://rest.origin.uptick.network/uptick/cw721/v1/params
  -> {"enable_cw721":true,"enable_evm_hook":true,"wasm_code_id":"2"}

So: do NOT reject WasmCodeId == 0. Mainnet runs without one, and a non-zero requirement would reject mainnet's own exported genesis. Do not reject a boolean combination either — app/upgrades/v040/upgrades.go copies these params forward verbatim, and EnableCw721=false is a supported way to switch conversions off (MsgConvertCW721 / MsgConvertNFT both gate on it alone).

The concern that motivated looking at this — governance pointing WasmCodeId at a contract that is not cw721 — cannot be checked here at all: this package has no state access, so it cannot resolve a code ID. That check belongs at the deploy site (keeper/wasm.go), with a rollback, not in a pure predicate that is also the genesis gate. Keeping this function a documented no-op is what makes the "zero means not configured" contract testable; see TestParamsValidateAcceptsLiveChainParams.

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 {
	// TokenPairs retrieves registered token pairs
	TokenPairs(ctx context.Context, in *QueryTokenPairsRequest, opts ...grpc.CallOption) (*QueryTokenPairsResponse, error)
	// TokenPair retrieves a registered token pair
	TokenPair(ctx context.Context, in *QueryTokenPairRequest, opts ...grpc.CallOption) (*QueryTokenPairResponse, error)
	// WasmContract retrieves a registered wasm contract
	WasmContract(ctx context.Context, in *QueryWasmAddressRequest, opts ...grpc.CallOption) (*QueryWasmContractResponse, error)
	// Params retrieves the cw721 module params
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the 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 Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is the 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 {
	// TokenPairs retrieves registered token pairs
	TokenPairs(context.Context, *QueryTokenPairsRequest) (*QueryTokenPairsResponse, error)
	// TokenPair retrieves a registered token pair
	TokenPair(context.Context, *QueryTokenPairRequest) (*QueryTokenPairResponse, error)
	// WasmContract retrieves a registered wasm contract
	WasmContract(context.Context, *QueryWasmAddressRequest) (*QueryWasmContractResponse, error)
	// Params retrieves the cw721 module params
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type QueryTokenPairRequest

type QueryTokenPairRequest struct {
	// token identifier can be either the hex contract address of the CW721 or
	// the Cosmos nft classID
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
}

QueryTokenPairRequest is the request type for the Query/TokenPair RPC method.

func (*QueryTokenPairRequest) Descriptor

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

func (*QueryTokenPairRequest) GetToken

func (m *QueryTokenPairRequest) GetToken() string

func (*QueryTokenPairRequest) Marshal

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

func (*QueryTokenPairRequest) MarshalTo

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

func (*QueryTokenPairRequest) MarshalToSizedBuffer

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

func (*QueryTokenPairRequest) ProtoMessage

func (*QueryTokenPairRequest) ProtoMessage()

func (*QueryTokenPairRequest) Reset

func (m *QueryTokenPairRequest) Reset()

func (*QueryTokenPairRequest) Size

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

func (*QueryTokenPairRequest) String

func (m *QueryTokenPairRequest) String() string

func (*QueryTokenPairRequest) Unmarshal

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

func (*QueryTokenPairRequest) XXX_DiscardUnknown

func (m *QueryTokenPairRequest) XXX_DiscardUnknown()

func (*QueryTokenPairRequest) XXX_Marshal

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

func (*QueryTokenPairRequest) XXX_Merge

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

func (*QueryTokenPairRequest) XXX_Size

func (m *QueryTokenPairRequest) XXX_Size() int

func (*QueryTokenPairRequest) XXX_Unmarshal

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

type QueryTokenPairResponse

type QueryTokenPairResponse struct {
	TokenPair TokenPair `protobuf:"bytes,1,opt,name=token_pair,json=tokenPair,proto3" json:"token_pair"`
}

QueryTokenPairResponse is the response type for the Query/TokenPair RPC method.

func (*QueryTokenPairResponse) Descriptor

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

func (*QueryTokenPairResponse) GetTokenPair

func (m *QueryTokenPairResponse) GetTokenPair() TokenPair

func (*QueryTokenPairResponse) Marshal

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

func (*QueryTokenPairResponse) MarshalTo

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

func (*QueryTokenPairResponse) MarshalToSizedBuffer

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

func (*QueryTokenPairResponse) ProtoMessage

func (*QueryTokenPairResponse) ProtoMessage()

func (*QueryTokenPairResponse) Reset

func (m *QueryTokenPairResponse) Reset()

func (*QueryTokenPairResponse) Size

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

func (*QueryTokenPairResponse) String

func (m *QueryTokenPairResponse) String() string

func (*QueryTokenPairResponse) Unmarshal

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

func (*QueryTokenPairResponse) XXX_DiscardUnknown

func (m *QueryTokenPairResponse) XXX_DiscardUnknown()

func (*QueryTokenPairResponse) XXX_Marshal

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

func (*QueryTokenPairResponse) XXX_Merge

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

func (*QueryTokenPairResponse) XXX_Size

func (m *QueryTokenPairResponse) XXX_Size() int

func (*QueryTokenPairResponse) XXX_Unmarshal

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

type QueryTokenPairsRequest

type QueryTokenPairsRequest struct {
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryTokenPairsRequest is the request type for the Query/TokenPairs RPC method.

func (*QueryTokenPairsRequest) Descriptor

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

func (*QueryTokenPairsRequest) GetPagination

func (m *QueryTokenPairsRequest) GetPagination() *query.PageRequest

func (*QueryTokenPairsRequest) Marshal

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

func (*QueryTokenPairsRequest) MarshalTo

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

func (*QueryTokenPairsRequest) MarshalToSizedBuffer

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

func (*QueryTokenPairsRequest) ProtoMessage

func (*QueryTokenPairsRequest) ProtoMessage()

func (*QueryTokenPairsRequest) Reset

func (m *QueryTokenPairsRequest) Reset()

func (*QueryTokenPairsRequest) Size

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

func (*QueryTokenPairsRequest) String

func (m *QueryTokenPairsRequest) String() string

func (*QueryTokenPairsRequest) Unmarshal

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

func (*QueryTokenPairsRequest) XXX_DiscardUnknown

func (m *QueryTokenPairsRequest) XXX_DiscardUnknown()

func (*QueryTokenPairsRequest) XXX_Marshal

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

func (*QueryTokenPairsRequest) XXX_Merge

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

func (*QueryTokenPairsRequest) XXX_Size

func (m *QueryTokenPairsRequest) XXX_Size() int

func (*QueryTokenPairsRequest) XXX_Unmarshal

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

type QueryTokenPairsResponse

type QueryTokenPairsResponse struct {
	TokenPairs []TokenPair `protobuf:"bytes,1,rep,name=token_pairs,json=tokenPairs,proto3" json:"token_pairs"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryTokenPairsResponse is the response type for the Query/TokenPairs RPC method.

func (*QueryTokenPairsResponse) Descriptor

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

func (*QueryTokenPairsResponse) GetPagination

func (m *QueryTokenPairsResponse) GetPagination() *query.PageResponse

func (*QueryTokenPairsResponse) GetTokenPairs

func (m *QueryTokenPairsResponse) GetTokenPairs() []TokenPair

func (*QueryTokenPairsResponse) Marshal

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

func (*QueryTokenPairsResponse) MarshalTo

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

func (*QueryTokenPairsResponse) MarshalToSizedBuffer

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

func (*QueryTokenPairsResponse) ProtoMessage

func (*QueryTokenPairsResponse) ProtoMessage()

func (*QueryTokenPairsResponse) Reset

func (m *QueryTokenPairsResponse) Reset()

func (*QueryTokenPairsResponse) Size

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

func (*QueryTokenPairsResponse) String

func (m *QueryTokenPairsResponse) String() string

func (*QueryTokenPairsResponse) Unmarshal

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

func (*QueryTokenPairsResponse) XXX_DiscardUnknown

func (m *QueryTokenPairsResponse) XXX_DiscardUnknown()

func (*QueryTokenPairsResponse) XXX_Marshal

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

func (*QueryTokenPairsResponse) XXX_Merge

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

func (*QueryTokenPairsResponse) XXX_Size

func (m *QueryTokenPairsResponse) XXX_Size() int

func (*QueryTokenPairsResponse) XXX_Unmarshal

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

type QueryWasmAddressRequest

type QueryWasmAddressRequest struct {
	// token identifier can be either the hex contract address of the ERC721 or
	// the Cosmos nft classID
	Port    string `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"`
	Channel string `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty"`
	ClassId string `protobuf:"bytes,3,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
}

QueryTokenPairRequest is the request type for the Query/TokenPair RPC method.

func (*QueryWasmAddressRequest) Descriptor

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

func (*QueryWasmAddressRequest) GetChannel

func (m *QueryWasmAddressRequest) GetChannel() string

func (*QueryWasmAddressRequest) GetClassId

func (m *QueryWasmAddressRequest) GetClassId() string

func (*QueryWasmAddressRequest) GetPort

func (m *QueryWasmAddressRequest) GetPort() string

func (*QueryWasmAddressRequest) Marshal

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

func (*QueryWasmAddressRequest) MarshalTo

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

func (*QueryWasmAddressRequest) MarshalToSizedBuffer

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

func (*QueryWasmAddressRequest) ProtoMessage

func (*QueryWasmAddressRequest) ProtoMessage()

func (*QueryWasmAddressRequest) Reset

func (m *QueryWasmAddressRequest) Reset()

func (*QueryWasmAddressRequest) Size

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

func (*QueryWasmAddressRequest) String

func (m *QueryWasmAddressRequest) String() string

func (*QueryWasmAddressRequest) Unmarshal

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

func (*QueryWasmAddressRequest) XXX_DiscardUnknown

func (m *QueryWasmAddressRequest) XXX_DiscardUnknown()

func (*QueryWasmAddressRequest) XXX_Marshal

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

func (*QueryWasmAddressRequest) XXX_Merge

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

func (*QueryWasmAddressRequest) XXX_Size

func (m *QueryWasmAddressRequest) XXX_Size() int

func (*QueryWasmAddressRequest) XXX_Unmarshal

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

type QueryWasmContractResponse added in v0.4.0

type QueryWasmContractResponse struct {
	TokenPair TokenPair `protobuf:"bytes,1,opt,name=token_pair,json=tokenPair,proto3" json:"token_pair"`
}

QueryWasmContractResponse is the response type for the Query/WasmContract RPC method.

func (*QueryWasmContractResponse) Descriptor added in v0.4.0

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

func (*QueryWasmContractResponse) GetTokenPair added in v0.4.0

func (m *QueryWasmContractResponse) GetTokenPair() TokenPair

func (*QueryWasmContractResponse) Marshal added in v0.4.0

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

func (*QueryWasmContractResponse) MarshalTo added in v0.4.0

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

func (*QueryWasmContractResponse) MarshalToSizedBuffer added in v0.4.0

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

func (*QueryWasmContractResponse) ProtoMessage added in v0.4.0

func (*QueryWasmContractResponse) ProtoMessage()

func (*QueryWasmContractResponse) Reset added in v0.4.0

func (m *QueryWasmContractResponse) Reset()

func (*QueryWasmContractResponse) Size added in v0.4.0

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

func (*QueryWasmContractResponse) String added in v0.4.0

func (m *QueryWasmContractResponse) String() string

func (*QueryWasmContractResponse) Unmarshal added in v0.4.0

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

func (*QueryWasmContractResponse) XXX_DiscardUnknown added in v0.4.0

func (m *QueryWasmContractResponse) XXX_DiscardUnknown()

func (*QueryWasmContractResponse) XXX_Marshal added in v0.4.0

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

func (*QueryWasmContractResponse) XXX_Merge added in v0.4.0

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

func (*QueryWasmContractResponse) XXX_Size added in v0.4.0

func (m *QueryWasmContractResponse) XXX_Size() int

func (*QueryWasmContractResponse) XXX_Unmarshal added in v0.4.0

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

type RefundReceiver added in v0.5.0

type RefundReceiver struct {
	// lowercased CW721 contract address
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	TokenId         string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
	// owner address of the original token
	Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
}

RefundReceiver records the original CW721 owner of a converted token so an IBC timeout/error refund can return the token to the right address.

func (*RefundReceiver) Descriptor added in v0.5.0

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

func (*RefundReceiver) GetContractAddress added in v0.5.0

func (m *RefundReceiver) GetContractAddress() string

func (*RefundReceiver) GetOwner added in v0.5.0

func (m *RefundReceiver) GetOwner() string

func (*RefundReceiver) GetTokenId added in v0.5.0

func (m *RefundReceiver) GetTokenId() string

func (*RefundReceiver) Marshal added in v0.5.0

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

func (*RefundReceiver) MarshalTo added in v0.5.0

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

func (*RefundReceiver) MarshalToSizedBuffer added in v0.5.0

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

func (*RefundReceiver) ProtoMessage added in v0.5.0

func (*RefundReceiver) ProtoMessage()

func (*RefundReceiver) Reset added in v0.5.0

func (m *RefundReceiver) Reset()

func (*RefundReceiver) Size added in v0.5.0

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

func (*RefundReceiver) String added in v0.5.0

func (m *RefundReceiver) String() string

func (*RefundReceiver) Unmarshal added in v0.5.0

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

func (*RefundReceiver) XXX_DiscardUnknown added in v0.5.0

func (m *RefundReceiver) XXX_DiscardUnknown()

func (*RefundReceiver) XXX_Marshal added in v0.5.0

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

func (*RefundReceiver) XXX_Merge added in v0.5.0

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

func (*RefundReceiver) XXX_Size added in v0.5.0

func (m *RefundReceiver) XXX_Size() int

func (*RefundReceiver) XXX_Unmarshal added in v0.5.0

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

type TokenPair

type TokenPair struct {
	// address of CW721 contract token
	Cw721Address string `protobuf:"bytes,1,opt,name=cw721_address,json=cw721Address,proto3" json:"cw721_address,omitempty"`
	// cosmos nft class ID to be mapped to
	ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
}

TokenPair defines an instance that records a pairing consisting of a native Cosmos Coin and an CW721 token address.

func NewTokenPair

func NewTokenPair(cw721Address string, classID string) TokenPair

NewTokenPair returns an instance of TokenPair

func (*TokenPair) Descriptor

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

func (*TokenPair) Equal

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

func (TokenPair) GetCW721Contract

func (tp TokenPair) GetCW721Contract() common.Address

GetCW721Contract casts the hex string address of the ERC21 to common.Address

func (*TokenPair) GetClassId

func (m *TokenPair) GetClassId() string

func (*TokenPair) GetCw721Address

func (m *TokenPair) GetCw721Address() string

func (TokenPair) GetID

func (tp TokenPair) GetID() []byte

GetID returns the SHA256 hash of the ERC721 address and denomination

func (*TokenPair) Marshal

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

func (*TokenPair) MarshalTo

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

func (*TokenPair) MarshalToSizedBuffer

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

func (*TokenPair) ProtoMessage

func (*TokenPair) ProtoMessage()

func (*TokenPair) Reset

func (m *TokenPair) Reset()

func (*TokenPair) Size

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

func (*TokenPair) String

func (m *TokenPair) String() string

func (*TokenPair) Unmarshal

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

func (TokenPair) Validate

func (tp TokenPair) Validate() error

Validate performs a stateless validation of a TokenPair

func (*TokenPair) XXX_DiscardUnknown

func (m *TokenPair) XXX_DiscardUnknown()

func (*TokenPair) XXX_Marshal

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

func (*TokenPair) XXX_Merge

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

func (*TokenPair) XXX_Size

func (m *TokenPair) XXX_Size() int

func (*TokenPair) XXX_Unmarshal

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

type UIDPair

type UIDPair struct {
	// address of CW721 contract token + tokenId
	Cw721Did string `protobuf:"bytes,1,opt,name=cw721_did,json=cw721Did,proto3" json:"cw721_did,omitempty"`
	// cosmos nft class ID to be mapped to + nftId
	ClassDid string `protobuf:"bytes,2,opt,name=class_did,json=classDid,proto3" json:"class_did,omitempty"`
}

defines the unique id of nft asset

func (*UIDPair) Descriptor

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

func (*UIDPair) Equal

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

func (*UIDPair) GetClassDid

func (m *UIDPair) GetClassDid() string

func (*UIDPair) GetCw721Did

func (m *UIDPair) GetCw721Did() string

func (*UIDPair) Marshal

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

func (*UIDPair) MarshalTo

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

func (*UIDPair) MarshalToSizedBuffer

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

func (*UIDPair) ProtoMessage

func (*UIDPair) ProtoMessage()

func (*UIDPair) Reset

func (m *UIDPair) Reset()

func (*UIDPair) Size

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

func (*UIDPair) String

func (m *UIDPair) String() string

func (*UIDPair) Unmarshal

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

func (*UIDPair) XXX_DiscardUnknown

func (m *UIDPair) XXX_DiscardUnknown()

func (*UIDPair) XXX_Marshal

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

func (*UIDPair) XXX_Merge

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

func (*UIDPair) XXX_Size

func (m *UIDPair) XXX_Size() int

func (*UIDPair) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ConvertCW721

func (*UnimplementedMsgServer) ConvertNFT

func (*UnimplementedMsgServer) TransferCW721

func (*UnimplementedMsgServer) UpdateParams added in v0.4.0

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) TokenPair

func (*UnimplementedQueryServer) TokenPairs

func (*UnimplementedQueryServer) WasmContract

type WasmKeeper added in v0.4.0

WasmKeeper is the CosmWasm surface used by cw721 convert/refund.

Jump to

Keyboard shortcuts

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