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
- Variables
- func CanonicalContractAddress(address string) string
- func CanonicalEVMTokenID(tokenID string) (canonical string, legacy bool, err error)
- func ChecksumContractAddress(address string) (string, bool)
- func ContractAddressKeyVariants(address string) []string
- func CreateClassIDFromContractAddress(address string) string
- func CreateContractAddressFromClassID(classID string) string
- func CreateNFTIDFromTokenID(id string) string
- func CreateNFTUID(classID string, nftID string) string
- func CreateTokenIDFromNFTID(nftID string) string
- func CreateTokenUID(contractAddress string, tokenID string) string
- func EVMTokenIDKeyVariants(tokenID string) []string
- func EqualContractAddress(a, b string) bool
- func EqualEVMTokenID(a, b string) bool
- func EqualMetadata(a, b banktypes.Metadata) error
- func EqualStringSlice(aliasesA, aliasesB []string) bool
- func GetNFTFromUID(uid string) (string, string)
- func LegacyEVMTokenID(tokenID string) (string, bool)
- func ParseEVMTokenID(tokenID string) (*big.Int, error)
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error
- func RegisterMsgHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func SanitizeERC721Name(name string) string
- func TokenUIDKeyVariants(tokenUID string) []string
- func UIDBelongsToRegisteredPair(tokenUID, nftUID string, tokenPairs []TokenPair) bool
- func ValidateEVMTokenID(tokenID string) error
- func ValidateGenesisPairs(pairs []NFTUIDPair, receivers []RefundReceiver, tokenPairs []TokenPair) error
- type AccountKeeper
- type ClassEnhance
- type ERC721Data
- type ERC721StringResponse
- type ERC721TokenData
- type ERC721TokenIDResponse
- type ERC721TokenOwnerResponse
- type ERC721TokenStringResponse
- type EVMKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetNftUidPairs() []NFTUIDPair
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetRefundReceivers() []RefundReceiver
- func (m *GenesisState) GetTokenPairs() []TokenPair
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgConvertERC721
- func (*MsgConvertERC721) Descriptor() ([]byte, []int)
- func (m *MsgConvertERC721) GetClassId() string
- func (m *MsgConvertERC721) GetCosmosReceiver() string
- func (m *MsgConvertERC721) GetCosmosSender() string
- func (m *MsgConvertERC721) GetCosmosTokenIds() []string
- func (m *MsgConvertERC721) GetEvmContractAddress() string
- func (m *MsgConvertERC721) GetEvmTokenIds() []string
- func (msg *MsgConvertERC721) GetSignBytes() []byte
- func (msg MsgConvertERC721) GetSigners() []sdk.AccAddress
- func (m *MsgConvertERC721) Marshal() (dAtA []byte, err error)
- func (m *MsgConvertERC721) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgConvertERC721) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgConvertERC721) ProtoMessage()
- func (m *MsgConvertERC721) Reset()
- func (msg MsgConvertERC721) Route() string
- func (m *MsgConvertERC721) Size() (n int)
- func (m *MsgConvertERC721) String() string
- func (msg MsgConvertERC721) Type() string
- func (m *MsgConvertERC721) Unmarshal(dAtA []byte) error
- func (msg MsgConvertERC721) ValidateBasic() error
- func (m *MsgConvertERC721) XXX_DiscardUnknown()
- func (m *MsgConvertERC721) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgConvertERC721) XXX_Merge(src proto.Message)
- func (m *MsgConvertERC721) XXX_Size() int
- func (m *MsgConvertERC721) XXX_Unmarshal(b []byte) error
- type MsgConvertERC721Response
- func (*MsgConvertERC721Response) Descriptor() ([]byte, []int)
- func (m *MsgConvertERC721Response) GetClassId() string
- func (m *MsgConvertERC721Response) GetCosmosReceiver() string
- func (m *MsgConvertERC721Response) GetCosmosTokenIds() []string
- func (m *MsgConvertERC721Response) GetEvmContractAddress() string
- func (m *MsgConvertERC721Response) GetEvmSender() string
- func (m *MsgConvertERC721Response) GetEvmTokenIds() []string
- func (m *MsgConvertERC721Response) Marshal() (dAtA []byte, err error)
- func (m *MsgConvertERC721Response) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgConvertERC721Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgConvertERC721Response) ProtoMessage()
- func (m *MsgConvertERC721Response) Reset()
- func (m *MsgConvertERC721Response) Size() (n int)
- func (m *MsgConvertERC721Response) String() string
- func (m *MsgConvertERC721Response) Unmarshal(dAtA []byte) error
- func (m *MsgConvertERC721Response) XXX_DiscardUnknown()
- func (m *MsgConvertERC721Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgConvertERC721Response) XXX_Merge(src proto.Message)
- func (m *MsgConvertERC721Response) XXX_Size() int
- func (m *MsgConvertERC721Response) XXX_Unmarshal(b []byte) error
- type MsgConvertNFT
- func (*MsgConvertNFT) Descriptor() ([]byte, []int)
- func (m *MsgConvertNFT) GetClassId() string
- func (m *MsgConvertNFT) GetCosmosSender() string
- func (m *MsgConvertNFT) GetCosmosTokenIds() []string
- func (m *MsgConvertNFT) GetEvmContractAddress() string
- func (m *MsgConvertNFT) GetEvmReceiver() string
- func (m *MsgConvertNFT) GetEvmTokenIds() []string
- func (msg *MsgConvertNFT) GetSignBytes() []byte
- func (msg MsgConvertNFT) GetSigners() []sdk.AccAddress
- func (m *MsgConvertNFT) Marshal() (dAtA []byte, err error)
- func (m *MsgConvertNFT) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgConvertNFT) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgConvertNFT) ProtoMessage()
- func (m *MsgConvertNFT) Reset()
- func (msg MsgConvertNFT) Route() string
- func (m *MsgConvertNFT) Size() (n int)
- func (m *MsgConvertNFT) String() string
- func (msg MsgConvertNFT) Type() string
- func (m *MsgConvertNFT) Unmarshal(dAtA []byte) error
- func (msg MsgConvertNFT) ValidateBasic() error
- func (m *MsgConvertNFT) XXX_DiscardUnknown()
- func (m *MsgConvertNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgConvertNFT) XXX_Merge(src proto.Message)
- func (m *MsgConvertNFT) XXX_Size() int
- func (m *MsgConvertNFT) XXX_Unmarshal(b []byte) error
- type MsgConvertNFTResponse
- func (*MsgConvertNFTResponse) Descriptor() ([]byte, []int)
- func (m *MsgConvertNFTResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgConvertNFTResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgConvertNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgConvertNFTResponse) ProtoMessage()
- func (m *MsgConvertNFTResponse) Reset()
- func (m *MsgConvertNFTResponse) Size() (n int)
- func (m *MsgConvertNFTResponse) String() string
- func (m *MsgConvertNFTResponse) Unmarshal(dAtA []byte) error
- func (m *MsgConvertNFTResponse) XXX_DiscardUnknown()
- func (m *MsgConvertNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgConvertNFTResponse) XXX_Merge(src proto.Message)
- func (m *MsgConvertNFTResponse) XXX_Size() int
- func (m *MsgConvertNFTResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgTransferERC721
- func (*MsgTransferERC721) Descriptor() ([]byte, []int)
- func (m *MsgTransferERC721) GetClassId() string
- func (m *MsgTransferERC721) GetCosmosReceiver() string
- func (m *MsgTransferERC721) GetCosmosSender() string
- func (m *MsgTransferERC721) GetCosmosTokenIds() []string
- func (m *MsgTransferERC721) GetEvmContractAddress() string
- func (m *MsgTransferERC721) GetEvmTokenIds() []string
- func (m *MsgTransferERC721) GetMemo() string
- func (msg *MsgTransferERC721) GetSignBytes() []byte
- func (msg MsgTransferERC721) GetSigners() []sdk.AccAddress
- func (m *MsgTransferERC721) GetSourceChannel() string
- func (m *MsgTransferERC721) GetSourcePort() string
- func (m *MsgTransferERC721) GetTimeoutHeight() types.Height
- func (m *MsgTransferERC721) GetTimeoutTimestamp() uint64
- func (m *MsgTransferERC721) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferERC721) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferERC721) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferERC721) ProtoMessage()
- func (m *MsgTransferERC721) Reset()
- func (msg MsgTransferERC721) Route() string
- func (m *MsgTransferERC721) Size() (n int)
- func (m *MsgTransferERC721) String() string
- func (msg MsgTransferERC721) Type() string
- func (m *MsgTransferERC721) Unmarshal(dAtA []byte) error
- func (msg MsgTransferERC721) ValidateBasic() error
- func (m *MsgTransferERC721) XXX_DiscardUnknown()
- func (m *MsgTransferERC721) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferERC721) XXX_Merge(src proto.Message)
- func (m *MsgTransferERC721) XXX_Size() int
- func (m *MsgTransferERC721) XXX_Unmarshal(b []byte) error
- type MsgTransferERC721Response
- func (*MsgTransferERC721Response) Descriptor() ([]byte, []int)
- func (m *MsgTransferERC721Response) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferERC721Response) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferERC721Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferERC721Response) ProtoMessage()
- func (m *MsgTransferERC721Response) Reset()
- func (m *MsgTransferERC721Response) Size() (n int)
- func (m *MsgTransferERC721Response) String() string
- func (m *MsgTransferERC721Response) Unmarshal(dAtA []byte) error
- func (m *MsgTransferERC721Response) XXX_DiscardUnknown()
- func (m *MsgTransferERC721Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferERC721Response) XXX_Merge(src proto.Message)
- func (m *MsgTransferERC721Response) XXX_Size() int
- func (m *MsgTransferERC721Response) XXX_Unmarshal(b []byte) error
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m MsgUpdateParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Route() string
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Type() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type NFTEnhance
- type NFTKeeper
- type NFTUIDPair
- func (*NFTUIDPair) Descriptor() ([]byte, []int)
- func (m *NFTUIDPair) GetNftUid() string
- func (m *NFTUIDPair) GetTokenUid() string
- func (m *NFTUIDPair) Marshal() (dAtA []byte, err error)
- func (m *NFTUIDPair) MarshalTo(dAtA []byte) (int, error)
- func (m *NFTUIDPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NFTUIDPair) ProtoMessage()
- func (m *NFTUIDPair) Reset()
- func (m *NFTUIDPair) Size() (n int)
- func (m *NFTUIDPair) String() string
- func (m *NFTUIDPair) Unmarshal(dAtA []byte) error
- func (m *NFTUIDPair) XXX_DiscardUnknown()
- func (m *NFTUIDPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NFTUIDPair) XXX_Merge(src proto.Message)
- func (m *NFTUIDPair) XXX_Size() int
- func (m *NFTUIDPair) XXX_Unmarshal(b []byte) error
- type Owner
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetEnableEVMHook() bool
- func (m *Params) GetEnableErc721() bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryEvmAddressRequest
- func (*QueryEvmAddressRequest) Descriptor() ([]byte, []int)
- func (m *QueryEvmAddressRequest) GetChannel() string
- func (m *QueryEvmAddressRequest) GetClassId() string
- func (m *QueryEvmAddressRequest) GetPort() string
- func (m *QueryEvmAddressRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryEvmAddressRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryEvmAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryEvmAddressRequest) ProtoMessage()
- func (m *QueryEvmAddressRequest) Reset()
- func (m *QueryEvmAddressRequest) Size() (n int)
- func (m *QueryEvmAddressRequest) String() string
- func (m *QueryEvmAddressRequest) Unmarshal(dAtA []byte) error
- func (m *QueryEvmAddressRequest) XXX_DiscardUnknown()
- func (m *QueryEvmAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryEvmAddressRequest) XXX_Merge(src proto.Message)
- func (m *QueryEvmAddressRequest) XXX_Size() int
- func (m *QueryEvmAddressRequest) XXX_Unmarshal(b []byte) error
- type QueryEvmAddressResponse
- func (*QueryEvmAddressResponse) Descriptor() ([]byte, []int)
- func (m *QueryEvmAddressResponse) GetTokenPair() TokenPair
- func (m *QueryEvmAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryEvmAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryEvmAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryEvmAddressResponse) ProtoMessage()
- func (m *QueryEvmAddressResponse) Reset()
- func (m *QueryEvmAddressResponse) Size() (n int)
- func (m *QueryEvmAddressResponse) String() string
- func (m *QueryEvmAddressResponse) Unmarshal(dAtA []byte) error
- func (m *QueryEvmAddressResponse) XXX_DiscardUnknown()
- func (m *QueryEvmAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryEvmAddressResponse) XXX_Merge(src proto.Message)
- func (m *QueryEvmAddressResponse) XXX_Size() int
- func (m *QueryEvmAddressResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QueryTokenPairRequest
- func (*QueryTokenPairRequest) Descriptor() ([]byte, []int)
- func (m *QueryTokenPairRequest) GetToken() string
- func (m *QueryTokenPairRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTokenPairRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTokenPairRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTokenPairRequest) ProtoMessage()
- func (m *QueryTokenPairRequest) Reset()
- func (m *QueryTokenPairRequest) Size() (n int)
- func (m *QueryTokenPairRequest) String() string
- func (m *QueryTokenPairRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTokenPairRequest) XXX_DiscardUnknown()
- func (m *QueryTokenPairRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTokenPairRequest) XXX_Merge(src proto.Message)
- func (m *QueryTokenPairRequest) XXX_Size() int
- func (m *QueryTokenPairRequest) XXX_Unmarshal(b []byte) error
- type QueryTokenPairResponse
- func (*QueryTokenPairResponse) Descriptor() ([]byte, []int)
- func (m *QueryTokenPairResponse) GetTokenPair() TokenPair
- func (m *QueryTokenPairResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTokenPairResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTokenPairResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTokenPairResponse) ProtoMessage()
- func (m *QueryTokenPairResponse) Reset()
- func (m *QueryTokenPairResponse) Size() (n int)
- func (m *QueryTokenPairResponse) String() string
- func (m *QueryTokenPairResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTokenPairResponse) XXX_DiscardUnknown()
- func (m *QueryTokenPairResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTokenPairResponse) XXX_Merge(src proto.Message)
- func (m *QueryTokenPairResponse) XXX_Size() int
- func (m *QueryTokenPairResponse) XXX_Unmarshal(b []byte) error
- type QueryTokenPairsRequest
- func (*QueryTokenPairsRequest) Descriptor() ([]byte, []int)
- func (m *QueryTokenPairsRequest) GetPagination() *query.PageRequest
- func (m *QueryTokenPairsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTokenPairsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTokenPairsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTokenPairsRequest) ProtoMessage()
- func (m *QueryTokenPairsRequest) Reset()
- func (m *QueryTokenPairsRequest) Size() (n int)
- func (m *QueryTokenPairsRequest) String() string
- func (m *QueryTokenPairsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTokenPairsRequest) XXX_DiscardUnknown()
- func (m *QueryTokenPairsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTokenPairsRequest) XXX_Merge(src proto.Message)
- func (m *QueryTokenPairsRequest) XXX_Size() int
- func (m *QueryTokenPairsRequest) XXX_Unmarshal(b []byte) error
- type QueryTokenPairsResponse
- func (*QueryTokenPairsResponse) Descriptor() ([]byte, []int)
- func (m *QueryTokenPairsResponse) GetPagination() *query.PageResponse
- func (m *QueryTokenPairsResponse) GetTokenPairs() []TokenPair
- func (m *QueryTokenPairsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTokenPairsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTokenPairsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTokenPairsResponse) ProtoMessage()
- func (m *QueryTokenPairsResponse) Reset()
- func (m *QueryTokenPairsResponse) Size() (n int)
- func (m *QueryTokenPairsResponse) String() string
- func (m *QueryTokenPairsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTokenPairsResponse) XXX_DiscardUnknown()
- func (m *QueryTokenPairsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTokenPairsResponse) XXX_Merge(src proto.Message)
- func (m *QueryTokenPairsResponse) XXX_Size() int
- func (m *QueryTokenPairsResponse) XXX_Unmarshal(b []byte) error
- type RefundReceiver
- func (*RefundReceiver) Descriptor() ([]byte, []int)
- func (m *RefundReceiver) GetEvmAddress() string
- func (m *RefundReceiver) GetEvmContractAddress() string
- func (m *RefundReceiver) GetTokenId() string
- func (m *RefundReceiver) Marshal() (dAtA []byte, err error)
- func (m *RefundReceiver) MarshalTo(dAtA []byte) (int, error)
- func (m *RefundReceiver) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RefundReceiver) ProtoMessage()
- func (m *RefundReceiver) Reset()
- func (m *RefundReceiver) Size() (n int)
- func (m *RefundReceiver) String() string
- func (m *RefundReceiver) Unmarshal(dAtA []byte) error
- func (m *RefundReceiver) XXX_DiscardUnknown()
- func (m *RefundReceiver) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RefundReceiver) XXX_Merge(src proto.Message)
- func (m *RefundReceiver) XXX_Size() int
- func (m *RefundReceiver) XXX_Unmarshal(b []byte) error
- type TokenPair
- func (*TokenPair) Descriptor() ([]byte, []int)
- func (this *TokenPair) Equal(that interface{}) bool
- func (m *TokenPair) GetClassId() string
- func (tp TokenPair) GetERC721Contract() common.Address
- func (m *TokenPair) GetErc721Address() string
- func (tp TokenPair) GetID() []byte
- func (m *TokenPair) Marshal() (dAtA []byte, err error)
- func (m *TokenPair) MarshalTo(dAtA []byte) (int, error)
- func (m *TokenPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TokenPair) ProtoMessage()
- func (m *TokenPair) Reset()
- func (m *TokenPair) Size() (n int)
- func (m *TokenPair) String() string
- func (m *TokenPair) Unmarshal(dAtA []byte) error
- func (tp TokenPair) Validate() error
- func (m *TokenPair) XXX_DiscardUnknown()
- func (m *TokenPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenPair) XXX_Merge(src proto.Message)
- func (m *TokenPair) XXX_Size() int
- func (m *TokenPair) XXX_Unmarshal(b []byte) error
- type UIDPair
- func (*UIDPair) Descriptor() ([]byte, []int)
- func (this *UIDPair) Equal(that interface{}) bool
- func (m *UIDPair) GetClassDid() string
- func (m *UIDPair) GetErc721Did() string
- func (m *UIDPair) Marshal() (dAtA []byte, err error)
- func (m *UIDPair) MarshalTo(dAtA []byte) (int, error)
- func (m *UIDPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UIDPair) ProtoMessage()
- func (m *UIDPair) Reset()
- func (m *UIDPair) Size() (n int)
- func (m *UIDPair) String() string
- func (m *UIDPair) Unmarshal(dAtA []byte) error
- func (m *UIDPair) XXX_DiscardUnknown()
- func (m *UIDPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UIDPair) XXX_Merge(src proto.Message)
- func (m *UIDPair) XXX_Size() int
- func (m *UIDPair) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) ConvertERC721(ctx context.Context, req *MsgConvertERC721) (*MsgConvertERC721Response, error)
- func (*UnimplementedMsgServer) ConvertNFT(ctx context.Context, req *MsgConvertNFT) (*MsgConvertNFTResponse, error)
- func (*UnimplementedMsgServer) TransferERC721(ctx context.Context, req *MsgTransferERC721) (*MsgTransferERC721Response, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) EvmContract(ctx context.Context, req *QueryEvmAddressRequest) (*QueryEvmAddressResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) TokenPair(ctx context.Context, req *QueryTokenPairRequest) (*QueryTokenPairResponse, error)
- func (*UnimplementedQueryServer) TokenPairs(ctx context.Context, req *QueryTokenPairsRequest) (*QueryTokenPairsResponse, error)
Constants ¶
const ( EventTypeConvertNFT = "convert_nft" EventTypeConvertERC721 = "convert_erc721" EventTypeRefundPacketToken = "refund_packet_token" EventTypeRefundPacketTokenSkip = "refund_packet_token_skip" AttributeKeyNFTClass = "nft_class" AttributeKeyNFTID = "nft_ids" AttributeKeyNFTOwner = "nft_owner" AttributeKeyERC721Token = "erc721_token" // #nosec AttributeKeyERC721TokenID = "erc721_token_ids" // #nosec AttributeKeyReceiver = "receiver" // AttributeKeyPairsRetained marks the skip events whose pair mappings were // deliberately kept. It exists because this module and x/cw721 emit the // same event type with the same reason `nft_already_gone` for opposite // states: erc721 checks HasNFT before its EVM owner query, so it cannot yet // know whether an escrowed ERC721 is still held and must keep the mapping // for triage, whereas cw721 cleans up only after the refund side is settled // and so converges. Without this attribute an operator cannot tell, from the // reason alone, whether a `nft_already_gone` alert needs action. // // Only erc721 sets it; absence means false, which is why x/cw721 does not // need a constant of its own. AttributeKeyPairsRetained = "pairs_retained" )
erc721 events.
This list used to mirror Evmos x/erc20's event skeleton; every inherited identifier was unused here, because registration and locking are done by ConvertNFT / ConvertERC721 (which emit convert_nft / convert_erc721 themselves), cross-chain escrow and release belong to nft-transfer (the module only emits refund_packet_token(_skip)), and transfer logs are decoded with go-ethereum's abi in the keeper.
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.
const ( // DefaultPrefix prefix DefaultPrefix = "uptick" // ModuleName module name ModuleName = "erc721" // StoreKey to be used when creating the KVStore StoreKey = ModuleName // RouterKey to be used for message routing RouterKey = ModuleName TransferERC721Memo = ":IBCTransferFromERC721" )
constants
const ( TypeMsgConvertNFT = "convert_nft" TypeMsgConvertERC721 = "convert_ERC721" TypeMsgTransferERC721 = "transfer_ERC721" )
const TypeMsgUpdateParams = "erc721/MsgUpdateParams"
Variables ¶
var ( ErrInvalidLengthErc721 = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowErc721 = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupErc721 = fmt.Errorf("proto: unexpected end of group") )
var ( ErrERC721Disabled = sdkerrors.Register(ModuleName, 2, "erc721 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") ErrERC721TokenPairDisabled = sdkerrors.Register(ModuleName, 13, "erc721 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") ErrNFTMappingConflict = sdkerrors.Register(ModuleName, 18, "erc721/nft token pair mapping is not one-to-one") // ErrClassEnhanceRestrictions is returned when a contract DOES expose // getClassEnhanceInfo but the mint/update restriction fields cannot be // decoded. It must not be swallowed: their zero value means "unrestricted", // so guessing would silently disable an authorization check. Distinct from // a plain call failure (contract without the method), which is expected and // handled with empty metadata defaults. ErrClassEnhanceRestrictions = sdkerrors.Register(ModuleName, 19, "unreadable class restriction flags") )
errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( KeyPrefixTokenPair = []byte{prefixTokenPair} KeyPrefixTokenPairByERC721 = []byte{prefixTokenPairByERC721} KeyPrefixTokenPairByClass = []byte{prefixTokenPairByClass} KeyPrefixNFTUIDPairByNFTUID = []byte{prefixNFTUIDPairByNFTUID} KeyPrefixNFTUIDPairByTokenUID = []byte{prefixNFTUIDPairByTokenUID} KeyPrefixEvmAddressByContractTokenId = []byte{prefixEvmAddressByContractTokenId} )
KVStore key prefixes
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var AccModuleAddress sdk.AccAddress
var (
KeyPrefixParams = []byte("erc721/params/")
)
Parameter store key
var ModuleAddress common.Address
ModuleAddress is the native module address for EVM
var ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry())
ModuleCdc references the global erc721 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/erc721 and defined at the application level.
var Msg_serviceDesc = _Msg_serviceDesc
var Owner_name = map[int32]string{
0: "OWNER_UNSPECIFIED",
1: "OWNER_MODULE",
2: "OWNER_EXTERNAL",
}
var Owner_value = map[string]int32{
"OWNER_UNSPECIFIED": 0,
"OWNER_MODULE": 1,
"OWNER_EXTERNAL": 2,
}
Functions ¶
func CanonicalContractAddress ¶ added in v0.5.0
CanonicalContractAddress returns the spelling used for every store key derived from an ERC721 contract address: lowercase for a valid hex address, and the input unchanged otherwise (a malformed value still has to match itself exactly rather than being rewritten).
func CanonicalEVMTokenID ¶ added in v0.5.0
CanonicalEVMTokenID returns the canonical base-10 spelling of tokenID and reports whether the input used the legacy "0x"+hex spelling. The result has no leading zeros, so "007", "7" and "0x07" all canonicalise to "7" and can never produce two store keys for one value.
func ChecksumContractAddress ¶ added in v0.5.0
ChecksumContractAddress returns the EIP-55 checksummed spelling of an EVM contract address, i.e. the spelling the pre-v0.4.0 module stored. It reports false when the input is not a hex address.
func ContractAddressKeyVariants ¶ added in v0.5.0
ContractAddressKeyVariants returns the distinct spellings under which the same contract address may have been written to the store, canonical (lowercase) first. A reader probes them in order; a writer uses the first as the key to write and drops the rest.
func CreateClassIDFromContractAddress ¶ added in v0.2.5
CreateClassIDFromContractAddress derives a class id from an ERC721 contract address.
func CreateContractAddressFromClassID ¶ added in v0.2.5
CreateContractAddressFromClassID derives the ERC721 contract address from a class id.
func CreateNFTIDFromTokenID ¶ added in v0.2.5
CreateNFTIDFromTokenID derives a Cosmos NFT id from an ERC721 token id.
func CreateNFTUID ¶ added in v0.2.5
func CreateTokenIDFromNFTID ¶ added in v0.2.5
CreateTokenIDFromNFTID derives a base-10 ERC721 token ID from a Cosmos NFT id. The stripped NFT id is first hashed with SHA-256 and then interpreted as a big integer, guaranteeing a uint256-compatible decimal token ID regardless of the original NFT id length.
func CreateTokenUID ¶ added in v0.2.5
func EVMTokenIDKeyVariants ¶ added in v0.5.0
EVMTokenIDKeyVariants returns the distinct token-id spellings under which the same uint256 value may have been written to the NFT-pair store, most canonical first. Readers probe them in order, which is what makes a legacy key readable without a state migration; writers use the first entry as the key to write and drop the rest, which keeps one value from ending up with two keys.
Input that is not a valid uint256 in either spelling yields itself as the only variant, so a caller still performs an exact-match lookup against already-broken state instead of skipping the read.
func EqualContractAddress ¶ added in v0.5.0
EqualContractAddress reports whether two strings denote the same EVM contract address regardless of spelling. Anything that is not a hex address falls back to an exact comparison, so a malformed value is not silently widened into a match.
func EqualEVMTokenID ¶ added in v0.5.0
EqualEVMTokenID reports whether two token-id strings denote the same uint256 value in either spelling. Input that is not a valid uint256 in either form has to match byte for byte, so already-broken state is never silently widened into a match.
func EqualMetadata ¶
EqualMetadata checks if all the fields of the provided coin metadata are equal.
func EqualStringSlice ¶
EqualStringSlice checks if two string slices are equal.
func GetNFTFromUID ¶ added in v0.2.5
func LegacyEVMTokenID ¶ added in v0.5.0
LegacyEVMTokenID returns the legacy "0x"+hex spelling that denotes the same uint256 value as the given canonical base-10 token id.
hex.EncodeToString always emits an even number of nibbles, so an odd-length Text(16) result means the leading byte was 0x01..0x0f and its dropped high nibble has to be restored — otherwise "0x"+"b616263" would not match the stored "0x0b616263". A token id whose bytes start with NUL would need more than one nibble restored, and those are rejected at mint time (the collection token id rules forbid NUL), so the single-nibble case is the only one.
func ParseEVMTokenID ¶ added in v0.5.0
ParseEVMTokenID parses an ERC721 token id in either the canonical base-10 spelling or the legacy "0x"+hex spelling and returns its uint256 value. Use it for values that came out of state or that feed an ERC721 contract call; use ValidateEVMTokenID when creating a binding.
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/erc721 interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
func RegisterMsgHandler ¶
RegisterMsgHandler registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMsgHandlerClient ¶
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 ¶
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 RegisterQueryHandler ¶
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 SanitizeERC721Name ¶
SanitizeERC721Name removes leading digits and every character that is not a letter, a digit, '/' or '-', truncates to 128 runes, and then strips a leading "ibc/" or "erc721/" prefix.
func TokenUIDKeyVariants ¶ added in v0.5.0
TokenUIDKeyVariants returns every spelling a forward (token id, contract address) key may have been written under, canonical spelling first.
The forward key is "<tokenId>,<contractAddress>" and BOTH components have more than one historical spelling — the token id is either the v0.3.3 "0x"+hex form or the v0.4.0 base-10 one, and the address is either EIP-55 checksummed or lowercase — so a key has to be looked up under the cross product of the two. SetNFTPairs and ResolveNFTUIDPair enumerate the same set inline; this is factored out because the index prune needs it a third time. Note that CreateTokenUID takes (contract, tokenID) while the string it builds puts the token id first.
A key that cannot be split yields itself as its only variant, so already-broken state is compared exactly instead of widened into a match.
func UIDBelongsToRegisteredPair ¶ added in v0.5.0
UIDBelongsToRegisteredPair reports whether the token UID's contract and the NFT UID's class resolve to the same registered TokenPair.
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. Sharing the exact function is what keeps the two sides in agreement -- an export must never emit a record that this validation (and therefore InitGenesis) rejects, because the backup would then be unreadable exactly when it is needed.
func ValidateEVMTokenID ¶ added in v0.4.0
ValidateEVMTokenID ensures an ERC721 token ID is a base-10 uint256 string. fmt.Sscan historically accepted hexadecimal token IDs, which could create two NFT-pair keys for the same numerical token ID.
This is the creation-time check, deliberately stricter than ParseEVMTokenID, which also accepts the legacy "0x"+hex spelling for values being read back.
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 whole batch, UID membership in a registered token pair, and refund receivers that reference registered token pairs.
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetModuleAddress(moduleName string) sdk.AccAddress
GetSequence(context.Context, sdk.AccAddress) (uint64, error)
GetAccount(context.Context, sdk.AccAddress) sdk.AccountI
SetAccount(context.Context, sdk.AccountI)
}
AccountKeeper defines the expected interface needed to retrieve account info.
type ClassEnhance ¶ added in v0.2.5
type ClassEnhance struct {
Data string
Description string
MintRestricted bool
Schema string
UpdateRestricted bool
Uri string
UriHash string
}
ClassEnhance represents the ERC721 token details used to map the token to a Cosmos NFT
func NewClassEnhance ¶ added in v0.2.5
func NewClassEnhance( data string, description string, mintRestricted bool, schema string, updateRestricted bool, uri string, uriHash string, ) ClassEnhance
NewClassEnhance creates a new ERC721Data instance
type ERC721Data ¶
ERC721Data represents the ERC721 token details used to map the token to a Cosmos NFT
func NewERC721Data ¶
func NewERC721Data(name string, symbol string) ERC721Data
NewERC721Data creates a new ERC721Data instance
type ERC721StringResponse ¶
type ERC721StringResponse struct {
Value string
}
ERC721StringResponse defines the string value from the call response
type ERC721TokenData ¶
func NewERC721TokenData ¶
func NewERC721TokenData(name string, symbol string, uri string) ERC721TokenData
type ERC721TokenIDResponse ¶
type ERC721TokenStringResponse ¶
type ERC721TokenStringResponse struct {
Value string
}
type EVMKeeper ¶
type EVMKeeper interface {
statedb.Keeper
GetParams(ctx sdk.Context) evmtypes.Params
GetAccountWithoutBalance(ctx sdk.Context, addr common.Address) *statedb.Account
EstimateGas(c context.Context, req *evmtypes.EthCallRequest) (*evmtypes.EstimateGasResponse, error)
ApplyMessage(ctx sdk.Context, stateDB *statedb.StateDB, msg core.Message, tracer *tracing.Hooks, commit bool, callFromPrecompile bool, internal bool) (*evmtypes.MsgEthereumTxResponse, error)
}
EVMKeeper defines the expected EVM keeper interface used on erc721
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 EVM token UIDs and Cosmos NFT UIDs.
NftUidPairs []NFTUIDPair `protobuf:"bytes,3,rep,name=nft_uid_pairs,json=nftUidPairs,proto3" json:"nft_uid_pairs"`
// original ERC721 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) 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 MsgClient ¶
type MsgClient interface {
// ConvertNFT mints a ERC721 representation of the native Cosmos nft
// that is registered on the token mapping.
ConvertNFT(ctx context.Context, in *MsgConvertNFT, opts ...grpc.CallOption) (*MsgConvertNFTResponse, error)
// ConvertERC721 mints a native Cosmos coin representation of the ERC721 token
// contract that is registered on the token mapping.
ConvertERC721(ctx context.Context, in *MsgConvertERC721, opts ...grpc.CallOption) (*MsgConvertERC721Response, error)
// TransferERC721 transfers a erc721 token from one chain to another chain through IBC
TransferERC721(ctx context.Context, in *MsgTransferERC721, opts ...grpc.CallOption) (*MsgTransferERC721Response, error)
// UpdateParams updates the module parameters. Since the erc721 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 MsgConvertERC721 ¶
type MsgConvertERC721 struct {
// ERC721 token contract address registered in a token pair
EvmContractAddress string `protobuf:"bytes,1,opt,name=evm_contract_address,json=evmContractAddress,proto3" json:"evm_contract_address,omitempty"`
// tokenID to convert
EvmTokenIds []string `protobuf:"bytes,2,rep,name=evm_token_ids,json=evmTokenIds,proto3" json:"evm_token_ids,omitempty"`
// bech32 address to receive native Cosmos coins
CosmosReceiver string `protobuf:"bytes,3,opt,name=cosmos_receiver,json=cosmosReceiver,proto3" json:"cosmos_receiver,omitempty"`
// sender bech32 address from the owner of the given ERC721 tokens
CosmosSender string `protobuf:"bytes,4,opt,name=cosmos_sender,json=cosmosSender,proto3" json:"cosmos_sender,omitempty"`
// nft classID to cnvert to ERC721
ClassId string `protobuf:"bytes,5,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
// nftID to cnvert to ERC721
CosmosTokenIds []string `protobuf:"bytes,6,rep,name=cosmos_token_ids,json=cosmosTokenIds,proto3" json:"cosmos_token_ids,omitempty"`
}
MsgConvertERC721 defines a Msg to convert a ERC721 token to a native Cosmos nft.
func (*MsgConvertERC721) Descriptor ¶
func (*MsgConvertERC721) Descriptor() ([]byte, []int)
func (*MsgConvertERC721) GetClassId ¶ added in v0.2.5
func (m *MsgConvertERC721) GetClassId() string
func (*MsgConvertERC721) GetCosmosReceiver ¶ added in v0.2.16
func (m *MsgConvertERC721) GetCosmosReceiver() string
func (*MsgConvertERC721) GetCosmosSender ¶ added in v0.4.0
func (m *MsgConvertERC721) GetCosmosSender() string
func (*MsgConvertERC721) GetCosmosTokenIds ¶ added in v0.2.16
func (m *MsgConvertERC721) GetCosmosTokenIds() []string
func (*MsgConvertERC721) GetEvmContractAddress ¶ added in v0.2.16
func (m *MsgConvertERC721) GetEvmContractAddress() string
func (*MsgConvertERC721) GetEvmTokenIds ¶ added in v0.2.16
func (m *MsgConvertERC721) GetEvmTokenIds() []string
func (*MsgConvertERC721) GetSignBytes ¶
func (msg *MsgConvertERC721) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgConvertERC721) GetSigners ¶
func (msg MsgConvertERC721) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgConvertERC721) Marshal ¶
func (m *MsgConvertERC721) Marshal() (dAtA []byte, err error)
func (*MsgConvertERC721) MarshalToSizedBuffer ¶
func (m *MsgConvertERC721) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgConvertERC721) ProtoMessage ¶
func (*MsgConvertERC721) ProtoMessage()
func (*MsgConvertERC721) Reset ¶
func (m *MsgConvertERC721) Reset()
func (MsgConvertERC721) Route ¶
func (msg MsgConvertERC721) Route() string
Route should return the name of the module
func (*MsgConvertERC721) Size ¶
func (m *MsgConvertERC721) Size() (n int)
func (*MsgConvertERC721) String ¶
func (m *MsgConvertERC721) String() string
func (MsgConvertERC721) Type ¶
func (msg MsgConvertERC721) Type() string
Type should return the action
func (*MsgConvertERC721) Unmarshal ¶
func (m *MsgConvertERC721) Unmarshal(dAtA []byte) error
func (MsgConvertERC721) ValidateBasic ¶
func (msg MsgConvertERC721) ValidateBasic() error
ValidateBasic runs stateless checks on the message
func (*MsgConvertERC721) XXX_DiscardUnknown ¶
func (m *MsgConvertERC721) XXX_DiscardUnknown()
func (*MsgConvertERC721) XXX_Marshal ¶
func (m *MsgConvertERC721) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgConvertERC721) XXX_Merge ¶
func (m *MsgConvertERC721) XXX_Merge(src proto.Message)
func (*MsgConvertERC721) XXX_Size ¶
func (m *MsgConvertERC721) XXX_Size() int
func (*MsgConvertERC721) XXX_Unmarshal ¶
func (m *MsgConvertERC721) XXX_Unmarshal(b []byte) error
type MsgConvertERC721Response ¶
type MsgConvertERC721Response struct {
// ERC721 token contract address registered in a token pair
EvmContractAddress string `protobuf:"bytes,1,opt,name=evm_contract_address,json=evmContractAddress,proto3" json:"evm_contract_address,omitempty"`
// tokenID to convert
EvmTokenIds []string `protobuf:"bytes,2,rep,name=evm_token_ids,json=evmTokenIds,proto3" json:"evm_token_ids,omitempty"`
// bech32 address to receive native Cosmos coins
CosmosReceiver string `protobuf:"bytes,3,opt,name=cosmos_receiver,json=cosmosReceiver,proto3" json:"cosmos_receiver,omitempty"`
// sender hex address from the owner of the given ERC721 tokens
EvmSender string `protobuf:"bytes,4,opt,name=evm_sender,json=evmSender,proto3" json:"evm_sender,omitempty"`
// nft classID to cnvert to ERC721
ClassId string `protobuf:"bytes,5,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
// nftID to cnvert to ERC721
CosmosTokenIds []string `protobuf:"bytes,6,rep,name=cosmos_token_ids,json=cosmosTokenIds,proto3" json:"cosmos_token_ids,omitempty"`
}
MsgConvertERC721Response returns no fields
func (*MsgConvertERC721Response) Descriptor ¶
func (*MsgConvertERC721Response) Descriptor() ([]byte, []int)
func (*MsgConvertERC721Response) GetClassId ¶ added in v0.4.0
func (m *MsgConvertERC721Response) GetClassId() string
func (*MsgConvertERC721Response) GetCosmosReceiver ¶ added in v0.4.0
func (m *MsgConvertERC721Response) GetCosmosReceiver() string
func (*MsgConvertERC721Response) GetCosmosTokenIds ¶ added in v0.4.0
func (m *MsgConvertERC721Response) GetCosmosTokenIds() []string
func (*MsgConvertERC721Response) GetEvmContractAddress ¶ added in v0.4.0
func (m *MsgConvertERC721Response) GetEvmContractAddress() string
func (*MsgConvertERC721Response) GetEvmSender ¶ added in v0.4.0
func (m *MsgConvertERC721Response) GetEvmSender() string
func (*MsgConvertERC721Response) GetEvmTokenIds ¶ added in v0.4.0
func (m *MsgConvertERC721Response) GetEvmTokenIds() []string
func (*MsgConvertERC721Response) Marshal ¶
func (m *MsgConvertERC721Response) Marshal() (dAtA []byte, err error)
func (*MsgConvertERC721Response) MarshalTo ¶
func (m *MsgConvertERC721Response) MarshalTo(dAtA []byte) (int, error)
func (*MsgConvertERC721Response) MarshalToSizedBuffer ¶
func (m *MsgConvertERC721Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgConvertERC721Response) ProtoMessage ¶
func (*MsgConvertERC721Response) ProtoMessage()
func (*MsgConvertERC721Response) Reset ¶
func (m *MsgConvertERC721Response) Reset()
func (*MsgConvertERC721Response) Size ¶
func (m *MsgConvertERC721Response) Size() (n int)
func (*MsgConvertERC721Response) String ¶
func (m *MsgConvertERC721Response) String() string
func (*MsgConvertERC721Response) Unmarshal ¶
func (m *MsgConvertERC721Response) Unmarshal(dAtA []byte) error
func (*MsgConvertERC721Response) XXX_DiscardUnknown ¶
func (m *MsgConvertERC721Response) XXX_DiscardUnknown()
func (*MsgConvertERC721Response) XXX_Marshal ¶
func (m *MsgConvertERC721Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgConvertERC721Response) XXX_Merge ¶
func (m *MsgConvertERC721Response) XXX_Merge(src proto.Message)
func (*MsgConvertERC721Response) XXX_Size ¶
func (m *MsgConvertERC721Response) XXX_Size() int
func (*MsgConvertERC721Response) XXX_Unmarshal ¶
func (m *MsgConvertERC721Response) XXX_Unmarshal(b []byte) error
type MsgConvertNFT ¶
type MsgConvertNFT struct {
// nft classID to cnvert to ERC721
ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
// nftID to cnvert to ERC721
CosmosTokenIds []string `protobuf:"bytes,2,rep,name=cosmos_token_ids,json=cosmosTokenIds,proto3" json:"cosmos_token_ids,omitempty"`
// recipient hex address to receive ERC721 token
EvmReceiver string `protobuf:"bytes,3,opt,name=evm_receiver,json=evmReceiver,proto3" json:"evm_receiver,omitempty"`
// cosmos bech32 address from the owner of the given Cosmos coins
CosmosSender string `protobuf:"bytes,4,opt,name=cosmos_sender,json=cosmosSender,proto3" json:"cosmos_sender,omitempty"`
// ERC721 token contract address registered in a token pair
EvmContractAddress string `protobuf:"bytes,5,opt,name=evm_contract_address,json=evmContractAddress,proto3" json:"evm_contract_address,omitempty"`
// ERC721 token id registered in a token pair
EvmTokenIds []string `protobuf:"bytes,6,rep,name=evm_token_ids,json=evmTokenIds,proto3" json:"evm_token_ids,omitempty"`
}
MsgConvertNFT defines a Msg to convert a native Cosmos nft to a ERC721 token
func (*MsgConvertNFT) Descriptor ¶
func (*MsgConvertNFT) Descriptor() ([]byte, []int)
func (*MsgConvertNFT) GetClassId ¶
func (m *MsgConvertNFT) GetClassId() string
func (*MsgConvertNFT) GetCosmosSender ¶ added in v0.2.16
func (m *MsgConvertNFT) GetCosmosSender() string
func (*MsgConvertNFT) GetCosmosTokenIds ¶ added in v0.2.16
func (m *MsgConvertNFT) GetCosmosTokenIds() []string
func (*MsgConvertNFT) GetEvmContractAddress ¶ added in v0.2.16
func (m *MsgConvertNFT) GetEvmContractAddress() string
func (*MsgConvertNFT) GetEvmReceiver ¶ added in v0.2.16
func (m *MsgConvertNFT) GetEvmReceiver() string
func (*MsgConvertNFT) GetEvmTokenIds ¶ added in v0.2.16
func (m *MsgConvertNFT) GetEvmTokenIds() []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) Marshal ¶
func (m *MsgConvertNFT) Marshal() (dAtA []byte, err 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) 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 ERC721 representation of the native Cosmos nft
// that is registered on the token mapping.
ConvertNFT(context.Context, *MsgConvertNFT) (*MsgConvertNFTResponse, error)
// ConvertERC721 mints a native Cosmos coin representation of the ERC721 token
// contract that is registered on the token mapping.
ConvertERC721(context.Context, *MsgConvertERC721) (*MsgConvertERC721Response, error)
// TransferERC721 transfers a erc721 token from one chain to another chain through IBC
TransferERC721(context.Context, *MsgTransferERC721) (*MsgTransferERC721Response, error)
// UpdateParams updates the module parameters. Since the erc721 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 MsgTransferERC721 ¶ added in v0.2.16
type MsgTransferERC721 struct {
// evm_contract_address is the ERC721 token contract address
EvmContractAddress string `protobuf:"bytes,1,opt,name=evm_contract_address,json=evmContractAddress,proto3" json:"evm_contract_address,omitempty"`
// tokenID to convert
EvmTokenIds []string `protobuf:"bytes,2,rep,name=evm_token_ids,json=evmTokenIds,proto3" json:"evm_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
CosmosSender string `protobuf:"bytes,7,opt,name=cosmos_sender,json=cosmosSender,proto3" json:"cosmos_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 is the 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 is the 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"`
// memo is an optional memo field
Memo string `protobuf:"bytes,11,opt,name=memo,proto3" json:"memo,omitempty"`
}
MsgTransferERC721 defines a message for transferring erc721 tokens through IBC
func (*MsgTransferERC721) Descriptor ¶ added in v0.2.16
func (*MsgTransferERC721) Descriptor() ([]byte, []int)
func (*MsgTransferERC721) GetClassId ¶ added in v0.4.0
func (m *MsgTransferERC721) GetClassId() string
func (*MsgTransferERC721) GetCosmosReceiver ¶ added in v0.4.0
func (m *MsgTransferERC721) GetCosmosReceiver() string
func (*MsgTransferERC721) GetCosmosSender ¶ added in v0.4.0
func (m *MsgTransferERC721) GetCosmosSender() string
func (*MsgTransferERC721) GetCosmosTokenIds ¶ added in v0.4.0
func (m *MsgTransferERC721) GetCosmosTokenIds() []string
func (*MsgTransferERC721) GetEvmContractAddress ¶ added in v0.4.0
func (m *MsgTransferERC721) GetEvmContractAddress() string
func (*MsgTransferERC721) GetEvmTokenIds ¶ added in v0.4.0
func (m *MsgTransferERC721) GetEvmTokenIds() []string
func (*MsgTransferERC721) GetMemo ¶ added in v0.4.0
func (m *MsgTransferERC721) GetMemo() string
func (*MsgTransferERC721) GetSignBytes ¶ added in v0.2.16
func (msg *MsgTransferERC721) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgTransferERC721) GetSigners ¶ added in v0.2.16
func (msg MsgTransferERC721) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgTransferERC721) GetSourceChannel ¶ added in v0.4.0
func (m *MsgTransferERC721) GetSourceChannel() string
func (*MsgTransferERC721) GetSourcePort ¶ added in v0.4.0
func (m *MsgTransferERC721) GetSourcePort() string
func (*MsgTransferERC721) GetTimeoutHeight ¶ added in v0.4.0
func (m *MsgTransferERC721) GetTimeoutHeight() types.Height
func (*MsgTransferERC721) GetTimeoutTimestamp ¶ added in v0.4.0
func (m *MsgTransferERC721) GetTimeoutTimestamp() uint64
func (*MsgTransferERC721) Marshal ¶ added in v0.2.16
func (m *MsgTransferERC721) Marshal() (dAtA []byte, err error)
func (*MsgTransferERC721) MarshalTo ¶ added in v0.2.16
func (m *MsgTransferERC721) MarshalTo(dAtA []byte) (int, error)
func (*MsgTransferERC721) MarshalToSizedBuffer ¶ added in v0.2.16
func (m *MsgTransferERC721) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferERC721) ProtoMessage ¶ added in v0.2.16
func (*MsgTransferERC721) ProtoMessage()
func (*MsgTransferERC721) Reset ¶ added in v0.2.16
func (m *MsgTransferERC721) Reset()
func (MsgTransferERC721) Route ¶ added in v0.2.16
func (msg MsgTransferERC721) Route() string
Route should return the name of the module
func (*MsgTransferERC721) Size ¶ added in v0.2.16
func (m *MsgTransferERC721) Size() (n int)
func (*MsgTransferERC721) String ¶ added in v0.2.16
func (m *MsgTransferERC721) String() string
func (MsgTransferERC721) Type ¶ added in v0.2.16
func (msg MsgTransferERC721) Type() string
Type should return the action
func (*MsgTransferERC721) Unmarshal ¶ added in v0.2.16
func (m *MsgTransferERC721) Unmarshal(dAtA []byte) error
func (MsgTransferERC721) ValidateBasic ¶ added in v0.2.16
func (msg MsgTransferERC721) ValidateBasic() error
ValidateBasic runs stateless checks on the message
func (*MsgTransferERC721) XXX_DiscardUnknown ¶ added in v0.2.16
func (m *MsgTransferERC721) XXX_DiscardUnknown()
func (*MsgTransferERC721) XXX_Marshal ¶ added in v0.2.16
func (m *MsgTransferERC721) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferERC721) XXX_Merge ¶ added in v0.2.16
func (m *MsgTransferERC721) XXX_Merge(src proto.Message)
func (*MsgTransferERC721) XXX_Size ¶ added in v0.2.16
func (m *MsgTransferERC721) XXX_Size() int
func (*MsgTransferERC721) XXX_Unmarshal ¶ added in v0.2.16
func (m *MsgTransferERC721) XXX_Unmarshal(b []byte) error
type MsgTransferERC721Response ¶ added in v0.2.16
type MsgTransferERC721Response struct {
}
MsgTransferERC721Response defines the response type for Transfer erc721 RPC
func (*MsgTransferERC721Response) Descriptor ¶ added in v0.2.16
func (*MsgTransferERC721Response) Descriptor() ([]byte, []int)
func (*MsgTransferERC721Response) Marshal ¶ added in v0.2.16
func (m *MsgTransferERC721Response) Marshal() (dAtA []byte, err error)
func (*MsgTransferERC721Response) MarshalTo ¶ added in v0.2.16
func (m *MsgTransferERC721Response) MarshalTo(dAtA []byte) (int, error)
func (*MsgTransferERC721Response) MarshalToSizedBuffer ¶ added in v0.2.16
func (m *MsgTransferERC721Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferERC721Response) ProtoMessage ¶ added in v0.2.16
func (*MsgTransferERC721Response) ProtoMessage()
func (*MsgTransferERC721Response) Reset ¶ added in v0.2.16
func (m *MsgTransferERC721Response) Reset()
func (*MsgTransferERC721Response) Size ¶ added in v0.2.16
func (m *MsgTransferERC721Response) Size() (n int)
func (*MsgTransferERC721Response) String ¶ added in v0.2.16
func (m *MsgTransferERC721Response) String() string
func (*MsgTransferERC721Response) Unmarshal ¶ added in v0.2.16
func (m *MsgTransferERC721Response) Unmarshal(dAtA []byte) error
func (*MsgTransferERC721Response) XXX_DiscardUnknown ¶ added in v0.2.16
func (m *MsgTransferERC721Response) XXX_DiscardUnknown()
func (*MsgTransferERC721Response) XXX_Marshal ¶ added in v0.2.16
func (m *MsgTransferERC721Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferERC721Response) XXX_Merge ¶ added in v0.2.16
func (m *MsgTransferERC721Response) XXX_Merge(src proto.Message)
func (*MsgTransferERC721Response) XXX_Size ¶ added in v0.2.16
func (m *MsgTransferERC721Response) XXX_Size() int
func (*MsgTransferERC721Response) XXX_Unmarshal ¶ added in v0.2.16
func (m *MsgTransferERC721Response) 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/erc721 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 ¶ added in v0.2.5
NFTEnhance represents the ERC721 token details used to map the token to a Cosmos NFT
func NewNFTEnhance ¶ added in v0.2.5
func NewNFTEnhance(name string, uri string, data string, uriHash string) NFTEnhance
NewNFTEnhance creates a new ERC721Data instance
type NFTKeeper ¶
type NFTKeeper interface {
SaveClass(ctx sdk.Context, class nft.Class) error
HasClass(ctx sdk.Context, classID string) bool
GetClass(ctx sdk.Context, classID string) (nft.Class, bool)
Mint(ctx sdk.Context, token nft.NFT, receiver sdk.AccAddress) error
Burn(ctx sdk.Context, classID string, nftID string) error
Transfer(ctx sdk.Context, classID string, nftID string, receiver sdk.AccAddress) error
GetNFT(ctx sdk.Context, denomID string, tokenID string) (nft.NFT, error)
HasNFT(ctx sdk.Context, classID, id string) bool
GetOwner(ctx sdk.Context, classID string, nftID string) sdk.AccAddress
}
NFTKeeper defines the expected interface needed to retrieve account balances.
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 an EVM 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 ERC721 contract.
func (Owner) EnumDescriptor ¶
type Params ¶
type Params struct {
// parameter to enable the conversion of Cosmos nft <--> ERC721 tokens.
EnableErc721 bool `protobuf:"varint,1,opt,name=enable_erc721,json=enableErc721,proto3" json:"enable_erc721,omitempty"`
// parameter to enable the EVM hook that converts an ERC721 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"`
}
Params defines the erc721 module params
func (*Params) Descriptor ¶
func (*Params) GetEnableEVMHook ¶
func (*Params) GetEnableErc721 ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (Params) Validate ¶
Validate validates the params. EnableErc721 and EnableEVMHook are typed bool fields in the proto message; the former type-assertion checks (interface{}(bool).(bool)) were always true no-ops and have been removed.
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 decides 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/erc721/v1/params
-> {"enable_erc721":true,"enable_evm_hook":true}
testnet (v0.4.0) GET https://rest.origin.uptick.network/uptick/erc721/v1/params
-> {"enable_erc721":true,"enable_evm_hook":true}
Both fields are plain bools, so unlike its twin x/cw721 there is not even a zero-value convention to pin: every one of the four combinations is a configuration the operator is entitled to choose, and EnableErc721=false is a supported way to switch conversions off (MsgConvertERC721 / MsgConvertNFT both gate on it alone). App/upgrades/v040/upgrades.go also copies these params forward verbatim, so a new rejection here would fire during an upgrade rather than at the point of the mistake.
Kept as a documented no-op for the same reason as x/cw721: the module has no third field that could carry an invariant, and a gate with no invariant behind it only adds a way to break genesis. See TestParamsValidateAcceptsLiveChainParams.
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
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)
// EvmContract retrieves a registered evm contract
EvmContract(ctx context.Context, in *QueryEvmAddressRequest, opts ...grpc.CallOption) (*QueryEvmAddressResponse, error)
// Params retrieves the erc721 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 QueryEvmAddressRequest ¶ added in v0.2.16
type QueryEvmAddressRequest 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 (*QueryEvmAddressRequest) Descriptor ¶ added in v0.2.16
func (*QueryEvmAddressRequest) Descriptor() ([]byte, []int)
func (*QueryEvmAddressRequest) GetChannel ¶ added in v0.2.16
func (m *QueryEvmAddressRequest) GetChannel() string
func (*QueryEvmAddressRequest) GetClassId ¶ added in v0.2.16
func (m *QueryEvmAddressRequest) GetClassId() string
func (*QueryEvmAddressRequest) GetPort ¶ added in v0.2.16
func (m *QueryEvmAddressRequest) GetPort() string
func (*QueryEvmAddressRequest) Marshal ¶ added in v0.2.16
func (m *QueryEvmAddressRequest) Marshal() (dAtA []byte, err error)
func (*QueryEvmAddressRequest) MarshalTo ¶ added in v0.2.16
func (m *QueryEvmAddressRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryEvmAddressRequest) MarshalToSizedBuffer ¶ added in v0.2.16
func (m *QueryEvmAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryEvmAddressRequest) ProtoMessage ¶ added in v0.2.16
func (*QueryEvmAddressRequest) ProtoMessage()
func (*QueryEvmAddressRequest) Reset ¶ added in v0.2.16
func (m *QueryEvmAddressRequest) Reset()
func (*QueryEvmAddressRequest) Size ¶ added in v0.2.16
func (m *QueryEvmAddressRequest) Size() (n int)
func (*QueryEvmAddressRequest) String ¶ added in v0.2.16
func (m *QueryEvmAddressRequest) String() string
func (*QueryEvmAddressRequest) Unmarshal ¶ added in v0.2.16
func (m *QueryEvmAddressRequest) Unmarshal(dAtA []byte) error
func (*QueryEvmAddressRequest) XXX_DiscardUnknown ¶ added in v0.2.16
func (m *QueryEvmAddressRequest) XXX_DiscardUnknown()
func (*QueryEvmAddressRequest) XXX_Marshal ¶ added in v0.2.16
func (m *QueryEvmAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryEvmAddressRequest) XXX_Merge ¶ added in v0.2.16
func (m *QueryEvmAddressRequest) XXX_Merge(src proto.Message)
func (*QueryEvmAddressRequest) XXX_Size ¶ added in v0.2.16
func (m *QueryEvmAddressRequest) XXX_Size() int
func (*QueryEvmAddressRequest) XXX_Unmarshal ¶ added in v0.2.16
func (m *QueryEvmAddressRequest) XXX_Unmarshal(b []byte) error
type QueryEvmAddressResponse ¶ added in v0.4.0
type QueryEvmAddressResponse struct {
TokenPair TokenPair `protobuf:"bytes,1,opt,name=token_pair,json=tokenPair,proto3" json:"token_pair"`
}
QueryEvmAddressResponse is the response type for the Query/Params RPC method.
func (*QueryEvmAddressResponse) Descriptor ¶ added in v0.4.0
func (*QueryEvmAddressResponse) Descriptor() ([]byte, []int)
func (*QueryEvmAddressResponse) GetTokenPair ¶ added in v0.4.0
func (m *QueryEvmAddressResponse) GetTokenPair() TokenPair
func (*QueryEvmAddressResponse) Marshal ¶ added in v0.4.0
func (m *QueryEvmAddressResponse) Marshal() (dAtA []byte, err error)
func (*QueryEvmAddressResponse) MarshalTo ¶ added in v0.4.0
func (m *QueryEvmAddressResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryEvmAddressResponse) MarshalToSizedBuffer ¶ added in v0.4.0
func (m *QueryEvmAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryEvmAddressResponse) ProtoMessage ¶ added in v0.4.0
func (*QueryEvmAddressResponse) ProtoMessage()
func (*QueryEvmAddressResponse) Reset ¶ added in v0.4.0
func (m *QueryEvmAddressResponse) Reset()
func (*QueryEvmAddressResponse) Size ¶ added in v0.4.0
func (m *QueryEvmAddressResponse) Size() (n int)
func (*QueryEvmAddressResponse) String ¶ added in v0.4.0
func (m *QueryEvmAddressResponse) String() string
func (*QueryEvmAddressResponse) Unmarshal ¶ added in v0.4.0
func (m *QueryEvmAddressResponse) Unmarshal(dAtA []byte) error
func (*QueryEvmAddressResponse) XXX_DiscardUnknown ¶ added in v0.4.0
func (m *QueryEvmAddressResponse) XXX_DiscardUnknown()
func (*QueryEvmAddressResponse) XXX_Marshal ¶ added in v0.4.0
func (m *QueryEvmAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryEvmAddressResponse) XXX_Merge ¶ added in v0.4.0
func (m *QueryEvmAddressResponse) XXX_Merge(src proto.Message)
func (*QueryEvmAddressResponse) XXX_Size ¶ added in v0.4.0
func (m *QueryEvmAddressResponse) XXX_Size() int
func (*QueryEvmAddressResponse) XXX_Unmarshal ¶ added in v0.4.0
func (m *QueryEvmAddressResponse) XXX_Unmarshal(b []byte) error
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)
// EvmContract retrieves a registered evm contract
EvmContract(context.Context, *QueryEvmAddressRequest) (*QueryEvmAddressResponse, error)
// Params retrieves the erc721 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 ERC721 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 RefundReceiver ¶ added in v0.5.0
type RefundReceiver struct {
// lowercased ERC721 contract address (0x + 40 hex)
EvmContractAddress string `protobuf:"bytes,1,opt,name=evm_contract_address,json=evmContractAddress,proto3" json:"evm_contract_address,omitempty"`
TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
// EVM address of the original owner (0x + 40 hex)
EvmAddress string `protobuf:"bytes,3,opt,name=evm_address,json=evmAddress,proto3" json:"evm_address,omitempty"`
}
RefundReceiver records the original ERC721 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) GetEvmAddress ¶ added in v0.5.0
func (m *RefundReceiver) GetEvmAddress() string
func (*RefundReceiver) GetEvmContractAddress ¶ added in v0.5.0
func (m *RefundReceiver) GetEvmContractAddress() 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 ERC721 contract token
Erc721Address string `protobuf:"bytes,1,opt,name=erc721_address,json=erc721Address,proto3" json:"erc721_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 ERC721 token address.
func NewTokenPair ¶
NewTokenPair returns an instance of TokenPair
func (*TokenPair) Descriptor ¶
func (*TokenPair) GetClassId ¶
func (TokenPair) GetERC721Contract ¶
GetERC721Contract casts the hex string address of the ERC21 to common.Address
func (*TokenPair) GetErc721Address ¶
func (*TokenPair) MarshalToSizedBuffer ¶
func (*TokenPair) ProtoMessage ¶
func (*TokenPair) ProtoMessage()
func (*TokenPair) XXX_DiscardUnknown ¶
func (m *TokenPair) XXX_DiscardUnknown()
func (*TokenPair) XXX_Marshal ¶
func (*TokenPair) XXX_Unmarshal ¶
type UIDPair ¶ added in v0.2.5
type UIDPair struct {
// address of ERC721 contract token + tokenId
Erc721Did string `protobuf:"bytes,1,opt,name=erc721_did,json=erc721Did,proto3" json:"erc721_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 ¶ added in v0.2.5
func (*UIDPair) GetClassDid ¶ added in v0.2.5
func (*UIDPair) GetErc721Did ¶ added in v0.2.5
func (*UIDPair) MarshalToSizedBuffer ¶ added in v0.2.5
func (*UIDPair) ProtoMessage ¶ added in v0.2.5
func (*UIDPair) ProtoMessage()
func (*UIDPair) XXX_DiscardUnknown ¶ added in v0.2.5
func (m *UIDPair) XXX_DiscardUnknown()
func (*UIDPair) XXX_Marshal ¶ added in v0.2.5
func (*UIDPair) XXX_Unmarshal ¶ added in v0.2.5
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct {
}
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) ConvertERC721 ¶
func (*UnimplementedMsgServer) ConvertERC721(ctx context.Context, req *MsgConvertERC721) (*MsgConvertERC721Response, error)
func (*UnimplementedMsgServer) ConvertNFT ¶
func (*UnimplementedMsgServer) ConvertNFT(ctx context.Context, req *MsgConvertNFT) (*MsgConvertNFTResponse, error)
func (*UnimplementedMsgServer) TransferERC721 ¶ added in v0.2.16
func (*UnimplementedMsgServer) TransferERC721(ctx context.Context, req *MsgTransferERC721) (*MsgTransferERC721Response, error)
func (*UnimplementedMsgServer) UpdateParams ¶ added in v0.4.0
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct {
}
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) EvmContract ¶ added in v0.2.16
func (*UnimplementedQueryServer) EvmContract(ctx context.Context, req *QueryEvmAddressRequest) (*QueryEvmAddressResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) TokenPair ¶
func (*UnimplementedQueryServer) TokenPair(ctx context.Context, req *QueryTokenPairRequest) (*QueryTokenPairResponse, error)
func (*UnimplementedQueryServer) TokenPairs ¶
func (*UnimplementedQueryServer) TokenPairs(ctx context.Context, req *QueryTokenPairsRequest) (*QueryTokenPairsResponse, error)