import { AminoMsg } from "@cosmjs/amino"; import { ReplySetting } from "@desmoslabs/desmjs-types/desmos/posts/v3/models"; import { AminoContent, AminoEntities, AminoPostReference } from "./aminotypes"; import { MsgAddPostAttachmentAminoType, MsgAnswerPollAminoType, MsgCreatePostAminoType, MsgDeletePostAminoType, MsgEditPostAminoType, MsgRemovePostAttachmentAminoType } from "./consts"; export interface AminoMsgCreatePost extends AminoMsg { readonly type: typeof MsgCreatePostAminoType; readonly value: { subspace_id: string | undefined; section_id: number | undefined; external_id: string | undefined; text: string | undefined; entities: AminoEntities | undefined; tags: string[] | undefined; attachments: AminoContent[] | undefined; conversation_id: string | undefined; reply_settings: ReplySetting | undefined; referenced_posts: AminoPostReference[] | null; author: string | undefined; }; } export interface AminoMsgEditPost extends AminoMsg { readonly type: typeof MsgEditPostAminoType; readonly value: { subspace_id: string | undefined; post_id: string | undefined; text: string | undefined; entities: AminoEntities | undefined; tags: string[] | undefined; editor: string | undefined; }; } export interface AminoMsgDeletePost extends AminoMsg { readonly type: typeof MsgDeletePostAminoType; readonly value: { subspace_id: string | undefined; post_id: string | undefined; signer: string | undefined; }; } export interface AminoMsgAddPostAttachment extends AminoMsg { readonly type: typeof MsgAddPostAttachmentAminoType; readonly value: { subspace_id: string | undefined; post_id: string | undefined; content?: AminoContent; editor: string | undefined; }; } export interface AminoMsgRemovePostAttachment extends AminoMsg { readonly type: typeof MsgRemovePostAttachmentAminoType; readonly value: { subspace_id: string | undefined; post_id: string | undefined; attachment_id: number | undefined; editor: string | undefined; }; } export interface AminoMsgAnswerPoll extends AminoMsg { readonly type: typeof MsgAnswerPollAminoType; readonly value: { subspace_id: string | undefined; post_id: string | undefined; poll_id: number | undefined; answers_indexes: number[] | undefined; signer: string | undefined; }; }