import { AminoMsg } from "@cosmjs/amino"; import { MsgSend } from "./tx"; export interface MsgSendAminoType extends AminoMsg { type: "cosmos-sdk/MsgNFTSend"; value: { class_id: string; id: string; sender: string; receiver: string; }; } export const AminoConverter = { "/cosmos.nft.v1beta1.MsgSend": { aminoType: "cosmos-sdk/MsgNFTSend", toAmino: ({ classId, id, sender, receiver }: MsgSend): MsgSendAminoType["value"] => { return { class_id: classId, id, sender, receiver }; }, fromAmino: ({ class_id, id, sender, receiver }: MsgSendAminoType["value"]): MsgSend => { return { classId: class_id, id, sender, receiver }; } } };