import { AminoMsg } from "@cosmjs/amino"; import { AminoFreeTextValueParams, AminoReaction, AminoRegisteredReactionValueParams } from "./aminotypes"; import { MsgAddReactionAminoType, MsgAddRegisteredReactionAminoType, MsgEditRegisteredReactionAminoType, MsgRemoveReactionAminoType, MsgRemoveRegisteredReactionAminoType, MsgSetReactionsParamsAminoType } from "./consts"; export interface AminoMsgAddReaction extends AminoMsg { readonly type: typeof MsgAddReactionAminoType; readonly value: { subspace_id: string | undefined; post_id: string | undefined; value: AminoReaction; user: string | undefined; }; } export interface AminoMsgRemoveReaction extends AminoMsg { readonly type: typeof MsgRemoveReactionAminoType; readonly value: { subspace_id: string | undefined; post_id: string | undefined; reaction_id: number | undefined; user: string | undefined; }; } export interface AminoMsgAddRegisteredReaction extends AminoMsg { readonly type: typeof MsgAddRegisteredReactionAminoType; readonly value: { subspace_id: string | undefined; shorthand_code: string | undefined; display_value: string | undefined; user: string | undefined; }; } export interface AminoMsgEditRegisteredReaction extends AminoMsg { readonly type: typeof MsgEditRegisteredReactionAminoType; readonly value: { subspace_id: string | undefined; registered_reaction_id: number | undefined; shorthand_code: string | undefined; display_value: string | undefined; user: string | undefined; }; } export interface AminoMsgRemoveRegisteredReaction extends AminoMsg { readonly type: typeof MsgRemoveRegisteredReactionAminoType; readonly value: { subspace_id: string | undefined; registered_reaction_id: number | undefined; user: string | undefined; }; } export interface AminoMsgSetReactionsParams extends AminoMsg { readonly type: typeof MsgSetReactionsParamsAminoType; readonly value: { subspace_id: string | undefined; registered_reaction: AminoRegisteredReactionValueParams; free_text: AminoFreeTextValueParams; user: string | undefined; }; }