interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
464 lines (463 loc) • 17.4 kB
TypeScript
import { Coin, CoinAmino } from "../../base/v1beta1/coin";
import { Input, InputAmino, Output, OutputAmino, Params, ParamsAmino, SendEnabled, SendEnabledAmino } from "./bank";
import { BinaryReader, BinaryWriter } from "../../../binary";
import { DeepPartial } from "../../../helpers";
/**
* MsgSend represents a message to send coins from one account to another.
* @name MsgSend
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.MsgSend
*/
export interface MsgSend {
fromAddress: string;
toAddress: string;
amount: Coin[];
}
export interface MsgSendProtoMsg {
typeUrl: "/cosmos.bank.v1beta1.MsgSend";
value: Uint8Array;
}
/**
* MsgSend represents a message to send coins from one account to another.
* @name MsgSendAmino
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.MsgSend
*/
export interface MsgSendAmino {
from_address: string;
to_address: string;
amount: CoinAmino[];
}
export interface MsgSendAminoMsg {
type: "cosmos-sdk/MsgSend";
value: MsgSendAmino;
}
/**
* MsgSendResponse defines the Msg/Send response type.
* @name MsgSendResponse
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.MsgSendResponse
*/
export interface MsgSendResponse {
}
export interface MsgSendResponseProtoMsg {
typeUrl: "/cosmos.bank.v1beta1.MsgSendResponse";
value: Uint8Array;
}
/**
* MsgSendResponse defines the Msg/Send response type.
* @name MsgSendResponseAmino
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.MsgSendResponse
*/
export interface MsgSendResponseAmino {
}
export interface MsgSendResponseAminoMsg {
type: "cosmos-sdk/MsgSendResponse";
value: MsgSendResponseAmino;
}
/**
* MsgMultiSend represents an arbitrary multi-in, multi-out send message.
* @name MsgMultiSend
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.MsgMultiSend
*/
export interface MsgMultiSend {
/**
* Inputs, despite being `repeated`, only allows one sender input. This is
* checked in MsgMultiSend's ValidateBasic.
*/
inputs: Input[];
outputs: Output[];
}
export interface MsgMultiSendProtoMsg {
typeUrl: "/cosmos.bank.v1beta1.MsgMultiSend";
value: Uint8Array;
}
/**
* MsgMultiSend represents an arbitrary multi-in, multi-out send message.
* @name MsgMultiSendAmino
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.MsgMultiSend
*/
export interface MsgMultiSendAmino {
/**
* Inputs, despite being `repeated`, only allows one sender input. This is
* checked in MsgMultiSend's ValidateBasic.
*/
inputs: InputAmino[];
outputs: OutputAmino[];
}
export interface MsgMultiSendAminoMsg {
type: "cosmos-sdk/MsgMultiSend";
value: MsgMultiSendAmino;
}
/**
* MsgMultiSendResponse defines the Msg/MultiSend response type.
* @name MsgMultiSendResponse
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.MsgMultiSendResponse
*/
export interface MsgMultiSendResponse {
}
export interface MsgMultiSendResponseProtoMsg {
typeUrl: "/cosmos.bank.v1beta1.MsgMultiSendResponse";
value: Uint8Array;
}
/**
* MsgMultiSendResponse defines the Msg/MultiSend response type.
* @name MsgMultiSendResponseAmino
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.MsgMultiSendResponse
*/
export interface MsgMultiSendResponseAmino {
}
export interface MsgMultiSendResponseAminoMsg {
type: "cosmos-sdk/MsgMultiSendResponse";
value: MsgMultiSendResponseAmino;
}
/**
* MsgUpdateParams is the Msg/UpdateParams request type.
* @name MsgUpdateParams
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.MsgUpdateParams
*/
export interface MsgUpdateParams {
/**
* authority is the address that controls the module (defaults to x/gov unless overwritten).
*/
authority: string;
/**
* params defines the x/bank parameters to update.
*
* NOTE: All parameters must be supplied.
*/
params: Params;
}
export interface MsgUpdateParamsProtoMsg {
typeUrl: "/cosmos.bank.v1beta1.MsgUpdateParams";
value: Uint8Array;
}
/**
* MsgUpdateParams is the Msg/UpdateParams request type.
* @name MsgUpdateParamsAmino
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.MsgUpdateParams
*/
export interface MsgUpdateParamsAmino {
/**
* authority is the address that controls the module (defaults to x/gov unless overwritten).
*/
authority: string;
/**
* params defines the x/bank parameters to update.
*
* NOTE: All parameters must be supplied.
*/
params: ParamsAmino;
}
export interface MsgUpdateParamsAminoMsg {
type: "cosmos-sdk/x/bank/MsgUpdateParams";
value: MsgUpdateParamsAmino;
}
/**
* MsgUpdateParamsResponse defines the response structure for executing a
* MsgUpdateParams message.
* @name MsgUpdateParamsResponse
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.MsgUpdateParamsResponse
*/
export interface MsgUpdateParamsResponse {
}
export interface MsgUpdateParamsResponseProtoMsg {
typeUrl: "/cosmos.bank.v1beta1.MsgUpdateParamsResponse";
value: Uint8Array;
}
/**
* MsgUpdateParamsResponse defines the response structure for executing a
* MsgUpdateParams message.
* @name MsgUpdateParamsResponseAmino
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.MsgUpdateParamsResponse
*/
export interface MsgUpdateParamsResponseAmino {
}
export interface MsgUpdateParamsResponseAminoMsg {
type: "cosmos-sdk/MsgUpdateParamsResponse";
value: MsgUpdateParamsResponseAmino;
}
/**
* MsgSetSendEnabled is the Msg/SetSendEnabled request type.
*
* Only entries to add/update/delete need to be included.
* Existing SendEnabled entries that are not included in this
* message are left unchanged.
* @name MsgSetSendEnabled
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.MsgSetSendEnabled
*/
export interface MsgSetSendEnabled {
/**
* authority is the address that controls the module.
*/
authority: string;
/**
* send_enabled is the list of entries to add or update.
*/
sendEnabled: SendEnabled[];
/**
* use_default_for is a list of denoms that should use the params.default_send_enabled value.
* Denoms listed here will have their SendEnabled entries deleted.
* If a denom is included that doesn't have a SendEnabled entry,
* it will be ignored.
*/
useDefaultFor: string[];
}
export interface MsgSetSendEnabledProtoMsg {
typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabled";
value: Uint8Array;
}
/**
* MsgSetSendEnabled is the Msg/SetSendEnabled request type.
*
* Only entries to add/update/delete need to be included.
* Existing SendEnabled entries that are not included in this
* message are left unchanged.
* @name MsgSetSendEnabledAmino
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.MsgSetSendEnabled
*/
export interface MsgSetSendEnabledAmino {
/**
* authority is the address that controls the module.
*/
authority: string;
/**
* send_enabled is the list of entries to add or update.
*/
send_enabled: SendEnabledAmino[];
/**
* use_default_for is a list of denoms that should use the params.default_send_enabled value.
* Denoms listed here will have their SendEnabled entries deleted.
* If a denom is included that doesn't have a SendEnabled entry,
* it will be ignored.
*/
use_default_for: string[];
}
export interface MsgSetSendEnabledAminoMsg {
type: "cosmos-sdk/MsgSetSendEnabled";
value: MsgSetSendEnabledAmino;
}
/**
* MsgSetSendEnabledResponse defines the Msg/SetSendEnabled response type.
* @name MsgSetSendEnabledResponse
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.MsgSetSendEnabledResponse
*/
export interface MsgSetSendEnabledResponse {
}
export interface MsgSetSendEnabledResponseProtoMsg {
typeUrl: "/cosmos.bank.v1beta1.MsgSetSendEnabledResponse";
value: Uint8Array;
}
/**
* MsgSetSendEnabledResponse defines the Msg/SetSendEnabled response type.
* @name MsgSetSendEnabledResponseAmino
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.MsgSetSendEnabledResponse
*/
export interface MsgSetSendEnabledResponseAmino {
}
export interface MsgSetSendEnabledResponseAminoMsg {
type: "cosmos-sdk/MsgSetSendEnabledResponse";
value: MsgSetSendEnabledResponseAmino;
}
/**
* MsgSend represents a message to send coins from one account to another.
* @name MsgSend
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.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.bank.v1beta1
* @see proto type: cosmos.bank.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;
};
/**
* MsgMultiSend represents an arbitrary multi-in, multi-out send message.
* @name MsgMultiSend
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.MsgMultiSend
*/
export declare const MsgMultiSend: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgMultiSend;
isAmino(o: any): o is MsgMultiSendAmino;
encode(message: MsgMultiSend, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgMultiSend;
fromPartial(object: DeepPartial<MsgMultiSend>): MsgMultiSend;
fromAmino(object: MsgMultiSendAmino): MsgMultiSend;
toAmino(message: MsgMultiSend): MsgMultiSendAmino;
fromAminoMsg(object: MsgMultiSendAminoMsg): MsgMultiSend;
toAminoMsg(message: MsgMultiSend): MsgMultiSendAminoMsg;
fromProtoMsg(message: MsgMultiSendProtoMsg): MsgMultiSend;
toProto(message: MsgMultiSend): Uint8Array;
toProtoMsg(message: MsgMultiSend): MsgMultiSendProtoMsg;
registerTypeUrl(): void;
};
/**
* MsgMultiSendResponse defines the Msg/MultiSend response type.
* @name MsgMultiSendResponse
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.MsgMultiSendResponse
*/
export declare const MsgMultiSendResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgMultiSendResponse;
isAmino(o: any): o is MsgMultiSendResponseAmino;
encode(_: MsgMultiSendResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgMultiSendResponse;
fromPartial(_: DeepPartial<MsgMultiSendResponse>): MsgMultiSendResponse;
fromAmino(_: MsgMultiSendResponseAmino): MsgMultiSendResponse;
toAmino(_: MsgMultiSendResponse): MsgMultiSendResponseAmino;
fromAminoMsg(object: MsgMultiSendResponseAminoMsg): MsgMultiSendResponse;
toAminoMsg(message: MsgMultiSendResponse): MsgMultiSendResponseAminoMsg;
fromProtoMsg(message: MsgMultiSendResponseProtoMsg): MsgMultiSendResponse;
toProto(message: MsgMultiSendResponse): Uint8Array;
toProtoMsg(message: MsgMultiSendResponse): MsgMultiSendResponseProtoMsg;
registerTypeUrl(): void;
};
/**
* MsgUpdateParams is the Msg/UpdateParams request type.
* @name MsgUpdateParams
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.MsgUpdateParams
*/
export declare const MsgUpdateParams: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgUpdateParams;
isAmino(o: any): o is MsgUpdateParamsAmino;
encode(message: MsgUpdateParams, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams;
fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams;
fromAmino(object: MsgUpdateParamsAmino): MsgUpdateParams;
toAmino(message: MsgUpdateParams): MsgUpdateParamsAmino;
fromAminoMsg(object: MsgUpdateParamsAminoMsg): MsgUpdateParams;
toAminoMsg(message: MsgUpdateParams): MsgUpdateParamsAminoMsg;
fromProtoMsg(message: MsgUpdateParamsProtoMsg): MsgUpdateParams;
toProto(message: MsgUpdateParams): Uint8Array;
toProtoMsg(message: MsgUpdateParams): MsgUpdateParamsProtoMsg;
registerTypeUrl(): void;
};
/**
* MsgUpdateParamsResponse defines the response structure for executing a
* MsgUpdateParams message.
* @name MsgUpdateParamsResponse
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.MsgUpdateParamsResponse
*/
export declare const MsgUpdateParamsResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgUpdateParamsResponse;
isAmino(o: any): o is MsgUpdateParamsResponseAmino;
encode(_: MsgUpdateParamsResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse;
fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse;
fromAmino(_: MsgUpdateParamsResponseAmino): MsgUpdateParamsResponse;
toAmino(_: MsgUpdateParamsResponse): MsgUpdateParamsResponseAmino;
fromAminoMsg(object: MsgUpdateParamsResponseAminoMsg): MsgUpdateParamsResponse;
toAminoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseAminoMsg;
fromProtoMsg(message: MsgUpdateParamsResponseProtoMsg): MsgUpdateParamsResponse;
toProto(message: MsgUpdateParamsResponse): Uint8Array;
toProtoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseProtoMsg;
registerTypeUrl(): void;
};
/**
* MsgSetSendEnabled is the Msg/SetSendEnabled request type.
*
* Only entries to add/update/delete need to be included.
* Existing SendEnabled entries that are not included in this
* message are left unchanged.
* @name MsgSetSendEnabled
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.MsgSetSendEnabled
*/
export declare const MsgSetSendEnabled: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgSetSendEnabled;
isAmino(o: any): o is MsgSetSendEnabledAmino;
encode(message: MsgSetSendEnabled, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgSetSendEnabled;
fromPartial(object: DeepPartial<MsgSetSendEnabled>): MsgSetSendEnabled;
fromAmino(object: MsgSetSendEnabledAmino): MsgSetSendEnabled;
toAmino(message: MsgSetSendEnabled): MsgSetSendEnabledAmino;
fromAminoMsg(object: MsgSetSendEnabledAminoMsg): MsgSetSendEnabled;
toAminoMsg(message: MsgSetSendEnabled): MsgSetSendEnabledAminoMsg;
fromProtoMsg(message: MsgSetSendEnabledProtoMsg): MsgSetSendEnabled;
toProto(message: MsgSetSendEnabled): Uint8Array;
toProtoMsg(message: MsgSetSendEnabled): MsgSetSendEnabledProtoMsg;
registerTypeUrl(): void;
};
/**
* MsgSetSendEnabledResponse defines the Msg/SetSendEnabled response type.
* @name MsgSetSendEnabledResponse
* @package cosmos.bank.v1beta1
* @see proto type: cosmos.bank.v1beta1.MsgSetSendEnabledResponse
*/
export declare const MsgSetSendEnabledResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgSetSendEnabledResponse;
isAmino(o: any): o is MsgSetSendEnabledResponseAmino;
encode(_: MsgSetSendEnabledResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgSetSendEnabledResponse;
fromPartial(_: DeepPartial<MsgSetSendEnabledResponse>): MsgSetSendEnabledResponse;
fromAmino(_: MsgSetSendEnabledResponseAmino): MsgSetSendEnabledResponse;
toAmino(_: MsgSetSendEnabledResponse): MsgSetSendEnabledResponseAmino;
fromAminoMsg(object: MsgSetSendEnabledResponseAminoMsg): MsgSetSendEnabledResponse;
toAminoMsg(message: MsgSetSendEnabledResponse): MsgSetSendEnabledResponseAminoMsg;
fromProtoMsg(message: MsgSetSendEnabledResponseProtoMsg): MsgSetSendEnabledResponse;
toProto(message: MsgSetSendEnabledResponse): Uint8Array;
toProtoMsg(message: MsgSetSendEnabledResponse): MsgSetSendEnabledResponseProtoMsg;
registerTypeUrl(): void;
};