interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
129 lines (128 loc) • 4.16 kB
TypeScript
import { BinaryReader, BinaryWriter } from "../../../binary";
import { DeepPartial } from "../../../helpers";
/**
* MsgSend represents a message to send a nft from one account to another account.
* @name MsgSend
* @package cosmos.nft.v1beta1
* @see proto type: cosmos.nft.v1beta1.MsgSend
*/
export interface MsgSend {
/**
* class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721
*/
classId: string;
/**
* id defines the unique identification of nft
*/
id: string;
/**
* sender is the address of the owner of nft
*/
sender: string;
/**
* receiver is the receiver address of nft
*/
receiver: string;
}
export interface MsgSendProtoMsg {
typeUrl: "/cosmos.nft.v1beta1.MsgSend";
value: Uint8Array;
}
/**
* MsgSend represents a message to send a nft from one account to another account.
* @name MsgSendAmino
* @package cosmos.nft.v1beta1
* @see proto type: cosmos.nft.v1beta1.MsgSend
*/
export interface MsgSendAmino {
/**
* class_id defines the unique identifier of the nft classification, similar to the contract address of ERC721
*/
class_id: string;
/**
* id defines the unique identification of nft
*/
id: string;
/**
* sender is the address of the owner of nft
*/
sender: string;
/**
* receiver is the receiver address of nft
*/
receiver: string;
}
export interface MsgSendAminoMsg {
type: "cosmos-sdk/MsgNFTSend";
value: MsgSendAmino;
}
/**
* MsgSendResponse defines the Msg/Send response type.
* @name MsgSendResponse
* @package cosmos.nft.v1beta1
* @see proto type: cosmos.nft.v1beta1.MsgSendResponse
*/
export interface MsgSendResponse {
}
export interface MsgSendResponseProtoMsg {
typeUrl: "/cosmos.nft.v1beta1.MsgSendResponse";
value: Uint8Array;
}
/**
* MsgSendResponse defines the Msg/Send response type.
* @name MsgSendResponseAmino
* @package cosmos.nft.v1beta1
* @see proto type: cosmos.nft.v1beta1.MsgSendResponse
*/
export interface MsgSendResponseAmino {
}
export interface MsgSendResponseAminoMsg {
type: "cosmos-sdk/MsgSendResponse";
value: MsgSendResponseAmino;
}
/**
* MsgSend represents a message to send a nft from one account to another account.
* @name MsgSend
* @package cosmos.nft.v1beta1
* @see proto type: cosmos.nft.v1beta1.MsgSend
*/
export declare const MsgSend: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgSend;
isAmino(o: any): o is MsgSendAmino;
encode(message: MsgSend, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgSend;
fromPartial(object: DeepPartial<MsgSend>): MsgSend;
fromAmino(object: MsgSendAmino): MsgSend;
toAmino(message: MsgSend): MsgSendAmino;
fromAminoMsg(object: MsgSendAminoMsg): MsgSend;
toAminoMsg(message: MsgSend): MsgSendAminoMsg;
fromProtoMsg(message: MsgSendProtoMsg): MsgSend;
toProto(message: MsgSend): Uint8Array;
toProtoMsg(message: MsgSend): MsgSendProtoMsg;
registerTypeUrl(): void;
};
/**
* MsgSendResponse defines the Msg/Send response type.
* @name MsgSendResponse
* @package cosmos.nft.v1beta1
* @see proto type: cosmos.nft.v1beta1.MsgSendResponse
*/
export declare const MsgSendResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgSendResponse;
isAmino(o: any): o is MsgSendResponseAmino;
encode(_: MsgSendResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgSendResponse;
fromPartial(_: DeepPartial<MsgSendResponse>): MsgSendResponse;
fromAmino(_: MsgSendResponseAmino): MsgSendResponse;
toAmino(_: MsgSendResponse): MsgSendResponseAmino;
fromAminoMsg(object: MsgSendResponseAminoMsg): MsgSendResponse;
toAminoMsg(message: MsgSendResponse): MsgSendResponseAminoMsg;
fromProtoMsg(message: MsgSendResponseProtoMsg): MsgSendResponse;
toProto(message: MsgSendResponse): Uint8Array;
toProtoMsg(message: MsgSendResponse): MsgSendResponseProtoMsg;
registerTypeUrl(): void;
};