import { AminoMsg } from "@cosmjs/amino"; import { AminoAddressData, AminoSignatureData } from "./aminotypes"; import { MsgAcceptDTagTransferRequestAminoType, MsgCancelDTagTransferRequestAminoType, MsgDeleteProfileAminoType, MsgLinkApplicationAminoType, MsgLinkChainAccountAminoType, MsgRefuseDTagTransferRequestAminoType, MsgRequestDTagTransferAminoType, MsgSaveProfileAminoType, MsgUnlinkApplicationAminoType, MsgUnlinkChainAccountAminoType } from "./consts"; export interface AminoMsgSaveProfile extends AminoMsg { readonly type: typeof MsgSaveProfileAminoType; readonly value: { creator: string | undefined; dtag: string | undefined; nickname: string | undefined; bio: string | undefined; profile_picture: string | undefined; cover_picture: string | undefined; }; } export interface AminoMsgDeleteProfile extends AminoMsg { readonly type: typeof MsgDeleteProfileAminoType; readonly value: { creator: string | undefined; }; } export interface AminoMsgRequestDTagTransfer extends AminoMsg { readonly type: typeof MsgRequestDTagTransferAminoType; readonly value: { receiver: string | undefined; sender: string | undefined; }; } export interface AminoMsgAcceptDTagTransferRequest extends AminoMsg { readonly type: typeof MsgAcceptDTagTransferRequestAminoType; readonly value: { new_dtag: string | undefined; sender: string | undefined; receiver: string | undefined; }; } export interface AminoMsgRefuseDTagTransferRequest extends AminoMsg { readonly type: typeof MsgRefuseDTagTransferRequestAminoType; readonly value: { sender: string | undefined; receiver: string | undefined; }; } export interface AminoMsgCancelDTagTransferRequest extends AminoMsg { readonly type: typeof MsgCancelDTagTransferRequestAminoType; readonly value: { sender: string | undefined; receiver: string | undefined; }; } export interface AminoLinkData { readonly application: string | undefined; readonly username: string | undefined; } export interface AminoTimeoutHeight { readonly revision_height: string | undefined; readonly revision_number: string | undefined; } export interface AminoMsgLinkApplication extends AminoMsg { readonly type: typeof MsgLinkApplicationAminoType; readonly value: { sender: string | undefined; link_data: AminoLinkData; call_data: string | undefined; source_channel: string | undefined; source_port: string | undefined; timeout_height: AminoTimeoutHeight; timeout_timestamp?: string | undefined; }; } export interface AminoMsgUnlinkApplication extends AminoMsg { readonly type: typeof MsgUnlinkApplicationAminoType; readonly value: { signer: string | undefined; application: string | undefined; username: string | undefined; }; } export interface AminoChainConfig { readonly name: string | undefined; } export interface AminoPubKey { readonly type: string; readonly value: string | null; } export interface AminoProof { readonly pub_key: AminoPubKey; readonly signature: AminoSignatureData; readonly plain_text: string | undefined; } export interface AminoMsgLinkChainAccount extends AminoMsg { readonly type: typeof MsgLinkChainAccountAminoType; readonly value: { chain_address: AminoAddressData; chain_config: AminoChainConfig; proof: AminoProof; signer: string | undefined; }; } export interface AminoMsgUnlinkChainAccount extends AminoMsg { readonly type: typeof MsgUnlinkChainAccountAminoType; readonly value: { chain_name: string | undefined; owner: string | undefined; target: string | undefined; }; }