interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
439 lines (438 loc) • 18.8 kB
TypeScript
import { Params, ParamsAmino } from "./transfer";
import { Coin, CoinAmino } from "../../../../cosmos/base/v1beta1/coin";
import { BinaryReader, BinaryWriter } from "../../../../binary";
import { DeepPartial } from "../../../../helpers";
/**
* QueryParamsRequest is the request type for the Query/Params RPC method.
* @name QueryParamsRequest
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryParamsRequest
*/
export interface QueryParamsRequest {
}
export interface QueryParamsRequestProtoMsg {
typeUrl: "/ibc.applications.transfer.v1.QueryParamsRequest";
value: Uint8Array;
}
/**
* QueryParamsRequest is the request type for the Query/Params RPC method.
* @name QueryParamsRequestAmino
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryParamsRequest
*/
export interface QueryParamsRequestAmino {
}
export interface QueryParamsRequestAminoMsg {
type: "cosmos-sdk/QueryParamsRequest";
value: QueryParamsRequestAmino;
}
/**
* QueryParamsResponse is the response type for the Query/Params RPC method.
* @name QueryParamsResponse
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryParamsResponse
*/
export interface QueryParamsResponse {
/**
* params defines the parameters of the module.
*/
params?: Params;
}
export interface QueryParamsResponseProtoMsg {
typeUrl: "/ibc.applications.transfer.v1.QueryParamsResponse";
value: Uint8Array;
}
/**
* QueryParamsResponse is the response type for the Query/Params RPC method.
* @name QueryParamsResponseAmino
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryParamsResponse
*/
export interface QueryParamsResponseAmino {
/**
* params defines the parameters of the module.
*/
params?: ParamsAmino;
}
export interface QueryParamsResponseAminoMsg {
type: "cosmos-sdk/QueryParamsResponse";
value: QueryParamsResponseAmino;
}
/**
* QueryDenomHashRequest is the request type for the Query/DenomHash RPC
* method
* @name QueryDenomHashRequest
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryDenomHashRequest
*/
export interface QueryDenomHashRequest {
/**
* The denomination trace ([port_id]/[channel_id])+/[denom]
*/
trace: string;
}
export interface QueryDenomHashRequestProtoMsg {
typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashRequest";
value: Uint8Array;
}
/**
* QueryDenomHashRequest is the request type for the Query/DenomHash RPC
* method
* @name QueryDenomHashRequestAmino
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryDenomHashRequest
*/
export interface QueryDenomHashRequestAmino {
/**
* The denomination trace ([port_id]/[channel_id])+/[denom]
*/
trace: string;
}
export interface QueryDenomHashRequestAminoMsg {
type: "cosmos-sdk/QueryDenomHashRequest";
value: QueryDenomHashRequestAmino;
}
/**
* QueryDenomHashResponse is the response type for the Query/DenomHash RPC
* method.
* @name QueryDenomHashResponse
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryDenomHashResponse
*/
export interface QueryDenomHashResponse {
/**
* hash (in hex format) of the denomination trace information.
*/
hash: string;
}
export interface QueryDenomHashResponseProtoMsg {
typeUrl: "/ibc.applications.transfer.v1.QueryDenomHashResponse";
value: Uint8Array;
}
/**
* QueryDenomHashResponse is the response type for the Query/DenomHash RPC
* method.
* @name QueryDenomHashResponseAmino
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryDenomHashResponse
*/
export interface QueryDenomHashResponseAmino {
/**
* hash (in hex format) of the denomination trace information.
*/
hash: string;
}
export interface QueryDenomHashResponseAminoMsg {
type: "cosmos-sdk/QueryDenomHashResponse";
value: QueryDenomHashResponseAmino;
}
/**
* QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method.
* @name QueryEscrowAddressRequest
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryEscrowAddressRequest
*/
export interface QueryEscrowAddressRequest {
/**
* unique port identifier
*/
portId: string;
/**
* unique channel identifier
*/
channelId: string;
}
export interface QueryEscrowAddressRequestProtoMsg {
typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressRequest";
value: Uint8Array;
}
/**
* QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method.
* @name QueryEscrowAddressRequestAmino
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryEscrowAddressRequest
*/
export interface QueryEscrowAddressRequestAmino {
/**
* unique port identifier
*/
port_id: string;
/**
* unique channel identifier
*/
channel_id: string;
}
export interface QueryEscrowAddressRequestAminoMsg {
type: "cosmos-sdk/QueryEscrowAddressRequest";
value: QueryEscrowAddressRequestAmino;
}
/**
* QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method.
* @name QueryEscrowAddressResponse
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryEscrowAddressResponse
*/
export interface QueryEscrowAddressResponse {
/**
* the escrow account address
*/
escrowAddress: string;
}
export interface QueryEscrowAddressResponseProtoMsg {
typeUrl: "/ibc.applications.transfer.v1.QueryEscrowAddressResponse";
value: Uint8Array;
}
/**
* QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method.
* @name QueryEscrowAddressResponseAmino
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryEscrowAddressResponse
*/
export interface QueryEscrowAddressResponseAmino {
/**
* the escrow account address
*/
escrow_address: string;
}
export interface QueryEscrowAddressResponseAminoMsg {
type: "cosmos-sdk/QueryEscrowAddressResponse";
value: QueryEscrowAddressResponseAmino;
}
/**
* QueryTotalEscrowForDenomRequest is the request type for TotalEscrowForDenom RPC method.
* @name QueryTotalEscrowForDenomRequest
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest
*/
export interface QueryTotalEscrowForDenomRequest {
denom: string;
}
export interface QueryTotalEscrowForDenomRequestProtoMsg {
typeUrl: "/ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest";
value: Uint8Array;
}
/**
* QueryTotalEscrowForDenomRequest is the request type for TotalEscrowForDenom RPC method.
* @name QueryTotalEscrowForDenomRequestAmino
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest
*/
export interface QueryTotalEscrowForDenomRequestAmino {
denom: string;
}
export interface QueryTotalEscrowForDenomRequestAminoMsg {
type: "cosmos-sdk/QueryTotalEscrowForDenomRequest";
value: QueryTotalEscrowForDenomRequestAmino;
}
/**
* QueryTotalEscrowForDenomResponse is the response type for TotalEscrowForDenom RPC method.
* @name QueryTotalEscrowForDenomResponse
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse
*/
export interface QueryTotalEscrowForDenomResponse {
amount: Coin;
}
export interface QueryTotalEscrowForDenomResponseProtoMsg {
typeUrl: "/ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse";
value: Uint8Array;
}
/**
* QueryTotalEscrowForDenomResponse is the response type for TotalEscrowForDenom RPC method.
* @name QueryTotalEscrowForDenomResponseAmino
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse
*/
export interface QueryTotalEscrowForDenomResponseAmino {
amount: CoinAmino;
}
export interface QueryTotalEscrowForDenomResponseAminoMsg {
type: "cosmos-sdk/QueryTotalEscrowForDenomResponse";
value: QueryTotalEscrowForDenomResponseAmino;
}
/**
* QueryParamsRequest is the request type for the Query/Params RPC method.
* @name QueryParamsRequest
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryParamsRequest
*/
export declare const QueryParamsRequest: {
typeUrl: string;
aminoType: string;
is(o: any): o is QueryParamsRequest;
isAmino(o: any): o is QueryParamsRequestAmino;
encode(_: QueryParamsRequest, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsRequest;
fromPartial(_: DeepPartial<QueryParamsRequest>): QueryParamsRequest;
fromAmino(_: QueryParamsRequestAmino): QueryParamsRequest;
toAmino(_: QueryParamsRequest): QueryParamsRequestAmino;
fromAminoMsg(object: QueryParamsRequestAminoMsg): QueryParamsRequest;
toAminoMsg(message: QueryParamsRequest): QueryParamsRequestAminoMsg;
fromProtoMsg(message: QueryParamsRequestProtoMsg): QueryParamsRequest;
toProto(message: QueryParamsRequest): Uint8Array;
toProtoMsg(message: QueryParamsRequest): QueryParamsRequestProtoMsg;
registerTypeUrl(): void;
};
/**
* QueryParamsResponse is the response type for the Query/Params RPC method.
* @name QueryParamsResponse
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryParamsResponse
*/
export declare const QueryParamsResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is QueryParamsResponse;
isAmino(o: any): o is QueryParamsResponseAmino;
encode(message: QueryParamsResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): QueryParamsResponse;
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse;
fromAmino(object: QueryParamsResponseAmino): QueryParamsResponse;
toAmino(message: QueryParamsResponse): QueryParamsResponseAmino;
fromAminoMsg(object: QueryParamsResponseAminoMsg): QueryParamsResponse;
toAminoMsg(message: QueryParamsResponse): QueryParamsResponseAminoMsg;
fromProtoMsg(message: QueryParamsResponseProtoMsg): QueryParamsResponse;
toProto(message: QueryParamsResponse): Uint8Array;
toProtoMsg(message: QueryParamsResponse): QueryParamsResponseProtoMsg;
registerTypeUrl(): void;
};
/**
* QueryDenomHashRequest is the request type for the Query/DenomHash RPC
* method
* @name QueryDenomHashRequest
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryDenomHashRequest
*/
export declare const QueryDenomHashRequest: {
typeUrl: string;
aminoType: string;
is(o: any): o is QueryDenomHashRequest;
isAmino(o: any): o is QueryDenomHashRequestAmino;
encode(message: QueryDenomHashRequest, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomHashRequest;
fromPartial(object: DeepPartial<QueryDenomHashRequest>): QueryDenomHashRequest;
fromAmino(object: QueryDenomHashRequestAmino): QueryDenomHashRequest;
toAmino(message: QueryDenomHashRequest): QueryDenomHashRequestAmino;
fromAminoMsg(object: QueryDenomHashRequestAminoMsg): QueryDenomHashRequest;
toAminoMsg(message: QueryDenomHashRequest): QueryDenomHashRequestAminoMsg;
fromProtoMsg(message: QueryDenomHashRequestProtoMsg): QueryDenomHashRequest;
toProto(message: QueryDenomHashRequest): Uint8Array;
toProtoMsg(message: QueryDenomHashRequest): QueryDenomHashRequestProtoMsg;
registerTypeUrl(): void;
};
/**
* QueryDenomHashResponse is the response type for the Query/DenomHash RPC
* method.
* @name QueryDenomHashResponse
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryDenomHashResponse
*/
export declare const QueryDenomHashResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is QueryDenomHashResponse;
isAmino(o: any): o is QueryDenomHashResponseAmino;
encode(message: QueryDenomHashResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): QueryDenomHashResponse;
fromPartial(object: DeepPartial<QueryDenomHashResponse>): QueryDenomHashResponse;
fromAmino(object: QueryDenomHashResponseAmino): QueryDenomHashResponse;
toAmino(message: QueryDenomHashResponse): QueryDenomHashResponseAmino;
fromAminoMsg(object: QueryDenomHashResponseAminoMsg): QueryDenomHashResponse;
toAminoMsg(message: QueryDenomHashResponse): QueryDenomHashResponseAminoMsg;
fromProtoMsg(message: QueryDenomHashResponseProtoMsg): QueryDenomHashResponse;
toProto(message: QueryDenomHashResponse): Uint8Array;
toProtoMsg(message: QueryDenomHashResponse): QueryDenomHashResponseProtoMsg;
registerTypeUrl(): void;
};
/**
* QueryEscrowAddressRequest is the request type for the EscrowAddress RPC method.
* @name QueryEscrowAddressRequest
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryEscrowAddressRequest
*/
export declare const QueryEscrowAddressRequest: {
typeUrl: string;
aminoType: string;
is(o: any): o is QueryEscrowAddressRequest;
isAmino(o: any): o is QueryEscrowAddressRequestAmino;
encode(message: QueryEscrowAddressRequest, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): QueryEscrowAddressRequest;
fromPartial(object: DeepPartial<QueryEscrowAddressRequest>): QueryEscrowAddressRequest;
fromAmino(object: QueryEscrowAddressRequestAmino): QueryEscrowAddressRequest;
toAmino(message: QueryEscrowAddressRequest): QueryEscrowAddressRequestAmino;
fromAminoMsg(object: QueryEscrowAddressRequestAminoMsg): QueryEscrowAddressRequest;
toAminoMsg(message: QueryEscrowAddressRequest): QueryEscrowAddressRequestAminoMsg;
fromProtoMsg(message: QueryEscrowAddressRequestProtoMsg): QueryEscrowAddressRequest;
toProto(message: QueryEscrowAddressRequest): Uint8Array;
toProtoMsg(message: QueryEscrowAddressRequest): QueryEscrowAddressRequestProtoMsg;
registerTypeUrl(): void;
};
/**
* QueryEscrowAddressResponse is the response type of the EscrowAddress RPC method.
* @name QueryEscrowAddressResponse
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryEscrowAddressResponse
*/
export declare const QueryEscrowAddressResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is QueryEscrowAddressResponse;
isAmino(o: any): o is QueryEscrowAddressResponseAmino;
encode(message: QueryEscrowAddressResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): QueryEscrowAddressResponse;
fromPartial(object: DeepPartial<QueryEscrowAddressResponse>): QueryEscrowAddressResponse;
fromAmino(object: QueryEscrowAddressResponseAmino): QueryEscrowAddressResponse;
toAmino(message: QueryEscrowAddressResponse): QueryEscrowAddressResponseAmino;
fromAminoMsg(object: QueryEscrowAddressResponseAminoMsg): QueryEscrowAddressResponse;
toAminoMsg(message: QueryEscrowAddressResponse): QueryEscrowAddressResponseAminoMsg;
fromProtoMsg(message: QueryEscrowAddressResponseProtoMsg): QueryEscrowAddressResponse;
toProto(message: QueryEscrowAddressResponse): Uint8Array;
toProtoMsg(message: QueryEscrowAddressResponse): QueryEscrowAddressResponseProtoMsg;
registerTypeUrl(): void;
};
/**
* QueryTotalEscrowForDenomRequest is the request type for TotalEscrowForDenom RPC method.
* @name QueryTotalEscrowForDenomRequest
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryTotalEscrowForDenomRequest
*/
export declare const QueryTotalEscrowForDenomRequest: {
typeUrl: string;
aminoType: string;
is(o: any): o is QueryTotalEscrowForDenomRequest;
isAmino(o: any): o is QueryTotalEscrowForDenomRequestAmino;
encode(message: QueryTotalEscrowForDenomRequest, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): QueryTotalEscrowForDenomRequest;
fromPartial(object: DeepPartial<QueryTotalEscrowForDenomRequest>): QueryTotalEscrowForDenomRequest;
fromAmino(object: QueryTotalEscrowForDenomRequestAmino): QueryTotalEscrowForDenomRequest;
toAmino(message: QueryTotalEscrowForDenomRequest): QueryTotalEscrowForDenomRequestAmino;
fromAminoMsg(object: QueryTotalEscrowForDenomRequestAminoMsg): QueryTotalEscrowForDenomRequest;
toAminoMsg(message: QueryTotalEscrowForDenomRequest): QueryTotalEscrowForDenomRequestAminoMsg;
fromProtoMsg(message: QueryTotalEscrowForDenomRequestProtoMsg): QueryTotalEscrowForDenomRequest;
toProto(message: QueryTotalEscrowForDenomRequest): Uint8Array;
toProtoMsg(message: QueryTotalEscrowForDenomRequest): QueryTotalEscrowForDenomRequestProtoMsg;
registerTypeUrl(): void;
};
/**
* QueryTotalEscrowForDenomResponse is the response type for TotalEscrowForDenom RPC method.
* @name QueryTotalEscrowForDenomResponse
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.QueryTotalEscrowForDenomResponse
*/
export declare const QueryTotalEscrowForDenomResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is QueryTotalEscrowForDenomResponse;
isAmino(o: any): o is QueryTotalEscrowForDenomResponseAmino;
encode(message: QueryTotalEscrowForDenomResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): QueryTotalEscrowForDenomResponse;
fromPartial(object: DeepPartial<QueryTotalEscrowForDenomResponse>): QueryTotalEscrowForDenomResponse;
fromAmino(object: QueryTotalEscrowForDenomResponseAmino): QueryTotalEscrowForDenomResponse;
toAmino(message: QueryTotalEscrowForDenomResponse): QueryTotalEscrowForDenomResponseAmino;
fromAminoMsg(object: QueryTotalEscrowForDenomResponseAminoMsg): QueryTotalEscrowForDenomResponse;
toAminoMsg(message: QueryTotalEscrowForDenomResponse): QueryTotalEscrowForDenomResponseAminoMsg;
fromProtoMsg(message: QueryTotalEscrowForDenomResponseProtoMsg): QueryTotalEscrowForDenomResponse;
toProto(message: QueryTotalEscrowForDenomResponse): Uint8Array;
toProtoMsg(message: QueryTotalEscrowForDenomResponse): QueryTotalEscrowForDenomResponseProtoMsg;
registerTypeUrl(): void;
};