import { Header } from "../types/types"; import { ProofOps } from "../crypto/proof"; import { EvidenceParams, ValidatorParams, VersionParams } from "../types/params"; import { PublicKey } from "../crypto/keys"; import * as _m0 from "protobufjs/minimal"; import { DeepPartial, Long } from "@osmonauts/helpers"; export declare enum CheckTxType { NEW = 0, RECHECK = 1, UNRECOGNIZED = -1 } export declare function checkTxTypeFromJSON(object: any): CheckTxType; export declare function checkTxTypeToJSON(object: CheckTxType): string; export declare enum ResponseOfferSnapshot_Result { /** UNKNOWN - Unknown result, abort all snapshot restoration */ UNKNOWN = 0, /** ACCEPT - Snapshot accepted, apply chunks */ ACCEPT = 1, /** ABORT - Abort all snapshot restoration */ ABORT = 2, /** REJECT - Reject this specific snapshot, try others */ REJECT = 3, /** REJECT_FORMAT - Reject all snapshots of this format, try others */ REJECT_FORMAT = 4, /** REJECT_SENDER - Reject all snapshots from the sender(s), try others */ REJECT_SENDER = 5, UNRECOGNIZED = -1 } export declare function responseOfferSnapshot_ResultFromJSON(object: any): ResponseOfferSnapshot_Result; export declare function responseOfferSnapshot_ResultToJSON(object: ResponseOfferSnapshot_Result): string; export declare enum ResponseApplySnapshotChunk_Result { /** UNKNOWN - Unknown result, abort all snapshot restoration */ UNKNOWN = 0, /** ACCEPT - Chunk successfully accepted */ ACCEPT = 1, /** ABORT - Abort all snapshot restoration */ ABORT = 2, /** RETRY - Retry chunk (combine with refetch and reject) */ RETRY = 3, /** RETRY_SNAPSHOT - Retry snapshot (combine with refetch and reject) */ RETRY_SNAPSHOT = 4, /** REJECT_SNAPSHOT - Reject this snapshot, try others */ REJECT_SNAPSHOT = 5, UNRECOGNIZED = -1 } export declare function responseApplySnapshotChunk_ResultFromJSON(object: any): ResponseApplySnapshotChunk_Result; export declare function responseApplySnapshotChunk_ResultToJSON(object: ResponseApplySnapshotChunk_Result): string; export declare enum EvidenceType { UNKNOWN = 0, DUPLICATE_VOTE = 1, LIGHT_CLIENT_ATTACK = 2, UNRECOGNIZED = -1 } export declare function evidenceTypeFromJSON(object: any): EvidenceType; export declare function evidenceTypeToJSON(object: EvidenceType): string; export interface Request { echo?: RequestEcho; flush?: RequestFlush; info?: RequestInfo; set_option?: RequestSetOption; init_chain?: RequestInitChain; query?: RequestQuery; begin_block?: RequestBeginBlock; check_tx?: RequestCheckTx; deliver_tx?: RequestDeliverTx; end_block?: RequestEndBlock; commit?: RequestCommit; list_snapshots?: RequestListSnapshots; offer_snapshot?: RequestOfferSnapshot; load_snapshot_chunk?: RequestLoadSnapshotChunk; apply_snapshot_chunk?: RequestApplySnapshotChunk; } export interface RequestEcho { message: string; } export interface RequestFlush { } export interface RequestInfo { version: string; block_version: Long; p2p_version: Long; } /** nondeterministic */ export interface RequestSetOption { key: string; value: string; } export interface RequestInitChain { time: Date; chain_id: string; consensus_params: ConsensusParams; validators: ValidatorUpdate[]; app_state_bytes: Uint8Array; initial_height: Long; } export interface RequestQuery { data: Uint8Array; path: string; height: Long; prove: boolean; } export interface RequestBeginBlock { hash: Uint8Array; header: Header; last_commit_info: LastCommitInfo; byzantine_validators: Evidence[]; } export interface RequestCheckTx { tx: Uint8Array; type: CheckTxType; } export interface RequestDeliverTx { tx: Uint8Array; } export interface RequestEndBlock { height: Long; } export interface RequestCommit { } /** lists available snapshots */ export interface RequestListSnapshots { } /** offers a snapshot to the application */ export interface RequestOfferSnapshot { /** snapshot offered by peers */ snapshot: Snapshot; /** light client-verified app hash for snapshot height */ app_hash: Uint8Array; } /** loads a snapshot chunk */ export interface RequestLoadSnapshotChunk { height: Long; format: number; chunk: number; } /** Applies a snapshot chunk */ export interface RequestApplySnapshotChunk { index: number; chunk: Uint8Array; sender: string; } export interface Response { exception?: ResponseException; echo?: ResponseEcho; flush?: ResponseFlush; info?: ResponseInfo; set_option?: ResponseSetOption; init_chain?: ResponseInitChain; query?: ResponseQuery; begin_block?: ResponseBeginBlock; check_tx?: ResponseCheckTx; deliver_tx?: ResponseDeliverTx; end_block?: ResponseEndBlock; commit?: ResponseCommit; list_snapshots?: ResponseListSnapshots; offer_snapshot?: ResponseOfferSnapshot; load_snapshot_chunk?: ResponseLoadSnapshotChunk; apply_snapshot_chunk?: ResponseApplySnapshotChunk; } /** nondeterministic */ export interface ResponseException { error: string; } export interface ResponseEcho { message: string; } export interface ResponseFlush { } export interface ResponseInfo { data: string; version: string; app_version: Long; last_block_height: Long; last_block_app_hash: Uint8Array; } /** nondeterministic */ export interface ResponseSetOption { code: number; /** bytes data = 2; */ log: string; info: string; } export interface ResponseInitChain { consensus_params: ConsensusParams; validators: ValidatorUpdate[]; app_hash: Uint8Array; } export interface ResponseQuery { code: number; /** bytes data = 2; // use "value" instead. */ log: string; /** nondeterministic */ info: string; index: Long; key: Uint8Array; value: Uint8Array; proof_ops: ProofOps; height: Long; codespace: string; } export interface ResponseBeginBlock { events: Event[]; } export interface ResponseCheckTx { code: number; data: Uint8Array; /** nondeterministic */ log: string; /** nondeterministic */ info: string; gas_wanted: Long; gas_used: Long; events: Event[]; codespace: string; } export interface ResponseDeliverTx { code: number; data: Uint8Array; /** nondeterministic */ log: string; /** nondeterministic */ info: string; gas_wanted: Long; gas_used: Long; events: Event[]; codespace: string; } export interface ResponseEndBlock { validator_updates: ValidatorUpdate[]; consensus_param_updates: ConsensusParams; events: Event[]; } export interface ResponseCommit { /** reserve 1 */ data: Uint8Array; retain_height: Long; } export interface ResponseListSnapshots { snapshots: Snapshot[]; } export interface ResponseOfferSnapshot { result: ResponseOfferSnapshot_Result; } export interface ResponseLoadSnapshotChunk { chunk: Uint8Array; } export interface ResponseApplySnapshotChunk { result: ResponseApplySnapshotChunk_Result; /** Chunks to refetch and reapply */ refetch_chunks: number[]; /** Chunk senders to reject and ban */ reject_senders: string[]; } /** * ConsensusParams contains all consensus-relevant parameters * that can be adjusted by the abci app */ export interface ConsensusParams { block: BlockParams; evidence: EvidenceParams; validator: ValidatorParams; version: VersionParams; } /** BlockParams contains limits on the block size. */ export interface BlockParams { /** Note: must be greater than 0 */ max_bytes: Long; /** Note: must be greater or equal to -1 */ max_gas: Long; } export interface LastCommitInfo { round: number; votes: VoteInfo[]; } /** * Event allows application developers to attach additional information to * ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. * Later, transactions may be queried using these events. */ export interface Event { type: string; attributes: EventAttribute[]; } /** EventAttribute is a single key-value pair, associated with an event. */ export interface EventAttribute { key: Uint8Array; value: Uint8Array; /** nondeterministic */ index: boolean; } /** * TxResult contains results of executing the transaction. * * One usage is indexing transaction results. */ export interface TxResult { height: Long; index: number; tx: Uint8Array; result: ResponseDeliverTx; } /** Validator */ export interface Validator { /** * The first 20 bytes of SHA256(public key) * PubKey pub_key = 2 [(gogoproto.nullable)=false]; */ address: Uint8Array; /** The voting power */ power: Long; } /** ValidatorUpdate */ export interface ValidatorUpdate { pub_key: PublicKey; power: Long; } /** VoteInfo */ export interface VoteInfo { validator: Validator; signed_last_block: boolean; } export interface Evidence { type: EvidenceType; /** The offending validator */ validator: Validator; /** The height when the offense occurred */ height: Long; /** The corresponding time where the offense occurred */ time: Date; /** * Total voting power of the validator set in case the ABCI application does * not store historical validators. * https://github.com/tendermint/tendermint/issues/4581 */ total_voting_power: Long; } export interface Snapshot { /** The height at which the snapshot was taken */ height: Long; /** The application-specific snapshot format */ format: number; /** Number of chunks in the snapshot */ chunks: number; /** Arbitrary snapshot hash, equal only if identical */ hash: Uint8Array; /** Arbitrary application metadata */ metadata: Uint8Array; } export declare const Request: { encode(message: Request, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Request; fromJSON(object: any): Request; toJSON(message: Request): unknown; fromPartial(object: DeepPartial): Request; }; export declare const RequestEcho: { encode(message: RequestEcho, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RequestEcho; fromJSON(object: any): RequestEcho; toJSON(message: RequestEcho): unknown; fromPartial(object: DeepPartial): RequestEcho; }; export declare const RequestFlush: { encode(_: RequestFlush, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RequestFlush; fromJSON(_: any): RequestFlush; toJSON(_: RequestFlush): unknown; fromPartial(_: DeepPartial): RequestFlush; }; export declare const RequestInfo: { encode(message: RequestInfo, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RequestInfo; fromJSON(object: any): RequestInfo; toJSON(message: RequestInfo): unknown; fromPartial(object: DeepPartial): RequestInfo; }; export declare const RequestSetOption: { encode(message: RequestSetOption, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RequestSetOption; fromJSON(object: any): RequestSetOption; toJSON(message: RequestSetOption): unknown; fromPartial(object: DeepPartial): RequestSetOption; }; export declare const RequestInitChain: { encode(message: RequestInitChain, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RequestInitChain; fromJSON(object: any): RequestInitChain; toJSON(message: RequestInitChain): unknown; fromPartial(object: DeepPartial): RequestInitChain; }; export declare const RequestQuery: { encode(message: RequestQuery, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RequestQuery; fromJSON(object: any): RequestQuery; toJSON(message: RequestQuery): unknown; fromPartial(object: DeepPartial): RequestQuery; }; export declare const RequestBeginBlock: { encode(message: RequestBeginBlock, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RequestBeginBlock; fromJSON(object: any): RequestBeginBlock; toJSON(message: RequestBeginBlock): unknown; fromPartial(object: DeepPartial): RequestBeginBlock; }; export declare const RequestCheckTx: { encode(message: RequestCheckTx, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RequestCheckTx; fromJSON(object: any): RequestCheckTx; toJSON(message: RequestCheckTx): unknown; fromPartial(object: DeepPartial): RequestCheckTx; }; export declare const RequestDeliverTx: { encode(message: RequestDeliverTx, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RequestDeliverTx; fromJSON(object: any): RequestDeliverTx; toJSON(message: RequestDeliverTx): unknown; fromPartial(object: DeepPartial): RequestDeliverTx; }; export declare const RequestEndBlock: { encode(message: RequestEndBlock, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RequestEndBlock; fromJSON(object: any): RequestEndBlock; toJSON(message: RequestEndBlock): unknown; fromPartial(object: DeepPartial): RequestEndBlock; }; export declare const RequestCommit: { encode(_: RequestCommit, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RequestCommit; fromJSON(_: any): RequestCommit; toJSON(_: RequestCommit): unknown; fromPartial(_: DeepPartial): RequestCommit; }; export declare const RequestListSnapshots: { encode(_: RequestListSnapshots, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RequestListSnapshots; fromJSON(_: any): RequestListSnapshots; toJSON(_: RequestListSnapshots): unknown; fromPartial(_: DeepPartial): RequestListSnapshots; }; export declare const RequestOfferSnapshot: { encode(message: RequestOfferSnapshot, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RequestOfferSnapshot; fromJSON(object: any): RequestOfferSnapshot; toJSON(message: RequestOfferSnapshot): unknown; fromPartial(object: DeepPartial): RequestOfferSnapshot; }; export declare const RequestLoadSnapshotChunk: { encode(message: RequestLoadSnapshotChunk, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RequestLoadSnapshotChunk; fromJSON(object: any): RequestLoadSnapshotChunk; toJSON(message: RequestLoadSnapshotChunk): unknown; fromPartial(object: DeepPartial): RequestLoadSnapshotChunk; }; export declare const RequestApplySnapshotChunk: { encode(message: RequestApplySnapshotChunk, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RequestApplySnapshotChunk; fromJSON(object: any): RequestApplySnapshotChunk; toJSON(message: RequestApplySnapshotChunk): unknown; fromPartial(object: DeepPartial): RequestApplySnapshotChunk; }; export declare const Response: { encode(message: Response, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Response; fromJSON(object: any): Response; toJSON(message: Response): unknown; fromPartial(object: DeepPartial): Response; }; export declare const ResponseException: { encode(message: ResponseException, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ResponseException; fromJSON(object: any): ResponseException; toJSON(message: ResponseException): unknown; fromPartial(object: DeepPartial): ResponseException; }; export declare const ResponseEcho: { encode(message: ResponseEcho, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ResponseEcho; fromJSON(object: any): ResponseEcho; toJSON(message: ResponseEcho): unknown; fromPartial(object: DeepPartial): ResponseEcho; }; export declare const ResponseFlush: { encode(_: ResponseFlush, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ResponseFlush; fromJSON(_: any): ResponseFlush; toJSON(_: ResponseFlush): unknown; fromPartial(_: DeepPartial): ResponseFlush; }; export declare const ResponseInfo: { encode(message: ResponseInfo, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ResponseInfo; fromJSON(object: any): ResponseInfo; toJSON(message: ResponseInfo): unknown; fromPartial(object: DeepPartial): ResponseInfo; }; export declare const ResponseSetOption: { encode(message: ResponseSetOption, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ResponseSetOption; fromJSON(object: any): ResponseSetOption; toJSON(message: ResponseSetOption): unknown; fromPartial(object: DeepPartial): ResponseSetOption; }; export declare const ResponseInitChain: { encode(message: ResponseInitChain, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ResponseInitChain; fromJSON(object: any): ResponseInitChain; toJSON(message: ResponseInitChain): unknown; fromPartial(object: DeepPartial): ResponseInitChain; }; export declare const ResponseQuery: { encode(message: ResponseQuery, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ResponseQuery; fromJSON(object: any): ResponseQuery; toJSON(message: ResponseQuery): unknown; fromPartial(object: DeepPartial): ResponseQuery; }; export declare const ResponseBeginBlock: { encode(message: ResponseBeginBlock, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ResponseBeginBlock; fromJSON(object: any): ResponseBeginBlock; toJSON(message: ResponseBeginBlock): unknown; fromPartial(object: DeepPartial): ResponseBeginBlock; }; export declare const ResponseCheckTx: { encode(message: ResponseCheckTx, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ResponseCheckTx; fromJSON(object: any): ResponseCheckTx; toJSON(message: ResponseCheckTx): unknown; fromPartial(object: DeepPartial): ResponseCheckTx; }; export declare const ResponseDeliverTx: { encode(message: ResponseDeliverTx, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ResponseDeliverTx; fromJSON(object: any): ResponseDeliverTx; toJSON(message: ResponseDeliverTx): unknown; fromPartial(object: DeepPartial): ResponseDeliverTx; }; export declare const ResponseEndBlock: { encode(message: ResponseEndBlock, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ResponseEndBlock; fromJSON(object: any): ResponseEndBlock; toJSON(message: ResponseEndBlock): unknown; fromPartial(object: DeepPartial): ResponseEndBlock; }; export declare const ResponseCommit: { encode(message: ResponseCommit, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ResponseCommit; fromJSON(object: any): ResponseCommit; toJSON(message: ResponseCommit): unknown; fromPartial(object: DeepPartial): ResponseCommit; }; export declare const ResponseListSnapshots: { encode(message: ResponseListSnapshots, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ResponseListSnapshots; fromJSON(object: any): ResponseListSnapshots; toJSON(message: ResponseListSnapshots): unknown; fromPartial(object: DeepPartial): ResponseListSnapshots; }; export declare const ResponseOfferSnapshot: { encode(message: ResponseOfferSnapshot, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ResponseOfferSnapshot; fromJSON(object: any): ResponseOfferSnapshot; toJSON(message: ResponseOfferSnapshot): unknown; fromPartial(object: DeepPartial): ResponseOfferSnapshot; }; export declare const ResponseLoadSnapshotChunk: { encode(message: ResponseLoadSnapshotChunk, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ResponseLoadSnapshotChunk; fromJSON(object: any): ResponseLoadSnapshotChunk; toJSON(message: ResponseLoadSnapshotChunk): unknown; fromPartial(object: DeepPartial): ResponseLoadSnapshotChunk; }; export declare const ResponseApplySnapshotChunk: { encode(message: ResponseApplySnapshotChunk, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ResponseApplySnapshotChunk; fromJSON(object: any): ResponseApplySnapshotChunk; toJSON(message: ResponseApplySnapshotChunk): unknown; fromPartial(object: DeepPartial): ResponseApplySnapshotChunk; }; export declare const ConsensusParams: { encode(message: ConsensusParams, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ConsensusParams; fromJSON(object: any): ConsensusParams; toJSON(message: ConsensusParams): unknown; fromPartial(object: DeepPartial): ConsensusParams; }; export declare const BlockParams: { encode(message: BlockParams, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): BlockParams; fromJSON(object: any): BlockParams; toJSON(message: BlockParams): unknown; fromPartial(object: DeepPartial): BlockParams; }; export declare const LastCommitInfo: { encode(message: LastCommitInfo, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): LastCommitInfo; fromJSON(object: any): LastCommitInfo; toJSON(message: LastCommitInfo): unknown; fromPartial(object: DeepPartial): LastCommitInfo; }; export declare const Event: { encode(message: Event, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Event; fromJSON(object: any): Event; toJSON(message: Event): unknown; fromPartial(object: DeepPartial): Event; }; export declare const EventAttribute: { encode(message: EventAttribute, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): EventAttribute; fromJSON(object: any): EventAttribute; toJSON(message: EventAttribute): unknown; fromPartial(object: DeepPartial): EventAttribute; }; export declare const TxResult: { encode(message: TxResult, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): TxResult; fromJSON(object: any): TxResult; toJSON(message: TxResult): unknown; fromPartial(object: DeepPartial): TxResult; }; export declare const Validator: { encode(message: Validator, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Validator; fromJSON(object: any): Validator; toJSON(message: Validator): unknown; fromPartial(object: DeepPartial): Validator; }; export declare const ValidatorUpdate: { encode(message: ValidatorUpdate, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorUpdate; fromJSON(object: any): ValidatorUpdate; toJSON(message: ValidatorUpdate): unknown; fromPartial(object: DeepPartial): ValidatorUpdate; }; export declare const VoteInfo: { encode(message: VoteInfo, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): VoteInfo; fromJSON(object: any): VoteInfo; toJSON(message: VoteInfo): unknown; fromPartial(object: DeepPartial): VoteInfo; }; export declare const Evidence: { encode(message: Evidence, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Evidence; fromJSON(object: any): Evidence; toJSON(message: Evidence): unknown; fromPartial(object: DeepPartial): Evidence; }; export declare const Snapshot: { encode(message: Snapshot, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Snapshot; fromJSON(object: any): Snapshot; toJSON(message: Snapshot): unknown; fromPartial(object: DeepPartial): Snapshot; };