interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
113 lines (112 loc) • 3.75 kB
TypeScript
import { BinaryReader, BinaryWriter } from "../../binary";
import { DeepPartial } from "../../helpers";
/**
* App includes the protocol and software version for the application.
* This information is included in ResponseInfo. The App.Protocol can be
* updated in ResponseEndBlock.
* @name App
* @package tendermint.version
* @see proto type: tendermint.version.App
*/
export interface App {
protocol: bigint;
software: string;
}
export interface AppProtoMsg {
typeUrl: "/tendermint.version.App";
value: Uint8Array;
}
/**
* App includes the protocol and software version for the application.
* This information is included in ResponseInfo. The App.Protocol can be
* updated in ResponseEndBlock.
* @name AppAmino
* @package tendermint.version
* @see proto type: tendermint.version.App
*/
export interface AppAmino {
protocol: string;
software: string;
}
export interface AppAminoMsg {
type: "/tendermint.version.App";
value: AppAmino;
}
/**
* Consensus captures the consensus rules for processing a block in the blockchain,
* including all blockchain data structures and the rules of the application's
* state transition machine.
* @name Consensus
* @package tendermint.version
* @see proto type: tendermint.version.Consensus
*/
export interface Consensus {
block: bigint;
app: bigint;
}
export interface ConsensusProtoMsg {
typeUrl: "/tendermint.version.Consensus";
value: Uint8Array;
}
/**
* Consensus captures the consensus rules for processing a block in the blockchain,
* including all blockchain data structures and the rules of the application's
* state transition machine.
* @name ConsensusAmino
* @package tendermint.version
* @see proto type: tendermint.version.Consensus
*/
export interface ConsensusAmino {
block: string;
app: string;
}
export interface ConsensusAminoMsg {
type: "/tendermint.version.Consensus";
value: ConsensusAmino;
}
/**
* App includes the protocol and software version for the application.
* This information is included in ResponseInfo. The App.Protocol can be
* updated in ResponseEndBlock.
* @name App
* @package tendermint.version
* @see proto type: tendermint.version.App
*/
export declare const App: {
typeUrl: string;
is(o: any): o is App;
isAmino(o: any): o is AppAmino;
encode(message: App, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): App;
fromPartial(object: DeepPartial<App>): App;
fromAmino(object: AppAmino): App;
toAmino(message: App): AppAmino;
fromAminoMsg(object: AppAminoMsg): App;
fromProtoMsg(message: AppProtoMsg): App;
toProto(message: App): Uint8Array;
toProtoMsg(message: App): AppProtoMsg;
registerTypeUrl(): void;
};
/**
* Consensus captures the consensus rules for processing a block in the blockchain,
* including all blockchain data structures and the rules of the application's
* state transition machine.
* @name Consensus
* @package tendermint.version
* @see proto type: tendermint.version.Consensus
*/
export declare const Consensus: {
typeUrl: string;
is(o: any): o is Consensus;
isAmino(o: any): o is ConsensusAmino;
encode(message: Consensus, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): Consensus;
fromPartial(object: DeepPartial<Consensus>): Consensus;
fromAmino(object: ConsensusAmino): Consensus;
toAmino(message: Consensus): ConsensusAmino;
fromAminoMsg(object: ConsensusAminoMsg): Consensus;
fromProtoMsg(message: ConsensusProtoMsg): Consensus;
toProto(message: Consensus): Uint8Array;
toProtoMsg(message: Consensus): ConsensusProtoMsg;
registerTypeUrl(): void;
};