interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
79 lines (78 loc) • 2.74 kB
TypeScript
import { BinaryReader, BinaryWriter } from "../../../../binary";
import { DeepPartial } from "../../../../helpers";
/**
* Params defines the set of IBC transfer parameters.
* NOTE: To prevent a single token from being transferred, set the
* TransfersEnabled parameter to true and then set the bank module's SendEnabled
* parameter for the denomination to false.
* @name Params
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.Params
*/
export interface Params {
/**
* send_enabled enables or disables all cross-chain token transfers from this
* chain.
*/
sendEnabled: boolean;
/**
* receive_enabled enables or disables all cross-chain token transfers to this
* chain.
*/
receiveEnabled: boolean;
}
export interface ParamsProtoMsg {
typeUrl: "/ibc.applications.transfer.v1.Params";
value: Uint8Array;
}
/**
* Params defines the set of IBC transfer parameters.
* NOTE: To prevent a single token from being transferred, set the
* TransfersEnabled parameter to true and then set the bank module's SendEnabled
* parameter for the denomination to false.
* @name ParamsAmino
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.Params
*/
export interface ParamsAmino {
/**
* send_enabled enables or disables all cross-chain token transfers from this
* chain.
*/
send_enabled: boolean;
/**
* receive_enabled enables or disables all cross-chain token transfers to this
* chain.
*/
receive_enabled: boolean;
}
export interface ParamsAminoMsg {
type: "cosmos-sdk/Params";
value: ParamsAmino;
}
/**
* Params defines the set of IBC transfer parameters.
* NOTE: To prevent a single token from being transferred, set the
* TransfersEnabled parameter to true and then set the bank module's SendEnabled
* parameter for the denomination to false.
* @name Params
* @package ibc.applications.transfer.v1
* @see proto type: ibc.applications.transfer.v1.Params
*/
export declare const Params: {
typeUrl: string;
aminoType: string;
is(o: any): o is Params;
isAmino(o: any): o is ParamsAmino;
encode(message: Params, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): Params;
fromPartial(object: DeepPartial<Params>): Params;
fromAmino(object: ParamsAmino): Params;
toAmino(message: Params): ParamsAmino;
fromAminoMsg(object: ParamsAminoMsg): Params;
toAminoMsg(message: Params): ParamsAminoMsg;
fromProtoMsg(message: ParamsProtoMsg): Params;
toProto(message: Params): Uint8Array;
toProtoMsg(message: Params): ParamsProtoMsg;
registerTypeUrl(): void;
};