import { BinaryReader, BinaryWriter } from "../../binary"; import { JsonSafe } from "../../json-safe"; export interface ProtocolVersion { p2p: bigint; block: bigint; app: bigint; } export interface ProtocolVersionProtoMsg { typeUrl: "/tendermint.p2p.ProtocolVersion"; value: Uint8Array; } /** * @name ProtocolVersionAmino * @package tendermint.p2p * @see proto type: tendermint.p2p.ProtocolVersion */ export interface ProtocolVersionAmino { p2p?: string; block?: string; app?: string; } export interface ProtocolVersionAminoMsg { type: "/tendermint.p2p.ProtocolVersion"; value: ProtocolVersionAmino; } export interface ProtocolVersionSDKType { p2p: bigint; block: bigint; app: bigint; } export interface NodeInfo { protocolVersion: ProtocolVersion; nodeId: string; listenAddr: string; network: string; version: string; channels: Uint8Array; moniker: string; other: NodeInfoOther; } export interface NodeInfoProtoMsg { typeUrl: "/tendermint.p2p.NodeInfo"; value: Uint8Array; } /** * @name NodeInfoAmino * @package tendermint.p2p * @see proto type: tendermint.p2p.NodeInfo */ export interface NodeInfoAmino { protocol_version?: ProtocolVersionAmino; node_id?: string; listen_addr?: string; network?: string; version?: string; channels?: string; moniker?: string; other?: NodeInfoOtherAmino; } export interface NodeInfoAminoMsg { type: "/tendermint.p2p.NodeInfo"; value: NodeInfoAmino; } export interface NodeInfoSDKType { protocol_version: ProtocolVersionSDKType; node_id: string; listen_addr: string; network: string; version: string; channels: Uint8Array; moniker: string; other: NodeInfoOtherSDKType; } export interface NodeInfoOther { txIndex: string; rpcAddress: string; } export interface NodeInfoOtherProtoMsg { typeUrl: "/tendermint.p2p.NodeInfoOther"; value: Uint8Array; } /** * @name NodeInfoOtherAmino * @package tendermint.p2p * @see proto type: tendermint.p2p.NodeInfoOther */ export interface NodeInfoOtherAmino { tx_index?: string; rpc_address?: string; } export interface NodeInfoOtherAminoMsg { type: "/tendermint.p2p.NodeInfoOther"; value: NodeInfoOtherAmino; } export interface NodeInfoOtherSDKType { tx_index: string; rpc_address: string; } export interface PeerInfo { id: string; addressInfo: PeerAddressInfo[]; lastConnected?: Date; } export interface PeerInfoProtoMsg { typeUrl: "/tendermint.p2p.PeerInfo"; value: Uint8Array; } /** * @name PeerInfoAmino * @package tendermint.p2p * @see proto type: tendermint.p2p.PeerInfo */ export interface PeerInfoAmino { id?: string; address_info?: PeerAddressInfoAmino[]; last_connected?: string; } export interface PeerInfoAminoMsg { type: "/tendermint.p2p.PeerInfo"; value: PeerInfoAmino; } export interface PeerInfoSDKType { id: string; address_info: PeerAddressInfoSDKType[]; last_connected?: Date; } export interface PeerAddressInfo { address: string; lastDialSuccess?: Date; lastDialFailure?: Date; dialFailures: number; } export interface PeerAddressInfoProtoMsg { typeUrl: "/tendermint.p2p.PeerAddressInfo"; value: Uint8Array; } /** * @name PeerAddressInfoAmino * @package tendermint.p2p * @see proto type: tendermint.p2p.PeerAddressInfo */ export interface PeerAddressInfoAmino { address?: string; last_dial_success?: string; last_dial_failure?: string; dial_failures?: number; } export interface PeerAddressInfoAminoMsg { type: "/tendermint.p2p.PeerAddressInfo"; value: PeerAddressInfoAmino; } export interface PeerAddressInfoSDKType { address: string; last_dial_success?: Date; last_dial_failure?: Date; dial_failures: number; } export declare const ProtocolVersion: { typeUrl: string; is(o: any): o is ProtocolVersion; isSDK(o: any): o is ProtocolVersionSDKType; isAmino(o: any): o is ProtocolVersionAmino; encode(message: ProtocolVersion, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ProtocolVersion; fromJSON(object: any): ProtocolVersion; toJSON(message: ProtocolVersion): JsonSafe; fromPartial(object: Partial): ProtocolVersion; fromAmino(object: ProtocolVersionAmino): ProtocolVersion; toAmino(message: ProtocolVersion): ProtocolVersionAmino; fromAminoMsg(object: ProtocolVersionAminoMsg): ProtocolVersion; fromProtoMsg(message: ProtocolVersionProtoMsg): ProtocolVersion; toProto(message: ProtocolVersion): Uint8Array; toProtoMsg(message: ProtocolVersion): ProtocolVersionProtoMsg; }; export declare const NodeInfo: { typeUrl: string; is(o: any): o is NodeInfo; isSDK(o: any): o is NodeInfoSDKType; isAmino(o: any): o is NodeInfoAmino; encode(message: NodeInfo, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): NodeInfo; fromJSON(object: any): NodeInfo; toJSON(message: NodeInfo): JsonSafe; fromPartial(object: Partial): NodeInfo; fromAmino(object: NodeInfoAmino): NodeInfo; toAmino(message: NodeInfo): NodeInfoAmino; fromAminoMsg(object: NodeInfoAminoMsg): NodeInfo; fromProtoMsg(message: NodeInfoProtoMsg): NodeInfo; toProto(message: NodeInfo): Uint8Array; toProtoMsg(message: NodeInfo): NodeInfoProtoMsg; }; export declare const NodeInfoOther: { typeUrl: string; is(o: any): o is NodeInfoOther; isSDK(o: any): o is NodeInfoOtherSDKType; isAmino(o: any): o is NodeInfoOtherAmino; encode(message: NodeInfoOther, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): NodeInfoOther; fromJSON(object: any): NodeInfoOther; toJSON(message: NodeInfoOther): JsonSafe; fromPartial(object: Partial): NodeInfoOther; fromAmino(object: NodeInfoOtherAmino): NodeInfoOther; toAmino(message: NodeInfoOther): NodeInfoOtherAmino; fromAminoMsg(object: NodeInfoOtherAminoMsg): NodeInfoOther; fromProtoMsg(message: NodeInfoOtherProtoMsg): NodeInfoOther; toProto(message: NodeInfoOther): Uint8Array; toProtoMsg(message: NodeInfoOther): NodeInfoOtherProtoMsg; }; export declare const PeerInfo: { typeUrl: string; is(o: any): o is PeerInfo; isSDK(o: any): o is PeerInfoSDKType; isAmino(o: any): o is PeerInfoAmino; encode(message: PeerInfo, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): PeerInfo; fromJSON(object: any): PeerInfo; toJSON(message: PeerInfo): JsonSafe; fromPartial(object: Partial): PeerInfo; fromAmino(object: PeerInfoAmino): PeerInfo; toAmino(message: PeerInfo): PeerInfoAmino; fromAminoMsg(object: PeerInfoAminoMsg): PeerInfo; fromProtoMsg(message: PeerInfoProtoMsg): PeerInfo; toProto(message: PeerInfo): Uint8Array; toProtoMsg(message: PeerInfo): PeerInfoProtoMsg; }; export declare const PeerAddressInfo: { typeUrl: string; is(o: any): o is PeerAddressInfo; isSDK(o: any): o is PeerAddressInfoSDKType; isAmino(o: any): o is PeerAddressInfoAmino; encode(message: PeerAddressInfo, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): PeerAddressInfo; fromJSON(object: any): PeerAddressInfo; toJSON(message: PeerAddressInfo): JsonSafe; fromPartial(object: Partial): PeerAddressInfo; fromAmino(object: PeerAddressInfoAmino): PeerAddressInfo; toAmino(message: PeerAddressInfo): PeerAddressInfoAmino; fromAminoMsg(object: PeerAddressInfoAminoMsg): PeerAddressInfo; fromProtoMsg(message: PeerAddressInfoProtoMsg): PeerAddressInfo; toProto(message: PeerAddressInfo): Uint8Array; toProtoMsg(message: PeerAddressInfo): PeerAddressInfoProtoMsg; };