diff --git a/Makefile b/Makefile index 03684cf2aa..121d55c079 100644 --- a/Makefile +++ b/Makefile @@ -161,6 +161,11 @@ proto: @buf format -w .PHONY: proto +typescript: + @echo "--> Generating TypeScript bindings" + @bash ./scripts/protoc-gen-typescript.sh +.PHONY: typescript + proto-format: @bash ./scripts/proto-format.sh @@ -179,14 +184,14 @@ docs-zetacored: @bash ./scripts/gen-docs-zetacored.sh .PHONY: docs-zetacored -generate: proto openapi specs docs-zetacored -.PHONY: generate - mocks: @echo "--> Generating mocks" @bash ./scripts/mocks-generate.sh .PHONY: mocks +generate: proto openapi specs typescript docs-zetacored +.PHONY: generate + ############################################################################### ### Docker Images ### ############################################################################### diff --git a/proto/buf.ts.yaml b/proto/buf.ts.yaml new file mode 100644 index 0000000000..c9fa155abc --- /dev/null +++ b/proto/buf.ts.yaml @@ -0,0 +1,7 @@ +version: v1 +managed: + enabled: true +plugins: + - plugin: buf.build/bufbuild/es:v1.3.0 + out: ../typescript + opt: target=dts diff --git a/scripts/protoc-gen-typescript.sh b/scripts/protoc-gen-typescript.sh new file mode 100755 index 0000000000..526d4773da --- /dev/null +++ b/scripts/protoc-gen-typescript.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env bash + +DIR="typescript" + +rm -rf $DIR + +(cd proto && buf generate --template buf.ts.yaml) + +cat < $DIR/package.json +{ + "name": "@zetachain/blockchain-types", + "version": "0.0.0-set-on-publish", + "description": "", + "main": "", + "keywords": [], + "author": "ZetaChain", + "license": "MIT" +} +EOL + +# Loop through all directories recursively +find "$DIR" -type d | while read -r dir; do + # Check if there are any .d.ts files in the directory + if ls "$dir"/*.d.ts &> /dev/null; then + # Create or clear index.d.ts in the directory + > "$dir/index.d.ts" + + # Loop through all .d.ts files in the directory + for file in "$dir"/*.d.ts; do + # Extract the base filename without the .d.ts extension + base_name=$(basename "$file" .d.ts) + # If the base name is not 'index', append the export line to index.d.ts + if [ "$base_name" != "index" ]; then + echo "export * from \"./$base_name\";" >> "$dir/index.d.ts" + fi + done + fi +done diff --git a/typescript/common/bitcoin/bitcoin_pb.d.ts b/typescript/common/bitcoin/bitcoin_pb.d.ts new file mode 100644 index 0000000000..4ba8f93863 --- /dev/null +++ b/typescript/common/bitcoin/bitcoin_pb.d.ts @@ -0,0 +1,42 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file common/bitcoin/bitcoin.proto (package bitcoin, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message bitcoin.Proof + */ +export declare class Proof extends Message { + /** + * @generated from field: bytes tx_bytes = 1; + */ + txBytes: Uint8Array; + + /** + * @generated from field: bytes path = 2; + */ + path: Uint8Array; + + /** + * @generated from field: uint32 index = 3; + */ + index: number; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "bitcoin.Proof"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Proof; + + static fromJson(jsonValue: JsonValue, options?: Partial): Proof; + + static fromJsonString(jsonString: string, options?: Partial): Proof; + + static equals(a: Proof | PlainMessage | undefined, b: Proof | PlainMessage | undefined): boolean; +} + diff --git a/typescript/common/bitcoin/index.d.ts b/typescript/common/bitcoin/index.d.ts new file mode 100644 index 0000000000..152ef02de9 --- /dev/null +++ b/typescript/common/bitcoin/index.d.ts @@ -0,0 +1 @@ +export * from "./bitcoin_pb"; diff --git a/typescript/common/common_pb.d.ts b/typescript/common/common_pb.d.ts new file mode 100644 index 0000000000..fdf8d0e3f4 --- /dev/null +++ b/typescript/common/common_pb.d.ts @@ -0,0 +1,333 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file common/common.proto (package common, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { Proof as Proof$1 } from "./ethereum/ethereum_pb.js"; +import type { Proof as Proof$2 } from "./bitcoin/bitcoin_pb.js"; + +/** + * @generated from enum common.ReceiveStatus + */ +export declare enum ReceiveStatus { + /** + * some observer sees inbound tx + * + * @generated from enum value: Created = 0; + */ + Created = 0, + + /** + * @generated from enum value: Success = 1; + */ + Success = 1, + + /** + * @generated from enum value: Failed = 2; + */ + Failed = 2, +} + +/** + * @generated from enum common.CoinType + */ +export declare enum CoinType { + /** + * @generated from enum value: Zeta = 0; + */ + Zeta = 0, + + /** + * Ether, BNB, Matic, Klay, BTC, etc + * + * @generated from enum value: Gas = 1; + */ + Gas = 1, + + /** + * ERC20 token + * + * @generated from enum value: ERC20 = 2; + */ + ERC20 = 2, + + /** + * not a real coin, rather a command + * + * @generated from enum value: Cmd = 3; + */ + Cmd = 3, +} + +/** + * @generated from enum common.ChainName + */ +export declare enum ChainName { + /** + * @generated from enum value: empty = 0; + */ + empty = 0, + + /** + * @generated from enum value: eth_mainnet = 1; + */ + eth_mainnet = 1, + + /** + * @generated from enum value: zeta_mainnet = 2; + */ + zeta_mainnet = 2, + + /** + * @generated from enum value: btc_mainnet = 3; + */ + btc_mainnet = 3, + + /** + * @generated from enum value: polygon_mainnet = 4; + */ + polygon_mainnet = 4, + + /** + * @generated from enum value: bsc_mainnet = 5; + */ + bsc_mainnet = 5, + + /** + * Testnet + * + * @generated from enum value: goerli_testnet = 6; + */ + goerli_testnet = 6, + + /** + * @generated from enum value: mumbai_testnet = 7; + */ + mumbai_testnet = 7, + + /** + * @generated from enum value: ganache_testnet = 8; + */ + ganache_testnet = 8, + + /** + * @generated from enum value: baobab_testnet = 9; + */ + baobab_testnet = 9, + + /** + * @generated from enum value: bsc_testnet = 10; + */ + bsc_testnet = 10, + + /** + * @generated from enum value: zeta_testnet = 11; + */ + zeta_testnet = 11, + + /** + * @generated from enum value: btc_testnet = 12; + */ + btc_testnet = 12, + + /** + * LocalNet + * zeta_localnet = 13; + * + * @generated from enum value: goerli_localnet = 14; + */ + goerli_localnet = 14, + + /** + * Athens + * zeta_athensnet=15; + * + * @generated from enum value: btc_regtest = 15; + */ + btc_regtest = 15, +} + +/** + * PubKeySet contains two pub keys , secp256k1 and ed25519 + * + * @generated from message common.PubKeySet + */ +export declare class PubKeySet extends Message { + /** + * @generated from field: string secp256k1 = 1; + */ + secp256k1: string; + + /** + * @generated from field: string ed25519 = 2; + */ + ed25519: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "common.PubKeySet"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): PubKeySet; + + static fromJson(jsonValue: JsonValue, options?: Partial): PubKeySet; + + static fromJsonString(jsonString: string, options?: Partial): PubKeySet; + + static equals(a: PubKeySet | PlainMessage | undefined, b: PubKeySet | PlainMessage | undefined): boolean; +} + +/** + * @generated from message common.Chain + */ +export declare class Chain extends Message { + /** + * @generated from field: common.ChainName chain_name = 1; + */ + chainName: ChainName; + + /** + * @generated from field: int64 chain_id = 2; + */ + chainId: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "common.Chain"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Chain; + + static fromJson(jsonValue: JsonValue, options?: Partial): Chain; + + static fromJsonString(jsonString: string, options?: Partial): Chain; + + static equals(a: Chain | PlainMessage | undefined, b: Chain | PlainMessage | undefined): boolean; +} + +/** + * @generated from message common.BlockHeader + */ +export declare class BlockHeader extends Message { + /** + * @generated from field: int64 height = 1; + */ + height: bigint; + + /** + * @generated from field: bytes hash = 2; + */ + hash: Uint8Array; + + /** + * @generated from field: bytes parent_hash = 3; + */ + parentHash: Uint8Array; + + /** + * @generated from field: int64 chain_id = 4; + */ + chainId: bigint; + + /** + * chain specific header + * + * @generated from field: common.HeaderData header = 5; + */ + header?: HeaderData; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "common.BlockHeader"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): BlockHeader; + + static fromJson(jsonValue: JsonValue, options?: Partial): BlockHeader; + + static fromJsonString(jsonString: string, options?: Partial): BlockHeader; + + static equals(a: BlockHeader | PlainMessage | undefined, b: BlockHeader | PlainMessage | undefined): boolean; +} + +/** + * @generated from message common.HeaderData + */ +export declare class HeaderData extends Message { + /** + * @generated from oneof common.HeaderData.data + */ + data: { + /** + * binary encoded headers; RLP for ethereum + * + * @generated from field: bytes ethereum_header = 1; + */ + value: Uint8Array; + case: "ethereumHeader"; + } | { + /** + * 80-byte little-endian encoded binary data + * + * @generated from field: bytes bitcoin_header = 2; + */ + value: Uint8Array; + case: "bitcoinHeader"; + } | { case: undefined; value?: undefined }; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "common.HeaderData"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): HeaderData; + + static fromJson(jsonValue: JsonValue, options?: Partial): HeaderData; + + static fromJsonString(jsonString: string, options?: Partial): HeaderData; + + static equals(a: HeaderData | PlainMessage | undefined, b: HeaderData | PlainMessage | undefined): boolean; +} + +/** + * @generated from message common.Proof + */ +export declare class Proof extends Message { + /** + * @generated from oneof common.Proof.proof + */ + proof: { + /** + * @generated from field: ethereum.Proof ethereum_proof = 1; + */ + value: Proof$1; + case: "ethereumProof"; + } | { + /** + * @generated from field: bitcoin.Proof bitcoin_proof = 2; + */ + value: Proof$2; + case: "bitcoinProof"; + } | { case: undefined; value?: undefined }; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "common.Proof"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Proof; + + static fromJson(jsonValue: JsonValue, options?: Partial): Proof; + + static fromJsonString(jsonString: string, options?: Partial): Proof; + + static equals(a: Proof | PlainMessage | undefined, b: Proof | PlainMessage | undefined): boolean; +} + diff --git a/typescript/common/ethereum/ethereum_pb.d.ts b/typescript/common/ethereum/ethereum_pb.d.ts new file mode 100644 index 0000000000..d0d2fa9513 --- /dev/null +++ b/typescript/common/ethereum/ethereum_pb.d.ts @@ -0,0 +1,37 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file common/ethereum/ethereum.proto (package ethereum, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message ethereum.Proof + */ +export declare class Proof extends Message { + /** + * @generated from field: repeated bytes keys = 1; + */ + keys: Uint8Array[]; + + /** + * @generated from field: repeated bytes values = 2; + */ + values: Uint8Array[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "ethereum.Proof"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Proof; + + static fromJson(jsonValue: JsonValue, options?: Partial): Proof; + + static fromJsonString(jsonString: string, options?: Partial): Proof; + + static equals(a: Proof | PlainMessage | undefined, b: Proof | PlainMessage | undefined): boolean; +} + diff --git a/typescript/common/ethereum/index.d.ts b/typescript/common/ethereum/index.d.ts new file mode 100644 index 0000000000..35459f1f5c --- /dev/null +++ b/typescript/common/ethereum/index.d.ts @@ -0,0 +1 @@ +export * from "./ethereum_pb"; diff --git a/typescript/common/index.d.ts b/typescript/common/index.d.ts new file mode 100644 index 0000000000..78b610bcc1 --- /dev/null +++ b/typescript/common/index.d.ts @@ -0,0 +1 @@ +export * from "./common_pb"; diff --git a/typescript/crosschain/chain_nonces_pb.d.ts b/typescript/crosschain/chain_nonces_pb.d.ts new file mode 100644 index 0000000000..2f629ad9d9 --- /dev/null +++ b/typescript/crosschain/chain_nonces_pb.d.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file crosschain/chain_nonces.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.crosschain.ChainNonces + */ +export declare class ChainNonces extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: string index = 2; + */ + index: string; + + /** + * @generated from field: int64 chain_id = 3; + */ + chainId: bigint; + + /** + * @generated from field: uint64 nonce = 4; + */ + nonce: bigint; + + /** + * @generated from field: repeated string signers = 5; + */ + signers: string[]; + + /** + * @generated from field: uint64 finalizedHeight = 6; + */ + finalizedHeight: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.ChainNonces"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): ChainNonces; + + static fromJson(jsonValue: JsonValue, options?: Partial): ChainNonces; + + static fromJsonString(jsonString: string, options?: Partial): ChainNonces; + + static equals(a: ChainNonces | PlainMessage | undefined, b: ChainNonces | PlainMessage | undefined): boolean; +} + diff --git a/typescript/crosschain/cross_chain_tx_pb.d.ts b/typescript/crosschain/cross_chain_tx_pb.d.ts new file mode 100644 index 0000000000..3d4934dc05 --- /dev/null +++ b/typescript/crosschain/cross_chain_tx_pb.d.ts @@ -0,0 +1,313 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file crosschain/cross_chain_tx.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { CoinType } from "../common/common_pb.js"; + +/** + * @generated from enum zetachain.zetacore.crosschain.CctxStatus + */ +export declare enum CctxStatus { + /** + * some observer sees inbound tx + * + * @generated from enum value: PendingInbound = 0; + */ + PendingInbound = 0, + + /** + * super majority observer see inbound tx + * + * @generated from enum value: PendingOutbound = 1; + */ + PendingOutbound = 1, + + /** + * the corresponding outbound tx is mined + * + * @generated from enum value: OutboundMined = 3; + */ + OutboundMined = 3, + + /** + * outbound cannot succeed; should revert inbound + * + * @generated from enum value: PendingRevert = 4; + */ + PendingRevert = 4, + + /** + * inbound reverted. + * + * @generated from enum value: Reverted = 5; + */ + Reverted = 5, + + /** + * inbound tx error or invalid paramters and cannot revert; just abort + * + * @generated from enum value: Aborted = 6; + */ + Aborted = 6, +} + +/** + * @generated from message zetachain.zetacore.crosschain.InboundTxParams + */ +export declare class InboundTxParams extends Message { + /** + * this address is the immediate contract/EOA that calls the Connector.send() + * + * @generated from field: string sender = 1; + */ + sender: string; + + /** + * @generated from field: int64 sender_chain_id = 2; + */ + senderChainId: bigint; + + /** + * this address is the EOA that signs the inbound tx + * + * @generated from field: string tx_origin = 3; + */ + txOrigin: string; + + /** + * @generated from field: common.CoinType coin_type = 4; + */ + coinType: CoinType; + + /** + * for ERC20 coin type, the asset is an address of the ERC20 contract + * + * @generated from field: string asset = 5; + */ + asset: string; + + /** + * @generated from field: string amount = 6; + */ + amount: string; + + /** + * @generated from field: string inbound_tx_observed_hash = 7; + */ + inboundTxObservedHash: string; + + /** + * @generated from field: uint64 inbound_tx_observed_external_height = 8; + */ + inboundTxObservedExternalHeight: bigint; + + /** + * @generated from field: string inbound_tx_ballot_index = 9; + */ + inboundTxBallotIndex: string; + + /** + * @generated from field: uint64 inbound_tx_finalized_zeta_height = 10; + */ + inboundTxFinalizedZetaHeight: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.InboundTxParams"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): InboundTxParams; + + static fromJson(jsonValue: JsonValue, options?: Partial): InboundTxParams; + + static fromJsonString(jsonString: string, options?: Partial): InboundTxParams; + + static equals(a: InboundTxParams | PlainMessage | undefined, b: InboundTxParams | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.OutboundTxParams + */ +export declare class OutboundTxParams extends Message { + /** + * @generated from field: string receiver = 1; + */ + receiver: string; + + /** + * @generated from field: int64 receiver_chainId = 2; + */ + receiverChainId: bigint; + + /** + * @generated from field: common.CoinType coin_type = 3; + */ + coinType: CoinType; + + /** + * @generated from field: string amount = 4; + */ + amount: string; + + /** + * @generated from field: uint64 outbound_tx_tss_nonce = 5; + */ + outboundTxTssNonce: bigint; + + /** + * @generated from field: uint64 outbound_tx_gas_limit = 6; + */ + outboundTxGasLimit: bigint; + + /** + * @generated from field: string outbound_tx_gas_price = 7; + */ + outboundTxGasPrice: string; + + /** + * the above are commands for zetaclients + * the following fields are used when the outbound tx is mined + * + * @generated from field: string outbound_tx_hash = 8; + */ + outboundTxHash: string; + + /** + * @generated from field: string outbound_tx_ballot_index = 9; + */ + outboundTxBallotIndex: string; + + /** + * @generated from field: uint64 outbound_tx_observed_external_height = 10; + */ + outboundTxObservedExternalHeight: bigint; + + /** + * @generated from field: uint64 outbound_tx_gas_used = 20; + */ + outboundTxGasUsed: bigint; + + /** + * @generated from field: string outbound_tx_effective_gas_price = 21; + */ + outboundTxEffectiveGasPrice: string; + + /** + * @generated from field: uint64 outbound_tx_effective_gas_limit = 22; + */ + outboundTxEffectiveGasLimit: bigint; + + /** + * @generated from field: string tss_pubkey = 11; + */ + tssPubkey: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.OutboundTxParams"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): OutboundTxParams; + + static fromJson(jsonValue: JsonValue, options?: Partial): OutboundTxParams; + + static fromJsonString(jsonString: string, options?: Partial): OutboundTxParams; + + static equals(a: OutboundTxParams | PlainMessage | undefined, b: OutboundTxParams | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.Status + */ +export declare class Status extends Message { + /** + * @generated from field: zetachain.zetacore.crosschain.CctxStatus status = 1; + */ + status: CctxStatus; + + /** + * @generated from field: string status_message = 2; + */ + statusMessage: string; + + /** + * @generated from field: int64 lastUpdate_timestamp = 3; + */ + lastUpdateTimestamp: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.Status"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Status; + + static fromJson(jsonValue: JsonValue, options?: Partial): Status; + + static fromJsonString(jsonString: string, options?: Partial): Status; + + static equals(a: Status | PlainMessage | undefined, b: Status | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.CrossChainTx + */ +export declare class CrossChainTx extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: string index = 2; + */ + index: string; + + /** + * @generated from field: string zeta_fees = 5; + */ + zetaFees: string; + + /** + * Not used by protocol , just relayed across + * + * @generated from field: string relayed_message = 6; + */ + relayedMessage: string; + + /** + * @generated from field: zetachain.zetacore.crosschain.Status cctx_status = 8; + */ + cctxStatus?: Status; + + /** + * @generated from field: zetachain.zetacore.crosschain.InboundTxParams inbound_tx_params = 9; + */ + inboundTxParams?: InboundTxParams; + + /** + * @generated from field: repeated zetachain.zetacore.crosschain.OutboundTxParams outbound_tx_params = 10; + */ + outboundTxParams: OutboundTxParams[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.CrossChainTx"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): CrossChainTx; + + static fromJson(jsonValue: JsonValue, options?: Partial): CrossChainTx; + + static fromJsonString(jsonString: string, options?: Partial): CrossChainTx; + + static equals(a: CrossChainTx | PlainMessage | undefined, b: CrossChainTx | PlainMessage | undefined): boolean; +} + diff --git a/typescript/crosschain/events_pb.d.ts b/typescript/crosschain/events_pb.d.ts new file mode 100644 index 0000000000..4bcfde46e6 --- /dev/null +++ b/typescript/crosschain/events_pb.d.ts @@ -0,0 +1,293 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file crosschain/events.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.crosschain.EventInboundFinalized + */ +export declare class EventInboundFinalized extends Message { + /** + * @generated from field: string msg_type_url = 1; + */ + msgTypeUrl: string; + + /** + * @generated from field: string cctx_index = 2; + */ + cctxIndex: string; + + /** + * @generated from field: string sender = 3; + */ + sender: string; + + /** + * @generated from field: string tx_orgin = 4; + */ + txOrgin: string; + + /** + * @generated from field: string asset = 5; + */ + asset: string; + + /** + * @generated from field: string in_tx_hash = 6; + */ + inTxHash: string; + + /** + * @generated from field: string in_block_height = 7; + */ + inBlockHeight: string; + + /** + * @generated from field: string receiver = 8; + */ + receiver: string; + + /** + * @generated from field: string receiver_chain = 9; + */ + receiverChain: string; + + /** + * @generated from field: string amount = 10; + */ + amount: string; + + /** + * @generated from field: string relayed_message = 11; + */ + relayedMessage: string; + + /** + * @generated from field: string new_status = 12; + */ + newStatus: string; + + /** + * @generated from field: string status_message = 13; + */ + statusMessage: string; + + /** + * @generated from field: string sender_chain = 14; + */ + senderChain: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.EventInboundFinalized"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): EventInboundFinalized; + + static fromJson(jsonValue: JsonValue, options?: Partial): EventInboundFinalized; + + static fromJsonString(jsonString: string, options?: Partial): EventInboundFinalized; + + static equals(a: EventInboundFinalized | PlainMessage | undefined, b: EventInboundFinalized | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.EventZrcWithdrawCreated + */ +export declare class EventZrcWithdrawCreated extends Message { + /** + * @generated from field: string msg_type_url = 1; + */ + msgTypeUrl: string; + + /** + * @generated from field: string cctx_index = 2; + */ + cctxIndex: string; + + /** + * @generated from field: string sender = 3; + */ + sender: string; + + /** + * @generated from field: string sender_chain = 4; + */ + senderChain: string; + + /** + * @generated from field: string in_tx_hash = 5; + */ + inTxHash: string; + + /** + * @generated from field: string receiver = 6; + */ + receiver: string; + + /** + * @generated from field: string receiver_chain = 7; + */ + receiverChain: string; + + /** + * @generated from field: string amount = 8; + */ + amount: string; + + /** + * @generated from field: string new_status = 9; + */ + newStatus: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.EventZrcWithdrawCreated"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): EventZrcWithdrawCreated; + + static fromJson(jsonValue: JsonValue, options?: Partial): EventZrcWithdrawCreated; + + static fromJsonString(jsonString: string, options?: Partial): EventZrcWithdrawCreated; + + static equals(a: EventZrcWithdrawCreated | PlainMessage | undefined, b: EventZrcWithdrawCreated | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.EventZetaWithdrawCreated + */ +export declare class EventZetaWithdrawCreated extends Message { + /** + * @generated from field: string msg_type_url = 1; + */ + msgTypeUrl: string; + + /** + * @generated from field: string cctx_index = 2; + */ + cctxIndex: string; + + /** + * @generated from field: string sender = 3; + */ + sender: string; + + /** + * @generated from field: string in_tx_hash = 4; + */ + inTxHash: string; + + /** + * @generated from field: string new_status = 5; + */ + newStatus: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.EventZetaWithdrawCreated"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): EventZetaWithdrawCreated; + + static fromJson(jsonValue: JsonValue, options?: Partial): EventZetaWithdrawCreated; + + static fromJsonString(jsonString: string, options?: Partial): EventZetaWithdrawCreated; + + static equals(a: EventZetaWithdrawCreated | PlainMessage | undefined, b: EventZetaWithdrawCreated | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.EventOutboundFailure + */ +export declare class EventOutboundFailure extends Message { + /** + * @generated from field: string msg_type_url = 1; + */ + msgTypeUrl: string; + + /** + * @generated from field: string cctx_index = 2; + */ + cctxIndex: string; + + /** + * @generated from field: string old_status = 3; + */ + oldStatus: string; + + /** + * @generated from field: string new_status = 4; + */ + newStatus: string; + + /** + * @generated from field: string value_received = 5; + */ + valueReceived: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.EventOutboundFailure"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): EventOutboundFailure; + + static fromJson(jsonValue: JsonValue, options?: Partial): EventOutboundFailure; + + static fromJsonString(jsonString: string, options?: Partial): EventOutboundFailure; + + static equals(a: EventOutboundFailure | PlainMessage | undefined, b: EventOutboundFailure | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.EventOutboundSuccess + */ +export declare class EventOutboundSuccess extends Message { + /** + * @generated from field: string msg_type_url = 1; + */ + msgTypeUrl: string; + + /** + * @generated from field: string cctx_index = 2; + */ + cctxIndex: string; + + /** + * @generated from field: string old_status = 3; + */ + oldStatus: string; + + /** + * @generated from field: string new_status = 4; + */ + newStatus: string; + + /** + * @generated from field: string value_received = 5; + */ + valueReceived: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.EventOutboundSuccess"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): EventOutboundSuccess; + + static fromJson(jsonValue: JsonValue, options?: Partial): EventOutboundSuccess; + + static fromJsonString(jsonString: string, options?: Partial): EventOutboundSuccess; + + static equals(a: EventOutboundSuccess | PlainMessage | undefined, b: EventOutboundSuccess | PlainMessage | undefined): boolean; +} + diff --git a/typescript/crosschain/gas_price_pb.d.ts b/typescript/crosschain/gas_price_pb.d.ts new file mode 100644 index 0000000000..cd05e2a8dd --- /dev/null +++ b/typescript/crosschain/gas_price_pb.d.ts @@ -0,0 +1,62 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file crosschain/gas_price.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.crosschain.GasPrice + */ +export declare class GasPrice extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: string index = 2; + */ + index: string; + + /** + * @generated from field: int64 chain_id = 3; + */ + chainId: bigint; + + /** + * @generated from field: repeated string signers = 4; + */ + signers: string[]; + + /** + * @generated from field: repeated uint64 block_nums = 5; + */ + blockNums: bigint[]; + + /** + * @generated from field: repeated uint64 prices = 6; + */ + prices: bigint[]; + + /** + * @generated from field: uint64 median_index = 7; + */ + medianIndex: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.GasPrice"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): GasPrice; + + static fromJson(jsonValue: JsonValue, options?: Partial): GasPrice; + + static fromJsonString(jsonString: string, options?: Partial): GasPrice; + + static equals(a: GasPrice | PlainMessage | undefined, b: GasPrice | PlainMessage | undefined): boolean; +} + diff --git a/typescript/crosschain/genesis_pb.d.ts b/typescript/crosschain/genesis_pb.d.ts new file mode 100644 index 0000000000..b08be54a4a --- /dev/null +++ b/typescript/crosschain/genesis_pb.d.ts @@ -0,0 +1,88 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file crosschain/genesis.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { Params } from "./params_pb.js"; +import type { OutTxTracker } from "./out_tx_tracker_pb.js"; +import type { TSS } from "./tss_pb.js"; +import type { GasPrice } from "./gas_price_pb.js"; +import type { ChainNonces } from "./chain_nonces_pb.js"; +import type { CrossChainTx } from "./cross_chain_tx_pb.js"; +import type { LastBlockHeight } from "./last_block_height_pb.js"; +import type { InTxHashToCctx } from "./in_tx_hash_to_cctx_pb.js"; +import type { InTxTracker } from "./in_tx_tracker_pb.js"; + +/** + * GenesisState defines the metacore module's genesis state. + * + * @generated from message zetachain.zetacore.crosschain.GenesisState + */ +export declare class GenesisState extends Message { + /** + * @generated from field: zetachain.zetacore.crosschain.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated zetachain.zetacore.crosschain.OutTxTracker outTxTrackerList = 2; + */ + outTxTrackerList: OutTxTracker[]; + + /** + * @generated from field: zetachain.zetacore.crosschain.TSS tss = 4; + */ + tss?: TSS; + + /** + * @generated from field: repeated zetachain.zetacore.crosschain.GasPrice gasPriceList = 5; + */ + gasPriceList: GasPrice[]; + + /** + * @generated from field: repeated zetachain.zetacore.crosschain.ChainNonces chainNoncesList = 6; + */ + chainNoncesList: ChainNonces[]; + + /** + * @generated from field: repeated zetachain.zetacore.crosschain.CrossChainTx CrossChainTxs = 7; + */ + CrossChainTxs: CrossChainTx[]; + + /** + * @generated from field: repeated zetachain.zetacore.crosschain.LastBlockHeight lastBlockHeightList = 8; + */ + lastBlockHeightList: LastBlockHeight[]; + + /** + * @generated from field: repeated zetachain.zetacore.crosschain.InTxHashToCctx inTxHashToCctxList = 9; + */ + inTxHashToCctxList: InTxHashToCctx[]; + + /** + * @generated from field: repeated zetachain.zetacore.crosschain.TSS tss_history = 10; + */ + tssHistory: TSS[]; + + /** + * @generated from field: repeated zetachain.zetacore.crosschain.InTxTracker in_tx_tracker_list = 11; + */ + inTxTrackerList: InTxTracker[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.GenesisState"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState; + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState; + + static fromJsonString(jsonString: string, options?: Partial): GenesisState; + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean; +} + diff --git a/typescript/crosschain/in_tx_hash_to_cctx_pb.d.ts b/typescript/crosschain/in_tx_hash_to_cctx_pb.d.ts new file mode 100644 index 0000000000..5505abd6a4 --- /dev/null +++ b/typescript/crosschain/in_tx_hash_to_cctx_pb.d.ts @@ -0,0 +1,37 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file crosschain/in_tx_hash_to_cctx.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.crosschain.InTxHashToCctx + */ +export declare class InTxHashToCctx extends Message { + /** + * @generated from field: string in_tx_hash = 1; + */ + inTxHash: string; + + /** + * @generated from field: repeated string cctx_index = 2; + */ + cctxIndex: string[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.InTxHashToCctx"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): InTxHashToCctx; + + static fromJson(jsonValue: JsonValue, options?: Partial): InTxHashToCctx; + + static fromJsonString(jsonString: string, options?: Partial): InTxHashToCctx; + + static equals(a: InTxHashToCctx | PlainMessage | undefined, b: InTxHashToCctx | PlainMessage | undefined): boolean; +} + diff --git a/typescript/crosschain/in_tx_tracker_pb.d.ts b/typescript/crosschain/in_tx_tracker_pb.d.ts new file mode 100644 index 0000000000..d280f82524 --- /dev/null +++ b/typescript/crosschain/in_tx_tracker_pb.d.ts @@ -0,0 +1,43 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file crosschain/in_tx_tracker.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { CoinType } from "../common/common_pb.js"; + +/** + * @generated from message zetachain.zetacore.crosschain.InTxTracker + */ +export declare class InTxTracker extends Message { + /** + * @generated from field: int64 chain_id = 1; + */ + chainId: bigint; + + /** + * @generated from field: string tx_hash = 2; + */ + txHash: string; + + /** + * @generated from field: common.CoinType coin_type = 3; + */ + coinType: CoinType; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.InTxTracker"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): InTxTracker; + + static fromJson(jsonValue: JsonValue, options?: Partial): InTxTracker; + + static fromJsonString(jsonString: string, options?: Partial): InTxTracker; + + static equals(a: InTxTracker | PlainMessage | undefined, b: InTxTracker | PlainMessage | undefined): boolean; +} + diff --git a/typescript/crosschain/index.d.ts b/typescript/crosschain/index.d.ts new file mode 100644 index 0000000000..f788e6e87e --- /dev/null +++ b/typescript/crosschain/index.d.ts @@ -0,0 +1,14 @@ +export * from "./chain_nonces_pb"; +export * from "./cross_chain_tx_pb"; +export * from "./events_pb"; +export * from "./gas_price_pb"; +export * from "./genesis_pb"; +export * from "./in_tx_hash_to_cctx_pb"; +export * from "./in_tx_tracker_pb"; +export * from "./last_block_height_pb"; +export * from "./nonce_to_cctx_pb"; +export * from "./out_tx_tracker_pb"; +export * from "./params_pb"; +export * from "./query_pb"; +export * from "./tss_pb"; +export * from "./tx_pb"; diff --git a/typescript/crosschain/last_block_height_pb.d.ts b/typescript/crosschain/last_block_height_pb.d.ts new file mode 100644 index 0000000000..f6c454ff33 --- /dev/null +++ b/typescript/crosschain/last_block_height_pb.d.ts @@ -0,0 +1,52 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file crosschain/last_block_height.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.crosschain.LastBlockHeight + */ +export declare class LastBlockHeight extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: string index = 2; + */ + index: string; + + /** + * @generated from field: string chain = 3; + */ + chain: string; + + /** + * @generated from field: uint64 lastSendHeight = 4; + */ + lastSendHeight: bigint; + + /** + * @generated from field: uint64 lastReceiveHeight = 5; + */ + lastReceiveHeight: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.LastBlockHeight"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): LastBlockHeight; + + static fromJson(jsonValue: JsonValue, options?: Partial): LastBlockHeight; + + static fromJsonString(jsonString: string, options?: Partial): LastBlockHeight; + + static equals(a: LastBlockHeight | PlainMessage | undefined, b: LastBlockHeight | PlainMessage | undefined): boolean; +} + diff --git a/typescript/crosschain/nonce_to_cctx_pb.d.ts b/typescript/crosschain/nonce_to_cctx_pb.d.ts new file mode 100644 index 0000000000..e2a75c5aa8 --- /dev/null +++ b/typescript/crosschain/nonce_to_cctx_pb.d.ts @@ -0,0 +1,90 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file crosschain/nonce_to_cctx.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * store key is tss+chainid+nonce + * + * @generated from message zetachain.zetacore.crosschain.NonceToCctx + */ +export declare class NonceToCctx extends Message { + /** + * @generated from field: int64 chain_id = 1; + */ + chainId: bigint; + + /** + * @generated from field: int64 nonce = 2; + */ + nonce: bigint; + + /** + * @generated from field: string cctxIndex = 3; + */ + cctxIndex: string; + + /** + * @generated from field: string tss = 4; + */ + tss: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.NonceToCctx"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): NonceToCctx; + + static fromJson(jsonValue: JsonValue, options?: Partial): NonceToCctx; + + static fromJsonString(jsonString: string, options?: Partial): NonceToCctx; + + static equals(a: NonceToCctx | PlainMessage | undefined, b: NonceToCctx | PlainMessage | undefined): boolean; +} + +/** + * store key is tss+chainid + * + * @generated from message zetachain.zetacore.crosschain.PendingNonces + */ +export declare class PendingNonces extends Message { + /** + * @generated from field: int64 nonce_low = 1; + */ + nonceLow: bigint; + + /** + * @generated from field: int64 nonce_high = 2; + */ + nonceHigh: bigint; + + /** + * @generated from field: int64 chain_id = 3; + */ + chainId: bigint; + + /** + * @generated from field: string tss = 4; + */ + tss: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.PendingNonces"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): PendingNonces; + + static fromJson(jsonValue: JsonValue, options?: Partial): PendingNonces; + + static fromJsonString(jsonString: string, options?: Partial): PendingNonces; + + static equals(a: PendingNonces | PlainMessage | undefined, b: PendingNonces | PlainMessage | undefined): boolean; +} + diff --git a/typescript/crosschain/out_tx_tracker_pb.d.ts b/typescript/crosschain/out_tx_tracker_pb.d.ts new file mode 100644 index 0000000000..75286b5b5b --- /dev/null +++ b/typescript/crosschain/out_tx_tracker_pb.d.ts @@ -0,0 +1,83 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file crosschain/out_tx_tracker.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.crosschain.TxHashList + */ +export declare class TxHashList extends Message { + /** + * @generated from field: string tx_hash = 1; + */ + txHash: string; + + /** + * @generated from field: string tx_signer = 2; + */ + txSigner: string; + + /** + * @generated from field: bool proved = 3; + */ + proved: boolean; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.TxHashList"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): TxHashList; + + static fromJson(jsonValue: JsonValue, options?: Partial): TxHashList; + + static fromJsonString(jsonString: string, options?: Partial): TxHashList; + + static equals(a: TxHashList | PlainMessage | undefined, b: TxHashList | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.OutTxTracker + */ +export declare class OutTxTracker extends Message { + /** + * format: "chain-nonce" + * + * @generated from field: string index = 1; + */ + index: string; + + /** + * @generated from field: int64 chain_id = 2; + */ + chainId: bigint; + + /** + * @generated from field: uint64 nonce = 3; + */ + nonce: bigint; + + /** + * @generated from field: repeated zetachain.zetacore.crosschain.TxHashList hash_list = 4; + */ + hashList: TxHashList[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.OutTxTracker"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): OutTxTracker; + + static fromJson(jsonValue: JsonValue, options?: Partial): OutTxTracker; + + static fromJsonString(jsonString: string, options?: Partial): OutTxTracker; + + static equals(a: OutTxTracker | PlainMessage | undefined, b: OutTxTracker | PlainMessage | undefined): boolean; +} + diff --git a/typescript/crosschain/params_pb.d.ts b/typescript/crosschain/params_pb.d.ts new file mode 100644 index 0000000000..e3c135725c --- /dev/null +++ b/typescript/crosschain/params_pb.d.ts @@ -0,0 +1,34 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file crosschain/params.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message zetachain.zetacore.crosschain.Params + */ +export declare class Params extends Message { + /** + * @generated from field: bool enabled = 1; + */ + enabled: boolean; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.Params"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Params; + + static fromJson(jsonValue: JsonValue, options?: Partial): Params; + + static fromJsonString(jsonString: string, options?: Partial): Params; + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean; +} + diff --git a/typescript/crosschain/query_pb.d.ts b/typescript/crosschain/query_pb.d.ts new file mode 100644 index 0000000000..0446c27b90 --- /dev/null +++ b/typescript/crosschain/query_pb.d.ts @@ -0,0 +1,1797 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file crosschain/query.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { TSS } from "./tss_pb.js"; +import type { Params } from "./params_pb.js"; +import type { OutTxTracker } from "./out_tx_tracker_pb.js"; +import type { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination_pb.js"; +import type { InTxTracker } from "./in_tx_tracker_pb.js"; +import type { InTxHashToCctx } from "./in_tx_hash_to_cctx_pb.js"; +import type { CrossChainTx } from "./cross_chain_tx_pb.js"; +import type { GasPrice } from "./gas_price_pb.js"; +import type { ChainNonces } from "./chain_nonces_pb.js"; +import type { PendingNonces } from "./nonce_to_cctx_pb.js"; +import type { LastBlockHeight } from "./last_block_height_pb.js"; + +/** + * @generated from message zetachain.zetacore.crosschain.QueryTssHistoryRequest + */ +export declare class QueryTssHistoryRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryTssHistoryRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTssHistoryRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTssHistoryRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryTssHistoryRequest; + + static equals(a: QueryTssHistoryRequest | PlainMessage | undefined, b: QueryTssHistoryRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryTssHistoryResponse + */ +export declare class QueryTssHistoryResponse extends Message { + /** + * @generated from field: repeated zetachain.zetacore.crosschain.TSS tss_list = 1; + */ + tssList: TSS[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryTssHistoryResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryTssHistoryResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryTssHistoryResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryTssHistoryResponse; + + static equals(a: QueryTssHistoryResponse | PlainMessage | undefined, b: QueryTssHistoryResponse | PlainMessage | undefined): boolean; +} + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message zetachain.zetacore.crosschain.QueryParamsRequest + */ +export declare class QueryParamsRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryParamsRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest; + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean; +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message zetachain.zetacore.crosschain.QueryParamsResponse + */ +export declare class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: zetachain.zetacore.crosschain.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryParamsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse; + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetOutTxTrackerRequest + */ +export declare class QueryGetOutTxTrackerRequest extends Message { + /** + * @generated from field: int64 chainID = 1; + */ + chainID: bigint; + + /** + * @generated from field: uint64 nonce = 2; + */ + nonce: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryGetOutTxTrackerRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetOutTxTrackerRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetOutTxTrackerRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetOutTxTrackerRequest; + + static equals(a: QueryGetOutTxTrackerRequest | PlainMessage | undefined, b: QueryGetOutTxTrackerRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetOutTxTrackerResponse + */ +export declare class QueryGetOutTxTrackerResponse extends Message { + /** + * @generated from field: zetachain.zetacore.crosschain.OutTxTracker outTxTracker = 1; + */ + outTxTracker?: OutTxTracker; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryGetOutTxTrackerResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetOutTxTrackerResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetOutTxTrackerResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetOutTxTrackerResponse; + + static equals(a: QueryGetOutTxTrackerResponse | PlainMessage | undefined, b: QueryGetOutTxTrackerResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllOutTxTrackerRequest + */ +export declare class QueryAllOutTxTrackerRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryAllOutTxTrackerRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllOutTxTrackerRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllOutTxTrackerRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllOutTxTrackerRequest; + + static equals(a: QueryAllOutTxTrackerRequest | PlainMessage | undefined, b: QueryAllOutTxTrackerRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllOutTxTrackerResponse + */ +export declare class QueryAllOutTxTrackerResponse extends Message { + /** + * @generated from field: repeated zetachain.zetacore.crosschain.OutTxTracker outTxTracker = 1; + */ + outTxTracker: OutTxTracker[]; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryAllOutTxTrackerResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllOutTxTrackerResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllOutTxTrackerResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllOutTxTrackerResponse; + + static equals(a: QueryAllOutTxTrackerResponse | PlainMessage | undefined, b: QueryAllOutTxTrackerResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllOutTxTrackerByChainRequest + */ +export declare class QueryAllOutTxTrackerByChainRequest extends Message { + /** + * @generated from field: int64 chain = 1; + */ + chain: bigint; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryAllOutTxTrackerByChainRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllOutTxTrackerByChainRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllOutTxTrackerByChainRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllOutTxTrackerByChainRequest; + + static equals(a: QueryAllOutTxTrackerByChainRequest | PlainMessage | undefined, b: QueryAllOutTxTrackerByChainRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllOutTxTrackerByChainResponse + */ +export declare class QueryAllOutTxTrackerByChainResponse extends Message { + /** + * @generated from field: repeated zetachain.zetacore.crosschain.OutTxTracker outTxTracker = 1; + */ + outTxTracker: OutTxTracker[]; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryAllOutTxTrackerByChainResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllOutTxTrackerByChainResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllOutTxTrackerByChainResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllOutTxTrackerByChainResponse; + + static equals(a: QueryAllOutTxTrackerByChainResponse | PlainMessage | undefined, b: QueryAllOutTxTrackerByChainResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllInTxTrackerByChainRequest + */ +export declare class QueryAllInTxTrackerByChainRequest extends Message { + /** + * @generated from field: int64 chain_id = 1; + */ + chainId: bigint; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryAllInTxTrackerByChainRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllInTxTrackerByChainRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllInTxTrackerByChainRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllInTxTrackerByChainRequest; + + static equals(a: QueryAllInTxTrackerByChainRequest | PlainMessage | undefined, b: QueryAllInTxTrackerByChainRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllInTxTrackerByChainResponse + */ +export declare class QueryAllInTxTrackerByChainResponse extends Message { + /** + * @generated from field: repeated zetachain.zetacore.crosschain.InTxTracker inTxTracker = 1; + */ + inTxTracker: InTxTracker[]; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryAllInTxTrackerByChainResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllInTxTrackerByChainResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllInTxTrackerByChainResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllInTxTrackerByChainResponse; + + static equals(a: QueryAllInTxTrackerByChainResponse | PlainMessage | undefined, b: QueryAllInTxTrackerByChainResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllInTxTrackersRequest + */ +export declare class QueryAllInTxTrackersRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryAllInTxTrackersRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllInTxTrackersRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllInTxTrackersRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllInTxTrackersRequest; + + static equals(a: QueryAllInTxTrackersRequest | PlainMessage | undefined, b: QueryAllInTxTrackersRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllInTxTrackersResponse + */ +export declare class QueryAllInTxTrackersResponse extends Message { + /** + * @generated from field: repeated zetachain.zetacore.crosschain.InTxTracker inTxTracker = 1; + */ + inTxTracker: InTxTracker[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryAllInTxTrackersResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllInTxTrackersResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllInTxTrackersResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllInTxTrackersResponse; + + static equals(a: QueryAllInTxTrackersResponse | PlainMessage | undefined, b: QueryAllInTxTrackersResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetInTxHashToCctxRequest + */ +export declare class QueryGetInTxHashToCctxRequest extends Message { + /** + * @generated from field: string inTxHash = 1; + */ + inTxHash: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryGetInTxHashToCctxRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetInTxHashToCctxRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetInTxHashToCctxRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetInTxHashToCctxRequest; + + static equals(a: QueryGetInTxHashToCctxRequest | PlainMessage | undefined, b: QueryGetInTxHashToCctxRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetInTxHashToCctxResponse + */ +export declare class QueryGetInTxHashToCctxResponse extends Message { + /** + * @generated from field: zetachain.zetacore.crosschain.InTxHashToCctx inTxHashToCctx = 1; + */ + inTxHashToCctx?: InTxHashToCctx; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryGetInTxHashToCctxResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetInTxHashToCctxResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetInTxHashToCctxResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetInTxHashToCctxResponse; + + static equals(a: QueryGetInTxHashToCctxResponse | PlainMessage | undefined, b: QueryGetInTxHashToCctxResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryInTxHashToCctxDataRequest + */ +export declare class QueryInTxHashToCctxDataRequest extends Message { + /** + * @generated from field: string inTxHash = 1; + */ + inTxHash: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryInTxHashToCctxDataRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInTxHashToCctxDataRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInTxHashToCctxDataRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryInTxHashToCctxDataRequest; + + static equals(a: QueryInTxHashToCctxDataRequest | PlainMessage | undefined, b: QueryInTxHashToCctxDataRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryInTxHashToCctxDataResponse + */ +export declare class QueryInTxHashToCctxDataResponse extends Message { + /** + * @generated from field: repeated zetachain.zetacore.crosschain.CrossChainTx CrossChainTxs = 1; + */ + CrossChainTxs: CrossChainTx[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryInTxHashToCctxDataResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryInTxHashToCctxDataResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryInTxHashToCctxDataResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryInTxHashToCctxDataResponse; + + static equals(a: QueryInTxHashToCctxDataResponse | PlainMessage | undefined, b: QueryInTxHashToCctxDataResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllInTxHashToCctxRequest + */ +export declare class QueryAllInTxHashToCctxRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryAllInTxHashToCctxRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllInTxHashToCctxRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllInTxHashToCctxRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllInTxHashToCctxRequest; + + static equals(a: QueryAllInTxHashToCctxRequest | PlainMessage | undefined, b: QueryAllInTxHashToCctxRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllInTxHashToCctxResponse + */ +export declare class QueryAllInTxHashToCctxResponse extends Message { + /** + * @generated from field: repeated zetachain.zetacore.crosschain.InTxHashToCctx inTxHashToCctx = 1; + */ + inTxHashToCctx: InTxHashToCctx[]; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryAllInTxHashToCctxResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllInTxHashToCctxResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllInTxHashToCctxResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllInTxHashToCctxResponse; + + static equals(a: QueryAllInTxHashToCctxResponse | PlainMessage | undefined, b: QueryAllInTxHashToCctxResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetTssAddressRequest + */ +export declare class QueryGetTssAddressRequest extends Message { + /** + * @generated from field: string tss_pub_key = 1; + */ + tssPubKey: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryGetTssAddressRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetTssAddressRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetTssAddressRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetTssAddressRequest; + + static equals(a: QueryGetTssAddressRequest | PlainMessage | undefined, b: QueryGetTssAddressRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetTssAddressResponse + */ +export declare class QueryGetTssAddressResponse extends Message { + /** + * @generated from field: string eth = 1; + */ + eth: string; + + /** + * @generated from field: string btc = 2; + */ + btc: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryGetTssAddressResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetTssAddressResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetTssAddressResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetTssAddressResponse; + + static equals(a: QueryGetTssAddressResponse | PlainMessage | undefined, b: QueryGetTssAddressResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetTSSRequest + */ +export declare class QueryGetTSSRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryGetTSSRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetTSSRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetTSSRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetTSSRequest; + + static equals(a: QueryGetTSSRequest | PlainMessage | undefined, b: QueryGetTSSRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetTSSResponse + */ +export declare class QueryGetTSSResponse extends Message { + /** + * @generated from field: zetachain.zetacore.crosschain.TSS TSS = 1; + */ + TSS?: TSS; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryGetTSSResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetTSSResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetTSSResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetTSSResponse; + + static equals(a: QueryGetTSSResponse | PlainMessage | undefined, b: QueryGetTSSResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetGasPriceRequest + */ +export declare class QueryGetGasPriceRequest extends Message { + /** + * @generated from field: string index = 1; + */ + index: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryGetGasPriceRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetGasPriceRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetGasPriceRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetGasPriceRequest; + + static equals(a: QueryGetGasPriceRequest | PlainMessage | undefined, b: QueryGetGasPriceRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetGasPriceResponse + */ +export declare class QueryGetGasPriceResponse extends Message { + /** + * @generated from field: zetachain.zetacore.crosschain.GasPrice GasPrice = 1; + */ + GasPrice?: GasPrice; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryGetGasPriceResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetGasPriceResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetGasPriceResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetGasPriceResponse; + + static equals(a: QueryGetGasPriceResponse | PlainMessage | undefined, b: QueryGetGasPriceResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllGasPriceRequest + */ +export declare class QueryAllGasPriceRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryAllGasPriceRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllGasPriceRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllGasPriceRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllGasPriceRequest; + + static equals(a: QueryAllGasPriceRequest | PlainMessage | undefined, b: QueryAllGasPriceRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllGasPriceResponse + */ +export declare class QueryAllGasPriceResponse extends Message { + /** + * @generated from field: repeated zetachain.zetacore.crosschain.GasPrice GasPrice = 1; + */ + GasPrice: GasPrice[]; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryAllGasPriceResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllGasPriceResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllGasPriceResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllGasPriceResponse; + + static equals(a: QueryAllGasPriceResponse | PlainMessage | undefined, b: QueryAllGasPriceResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetChainNoncesRequest + */ +export declare class QueryGetChainNoncesRequest extends Message { + /** + * @generated from field: string index = 1; + */ + index: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryGetChainNoncesRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetChainNoncesRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetChainNoncesRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetChainNoncesRequest; + + static equals(a: QueryGetChainNoncesRequest | PlainMessage | undefined, b: QueryGetChainNoncesRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetChainNoncesResponse + */ +export declare class QueryGetChainNoncesResponse extends Message { + /** + * @generated from field: zetachain.zetacore.crosschain.ChainNonces ChainNonces = 1; + */ + ChainNonces?: ChainNonces; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryGetChainNoncesResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetChainNoncesResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetChainNoncesResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetChainNoncesResponse; + + static equals(a: QueryGetChainNoncesResponse | PlainMessage | undefined, b: QueryGetChainNoncesResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllChainNoncesRequest + */ +export declare class QueryAllChainNoncesRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryAllChainNoncesRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllChainNoncesRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllChainNoncesRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllChainNoncesRequest; + + static equals(a: QueryAllChainNoncesRequest | PlainMessage | undefined, b: QueryAllChainNoncesRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllChainNoncesResponse + */ +export declare class QueryAllChainNoncesResponse extends Message { + /** + * @generated from field: repeated zetachain.zetacore.crosschain.ChainNonces ChainNonces = 1; + */ + ChainNonces: ChainNonces[]; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryAllChainNoncesResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllChainNoncesResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllChainNoncesResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllChainNoncesResponse; + + static equals(a: QueryAllChainNoncesResponse | PlainMessage | undefined, b: QueryAllChainNoncesResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllPendingNoncesRequest + */ +export declare class QueryAllPendingNoncesRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryAllPendingNoncesRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPendingNoncesRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPendingNoncesRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPendingNoncesRequest; + + static equals(a: QueryAllPendingNoncesRequest | PlainMessage | undefined, b: QueryAllPendingNoncesRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllPendingNoncesResponse + */ +export declare class QueryAllPendingNoncesResponse extends Message { + /** + * @generated from field: repeated zetachain.zetacore.crosschain.PendingNonces pending_nonces = 1; + */ + pendingNonces: PendingNonces[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryAllPendingNoncesResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllPendingNoncesResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllPendingNoncesResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllPendingNoncesResponse; + + static equals(a: QueryAllPendingNoncesResponse | PlainMessage | undefined, b: QueryAllPendingNoncesResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryPendingNoncesByChainRequest + */ +export declare class QueryPendingNoncesByChainRequest extends Message { + /** + * @generated from field: int64 chain_id = 1; + */ + chainId: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryPendingNoncesByChainRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPendingNoncesByChainRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPendingNoncesByChainRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryPendingNoncesByChainRequest; + + static equals(a: QueryPendingNoncesByChainRequest | PlainMessage | undefined, b: QueryPendingNoncesByChainRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryPendingNoncesByChainResponse + */ +export declare class QueryPendingNoncesByChainResponse extends Message { + /** + * @generated from field: zetachain.zetacore.crosschain.PendingNonces pending_nonces = 1; + */ + pendingNonces?: PendingNonces; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryPendingNoncesByChainResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryPendingNoncesByChainResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryPendingNoncesByChainResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryPendingNoncesByChainResponse; + + static equals(a: QueryPendingNoncesByChainResponse | PlainMessage | undefined, b: QueryPendingNoncesByChainResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetLastBlockHeightRequest + */ +export declare class QueryGetLastBlockHeightRequest extends Message { + /** + * @generated from field: string index = 1; + */ + index: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryGetLastBlockHeightRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetLastBlockHeightRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetLastBlockHeightRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetLastBlockHeightRequest; + + static equals(a: QueryGetLastBlockHeightRequest | PlainMessage | undefined, b: QueryGetLastBlockHeightRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetLastBlockHeightResponse + */ +export declare class QueryGetLastBlockHeightResponse extends Message { + /** + * @generated from field: zetachain.zetacore.crosschain.LastBlockHeight LastBlockHeight = 1; + */ + LastBlockHeight?: LastBlockHeight; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryGetLastBlockHeightResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetLastBlockHeightResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetLastBlockHeightResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetLastBlockHeightResponse; + + static equals(a: QueryGetLastBlockHeightResponse | PlainMessage | undefined, b: QueryGetLastBlockHeightResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllLastBlockHeightRequest + */ +export declare class QueryAllLastBlockHeightRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryAllLastBlockHeightRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllLastBlockHeightRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllLastBlockHeightRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllLastBlockHeightRequest; + + static equals(a: QueryAllLastBlockHeightRequest | PlainMessage | undefined, b: QueryAllLastBlockHeightRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllLastBlockHeightResponse + */ +export declare class QueryAllLastBlockHeightResponse extends Message { + /** + * @generated from field: repeated zetachain.zetacore.crosschain.LastBlockHeight LastBlockHeight = 1; + */ + LastBlockHeight: LastBlockHeight[]; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryAllLastBlockHeightResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllLastBlockHeightResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllLastBlockHeightResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllLastBlockHeightResponse; + + static equals(a: QueryAllLastBlockHeightResponse | PlainMessage | undefined, b: QueryAllLastBlockHeightResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetCctxRequest + */ +export declare class QueryGetCctxRequest extends Message { + /** + * @generated from field: string index = 1; + */ + index: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryGetCctxRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetCctxRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetCctxRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetCctxRequest; + + static equals(a: QueryGetCctxRequest | PlainMessage | undefined, b: QueryGetCctxRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetCctxByNonceRequest + */ +export declare class QueryGetCctxByNonceRequest extends Message { + /** + * @generated from field: int64 chainID = 1; + */ + chainID: bigint; + + /** + * @generated from field: uint64 nonce = 2; + */ + nonce: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryGetCctxByNonceRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetCctxByNonceRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetCctxByNonceRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetCctxByNonceRequest; + + static equals(a: QueryGetCctxByNonceRequest | PlainMessage | undefined, b: QueryGetCctxByNonceRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetCctxResponse + */ +export declare class QueryGetCctxResponse extends Message { + /** + * @generated from field: zetachain.zetacore.crosschain.CrossChainTx CrossChainTx = 1; + */ + CrossChainTx?: CrossChainTx; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryGetCctxResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetCctxResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetCctxResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetCctxResponse; + + static equals(a: QueryGetCctxResponse | PlainMessage | undefined, b: QueryGetCctxResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllCctxRequest + */ +export declare class QueryAllCctxRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryAllCctxRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllCctxRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllCctxRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllCctxRequest; + + static equals(a: QueryAllCctxRequest | PlainMessage | undefined, b: QueryAllCctxRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllCctxResponse + */ +export declare class QueryAllCctxResponse extends Message { + /** + * @generated from field: repeated zetachain.zetacore.crosschain.CrossChainTx CrossChainTx = 1; + */ + CrossChainTx: CrossChainTx[]; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryAllCctxResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllCctxResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllCctxResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllCctxResponse; + + static equals(a: QueryAllCctxResponse | PlainMessage | undefined, b: QueryAllCctxResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllCctxPendingRequest + */ +export declare class QueryAllCctxPendingRequest extends Message { + /** + * @generated from field: int64 chain_id = 1; + */ + chainId: bigint; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryAllCctxPendingRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllCctxPendingRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllCctxPendingRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllCctxPendingRequest; + + static equals(a: QueryAllCctxPendingRequest | PlainMessage | undefined, b: QueryAllCctxPendingRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllCctxPendingResponse + */ +export declare class QueryAllCctxPendingResponse extends Message { + /** + * @generated from field: repeated zetachain.zetacore.crosschain.CrossChainTx CrossChainTx = 1; + */ + CrossChainTx: CrossChainTx[]; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryAllCctxPendingResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllCctxPendingResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllCctxPendingResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllCctxPendingResponse; + + static equals(a: QueryAllCctxPendingResponse | PlainMessage | undefined, b: QueryAllCctxPendingResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryLastZetaHeightRequest + */ +export declare class QueryLastZetaHeightRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryLastZetaHeightRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLastZetaHeightRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLastZetaHeightRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryLastZetaHeightRequest; + + static equals(a: QueryLastZetaHeightRequest | PlainMessage | undefined, b: QueryLastZetaHeightRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryLastZetaHeightResponse + */ +export declare class QueryLastZetaHeightResponse extends Message { + /** + * @generated from field: int64 Height = 1; + */ + Height: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryLastZetaHeightResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryLastZetaHeightResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryLastZetaHeightResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryLastZetaHeightResponse; + + static equals(a: QueryLastZetaHeightResponse | PlainMessage | undefined, b: QueryLastZetaHeightResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryConvertGasToZetaRequest + */ +export declare class QueryConvertGasToZetaRequest extends Message { + /** + * @generated from field: int64 chainId = 1; + */ + chainId: bigint; + + /** + * @generated from field: string gasLimit = 2; + */ + gasLimit: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryConvertGasToZetaRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConvertGasToZetaRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConvertGasToZetaRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryConvertGasToZetaRequest; + + static equals(a: QueryConvertGasToZetaRequest | PlainMessage | undefined, b: QueryConvertGasToZetaRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryConvertGasToZetaResponse + */ +export declare class QueryConvertGasToZetaResponse extends Message { + /** + * @generated from field: string outboundGasInZeta = 1; + */ + outboundGasInZeta: string; + + /** + * @generated from field: string protocolFeeInZeta = 2; + */ + protocolFeeInZeta: string; + + /** + * @generated from field: uint64 ZetaBlockHeight = 3; + */ + ZetaBlockHeight: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryConvertGasToZetaResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryConvertGasToZetaResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryConvertGasToZetaResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryConvertGasToZetaResponse; + + static equals(a: QueryConvertGasToZetaResponse | PlainMessage | undefined, b: QueryConvertGasToZetaResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryMessagePassingProtocolFeeRequest + */ +export declare class QueryMessagePassingProtocolFeeRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryMessagePassingProtocolFeeRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMessagePassingProtocolFeeRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMessagePassingProtocolFeeRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryMessagePassingProtocolFeeRequest; + + static equals(a: QueryMessagePassingProtocolFeeRequest | PlainMessage | undefined, b: QueryMessagePassingProtocolFeeRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryMessagePassingProtocolFeeResponse + */ +export declare class QueryMessagePassingProtocolFeeResponse extends Message { + /** + * @generated from field: string feeInZeta = 1; + */ + feeInZeta: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryMessagePassingProtocolFeeResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryMessagePassingProtocolFeeResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryMessagePassingProtocolFeeResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryMessagePassingProtocolFeeResponse; + + static equals(a: QueryMessagePassingProtocolFeeResponse | PlainMessage | undefined, b: QueryMessagePassingProtocolFeeResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryZEVMGetTransactionReceiptRequest + */ +export declare class QueryZEVMGetTransactionReceiptRequest extends Message { + /** + * @generated from field: string hash = 1; + */ + hash: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryZEVMGetTransactionReceiptRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryZEVMGetTransactionReceiptRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryZEVMGetTransactionReceiptRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryZEVMGetTransactionReceiptRequest; + + static equals(a: QueryZEVMGetTransactionReceiptRequest | PlainMessage | undefined, b: QueryZEVMGetTransactionReceiptRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryZEVMGetTransactionReceiptResponse + */ +export declare class QueryZEVMGetTransactionReceiptResponse extends Message { + /** + * @generated from field: string block_hash = 1; + */ + blockHash: string; + + /** + * @generated from field: string block_number = 2; + */ + blockNumber: string; + + /** + * @generated from field: string contract_address = 3; + */ + contractAddress: string; + + /** + * @generated from field: string cumulative_gas_used = 4; + */ + cumulativeGasUsed: string; + + /** + * @generated from field: string from = 5; + */ + from: string; + + /** + * @generated from field: string gas_used = 6; + */ + gasUsed: string; + + /** + * @generated from field: string logs_bloom = 7; + */ + logsBloom: string; + + /** + * @generated from field: string status = 8; + */ + status: string; + + /** + * @generated from field: string to = 9; + */ + to: string; + + /** + * @generated from field: string transaction_hash = 10; + */ + transactionHash: string; + + /** + * @generated from field: string transaction_index = 11; + */ + transactionIndex: string; + + /** + * @generated from field: repeated zetachain.zetacore.crosschain.Log logs = 12; + */ + logs: Log[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryZEVMGetTransactionReceiptResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryZEVMGetTransactionReceiptResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryZEVMGetTransactionReceiptResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryZEVMGetTransactionReceiptResponse; + + static equals(a: QueryZEVMGetTransactionReceiptResponse | PlainMessage | undefined, b: QueryZEVMGetTransactionReceiptResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.Log + */ +export declare class Log extends Message { + /** + * @generated from field: string address = 1; + */ + address: string; + + /** + * @generated from field: repeated string topics = 2; + */ + topics: string[]; + + /** + * @generated from field: string data = 3; + */ + data: string; + + /** + * sythetic fields + * + * @generated from field: uint64 block_number = 4; + */ + blockNumber: bigint; + + /** + * @generated from field: string transaction_hash = 5; + */ + transactionHash: string; + + /** + * @generated from field: uint64 transaction_index = 6; + */ + transactionIndex: bigint; + + /** + * @generated from field: string block_hash = 7; + */ + blockHash: string; + + /** + * @generated from field: uint64 log_index = 8; + */ + logIndex: bigint; + + /** + * @generated from field: bool removed = 9; + */ + removed: boolean; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.Log"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Log; + + static fromJson(jsonValue: JsonValue, options?: Partial): Log; + + static fromJsonString(jsonString: string, options?: Partial): Log; + + static equals(a: Log | PlainMessage | undefined, b: Log | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryZEVMGetTransactionRequest + */ +export declare class QueryZEVMGetTransactionRequest extends Message { + /** + * @generated from field: string hash = 1; + */ + hash: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryZEVMGetTransactionRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryZEVMGetTransactionRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryZEVMGetTransactionRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryZEVMGetTransactionRequest; + + static equals(a: QueryZEVMGetTransactionRequest | PlainMessage | undefined, b: QueryZEVMGetTransactionRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryZEVMGetTransactionResponse + */ +export declare class QueryZEVMGetTransactionResponse extends Message { + /** + * @generated from field: string block_hash = 1; + */ + blockHash: string; + + /** + * @generated from field: string block_number = 2; + */ + blockNumber: string; + + /** + * @generated from field: string from = 3; + */ + from: string; + + /** + * @generated from field: string gas = 4; + */ + gas: string; + + /** + * @generated from field: string gas_price = 5; + */ + gasPrice: string; + + /** + * @generated from field: string hash = 6; + */ + hash: string; + + /** + * @generated from field: string input = 7; + */ + input: string; + + /** + * @generated from field: string nonce = 8; + */ + nonce: string; + + /** + * @generated from field: string to = 9; + */ + to: string; + + /** + * @generated from field: string transaction_index = 10; + */ + transactionIndex: string; + + /** + * @generated from field: string value = 11; + */ + value: string; + + /** + * @generated from field: string type = 12; + */ + type: string; + + /** + * @generated from field: repeated string access_list = 13; + */ + accessList: string[]; + + /** + * @generated from field: string chain_id = 14; + */ + chainId: string; + + /** + * @generated from field: string v = 15; + */ + v: string; + + /** + * @generated from field: string r = 16; + */ + r: string; + + /** + * @generated from field: string s = 17; + */ + s: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryZEVMGetTransactionResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryZEVMGetTransactionResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryZEVMGetTransactionResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryZEVMGetTransactionResponse; + + static equals(a: QueryZEVMGetTransactionResponse | PlainMessage | undefined, b: QueryZEVMGetTransactionResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryZEVMGetBlockByNumberRequest + */ +export declare class QueryZEVMGetBlockByNumberRequest extends Message { + /** + * @generated from field: uint64 height = 1; + */ + height: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryZEVMGetBlockByNumberRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryZEVMGetBlockByNumberRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryZEVMGetBlockByNumberRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryZEVMGetBlockByNumberRequest; + + static equals(a: QueryZEVMGetBlockByNumberRequest | PlainMessage | undefined, b: QueryZEVMGetBlockByNumberRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryZEVMGetBlockByNumberResponse + */ +export declare class QueryZEVMGetBlockByNumberResponse extends Message { + /** + * @generated from field: string number = 1; + */ + number: string; + + /** + * @generated from field: string hash = 2; + */ + hash: string; + + /** + * @generated from field: string parent_hash = 3; + */ + parentHash: string; + + /** + * @generated from field: string nonce = 4; + */ + nonce: string; + + /** + * @generated from field: string sha3_uncles = 5; + */ + sha3Uncles: string; + + /** + * @generated from field: string logs_bloom = 6; + */ + logsBloom: string; + + /** + * @generated from field: string transactions_root = 7; + */ + transactionsRoot: string; + + /** + * @generated from field: string state_root = 8; + */ + stateRoot: string; + + /** + * @generated from field: string receipts_root = 9; + */ + receiptsRoot: string; + + /** + * @generated from field: string miner = 10; + */ + miner: string; + + /** + * @generated from field: string difficulty = 11; + */ + difficulty: string; + + /** + * @generated from field: string total_difficulty = 12; + */ + totalDifficulty: string; + + /** + * @generated from field: string extra_data = 13; + */ + extraData: string; + + /** + * @generated from field: string size = 14; + */ + size: string; + + /** + * @generated from field: string gas_limit = 15; + */ + gasLimit: string; + + /** + * @generated from field: string gas_used = 16; + */ + gasUsed: string; + + /** + * @generated from field: string timestamp = 17; + */ + timestamp: string; + + /** + * @generated from field: repeated string transactions = 18; + */ + transactions: string[]; + + /** + * @generated from field: repeated string uncles = 19; + */ + uncles: string[]; + + /** + * @generated from field: string base_fee_per_gas = 20; + */ + baseFeePerGas: string; + + /** + * @generated from field: string mix_hash = 21; + */ + mixHash: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryZEVMGetBlockByNumberResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryZEVMGetBlockByNumberResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryZEVMGetBlockByNumberResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryZEVMGetBlockByNumberResponse; + + static equals(a: QueryZEVMGetBlockByNumberResponse | PlainMessage | undefined, b: QueryZEVMGetBlockByNumberResponse | PlainMessage | undefined): boolean; +} + diff --git a/typescript/crosschain/tss_pb.d.ts b/typescript/crosschain/tss_pb.d.ts new file mode 100644 index 0000000000..13ef1fb435 --- /dev/null +++ b/typescript/crosschain/tss_pb.d.ts @@ -0,0 +1,52 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file crosschain/tss.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.crosschain.TSS + */ +export declare class TSS extends Message { + /** + * @generated from field: string tss_pubkey = 3; + */ + tssPubkey: string; + + /** + * @generated from field: repeated string tss_participant_list = 4; + */ + tssParticipantList: string[]; + + /** + * @generated from field: repeated string operator_address_list = 5; + */ + operatorAddressList: string[]; + + /** + * @generated from field: int64 finalizedZetaHeight = 6; + */ + finalizedZetaHeight: bigint; + + /** + * @generated from field: int64 keyGenZetaHeight = 7; + */ + keyGenZetaHeight: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.TSS"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): TSS; + + static fromJson(jsonValue: JsonValue, options?: Partial): TSS; + + static fromJsonString(jsonString: string, options?: Partial): TSS; + + static equals(a: TSS | PlainMessage | undefined, b: TSS | PlainMessage | undefined): boolean; +} + diff --git a/typescript/crosschain/tx_pb.d.ts b/typescript/crosschain/tx_pb.d.ts new file mode 100644 index 0000000000..1e223c00da --- /dev/null +++ b/typescript/crosschain/tx_pb.d.ts @@ -0,0 +1,824 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file crosschain/tx.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { CoinType, Proof, PubKeySet, ReceiveStatus } from "../common/common_pb.js"; + +/** + * @generated from message zetachain.zetacore.crosschain.MsgMigrateTssFunds + */ +export declare class MsgMigrateTssFunds extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: int64 chain_id = 2; + */ + chainId: bigint; + + /** + * @generated from field: string amount = 3; + */ + amount: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgMigrateTssFunds"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMigrateTssFunds; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMigrateTssFunds; + + static fromJsonString(jsonString: string, options?: Partial): MsgMigrateTssFunds; + + static equals(a: MsgMigrateTssFunds | PlainMessage | undefined, b: MsgMigrateTssFunds | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgMigrateTssFundsResponse + */ +export declare class MsgMigrateTssFundsResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgMigrateTssFundsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgMigrateTssFundsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgMigrateTssFundsResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgMigrateTssFundsResponse; + + static equals(a: MsgMigrateTssFundsResponse | PlainMessage | undefined, b: MsgMigrateTssFundsResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgAddToInTxTracker + */ +export declare class MsgAddToInTxTracker extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: int64 chain_id = 2; + */ + chainId: bigint; + + /** + * @generated from field: string tx_hash = 3; + */ + txHash: string; + + /** + * @generated from field: common.CoinType coin_type = 4; + */ + coinType: CoinType; + + /** + * @generated from field: common.Proof proof = 5; + */ + proof?: Proof; + + /** + * @generated from field: string block_hash = 6; + */ + blockHash: string; + + /** + * @generated from field: int64 tx_index = 7; + */ + txIndex: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgAddToInTxTracker"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddToInTxTracker; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddToInTxTracker; + + static fromJsonString(jsonString: string, options?: Partial): MsgAddToInTxTracker; + + static equals(a: MsgAddToInTxTracker | PlainMessage | undefined, b: MsgAddToInTxTracker | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgAddToInTxTrackerResponse + */ +export declare class MsgAddToInTxTrackerResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgAddToInTxTrackerResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddToInTxTrackerResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddToInTxTrackerResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgAddToInTxTrackerResponse; + + static equals(a: MsgAddToInTxTrackerResponse | PlainMessage | undefined, b: MsgAddToInTxTrackerResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgUpdateTssAddress + */ +export declare class MsgUpdateTssAddress extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: string tss_pubkey = 2; + */ + tssPubkey: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgUpdateTssAddress"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateTssAddress; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateTssAddress; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateTssAddress; + + static equals(a: MsgUpdateTssAddress | PlainMessage | undefined, b: MsgUpdateTssAddress | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgUpdateTssAddressResponse + */ +export declare class MsgUpdateTssAddressResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgUpdateTssAddressResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateTssAddressResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateTssAddressResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateTssAddressResponse; + + static equals(a: MsgUpdateTssAddressResponse | PlainMessage | undefined, b: MsgUpdateTssAddressResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgWhitelistERC20 + */ +export declare class MsgWhitelistERC20 extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: string erc20_address = 2; + */ + erc20Address: string; + + /** + * @generated from field: int64 chain_id = 3; + */ + chainId: bigint; + + /** + * @generated from field: string name = 4; + */ + name: string; + + /** + * @generated from field: string symbol = 5; + */ + symbol: string; + + /** + * @generated from field: uint32 decimals = 6; + */ + decimals: number; + + /** + * @generated from field: int64 gas_limit = 7; + */ + gasLimit: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgWhitelistERC20"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWhitelistERC20; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWhitelistERC20; + + static fromJsonString(jsonString: string, options?: Partial): MsgWhitelistERC20; + + static equals(a: MsgWhitelistERC20 | PlainMessage | undefined, b: MsgWhitelistERC20 | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgWhitelistERC20Response + */ +export declare class MsgWhitelistERC20Response extends Message { + /** + * @generated from field: string zrc20_address = 1; + */ + zrc20Address: string; + + /** + * @generated from field: string cctx_index = 2; + */ + cctxIndex: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgWhitelistERC20Response"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgWhitelistERC20Response; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgWhitelistERC20Response; + + static fromJsonString(jsonString: string, options?: Partial): MsgWhitelistERC20Response; + + static equals(a: MsgWhitelistERC20Response | PlainMessage | undefined, b: MsgWhitelistERC20Response | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgAddToOutTxTracker + */ +export declare class MsgAddToOutTxTracker extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: int64 chain_id = 2; + */ + chainId: bigint; + + /** + * @generated from field: uint64 nonce = 3; + */ + nonce: bigint; + + /** + * @generated from field: string tx_hash = 4; + */ + txHash: string; + + /** + * @generated from field: common.Proof proof = 5; + */ + proof?: Proof; + + /** + * @generated from field: string block_hash = 6; + */ + blockHash: string; + + /** + * @generated from field: int64 tx_index = 7; + */ + txIndex: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgAddToOutTxTracker"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddToOutTxTracker; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddToOutTxTracker; + + static fromJsonString(jsonString: string, options?: Partial): MsgAddToOutTxTracker; + + static equals(a: MsgAddToOutTxTracker | PlainMessage | undefined, b: MsgAddToOutTxTracker | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgAddToOutTxTrackerResponse + */ +export declare class MsgAddToOutTxTrackerResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgAddToOutTxTrackerResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddToOutTxTrackerResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddToOutTxTrackerResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgAddToOutTxTrackerResponse; + + static equals(a: MsgAddToOutTxTrackerResponse | PlainMessage | undefined, b: MsgAddToOutTxTrackerResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgRemoveFromOutTxTracker + */ +export declare class MsgRemoveFromOutTxTracker extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: int64 chain_id = 2; + */ + chainId: bigint; + + /** + * @generated from field: uint64 nonce = 3; + */ + nonce: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgRemoveFromOutTxTracker"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveFromOutTxTracker; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveFromOutTxTracker; + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveFromOutTxTracker; + + static equals(a: MsgRemoveFromOutTxTracker | PlainMessage | undefined, b: MsgRemoveFromOutTxTracker | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgRemoveFromOutTxTrackerResponse + */ +export declare class MsgRemoveFromOutTxTrackerResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgRemoveFromOutTxTrackerResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveFromOutTxTrackerResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveFromOutTxTrackerResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveFromOutTxTrackerResponse; + + static equals(a: MsgRemoveFromOutTxTrackerResponse | PlainMessage | undefined, b: MsgRemoveFromOutTxTrackerResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgCreateTSSVoter + */ +export declare class MsgCreateTSSVoter extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: string tss_pubkey = 2; + */ + tssPubkey: string; + + /** + * @generated from field: int64 keyGenZetaHeight = 3; + */ + keyGenZetaHeight: bigint; + + /** + * @generated from field: common.ReceiveStatus status = 4; + */ + status: ReceiveStatus; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgCreateTSSVoter"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateTSSVoter; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateTSSVoter; + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateTSSVoter; + + static equals(a: MsgCreateTSSVoter | PlainMessage | undefined, b: MsgCreateTSSVoter | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgCreateTSSVoterResponse + */ +export declare class MsgCreateTSSVoterResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgCreateTSSVoterResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateTSSVoterResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateTSSVoterResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgCreateTSSVoterResponse; + + static equals(a: MsgCreateTSSVoterResponse | PlainMessage | undefined, b: MsgCreateTSSVoterResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgGasPriceVoter + */ +export declare class MsgGasPriceVoter extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: int64 chain_id = 2; + */ + chainId: bigint; + + /** + * @generated from field: uint64 price = 3; + */ + price: bigint; + + /** + * @generated from field: uint64 block_number = 4; + */ + blockNumber: bigint; + + /** + * @generated from field: string supply = 5; + */ + supply: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgGasPriceVoter"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgGasPriceVoter; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgGasPriceVoter; + + static fromJsonString(jsonString: string, options?: Partial): MsgGasPriceVoter; + + static equals(a: MsgGasPriceVoter | PlainMessage | undefined, b: MsgGasPriceVoter | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgGasPriceVoterResponse + */ +export declare class MsgGasPriceVoterResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgGasPriceVoterResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgGasPriceVoterResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgGasPriceVoterResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgGasPriceVoterResponse; + + static equals(a: MsgGasPriceVoterResponse | PlainMessage | undefined, b: MsgGasPriceVoterResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgNonceVoter + */ +export declare class MsgNonceVoter extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: int64 chain_id = 2; + */ + chainId: bigint; + + /** + * @generated from field: uint64 nonce = 3; + */ + nonce: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgNonceVoter"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgNonceVoter; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgNonceVoter; + + static fromJsonString(jsonString: string, options?: Partial): MsgNonceVoter; + + static equals(a: MsgNonceVoter | PlainMessage | undefined, b: MsgNonceVoter | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgNonceVoterResponse + */ +export declare class MsgNonceVoterResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgNonceVoterResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgNonceVoterResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgNonceVoterResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgNonceVoterResponse; + + static equals(a: MsgNonceVoterResponse | PlainMessage | undefined, b: MsgNonceVoterResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgVoteOnObservedOutboundTx + */ +export declare class MsgVoteOnObservedOutboundTx extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: string cctx_hash = 2; + */ + cctxHash: string; + + /** + * @generated from field: string observed_outTx_hash = 3; + */ + observedOutTxHash: string; + + /** + * @generated from field: uint64 observed_outTx_blockHeight = 4; + */ + observedOutTxBlockHeight: bigint; + + /** + * @generated from field: uint64 observed_outTx_gas_used = 10; + */ + observedOutTxGasUsed: bigint; + + /** + * @generated from field: string observed_outTx_effective_gas_price = 11; + */ + observedOutTxEffectiveGasPrice: string; + + /** + * @generated from field: uint64 observed_outTx_effective_gas_limit = 12; + */ + observedOutTxEffectiveGasLimit: bigint; + + /** + * @generated from field: string value_received = 5; + */ + valueReceived: string; + + /** + * @generated from field: common.ReceiveStatus status = 6; + */ + status: ReceiveStatus; + + /** + * @generated from field: int64 outTx_chain = 7; + */ + outTxChain: bigint; + + /** + * @generated from field: uint64 outTx_tss_nonce = 8; + */ + outTxTssNonce: bigint; + + /** + * @generated from field: common.CoinType coin_type = 9; + */ + coinType: CoinType; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgVoteOnObservedOutboundTx"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteOnObservedOutboundTx; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteOnObservedOutboundTx; + + static fromJsonString(jsonString: string, options?: Partial): MsgVoteOnObservedOutboundTx; + + static equals(a: MsgVoteOnObservedOutboundTx | PlainMessage | undefined, b: MsgVoteOnObservedOutboundTx | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgVoteOnObservedOutboundTxResponse + */ +export declare class MsgVoteOnObservedOutboundTxResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgVoteOnObservedOutboundTxResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteOnObservedOutboundTxResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteOnObservedOutboundTxResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgVoteOnObservedOutboundTxResponse; + + static equals(a: MsgVoteOnObservedOutboundTxResponse | PlainMessage | undefined, b: MsgVoteOnObservedOutboundTxResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgVoteOnObservedInboundTx + */ +export declare class MsgVoteOnObservedInboundTx extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: string sender = 2; + */ + sender: string; + + /** + * @generated from field: int64 sender_chain_id = 3; + */ + senderChainId: bigint; + + /** + * @generated from field: string receiver = 4; + */ + receiver: string; + + /** + * @generated from field: int64 receiver_chain = 5; + */ + receiverChain: bigint; + + /** + * string zeta_burnt = 6; + * + * @generated from field: string amount = 6; + */ + amount: string; + + /** + * string mMint = 7; + * + * @generated from field: string message = 8; + */ + message: string; + + /** + * @generated from field: string in_tx_hash = 9; + */ + inTxHash: string; + + /** + * @generated from field: uint64 in_block_height = 10; + */ + inBlockHeight: bigint; + + /** + * @generated from field: uint64 gas_limit = 11; + */ + gasLimit: bigint; + + /** + * @generated from field: common.CoinType coin_type = 12; + */ + coinType: CoinType; + + /** + * @generated from field: string tx_origin = 13; + */ + txOrigin: string; + + /** + * @generated from field: string asset = 14; + */ + asset: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgVoteOnObservedInboundTx"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteOnObservedInboundTx; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteOnObservedInboundTx; + + static fromJsonString(jsonString: string, options?: Partial): MsgVoteOnObservedInboundTx; + + static equals(a: MsgVoteOnObservedInboundTx | PlainMessage | undefined, b: MsgVoteOnObservedInboundTx | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgVoteOnObservedInboundTxResponse + */ +export declare class MsgVoteOnObservedInboundTxResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgVoteOnObservedInboundTxResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgVoteOnObservedInboundTxResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgVoteOnObservedInboundTxResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgVoteOnObservedInboundTxResponse; + + static equals(a: MsgVoteOnObservedInboundTxResponse | PlainMessage | undefined, b: MsgVoteOnObservedInboundTxResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgSetNodeKeys + */ +export declare class MsgSetNodeKeys extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: common.PubKeySet pubkeySet = 2; + */ + pubkeySet?: PubKeySet; + + /** + * @generated from field: string tss_signer_Address = 3; + */ + tssSignerAddress: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgSetNodeKeys"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetNodeKeys; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetNodeKeys; + + static fromJsonString(jsonString: string, options?: Partial): MsgSetNodeKeys; + + static equals(a: MsgSetNodeKeys | PlainMessage | undefined, b: MsgSetNodeKeys | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgSetNodeKeysResponse + */ +export declare class MsgSetNodeKeysResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgSetNodeKeysResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgSetNodeKeysResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgSetNodeKeysResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgSetNodeKeysResponse; + + static equals(a: MsgSetNodeKeysResponse | PlainMessage | undefined, b: MsgSetNodeKeysResponse | PlainMessage | undefined): boolean; +} + diff --git a/typescript/emissions/events_pb.d.ts b/typescript/emissions/events_pb.d.ts new file mode 100644 index 0000000000..d501c8ff9e --- /dev/null +++ b/typescript/emissions/events_pb.d.ts @@ -0,0 +1,140 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file emissions/events.proto (package zetachain.zetacore.emissions, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from enum zetachain.zetacore.emissions.EmissionType + */ +export declare enum EmissionType { + /** + * @generated from enum value: Slash = 0; + */ + Slash = 0, + + /** + * @generated from enum value: Rewards = 1; + */ + Rewards = 1, +} + +/** + * @generated from message zetachain.zetacore.emissions.ObserverEmission + */ +export declare class ObserverEmission extends Message { + /** + * @generated from field: zetachain.zetacore.emissions.EmissionType emission_type = 1; + */ + emissionType: EmissionType; + + /** + * @generated from field: string observer_address = 2; + */ + observerAddress: string; + + /** + * @generated from field: string amount = 3; + */ + amount: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.emissions.ObserverEmission"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): ObserverEmission; + + static fromJson(jsonValue: JsonValue, options?: Partial): ObserverEmission; + + static fromJsonString(jsonString: string, options?: Partial): ObserverEmission; + + static equals(a: ObserverEmission | PlainMessage | undefined, b: ObserverEmission | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.emissions.EventObserverEmissions + */ +export declare class EventObserverEmissions extends Message { + /** + * @generated from field: string msg_type_url = 1; + */ + msgTypeUrl: string; + + /** + * @generated from field: repeated zetachain.zetacore.emissions.ObserverEmission emissions = 2; + */ + emissions: ObserverEmission[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.emissions.EventObserverEmissions"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): EventObserverEmissions; + + static fromJson(jsonValue: JsonValue, options?: Partial): EventObserverEmissions; + + static fromJsonString(jsonString: string, options?: Partial): EventObserverEmissions; + + static equals(a: EventObserverEmissions | PlainMessage | undefined, b: EventObserverEmissions | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.emissions.EventBlockEmissions + */ +export declare class EventBlockEmissions extends Message { + /** + * @generated from field: string msg_type_url = 1; + */ + msgTypeUrl: string; + + /** + * @generated from field: string bond_factor = 2; + */ + bondFactor: string; + + /** + * @generated from field: string reserves_factor = 3; + */ + reservesFactor: string; + + /** + * @generated from field: string duration_factor = 4; + */ + durationFactor: string; + + /** + * @generated from field: string validator_rewards_for_block = 5; + */ + validatorRewardsForBlock: string; + + /** + * @generated from field: string observer_rewards_for_block = 6; + */ + observerRewardsForBlock: string; + + /** + * @generated from field: string tss_rewards_for_block = 7; + */ + tssRewardsForBlock: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.emissions.EventBlockEmissions"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): EventBlockEmissions; + + static fromJson(jsonValue: JsonValue, options?: Partial): EventBlockEmissions; + + static fromJsonString(jsonString: string, options?: Partial): EventBlockEmissions; + + static equals(a: EventBlockEmissions | PlainMessage | undefined, b: EventBlockEmissions | PlainMessage | undefined): boolean; +} + diff --git a/typescript/emissions/genesis_pb.d.ts b/typescript/emissions/genesis_pb.d.ts new file mode 100644 index 0000000000..d4116b9257 --- /dev/null +++ b/typescript/emissions/genesis_pb.d.ts @@ -0,0 +1,41 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file emissions/genesis.proto (package zetachain.zetacore.emissions, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { Params } from "./params_pb.js"; +import type { WithdrawableEmissions } from "./withdrawable_emissions_pb.js"; + +/** + * GenesisState defines the emissions module's genesis state. + * + * @generated from message zetachain.zetacore.emissions.GenesisState + */ +export declare class GenesisState extends Message { + /** + * @generated from field: zetachain.zetacore.emissions.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated zetachain.zetacore.emissions.WithdrawableEmissions withdrawableEmissions = 2; + */ + withdrawableEmissions: WithdrawableEmissions[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.emissions.GenesisState"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState; + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState; + + static fromJsonString(jsonString: string, options?: Partial): GenesisState; + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean; +} + diff --git a/typescript/emissions/index.d.ts b/typescript/emissions/index.d.ts new file mode 100644 index 0000000000..81e140bbf8 --- /dev/null +++ b/typescript/emissions/index.d.ts @@ -0,0 +1,5 @@ +export * from "./events_pb"; +export * from "./genesis_pb"; +export * from "./params_pb"; +export * from "./query_pb"; +export * from "./withdrawable_emissions_pb"; diff --git a/typescript/emissions/params_pb.d.ts b/typescript/emissions/params_pb.d.ts new file mode 100644 index 0000000000..86bc27895e --- /dev/null +++ b/typescript/emissions/params_pb.d.ts @@ -0,0 +1,74 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file emissions/params.proto (package zetachain.zetacore.emissions, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message zetachain.zetacore.emissions.Params + */ +export declare class Params extends Message { + /** + * @generated from field: string max_bond_factor = 1; + */ + maxBondFactor: string; + + /** + * @generated from field: string min_bond_factor = 2; + */ + minBondFactor: string; + + /** + * @generated from field: string avg_block_time = 3; + */ + avgBlockTime: string; + + /** + * @generated from field: string target_bond_ratio = 4; + */ + targetBondRatio: string; + + /** + * @generated from field: string validator_emission_percentage = 5; + */ + validatorEmissionPercentage: string; + + /** + * @generated from field: string observer_emission_percentage = 6; + */ + observerEmissionPercentage: string; + + /** + * @generated from field: string tss_signer_emission_percentage = 7; + */ + tssSignerEmissionPercentage: string; + + /** + * @generated from field: string duration_factor_constant = 8; + */ + durationFactorConstant: string; + + /** + * @generated from field: string observer_slash_amount = 9; + */ + observerSlashAmount: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.emissions.Params"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Params; + + static fromJson(jsonValue: JsonValue, options?: Partial): Params; + + static fromJsonString(jsonString: string, options?: Partial): Params; + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean; +} + diff --git a/typescript/emissions/query_pb.d.ts b/typescript/emissions/query_pb.d.ts new file mode 100644 index 0000000000..26b86ff16b --- /dev/null +++ b/typescript/emissions/query_pb.d.ts @@ -0,0 +1,212 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file emissions/query.proto (package zetachain.zetacore.emissions, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { Params } from "./params_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message zetachain.zetacore.emissions.QueryParamsRequest + */ +export declare class QueryParamsRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.emissions.QueryParamsRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest; + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean; +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message zetachain.zetacore.emissions.QueryParamsResponse + */ +export declare class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: zetachain.zetacore.emissions.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.emissions.QueryParamsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse; + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.emissions.QueryListPoolAddressesRequest + */ +export declare class QueryListPoolAddressesRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.emissions.QueryListPoolAddressesRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryListPoolAddressesRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryListPoolAddressesRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryListPoolAddressesRequest; + + static equals(a: QueryListPoolAddressesRequest | PlainMessage | undefined, b: QueryListPoolAddressesRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.emissions.QueryListPoolAddressesResponse + */ +export declare class QueryListPoolAddressesResponse extends Message { + /** + * @generated from field: string undistributed_observer_balances_address = 1; + */ + undistributedObserverBalancesAddress: string; + + /** + * @generated from field: string undistributed_tss_balances_address = 2; + */ + undistributedTssBalancesAddress: string; + + /** + * @generated from field: string emission_module_address = 3; + */ + emissionModuleAddress: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.emissions.QueryListPoolAddressesResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryListPoolAddressesResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryListPoolAddressesResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryListPoolAddressesResponse; + + static equals(a: QueryListPoolAddressesResponse | PlainMessage | undefined, b: QueryListPoolAddressesResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.emissions.QueryGetEmissionsFactorsRequest + */ +export declare class QueryGetEmissionsFactorsRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.emissions.QueryGetEmissionsFactorsRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetEmissionsFactorsRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetEmissionsFactorsRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetEmissionsFactorsRequest; + + static equals(a: QueryGetEmissionsFactorsRequest | PlainMessage | undefined, b: QueryGetEmissionsFactorsRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.emissions.QueryGetEmissionsFactorsResponse + */ +export declare class QueryGetEmissionsFactorsResponse extends Message { + /** + * @generated from field: string reservesFactor = 1; + */ + reservesFactor: string; + + /** + * @generated from field: string bondFactor = 2; + */ + bondFactor: string; + + /** + * @generated from field: string durationFactor = 3; + */ + durationFactor: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.emissions.QueryGetEmissionsFactorsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetEmissionsFactorsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetEmissionsFactorsResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetEmissionsFactorsResponse; + + static equals(a: QueryGetEmissionsFactorsResponse | PlainMessage | undefined, b: QueryGetEmissionsFactorsResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.emissions.QueryShowAvailableEmissionsRequest + */ +export declare class QueryShowAvailableEmissionsRequest extends Message { + /** + * @generated from field: string address = 1; + */ + address: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.emissions.QueryShowAvailableEmissionsRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryShowAvailableEmissionsRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryShowAvailableEmissionsRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryShowAvailableEmissionsRequest; + + static equals(a: QueryShowAvailableEmissionsRequest | PlainMessage | undefined, b: QueryShowAvailableEmissionsRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.emissions.QueryShowAvailableEmissionsResponse + */ +export declare class QueryShowAvailableEmissionsResponse extends Message { + /** + * @generated from field: string amount = 1; + */ + amount: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.emissions.QueryShowAvailableEmissionsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryShowAvailableEmissionsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryShowAvailableEmissionsResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryShowAvailableEmissionsResponse; + + static equals(a: QueryShowAvailableEmissionsResponse | PlainMessage | undefined, b: QueryShowAvailableEmissionsResponse | PlainMessage | undefined): boolean; +} + diff --git a/typescript/emissions/withdrawable_emissions_pb.d.ts b/typescript/emissions/withdrawable_emissions_pb.d.ts new file mode 100644 index 0000000000..6b85546b5d --- /dev/null +++ b/typescript/emissions/withdrawable_emissions_pb.d.ts @@ -0,0 +1,37 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file emissions/withdrawable_emissions.proto (package zetachain.zetacore.emissions, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.emissions.WithdrawableEmissions + */ +export declare class WithdrawableEmissions extends Message { + /** + * @generated from field: string address = 1; + */ + address: string; + + /** + * @generated from field: string amount = 2; + */ + amount: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.emissions.WithdrawableEmissions"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): WithdrawableEmissions; + + static fromJson(jsonValue: JsonValue, options?: Partial): WithdrawableEmissions; + + static fromJsonString(jsonString: string, options?: Partial): WithdrawableEmissions; + + static equals(a: WithdrawableEmissions | PlainMessage | undefined, b: WithdrawableEmissions | PlainMessage | undefined): boolean; +} + diff --git a/typescript/fungible/events_pb.d.ts b/typescript/fungible/events_pb.d.ts new file mode 100644 index 0000000000..c36e4eebd8 --- /dev/null +++ b/typescript/fungible/events_pb.d.ts @@ -0,0 +1,216 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file fungible/events.proto (package zetachain.zetacore.fungible, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { CoinType } from "../common/common_pb.js"; +import type { UpdatePausedStatusAction } from "./tx_pb.js"; + +/** + * @generated from message zetachain.zetacore.fungible.EventSystemContractUpdated + */ +export declare class EventSystemContractUpdated extends Message { + /** + * @generated from field: string msg_type_url = 1; + */ + msgTypeUrl: string; + + /** + * @generated from field: string new_contract_address = 2; + */ + newContractAddress: string; + + /** + * @generated from field: string old_contract_address = 3; + */ + oldContractAddress: string; + + /** + * @generated from field: string signer = 4; + */ + signer: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.EventSystemContractUpdated"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): EventSystemContractUpdated; + + static fromJson(jsonValue: JsonValue, options?: Partial): EventSystemContractUpdated; + + static fromJsonString(jsonString: string, options?: Partial): EventSystemContractUpdated; + + static equals(a: EventSystemContractUpdated | PlainMessage | undefined, b: EventSystemContractUpdated | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.EventZRC20Deployed + */ +export declare class EventZRC20Deployed extends Message { + /** + * @generated from field: string msg_type_url = 1; + */ + msgTypeUrl: string; + + /** + * @generated from field: int64 chain_id = 2; + */ + chainId: bigint; + + /** + * @generated from field: string contract = 3; + */ + contract: string; + + /** + * @generated from field: string name = 4; + */ + name: string; + + /** + * @generated from field: string symbol = 5; + */ + symbol: string; + + /** + * @generated from field: int64 decimals = 6; + */ + decimals: bigint; + + /** + * @generated from field: common.CoinType coin_type = 7; + */ + coinType: CoinType; + + /** + * @generated from field: string erc20 = 8; + */ + erc20: string; + + /** + * @generated from field: int64 gas_limit = 9; + */ + gasLimit: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.EventZRC20Deployed"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): EventZRC20Deployed; + + static fromJson(jsonValue: JsonValue, options?: Partial): EventZRC20Deployed; + + static fromJsonString(jsonString: string, options?: Partial): EventZRC20Deployed; + + static equals(a: EventZRC20Deployed | PlainMessage | undefined, b: EventZRC20Deployed | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.EventZRC20WithdrawFeeUpdated + */ +export declare class EventZRC20WithdrawFeeUpdated extends Message { + /** + * @generated from field: string msg_type_url = 1; + */ + msgTypeUrl: string; + + /** + * @generated from field: int64 chain_id = 2; + */ + chainId: bigint; + + /** + * @generated from field: common.CoinType coin_type = 3; + */ + coinType: CoinType; + + /** + * @generated from field: string zrc20_address = 4; + */ + zrc20Address: string; + + /** + * @generated from field: string old_withdraw_fee = 5; + */ + oldWithdrawFee: string; + + /** + * @generated from field: string new_withdraw_fee = 6; + */ + newWithdrawFee: string; + + /** + * @generated from field: string signer = 7; + */ + signer: string; + + /** + * @generated from field: string old_gas_limit = 8; + */ + oldGasLimit: string; + + /** + * @generated from field: string new_gas_limit = 9; + */ + newGasLimit: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.EventZRC20WithdrawFeeUpdated"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): EventZRC20WithdrawFeeUpdated; + + static fromJson(jsonValue: JsonValue, options?: Partial): EventZRC20WithdrawFeeUpdated; + + static fromJsonString(jsonString: string, options?: Partial): EventZRC20WithdrawFeeUpdated; + + static equals(a: EventZRC20WithdrawFeeUpdated | PlainMessage | undefined, b: EventZRC20WithdrawFeeUpdated | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.EventZRC20PausedStatusUpdated + */ +export declare class EventZRC20PausedStatusUpdated extends Message { + /** + * @generated from field: string msg_type_url = 1; + */ + msgTypeUrl: string; + + /** + * @generated from field: repeated string zrc20_addresses = 2; + */ + zrc20Addresses: string[]; + + /** + * @generated from field: zetachain.zetacore.fungible.UpdatePausedStatusAction action = 3; + */ + action: UpdatePausedStatusAction; + + /** + * @generated from field: string signer = 4; + */ + signer: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.EventZRC20PausedStatusUpdated"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): EventZRC20PausedStatusUpdated; + + static fromJson(jsonValue: JsonValue, options?: Partial): EventZRC20PausedStatusUpdated; + + static fromJsonString(jsonString: string, options?: Partial): EventZRC20PausedStatusUpdated; + + static equals(a: EventZRC20PausedStatusUpdated | PlainMessage | undefined, b: EventZRC20PausedStatusUpdated | PlainMessage | undefined): boolean; +} + diff --git a/typescript/fungible/foreign_coins_pb.d.ts b/typescript/fungible/foreign_coins_pb.d.ts new file mode 100644 index 0000000000..4c23a343a8 --- /dev/null +++ b/typescript/fungible/foreign_coins_pb.d.ts @@ -0,0 +1,82 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file fungible/foreign_coins.proto (package zetachain.zetacore.fungible, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { CoinType } from "../common/common_pb.js"; + +/** + * @generated from message zetachain.zetacore.fungible.ForeignCoins + */ +export declare class ForeignCoins extends Message { + /** + * string index = 1; + * + * index + * + * @generated from field: string zrc20_contract_address = 2; + */ + zrc20ContractAddress: string; + + /** + * @generated from field: string asset = 3; + */ + asset: string; + + /** + * @generated from field: int64 foreign_chain_id = 4; + */ + foreignChainId: bigint; + + /** + * @generated from field: uint32 decimals = 5; + */ + decimals: number; + + /** + * @generated from field: string name = 6; + */ + name: string; + + /** + * @generated from field: string symbol = 7; + */ + symbol: string; + + /** + * @generated from field: common.CoinType coin_type = 8; + */ + coinType: CoinType; + + /** + * @generated from field: uint64 gas_limit = 9; + */ + gasLimit: bigint; + + /** + * @generated from field: bool paused = 10; + */ + paused: boolean; + + /** + * @generated from field: string liquidity_cap = 11; + */ + liquidityCap: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.ForeignCoins"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): ForeignCoins; + + static fromJson(jsonValue: JsonValue, options?: Partial): ForeignCoins; + + static fromJsonString(jsonString: string, options?: Partial): ForeignCoins; + + static equals(a: ForeignCoins | PlainMessage | undefined, b: ForeignCoins | PlainMessage | undefined): boolean; +} + diff --git a/typescript/fungible/genesis_pb.d.ts b/typescript/fungible/genesis_pb.d.ts new file mode 100644 index 0000000000..1a338d01c8 --- /dev/null +++ b/typescript/fungible/genesis_pb.d.ts @@ -0,0 +1,47 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file fungible/genesis.proto (package zetachain.zetacore.fungible, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { Params } from "./params_pb.js"; +import type { ForeignCoins } from "./foreign_coins_pb.js"; +import type { SystemContract } from "./system_contract_pb.js"; + +/** + * GenesisState defines the fungible module's genesis state. + * + * @generated from message zetachain.zetacore.fungible.GenesisState + */ +export declare class GenesisState extends Message { + /** + * @generated from field: zetachain.zetacore.fungible.Params params = 1; + */ + params?: Params; + + /** + * @generated from field: repeated zetachain.zetacore.fungible.ForeignCoins foreignCoinsList = 2; + */ + foreignCoinsList: ForeignCoins[]; + + /** + * @generated from field: zetachain.zetacore.fungible.SystemContract systemContract = 3; + */ + systemContract?: SystemContract; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.GenesisState"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState; + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState; + + static fromJsonString(jsonString: string, options?: Partial): GenesisState; + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean; +} + diff --git a/typescript/fungible/index.d.ts b/typescript/fungible/index.d.ts new file mode 100644 index 0000000000..ca17377759 --- /dev/null +++ b/typescript/fungible/index.d.ts @@ -0,0 +1,7 @@ +export * from "./events_pb"; +export * from "./foreign_coins_pb"; +export * from "./genesis_pb"; +export * from "./params_pb"; +export * from "./query_pb"; +export * from "./system_contract_pb"; +export * from "./tx_pb"; diff --git a/typescript/fungible/params_pb.d.ts b/typescript/fungible/params_pb.d.ts new file mode 100644 index 0000000000..a9f83a1d01 --- /dev/null +++ b/typescript/fungible/params_pb.d.ts @@ -0,0 +1,29 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file fungible/params.proto (package zetachain.zetacore.fungible, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message zetachain.zetacore.fungible.Params + */ +export declare class Params extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.Params"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Params; + + static fromJson(jsonValue: JsonValue, options?: Partial): Params; + + static fromJsonString(jsonString: string, options?: Partial): Params; + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean; +} + diff --git a/typescript/fungible/query_pb.d.ts b/typescript/fungible/query_pb.d.ts new file mode 100644 index 0000000000..4a604e405e --- /dev/null +++ b/typescript/fungible/query_pb.d.ts @@ -0,0 +1,373 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file fungible/query.proto (package zetachain.zetacore.fungible, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { Params } from "./params_pb.js"; +import type { ForeignCoins } from "./foreign_coins_pb.js"; +import type { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination_pb.js"; +import type { SystemContract } from "./system_contract_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message zetachain.zetacore.fungible.QueryParamsRequest + */ +export declare class QueryParamsRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.QueryParamsRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest; + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean; +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message zetachain.zetacore.fungible.QueryParamsResponse + */ +export declare class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: zetachain.zetacore.fungible.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.QueryParamsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse; + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.QueryGetForeignCoinsRequest + */ +export declare class QueryGetForeignCoinsRequest extends Message { + /** + * @generated from field: string index = 1; + */ + index: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.QueryGetForeignCoinsRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetForeignCoinsRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetForeignCoinsRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetForeignCoinsRequest; + + static equals(a: QueryGetForeignCoinsRequest | PlainMessage | undefined, b: QueryGetForeignCoinsRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.QueryGetForeignCoinsResponse + */ +export declare class QueryGetForeignCoinsResponse extends Message { + /** + * @generated from field: zetachain.zetacore.fungible.ForeignCoins foreignCoins = 1; + */ + foreignCoins?: ForeignCoins; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.QueryGetForeignCoinsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetForeignCoinsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetForeignCoinsResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetForeignCoinsResponse; + + static equals(a: QueryGetForeignCoinsResponse | PlainMessage | undefined, b: QueryGetForeignCoinsResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.QueryAllForeignCoinsRequest + */ +export declare class QueryAllForeignCoinsRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.QueryAllForeignCoinsRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllForeignCoinsRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllForeignCoinsRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllForeignCoinsRequest; + + static equals(a: QueryAllForeignCoinsRequest | PlainMessage | undefined, b: QueryAllForeignCoinsRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.QueryAllForeignCoinsResponse + */ +export declare class QueryAllForeignCoinsResponse extends Message { + /** + * @generated from field: repeated zetachain.zetacore.fungible.ForeignCoins foreignCoins = 1; + */ + foreignCoins: ForeignCoins[]; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.QueryAllForeignCoinsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllForeignCoinsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllForeignCoinsResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllForeignCoinsResponse; + + static equals(a: QueryAllForeignCoinsResponse | PlainMessage | undefined, b: QueryAllForeignCoinsResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.QueryGetSystemContractRequest + */ +export declare class QueryGetSystemContractRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.QueryGetSystemContractRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetSystemContractRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetSystemContractRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetSystemContractRequest; + + static equals(a: QueryGetSystemContractRequest | PlainMessage | undefined, b: QueryGetSystemContractRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.QueryGetSystemContractResponse + */ +export declare class QueryGetSystemContractResponse extends Message { + /** + * @generated from field: zetachain.zetacore.fungible.SystemContract SystemContract = 1; + */ + SystemContract?: SystemContract; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.QueryGetSystemContractResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetSystemContractResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetSystemContractResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetSystemContractResponse; + + static equals(a: QueryGetSystemContractResponse | PlainMessage | undefined, b: QueryGetSystemContractResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.QueryGetGasStabilityPoolAddress + */ +export declare class QueryGetGasStabilityPoolAddress extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.QueryGetGasStabilityPoolAddress"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetGasStabilityPoolAddress; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetGasStabilityPoolAddress; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetGasStabilityPoolAddress; + + static equals(a: QueryGetGasStabilityPoolAddress | PlainMessage | undefined, b: QueryGetGasStabilityPoolAddress | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.QueryGetGasStabilityPoolAddressResponse + */ +export declare class QueryGetGasStabilityPoolAddressResponse extends Message { + /** + * @generated from field: string cosmos_address = 1; + */ + cosmosAddress: string; + + /** + * @generated from field: string evm_address = 2; + */ + evmAddress: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.QueryGetGasStabilityPoolAddressResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetGasStabilityPoolAddressResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetGasStabilityPoolAddressResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetGasStabilityPoolAddressResponse; + + static equals(a: QueryGetGasStabilityPoolAddressResponse | PlainMessage | undefined, b: QueryGetGasStabilityPoolAddressResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.QueryGetGasStabilityPoolBalance + */ +export declare class QueryGetGasStabilityPoolBalance extends Message { + /** + * @generated from field: int64 chain_id = 1; + */ + chainId: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.QueryGetGasStabilityPoolBalance"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetGasStabilityPoolBalance; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetGasStabilityPoolBalance; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetGasStabilityPoolBalance; + + static equals(a: QueryGetGasStabilityPoolBalance | PlainMessage | undefined, b: QueryGetGasStabilityPoolBalance | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.QueryGetGasStabilityPoolBalanceResponse + */ +export declare class QueryGetGasStabilityPoolBalanceResponse extends Message { + /** + * @generated from field: string balance = 2; + */ + balance: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.QueryGetGasStabilityPoolBalanceResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetGasStabilityPoolBalanceResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetGasStabilityPoolBalanceResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetGasStabilityPoolBalanceResponse; + + static equals(a: QueryGetGasStabilityPoolBalanceResponse | PlainMessage | undefined, b: QueryGetGasStabilityPoolBalanceResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.QueryAllGasStabilityPoolBalance + */ +export declare class QueryAllGasStabilityPoolBalance extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.QueryAllGasStabilityPoolBalance"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllGasStabilityPoolBalance; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllGasStabilityPoolBalance; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllGasStabilityPoolBalance; + + static equals(a: QueryAllGasStabilityPoolBalance | PlainMessage | undefined, b: QueryAllGasStabilityPoolBalance | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.QueryAllGasStabilityPoolBalanceResponse + */ +export declare class QueryAllGasStabilityPoolBalanceResponse extends Message { + /** + * @generated from field: repeated zetachain.zetacore.fungible.QueryAllGasStabilityPoolBalanceResponse.Balance balances = 1; + */ + balances: QueryAllGasStabilityPoolBalanceResponse_Balance[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.QueryAllGasStabilityPoolBalanceResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllGasStabilityPoolBalanceResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllGasStabilityPoolBalanceResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllGasStabilityPoolBalanceResponse; + + static equals(a: QueryAllGasStabilityPoolBalanceResponse | PlainMessage | undefined, b: QueryAllGasStabilityPoolBalanceResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.QueryAllGasStabilityPoolBalanceResponse.Balance + */ +export declare class QueryAllGasStabilityPoolBalanceResponse_Balance extends Message { + /** + * @generated from field: int64 chain_id = 1; + */ + chainId: bigint; + + /** + * @generated from field: string balance = 2; + */ + balance: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.QueryAllGasStabilityPoolBalanceResponse.Balance"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllGasStabilityPoolBalanceResponse_Balance; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllGasStabilityPoolBalanceResponse_Balance; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllGasStabilityPoolBalanceResponse_Balance; + + static equals(a: QueryAllGasStabilityPoolBalanceResponse_Balance | PlainMessage | undefined, b: QueryAllGasStabilityPoolBalanceResponse_Balance | PlainMessage | undefined): boolean; +} + diff --git a/typescript/fungible/system_contract_pb.d.ts b/typescript/fungible/system_contract_pb.d.ts new file mode 100644 index 0000000000..1ee1dde43b --- /dev/null +++ b/typescript/fungible/system_contract_pb.d.ts @@ -0,0 +1,37 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file fungible/system_contract.proto (package zetachain.zetacore.fungible, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.fungible.SystemContract + */ +export declare class SystemContract extends Message { + /** + * @generated from field: string system_contract = 1; + */ + systemContract: string; + + /** + * @generated from field: string connector_zevm = 2; + */ + connectorZevm: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.SystemContract"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): SystemContract; + + static fromJson(jsonValue: JsonValue, options?: Partial): SystemContract; + + static fromJsonString(jsonString: string, options?: Partial): SystemContract; + + static equals(a: SystemContract | PlainMessage | undefined, b: SystemContract | PlainMessage | undefined): boolean; +} + diff --git a/typescript/fungible/tx_pb.d.ts b/typescript/fungible/tx_pb.d.ts new file mode 100644 index 0000000000..fcb7f77343 --- /dev/null +++ b/typescript/fungible/tx_pb.d.ts @@ -0,0 +1,427 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file fungible/tx.proto (package zetachain.zetacore.fungible, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { CoinType } from "../common/common_pb.js"; + +/** + * @generated from enum zetachain.zetacore.fungible.UpdatePausedStatusAction + */ +export declare enum UpdatePausedStatusAction { + /** + * @generated from enum value: PAUSE = 0; + */ + PAUSE = 0, + + /** + * @generated from enum value: UNPAUSE = 1; + */ + UNPAUSE = 1, +} + +/** + * @generated from message zetachain.zetacore.fungible.MsgUpdateZRC20WithdrawFee + */ +export declare class MsgUpdateZRC20WithdrawFee extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * zrc20 address + * + * @generated from field: string zrc20_address = 2; + */ + zrc20Address: string; + + /** + * @generated from field: string new_withdraw_fee = 6; + */ + newWithdrawFee: string; + + /** + * @generated from field: string new_gas_limit = 7; + */ + newGasLimit: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.MsgUpdateZRC20WithdrawFee"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateZRC20WithdrawFee; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateZRC20WithdrawFee; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateZRC20WithdrawFee; + + static equals(a: MsgUpdateZRC20WithdrawFee | PlainMessage | undefined, b: MsgUpdateZRC20WithdrawFee | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.MsgUpdateZRC20WithdrawFeeResponse + */ +export declare class MsgUpdateZRC20WithdrawFeeResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.MsgUpdateZRC20WithdrawFeeResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateZRC20WithdrawFeeResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateZRC20WithdrawFeeResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateZRC20WithdrawFeeResponse; + + static equals(a: MsgUpdateZRC20WithdrawFeeResponse | PlainMessage | undefined, b: MsgUpdateZRC20WithdrawFeeResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.MsgUpdateSystemContract + */ +export declare class MsgUpdateSystemContract extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: string new_system_contract_address = 2; + */ + newSystemContractAddress: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.MsgUpdateSystemContract"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateSystemContract; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateSystemContract; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateSystemContract; + + static equals(a: MsgUpdateSystemContract | PlainMessage | undefined, b: MsgUpdateSystemContract | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.MsgUpdateSystemContractResponse + */ +export declare class MsgUpdateSystemContractResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.MsgUpdateSystemContractResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateSystemContractResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateSystemContractResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateSystemContractResponse; + + static equals(a: MsgUpdateSystemContractResponse | PlainMessage | undefined, b: MsgUpdateSystemContractResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.MsgDeployFungibleCoinZRC20 + */ +export declare class MsgDeployFungibleCoinZRC20 extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: string ERC20 = 2; + */ + ERC20: string; + + /** + * @generated from field: int64 foreign_chain_id = 3; + */ + foreignChainId: bigint; + + /** + * @generated from field: uint32 decimals = 4; + */ + decimals: number; + + /** + * @generated from field: string name = 5; + */ + name: string; + + /** + * @generated from field: string symbol = 6; + */ + symbol: string; + + /** + * @generated from field: common.CoinType coin_type = 7; + */ + coinType: CoinType; + + /** + * @generated from field: int64 gas_limit = 8; + */ + gasLimit: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.MsgDeployFungibleCoinZRC20"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeployFungibleCoinZRC20; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeployFungibleCoinZRC20; + + static fromJsonString(jsonString: string, options?: Partial): MsgDeployFungibleCoinZRC20; + + static equals(a: MsgDeployFungibleCoinZRC20 | PlainMessage | undefined, b: MsgDeployFungibleCoinZRC20 | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.MsgDeployFungibleCoinZRC20Response + */ +export declare class MsgDeployFungibleCoinZRC20Response extends Message { + /** + * @generated from field: string address = 1; + */ + address: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.MsgDeployFungibleCoinZRC20Response"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgDeployFungibleCoinZRC20Response; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgDeployFungibleCoinZRC20Response; + + static fromJsonString(jsonString: string, options?: Partial): MsgDeployFungibleCoinZRC20Response; + + static equals(a: MsgDeployFungibleCoinZRC20Response | PlainMessage | undefined, b: MsgDeployFungibleCoinZRC20Response | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.MsgRemoveForeignCoin + */ +export declare class MsgRemoveForeignCoin extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: string name = 2; + */ + name: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.MsgRemoveForeignCoin"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveForeignCoin; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveForeignCoin; + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveForeignCoin; + + static equals(a: MsgRemoveForeignCoin | PlainMessage | undefined, b: MsgRemoveForeignCoin | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.MsgRemoveForeignCoinResponse + */ +export declare class MsgRemoveForeignCoinResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.MsgRemoveForeignCoinResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveForeignCoinResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveForeignCoinResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgRemoveForeignCoinResponse; + + static equals(a: MsgRemoveForeignCoinResponse | PlainMessage | undefined, b: MsgRemoveForeignCoinResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.MsgUpdateContractBytecode + */ +export declare class MsgUpdateContractBytecode extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: string contract_address = 2; + */ + contractAddress: string; + + /** + * @generated from field: string new_bytecode_address = 3; + */ + newBytecodeAddress: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.MsgUpdateContractBytecode"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateContractBytecode; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateContractBytecode; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateContractBytecode; + + static equals(a: MsgUpdateContractBytecode | PlainMessage | undefined, b: MsgUpdateContractBytecode | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.MsgUpdateContractBytecodeResponse + */ +export declare class MsgUpdateContractBytecodeResponse extends Message { + /** + * @generated from field: bytes new_bytecode_hash = 1; + */ + newBytecodeHash: Uint8Array; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.MsgUpdateContractBytecodeResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateContractBytecodeResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateContractBytecodeResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateContractBytecodeResponse; + + static equals(a: MsgUpdateContractBytecodeResponse | PlainMessage | undefined, b: MsgUpdateContractBytecodeResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.MsgUpdateZRC20PausedStatus + */ +export declare class MsgUpdateZRC20PausedStatus extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: repeated string zrc20_addresses = 2; + */ + zrc20Addresses: string[]; + + /** + * @generated from field: zetachain.zetacore.fungible.UpdatePausedStatusAction action = 3; + */ + action: UpdatePausedStatusAction; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.MsgUpdateZRC20PausedStatus"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateZRC20PausedStatus; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateZRC20PausedStatus; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateZRC20PausedStatus; + + static equals(a: MsgUpdateZRC20PausedStatus | PlainMessage | undefined, b: MsgUpdateZRC20PausedStatus | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.MsgUpdateZRC20PausedStatusResponse + */ +export declare class MsgUpdateZRC20PausedStatusResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.MsgUpdateZRC20PausedStatusResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateZRC20PausedStatusResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateZRC20PausedStatusResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateZRC20PausedStatusResponse; + + static equals(a: MsgUpdateZRC20PausedStatusResponse | PlainMessage | undefined, b: MsgUpdateZRC20PausedStatusResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.MsgUpdateZRC20LiquidityCap + */ +export declare class MsgUpdateZRC20LiquidityCap extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: string zrc20_address = 2; + */ + zrc20Address: string; + + /** + * @generated from field: string liquidity_cap = 3; + */ + liquidityCap: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.MsgUpdateZRC20LiquidityCap"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateZRC20LiquidityCap; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateZRC20LiquidityCap; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateZRC20LiquidityCap; + + static equals(a: MsgUpdateZRC20LiquidityCap | PlainMessage | undefined, b: MsgUpdateZRC20LiquidityCap | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.fungible.MsgUpdateZRC20LiquidityCapResponse + */ +export declare class MsgUpdateZRC20LiquidityCapResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.fungible.MsgUpdateZRC20LiquidityCapResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateZRC20LiquidityCapResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateZRC20LiquidityCapResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateZRC20LiquidityCapResponse; + + static equals(a: MsgUpdateZRC20LiquidityCapResponse | PlainMessage | undefined, b: MsgUpdateZRC20LiquidityCapResponse | PlainMessage | undefined): boolean; +} + diff --git a/typescript/observer/ballot_pb.d.ts b/typescript/observer/ballot_pb.d.ts new file mode 100644 index 0000000000..100a1a0f1d --- /dev/null +++ b/typescript/observer/ballot_pb.d.ts @@ -0,0 +1,139 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file observer/ballot.proto (package zetachain.zetacore.observer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { ObservationType } from "./observer_pb.js"; + +/** + * @generated from enum zetachain.zetacore.observer.VoteType + */ +export declare enum VoteType { + /** + * @generated from enum value: SuccessObservation = 0; + */ + SuccessObservation = 0, + + /** + * Failure observation means , the the message that this voter is observing failed / reverted . It does not mean it was unable to observe. + * + * @generated from enum value: FailureObservation = 1; + */ + FailureObservation = 1, + + /** + * @generated from enum value: NotYetVoted = 2; + */ + NotYetVoted = 2, +} + +/** + * @generated from enum zetachain.zetacore.observer.BallotStatus + */ +export declare enum BallotStatus { + /** + * @generated from enum value: BallotFinalized_SuccessObservation = 0; + */ + BallotFinalized_SuccessObservation = 0, + + /** + * @generated from enum value: BallotFinalized_FailureObservation = 1; + */ + BallotFinalized_FailureObservation = 1, + + /** + * @generated from enum value: BallotInProgress = 2; + */ + BallotInProgress = 2, +} + +/** + * @generated from message zetachain.zetacore.observer.Ballot + */ +export declare class Ballot extends Message { + /** + * @generated from field: string index = 1; + */ + index: string; + + /** + * @generated from field: string ballot_identifier = 2; + */ + ballotIdentifier: string; + + /** + * @generated from field: repeated string voter_list = 3; + */ + voterList: string[]; + + /** + * @generated from field: repeated zetachain.zetacore.observer.VoteType votes = 4; + */ + votes: VoteType[]; + + /** + * @generated from field: zetachain.zetacore.observer.ObservationType observation_type = 5; + */ + observationType: ObservationType; + + /** + * @generated from field: string ballot_threshold = 6; + */ + ballotThreshold: string; + + /** + * @generated from field: zetachain.zetacore.observer.BallotStatus ballot_status = 7; + */ + ballotStatus: BallotStatus; + + /** + * @generated from field: int64 ballot_creation_height = 8; + */ + ballotCreationHeight: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.Ballot"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Ballot; + + static fromJson(jsonValue: JsonValue, options?: Partial): Ballot; + + static fromJsonString(jsonString: string, options?: Partial): Ballot; + + static equals(a: Ballot | PlainMessage | undefined, b: Ballot | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.BallotListForHeight + */ +export declare class BallotListForHeight extends Message { + /** + * @generated from field: int64 height = 1; + */ + height: bigint; + + /** + * @generated from field: repeated string ballots_index_list = 2; + */ + ballotsIndexList: string[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.BallotListForHeight"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): BallotListForHeight; + + static fromJson(jsonValue: JsonValue, options?: Partial): BallotListForHeight; + + static fromJsonString(jsonString: string, options?: Partial): BallotListForHeight; + + static equals(a: BallotListForHeight | PlainMessage | undefined, b: BallotListForHeight | PlainMessage | undefined): boolean; +} + diff --git a/typescript/observer/blame_pb.d.ts b/typescript/observer/blame_pb.d.ts new file mode 100644 index 0000000000..3a9403cd95 --- /dev/null +++ b/typescript/observer/blame_pb.d.ts @@ -0,0 +1,76 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file observer/blame.proto (package zetachain.zetacore.observer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.observer.Node + */ +export declare class Node extends Message { + /** + * @generated from field: string pub_key = 1; + */ + pubKey: string; + + /** + * @generated from field: bytes blame_data = 2; + */ + blameData: Uint8Array; + + /** + * @generated from field: bytes blame_signature = 3; + */ + blameSignature: Uint8Array; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.Node"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Node; + + static fromJson(jsonValue: JsonValue, options?: Partial): Node; + + static fromJsonString(jsonString: string, options?: Partial): Node; + + static equals(a: Node | PlainMessage | undefined, b: Node | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.Blame + */ +export declare class Blame extends Message { + /** + * @generated from field: string index = 1; + */ + index: string; + + /** + * @generated from field: string failure_reason = 2; + */ + failureReason: string; + + /** + * @generated from field: repeated zetachain.zetacore.observer.Node nodes = 3; + */ + nodes: Node[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.Blame"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Blame; + + static fromJson(jsonValue: JsonValue, options?: Partial): Blame; + + static fromJsonString(jsonString: string, options?: Partial): Blame; + + static equals(a: Blame | PlainMessage | undefined, b: Blame | PlainMessage | undefined): boolean; +} + diff --git a/typescript/observer/crosschain_flags_pb.d.ts b/typescript/observer/crosschain_flags_pb.d.ts new file mode 100644 index 0000000000..00cbc58b2e --- /dev/null +++ b/typescript/observer/crosschain_flags_pb.d.ts @@ -0,0 +1,152 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file observer/crosschain_flags.proto (package zetachain.zetacore.observer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, Duration, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.observer.GasPriceIncreaseFlags + */ +export declare class GasPriceIncreaseFlags extends Message { + /** + * @generated from field: int64 epochLength = 1; + */ + epochLength: bigint; + + /** + * @generated from field: google.protobuf.Duration retryInterval = 2; + */ + retryInterval?: Duration; + + /** + * @generated from field: uint32 gasPriceIncreasePercent = 3; + */ + gasPriceIncreasePercent: number; + + /** + * Maximum gas price increase in percent of the median gas price + * Default is used if 0 + * + * @generated from field: uint32 gasPriceIncreaseMax = 4; + */ + gasPriceIncreaseMax: number; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.GasPriceIncreaseFlags"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): GasPriceIncreaseFlags; + + static fromJson(jsonValue: JsonValue, options?: Partial): GasPriceIncreaseFlags; + + static fromJsonString(jsonString: string, options?: Partial): GasPriceIncreaseFlags; + + static equals(a: GasPriceIncreaseFlags | PlainMessage | undefined, b: GasPriceIncreaseFlags | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.BlockHeaderVerificationFlags + */ +export declare class BlockHeaderVerificationFlags extends Message { + /** + * @generated from field: bool isEthTypeChainEnabled = 1; + */ + isEthTypeChainEnabled: boolean; + + /** + * @generated from field: bool isBtcTypeChainEnabled = 2; + */ + isBtcTypeChainEnabled: boolean; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.BlockHeaderVerificationFlags"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): BlockHeaderVerificationFlags; + + static fromJson(jsonValue: JsonValue, options?: Partial): BlockHeaderVerificationFlags; + + static fromJsonString(jsonString: string, options?: Partial): BlockHeaderVerificationFlags; + + static equals(a: BlockHeaderVerificationFlags | PlainMessage | undefined, b: BlockHeaderVerificationFlags | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.CrosschainFlags + */ +export declare class CrosschainFlags extends Message { + /** + * @generated from field: bool isInboundEnabled = 1; + */ + isInboundEnabled: boolean; + + /** + * @generated from field: bool isOutboundEnabled = 2; + */ + isOutboundEnabled: boolean; + + /** + * @generated from field: zetachain.zetacore.observer.GasPriceIncreaseFlags gasPriceIncreaseFlags = 3; + */ + gasPriceIncreaseFlags?: GasPriceIncreaseFlags; + + /** + * @generated from field: zetachain.zetacore.observer.BlockHeaderVerificationFlags blockHeaderVerificationFlags = 4; + */ + blockHeaderVerificationFlags?: BlockHeaderVerificationFlags; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.CrosschainFlags"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): CrosschainFlags; + + static fromJson(jsonValue: JsonValue, options?: Partial): CrosschainFlags; + + static fromJsonString(jsonString: string, options?: Partial): CrosschainFlags; + + static equals(a: CrosschainFlags | PlainMessage | undefined, b: CrosschainFlags | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.LegacyCrosschainFlags + */ +export declare class LegacyCrosschainFlags extends Message { + /** + * @generated from field: bool isInboundEnabled = 1; + */ + isInboundEnabled: boolean; + + /** + * @generated from field: bool isOutboundEnabled = 2; + */ + isOutboundEnabled: boolean; + + /** + * @generated from field: zetachain.zetacore.observer.GasPriceIncreaseFlags gasPriceIncreaseFlags = 3; + */ + gasPriceIncreaseFlags?: GasPriceIncreaseFlags; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.LegacyCrosschainFlags"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): LegacyCrosschainFlags; + + static fromJson(jsonValue: JsonValue, options?: Partial): LegacyCrosschainFlags; + + static fromJsonString(jsonString: string, options?: Partial): LegacyCrosschainFlags; + + static equals(a: LegacyCrosschainFlags | PlainMessage | undefined, b: LegacyCrosschainFlags | PlainMessage | undefined): boolean; +} + diff --git a/typescript/observer/events_pb.d.ts b/typescript/observer/events_pb.d.ts new file mode 100644 index 0000000000..cadd85f653 --- /dev/null +++ b/typescript/observer/events_pb.d.ts @@ -0,0 +1,180 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file observer/events.proto (package zetachain.zetacore.observer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { BlockHeaderVerificationFlags, GasPriceIncreaseFlags } from "./crosschain_flags_pb.js"; + +/** + * @generated from message zetachain.zetacore.observer.EventBallotCreated + */ +export declare class EventBallotCreated extends Message { + /** + * @generated from field: string msg_type_url = 1; + */ + msgTypeUrl: string; + + /** + * @generated from field: string ballot_identifier = 2; + */ + ballotIdentifier: string; + + /** + * @generated from field: string observation_hash = 3; + */ + observationHash: string; + + /** + * @generated from field: string observation_chain = 4; + */ + observationChain: string; + + /** + * @generated from field: string ballot_type = 5; + */ + ballotType: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.EventBallotCreated"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): EventBallotCreated; + + static fromJson(jsonValue: JsonValue, options?: Partial): EventBallotCreated; + + static fromJsonString(jsonString: string, options?: Partial): EventBallotCreated; + + static equals(a: EventBallotCreated | PlainMessage | undefined, b: EventBallotCreated | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.EventKeygenBlockUpdated + */ +export declare class EventKeygenBlockUpdated extends Message { + /** + * @generated from field: string msg_type_url = 1; + */ + msgTypeUrl: string; + + /** + * @generated from field: string keygen_block = 2; + */ + keygenBlock: string; + + /** + * @generated from field: string keygen_pubkeys = 3; + */ + keygenPubkeys: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.EventKeygenBlockUpdated"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): EventKeygenBlockUpdated; + + static fromJson(jsonValue: JsonValue, options?: Partial): EventKeygenBlockUpdated; + + static fromJsonString(jsonString: string, options?: Partial): EventKeygenBlockUpdated; + + static equals(a: EventKeygenBlockUpdated | PlainMessage | undefined, b: EventKeygenBlockUpdated | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.EventNewObserverAdded + */ +export declare class EventNewObserverAdded extends Message { + /** + * @generated from field: string msg_type_url = 1; + */ + msgTypeUrl: string; + + /** + * @generated from field: string observer_address = 2; + */ + observerAddress: string; + + /** + * @generated from field: string zetaclient_grantee_address = 3; + */ + zetaclientGranteeAddress: string; + + /** + * @generated from field: string zetaclient_grantee_pubkey = 4; + */ + zetaclientGranteePubkey: string; + + /** + * @generated from field: uint64 observer_last_block_count = 5; + */ + observerLastBlockCount: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.EventNewObserverAdded"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): EventNewObserverAdded; + + static fromJson(jsonValue: JsonValue, options?: Partial): EventNewObserverAdded; + + static fromJsonString(jsonString: string, options?: Partial): EventNewObserverAdded; + + static equals(a: EventNewObserverAdded | PlainMessage | undefined, b: EventNewObserverAdded | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.EventCrosschainFlagsUpdated + */ +export declare class EventCrosschainFlagsUpdated extends Message { + /** + * @generated from field: string msg_type_url = 1; + */ + msgTypeUrl: string; + + /** + * @generated from field: bool isInboundEnabled = 2; + */ + isInboundEnabled: boolean; + + /** + * @generated from field: bool isOutboundEnabled = 3; + */ + isOutboundEnabled: boolean; + + /** + * @generated from field: zetachain.zetacore.observer.GasPriceIncreaseFlags gasPriceIncreaseFlags = 4; + */ + gasPriceIncreaseFlags?: GasPriceIncreaseFlags; + + /** + * @generated from field: string signer = 5; + */ + signer: string; + + /** + * @generated from field: zetachain.zetacore.observer.BlockHeaderVerificationFlags blockHeaderVerificationFlags = 6; + */ + blockHeaderVerificationFlags?: BlockHeaderVerificationFlags; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.EventCrosschainFlagsUpdated"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): EventCrosschainFlagsUpdated; + + static fromJson(jsonValue: JsonValue, options?: Partial): EventCrosschainFlagsUpdated; + + static fromJsonString(jsonString: string, options?: Partial): EventCrosschainFlagsUpdated; + + static equals(a: EventCrosschainFlagsUpdated | PlainMessage | undefined, b: EventCrosschainFlagsUpdated | PlainMessage | undefined): boolean; +} + diff --git a/typescript/observer/genesis_pb.d.ts b/typescript/observer/genesis_pb.d.ts new file mode 100644 index 0000000000..7040539619 --- /dev/null +++ b/typescript/observer/genesis_pb.d.ts @@ -0,0 +1,73 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file observer/genesis.proto (package zetachain.zetacore.observer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { Ballot } from "./ballot_pb.js"; +import type { LastObserverCount, ObserverMapper } from "./observer_pb.js"; +import type { NodeAccount } from "./node_account_pb.js"; +import type { CrosschainFlags } from "./crosschain_flags_pb.js"; +import type { CoreParamsList, Params } from "./params_pb.js"; +import type { Keygen } from "./keygen_pb.js"; + +/** + * @generated from message zetachain.zetacore.observer.GenesisState + */ +export declare class GenesisState extends Message { + /** + * @generated from field: repeated zetachain.zetacore.observer.Ballot ballots = 1; + */ + ballots: Ballot[]; + + /** + * @generated from field: repeated zetachain.zetacore.observer.ObserverMapper observers = 2; + */ + observers: ObserverMapper[]; + + /** + * @generated from field: repeated zetachain.zetacore.observer.NodeAccount nodeAccountList = 3; + */ + nodeAccountList: NodeAccount[]; + + /** + * @generated from field: zetachain.zetacore.observer.CrosschainFlags crosschain_flags = 4; + */ + crosschainFlags?: CrosschainFlags; + + /** + * @generated from field: zetachain.zetacore.observer.Params params = 5; + */ + params?: Params; + + /** + * @generated from field: zetachain.zetacore.observer.Keygen keygen = 6; + */ + keygen?: Keygen; + + /** + * @generated from field: zetachain.zetacore.observer.LastObserverCount last_observer_count = 7; + */ + lastObserverCount?: LastObserverCount; + + /** + * @generated from field: zetachain.zetacore.observer.CoreParamsList core_params_list = 8; + */ + coreParamsList?: CoreParamsList; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.GenesisState"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState; + + static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState; + + static fromJsonString(jsonString: string, options?: Partial): GenesisState; + + static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean; +} + diff --git a/typescript/observer/index.d.ts b/typescript/observer/index.d.ts new file mode 100644 index 0000000000..25d306ae01 --- /dev/null +++ b/typescript/observer/index.d.ts @@ -0,0 +1,11 @@ +export * from "./ballot_pb"; +export * from "./blame_pb"; +export * from "./crosschain_flags_pb"; +export * from "./events_pb"; +export * from "./genesis_pb"; +export * from "./keygen_pb"; +export * from "./node_account_pb"; +export * from "./observer_pb"; +export * from "./params_pb"; +export * from "./query_pb"; +export * from "./tx_pb"; diff --git a/typescript/observer/keygen_pb.d.ts b/typescript/observer/keygen_pb.d.ts new file mode 100644 index 0000000000..e3179201c0 --- /dev/null +++ b/typescript/observer/keygen_pb.d.ts @@ -0,0 +1,66 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file observer/keygen.proto (package zetachain.zetacore.observer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from enum zetachain.zetacore.observer.KeygenStatus + */ +export declare enum KeygenStatus { + /** + * @generated from enum value: PendingKeygen = 0; + */ + PendingKeygen = 0, + + /** + * @generated from enum value: KeyGenSuccess = 1; + */ + KeyGenSuccess = 1, + + /** + * @generated from enum value: KeyGenFailed = 3; + */ + KeyGenFailed = 3, +} + +/** + * @generated from message zetachain.zetacore.observer.Keygen + */ +export declare class Keygen extends Message { + /** + * 0--to generate key; 1--generated; 2--error + * + * @generated from field: zetachain.zetacore.observer.KeygenStatus status = 2; + */ + status: KeygenStatus; + + /** + * @generated from field: repeated string granteePubkeys = 3; + */ + granteePubkeys: string[]; + + /** + * the blocknum that the key needs to be generated + * + * @generated from field: int64 blockNumber = 4; + */ + blockNumber: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.Keygen"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Keygen; + + static fromJson(jsonValue: JsonValue, options?: Partial): Keygen; + + static fromJsonString(jsonString: string, options?: Partial): Keygen; + + static equals(a: Keygen | PlainMessage | undefined, b: Keygen | PlainMessage | undefined): boolean; +} + diff --git a/typescript/observer/node_account_pb.d.ts b/typescript/observer/node_account_pb.d.ts new file mode 100644 index 0000000000..240e4b424a --- /dev/null +++ b/typescript/observer/node_account_pb.d.ts @@ -0,0 +1,83 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file observer/node_account.proto (package zetachain.zetacore.observer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { PubKeySet } from "../common/common_pb.js"; + +/** + * @generated from enum zetachain.zetacore.observer.NodeStatus + */ +export declare enum NodeStatus { + /** + * @generated from enum value: Unknown = 0; + */ + Unknown = 0, + + /** + * @generated from enum value: Whitelisted = 1; + */ + Whitelisted = 1, + + /** + * @generated from enum value: Standby = 2; + */ + Standby = 2, + + /** + * @generated from enum value: Ready = 3; + */ + Ready = 3, + + /** + * @generated from enum value: Active = 4; + */ + Active = 4, + + /** + * @generated from enum value: Disabled = 5; + */ + Disabled = 5, +} + +/** + * @generated from message zetachain.zetacore.observer.NodeAccount + */ +export declare class NodeAccount extends Message { + /** + * @generated from field: string operator = 1; + */ + operator: string; + + /** + * @generated from field: string granteeAddress = 2; + */ + granteeAddress: string; + + /** + * @generated from field: common.PubKeySet granteePubkey = 3; + */ + granteePubkey?: PubKeySet; + + /** + * @generated from field: zetachain.zetacore.observer.NodeStatus nodeStatus = 4; + */ + nodeStatus: NodeStatus; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.NodeAccount"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): NodeAccount; + + static fromJson(jsonValue: JsonValue, options?: Partial): NodeAccount; + + static fromJsonString(jsonString: string, options?: Partial): NodeAccount; + + static equals(a: NodeAccount | PlainMessage | undefined, b: NodeAccount | PlainMessage | undefined): boolean; +} + diff --git a/typescript/observer/observer_pb.d.ts b/typescript/observer/observer_pb.d.ts new file mode 100644 index 0000000000..60f70c21cb --- /dev/null +++ b/typescript/observer/observer_pb.d.ts @@ -0,0 +1,102 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file observer/observer.proto (package zetachain.zetacore.observer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { Chain } from "../common/common_pb.js"; + +/** + * @generated from enum zetachain.zetacore.observer.ObservationType + */ +export declare enum ObservationType { + /** + * @generated from enum value: EmptyObserverType = 0; + */ + EmptyObserverType = 0, + + /** + * @generated from enum value: InBoundTx = 1; + */ + InBoundTx = 1, + + /** + * @generated from enum value: OutBoundTx = 2; + */ + OutBoundTx = 2, + + /** + * @generated from enum value: TSSKeyGen = 3; + */ + TSSKeyGen = 3, + + /** + * @generated from enum value: TSSKeySign = 4; + */ + TSSKeySign = 4, +} + +/** + * @generated from message zetachain.zetacore.observer.ObserverMapper + */ +export declare class ObserverMapper extends Message { + /** + * @generated from field: string index = 1; + */ + index: string; + + /** + * @generated from field: common.Chain observer_chain = 2; + */ + observerChain?: Chain; + + /** + * @generated from field: repeated string observer_list = 4; + */ + observerList: string[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.ObserverMapper"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): ObserverMapper; + + static fromJson(jsonValue: JsonValue, options?: Partial): ObserverMapper; + + static fromJsonString(jsonString: string, options?: Partial): ObserverMapper; + + static equals(a: ObserverMapper | PlainMessage | undefined, b: ObserverMapper | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.LastObserverCount + */ +export declare class LastObserverCount extends Message { + /** + * @generated from field: uint64 count = 1; + */ + count: bigint; + + /** + * @generated from field: int64 last_change_height = 2; + */ + lastChangeHeight: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.LastObserverCount"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): LastObserverCount; + + static fromJson(jsonValue: JsonValue, options?: Partial): LastObserverCount; + + static fromJsonString(jsonString: string, options?: Partial): LastObserverCount; + + static equals(a: LastObserverCount | PlainMessage | undefined, b: LastObserverCount | PlainMessage | undefined): boolean; +} + diff --git a/typescript/observer/params_pb.d.ts b/typescript/observer/params_pb.d.ts new file mode 100644 index 0000000000..e4f67dc239 --- /dev/null +++ b/typescript/observer/params_pb.d.ts @@ -0,0 +1,226 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file observer/params.proto (package zetachain.zetacore.observer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { Chain } from "../common/common_pb.js"; + +/** + * @generated from enum zetachain.zetacore.observer.Policy_Type + */ +export declare enum Policy_Type { + /** + * @generated from enum value: group1 = 0; + */ + group1 = 0, + + /** + * @generated from enum value: group2 = 1; + */ + group2 = 1, +} + +/** + * @generated from message zetachain.zetacore.observer.CoreParamsList + */ +export declare class CoreParamsList extends Message { + /** + * @generated from field: repeated zetachain.zetacore.observer.CoreParams core_params = 1; + */ + coreParams: CoreParams[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.CoreParamsList"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): CoreParamsList; + + static fromJson(jsonValue: JsonValue, options?: Partial): CoreParamsList; + + static fromJsonString(jsonString: string, options?: Partial): CoreParamsList; + + static equals(a: CoreParamsList | PlainMessage | undefined, b: CoreParamsList | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.CoreParams + */ +export declare class CoreParams extends Message { + /** + * @generated from field: uint64 confirmation_count = 1; + */ + confirmationCount: bigint; + + /** + * @generated from field: uint64 gas_price_ticker = 2; + */ + gasPriceTicker: bigint; + + /** + * @generated from field: uint64 in_tx_ticker = 3; + */ + inTxTicker: bigint; + + /** + * @generated from field: uint64 out_tx_ticker = 4; + */ + outTxTicker: bigint; + + /** + * @generated from field: uint64 watch_utxo_ticker = 5; + */ + watchUtxoTicker: bigint; + + /** + * @generated from field: string zeta_token_contract_address = 8; + */ + zetaTokenContractAddress: string; + + /** + * @generated from field: string connector_contract_address = 9; + */ + connectorContractAddress: string; + + /** + * @generated from field: string erc20_custody_contract_address = 10; + */ + erc20CustodyContractAddress: string; + + /** + * @generated from field: int64 chain_id = 11; + */ + chainId: bigint; + + /** + * @generated from field: int64 outbound_tx_schedule_interval = 12; + */ + outboundTxScheduleInterval: bigint; + + /** + * @generated from field: int64 outbound_tx_schedule_lookahead = 13; + */ + outboundTxScheduleLookahead: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.CoreParams"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): CoreParams; + + static fromJson(jsonValue: JsonValue, options?: Partial): CoreParams; + + static fromJsonString(jsonString: string, options?: Partial): CoreParams; + + static equals(a: CoreParams | PlainMessage | undefined, b: CoreParams | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.ObserverParams + */ +export declare class ObserverParams extends Message { + /** + * @generated from field: common.Chain chain = 1; + */ + chain?: Chain; + + /** + * @generated from field: string ballot_threshold = 3; + */ + ballotThreshold: string; + + /** + * @generated from field: string min_observer_delegation = 4; + */ + minObserverDelegation: string; + + /** + * @generated from field: bool is_supported = 5; + */ + isSupported: boolean; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.ObserverParams"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): ObserverParams; + + static fromJson(jsonValue: JsonValue, options?: Partial): ObserverParams; + + static fromJsonString(jsonString: string, options?: Partial): ObserverParams; + + static equals(a: ObserverParams | PlainMessage | undefined, b: ObserverParams | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.Admin_Policy + */ +export declare class Admin_Policy extends Message { + /** + * @generated from field: zetachain.zetacore.observer.Policy_Type policy_type = 1; + */ + policyType: Policy_Type; + + /** + * @generated from field: string address = 2; + */ + address: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.Admin_Policy"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Admin_Policy; + + static fromJson(jsonValue: JsonValue, options?: Partial): Admin_Policy; + + static fromJsonString(jsonString: string, options?: Partial): Admin_Policy; + + static equals(a: Admin_Policy | PlainMessage | undefined, b: Admin_Policy | PlainMessage | undefined): boolean; +} + +/** + * Params defines the parameters for the module. + * + * @generated from message zetachain.zetacore.observer.Params + */ +export declare class Params extends Message { + /** + * @generated from field: repeated zetachain.zetacore.observer.ObserverParams observer_params = 1; + */ + observerParams: ObserverParams[]; + + /** + * @generated from field: repeated zetachain.zetacore.observer.Admin_Policy admin_policy = 2; + */ + adminPolicy: Admin_Policy[]; + + /** + * @generated from field: int64 ballot_maturity_blocks = 3; + */ + ballotMaturityBlocks: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.Params"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): Params; + + static fromJson(jsonValue: JsonValue, options?: Partial): Params; + + static fromJsonString(jsonString: string, options?: Partial): Params; + + static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean; +} + diff --git a/typescript/observer/query_pb.d.ts b/typescript/observer/query_pb.d.ts new file mode 100644 index 0000000000..95880ba59e --- /dev/null +++ b/typescript/observer/query_pb.d.ts @@ -0,0 +1,924 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file observer/query.proto (package zetachain.zetacore.observer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { BlockHeader, Chain, Proof } from "../common/common_pb.js"; +import type { CoreParams, CoreParamsList, Params } from "./params_pb.js"; +import type { BallotStatus, VoteType } from "./ballot_pb.js"; +import type { LastObserverCount, ObservationType, ObserverMapper } from "./observer_pb.js"; +import type { NodeAccount } from "./node_account_pb.js"; +import type { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination_pb.js"; +import type { CrosschainFlags } from "./crosschain_flags_pb.js"; +import type { Keygen } from "./keygen_pb.js"; +import type { Blame } from "./blame_pb.js"; + +/** + * @generated from message zetachain.zetacore.observer.QueryProveRequest + */ +export declare class QueryProveRequest extends Message { + /** + * @generated from field: int64 chain_id = 1; + */ + chainId: bigint; + + /** + * @generated from field: string tx_hash = 2; + */ + txHash: string; + + /** + * @generated from field: common.Proof proof = 3; + */ + proof?: Proof; + + /** + * @generated from field: string block_hash = 4; + */ + blockHash: string; + + /** + * @generated from field: int64 tx_index = 5; + */ + txIndex: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryProveRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryProveRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryProveRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryProveRequest; + + static equals(a: QueryProveRequest | PlainMessage | undefined, b: QueryProveRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryProveResponse + */ +export declare class QueryProveResponse extends Message { + /** + * @generated from field: bool valid = 1; + */ + valid: boolean; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryProveResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryProveResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryProveResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryProveResponse; + + static equals(a: QueryProveResponse | PlainMessage | undefined, b: QueryProveResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryParamsRequest + */ +export declare class QueryParamsRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryParamsRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest; + + static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean; +} + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message zetachain.zetacore.observer.QueryParamsResponse + */ +export declare class QueryParamsResponse extends Message { + /** + * params holds all the parameters of this module. + * + * @generated from field: zetachain.zetacore.observer.Params params = 1; + */ + params?: Params; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryParamsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse; + + static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryBallotByIdentifierRequest + */ +export declare class QueryBallotByIdentifierRequest extends Message { + /** + * @generated from field: string ballot_identifier = 1; + */ + ballotIdentifier: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryBallotByIdentifierRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBallotByIdentifierRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBallotByIdentifierRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryBallotByIdentifierRequest; + + static equals(a: QueryBallotByIdentifierRequest | PlainMessage | undefined, b: QueryBallotByIdentifierRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.VoterList + */ +export declare class VoterList extends Message { + /** + * @generated from field: string voter_address = 1; + */ + voterAddress: string; + + /** + * @generated from field: zetachain.zetacore.observer.VoteType vote_type = 2; + */ + voteType: VoteType; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.VoterList"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): VoterList; + + static fromJson(jsonValue: JsonValue, options?: Partial): VoterList; + + static fromJsonString(jsonString: string, options?: Partial): VoterList; + + static equals(a: VoterList | PlainMessage | undefined, b: VoterList | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryBallotByIdentifierResponse + */ +export declare class QueryBallotByIdentifierResponse extends Message { + /** + * @generated from field: string ballot_identifier = 1; + */ + ballotIdentifier: string; + + /** + * @generated from field: repeated zetachain.zetacore.observer.VoterList voters = 2; + */ + voters: VoterList[]; + + /** + * @generated from field: zetachain.zetacore.observer.ObservationType observation_type = 3; + */ + observationType: ObservationType; + + /** + * @generated from field: zetachain.zetacore.observer.BallotStatus ballot_status = 4; + */ + ballotStatus: BallotStatus; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryBallotByIdentifierResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBallotByIdentifierResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBallotByIdentifierResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryBallotByIdentifierResponse; + + static equals(a: QueryBallotByIdentifierResponse | PlainMessage | undefined, b: QueryBallotByIdentifierResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryObserversByChainRequest + */ +export declare class QueryObserversByChainRequest extends Message { + /** + * @generated from field: string observation_chain = 1; + */ + observationChain: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryObserversByChainRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryObserversByChainRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryObserversByChainRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryObserversByChainRequest; + + static equals(a: QueryObserversByChainRequest | PlainMessage | undefined, b: QueryObserversByChainRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryObserversByChainResponse + */ +export declare class QueryObserversByChainResponse extends Message { + /** + * @generated from field: repeated string observers = 1; + */ + observers: string[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryObserversByChainResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryObserversByChainResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryObserversByChainResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryObserversByChainResponse; + + static equals(a: QueryObserversByChainResponse | PlainMessage | undefined, b: QueryObserversByChainResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryAllObserverMappersRequest + */ +export declare class QueryAllObserverMappersRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryAllObserverMappersRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllObserverMappersRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllObserverMappersRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllObserverMappersRequest; + + static equals(a: QueryAllObserverMappersRequest | PlainMessage | undefined, b: QueryAllObserverMappersRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryAllObserverMappersResponse + */ +export declare class QueryAllObserverMappersResponse extends Message { + /** + * @generated from field: repeated zetachain.zetacore.observer.ObserverMapper observer_mappers = 1; + */ + observerMappers: ObserverMapper[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryAllObserverMappersResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllObserverMappersResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllObserverMappersResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllObserverMappersResponse; + + static equals(a: QueryAllObserverMappersResponse | PlainMessage | undefined, b: QueryAllObserverMappersResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QuerySupportedChains + */ +export declare class QuerySupportedChains extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QuerySupportedChains"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySupportedChains; + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySupportedChains; + + static fromJsonString(jsonString: string, options?: Partial): QuerySupportedChains; + + static equals(a: QuerySupportedChains | PlainMessage | undefined, b: QuerySupportedChains | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QuerySupportedChainsResponse + */ +export declare class QuerySupportedChainsResponse extends Message { + /** + * @generated from field: repeated common.Chain chains = 1; + */ + chains: Chain[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QuerySupportedChainsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QuerySupportedChainsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QuerySupportedChainsResponse; + + static fromJsonString(jsonString: string, options?: Partial): QuerySupportedChainsResponse; + + static equals(a: QuerySupportedChainsResponse | PlainMessage | undefined, b: QuerySupportedChainsResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryGetCoreParamsForChainRequest + */ +export declare class QueryGetCoreParamsForChainRequest extends Message { + /** + * @generated from field: int64 chain_id = 1; + */ + chainId: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryGetCoreParamsForChainRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetCoreParamsForChainRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetCoreParamsForChainRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetCoreParamsForChainRequest; + + static equals(a: QueryGetCoreParamsForChainRequest | PlainMessage | undefined, b: QueryGetCoreParamsForChainRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryGetCoreParamsForChainResponse + */ +export declare class QueryGetCoreParamsForChainResponse extends Message { + /** + * @generated from field: zetachain.zetacore.observer.CoreParams core_params = 1; + */ + coreParams?: CoreParams; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryGetCoreParamsForChainResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetCoreParamsForChainResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetCoreParamsForChainResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetCoreParamsForChainResponse; + + static equals(a: QueryGetCoreParamsForChainResponse | PlainMessage | undefined, b: QueryGetCoreParamsForChainResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryGetCoreParamsRequest + */ +export declare class QueryGetCoreParamsRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryGetCoreParamsRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetCoreParamsRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetCoreParamsRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetCoreParamsRequest; + + static equals(a: QueryGetCoreParamsRequest | PlainMessage | undefined, b: QueryGetCoreParamsRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryGetCoreParamsResponse + */ +export declare class QueryGetCoreParamsResponse extends Message { + /** + * @generated from field: zetachain.zetacore.observer.CoreParamsList core_params = 1; + */ + coreParams?: CoreParamsList; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryGetCoreParamsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetCoreParamsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetCoreParamsResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetCoreParamsResponse; + + static equals(a: QueryGetCoreParamsResponse | PlainMessage | undefined, b: QueryGetCoreParamsResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryGetNodeAccountRequest + */ +export declare class QueryGetNodeAccountRequest extends Message { + /** + * @generated from field: string index = 1; + */ + index: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryGetNodeAccountRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetNodeAccountRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetNodeAccountRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetNodeAccountRequest; + + static equals(a: QueryGetNodeAccountRequest | PlainMessage | undefined, b: QueryGetNodeAccountRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryGetNodeAccountResponse + */ +export declare class QueryGetNodeAccountResponse extends Message { + /** + * @generated from field: zetachain.zetacore.observer.NodeAccount node_account = 1; + */ + nodeAccount?: NodeAccount; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryGetNodeAccountResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetNodeAccountResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetNodeAccountResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetNodeAccountResponse; + + static equals(a: QueryGetNodeAccountResponse | PlainMessage | undefined, b: QueryGetNodeAccountResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryAllNodeAccountRequest + */ +export declare class QueryAllNodeAccountRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryAllNodeAccountRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllNodeAccountRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllNodeAccountRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllNodeAccountRequest; + + static equals(a: QueryAllNodeAccountRequest | PlainMessage | undefined, b: QueryAllNodeAccountRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryAllNodeAccountResponse + */ +export declare class QueryAllNodeAccountResponse extends Message { + /** + * @generated from field: repeated zetachain.zetacore.observer.NodeAccount NodeAccount = 1; + */ + NodeAccount: NodeAccount[]; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryAllNodeAccountResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllNodeAccountResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllNodeAccountResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllNodeAccountResponse; + + static equals(a: QueryAllNodeAccountResponse | PlainMessage | undefined, b: QueryAllNodeAccountResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryGetCrosschainFlagsRequest + */ +export declare class QueryGetCrosschainFlagsRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryGetCrosschainFlagsRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetCrosschainFlagsRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetCrosschainFlagsRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetCrosschainFlagsRequest; + + static equals(a: QueryGetCrosschainFlagsRequest | PlainMessage | undefined, b: QueryGetCrosschainFlagsRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryGetCrosschainFlagsResponse + */ +export declare class QueryGetCrosschainFlagsResponse extends Message { + /** + * @generated from field: zetachain.zetacore.observer.CrosschainFlags crosschain_flags = 1; + */ + crosschainFlags?: CrosschainFlags; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryGetCrosschainFlagsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetCrosschainFlagsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetCrosschainFlagsResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetCrosschainFlagsResponse; + + static equals(a: QueryGetCrosschainFlagsResponse | PlainMessage | undefined, b: QueryGetCrosschainFlagsResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryGetKeygenRequest + */ +export declare class QueryGetKeygenRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryGetKeygenRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetKeygenRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetKeygenRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetKeygenRequest; + + static equals(a: QueryGetKeygenRequest | PlainMessage | undefined, b: QueryGetKeygenRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryGetKeygenResponse + */ +export declare class QueryGetKeygenResponse extends Message { + /** + * @generated from field: zetachain.zetacore.observer.Keygen keygen = 1; + */ + keygen?: Keygen; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryGetKeygenResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetKeygenResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetKeygenResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetKeygenResponse; + + static equals(a: QueryGetKeygenResponse | PlainMessage | undefined, b: QueryGetKeygenResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryShowObserverCountRequest + */ +export declare class QueryShowObserverCountRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryShowObserverCountRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryShowObserverCountRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryShowObserverCountRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryShowObserverCountRequest; + + static equals(a: QueryShowObserverCountRequest | PlainMessage | undefined, b: QueryShowObserverCountRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryShowObserverCountResponse + */ +export declare class QueryShowObserverCountResponse extends Message { + /** + * @generated from field: zetachain.zetacore.observer.LastObserverCount last_observer_count = 1; + */ + lastObserverCount?: LastObserverCount; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryShowObserverCountResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryShowObserverCountResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryShowObserverCountResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryShowObserverCountResponse; + + static equals(a: QueryShowObserverCountResponse | PlainMessage | undefined, b: QueryShowObserverCountResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryBlameByIdentifierRequest + */ +export declare class QueryBlameByIdentifierRequest extends Message { + /** + * @generated from field: string blame_identifier = 1; + */ + blameIdentifier: string; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryBlameByIdentifierRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBlameByIdentifierRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBlameByIdentifierRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryBlameByIdentifierRequest; + + static equals(a: QueryBlameByIdentifierRequest | PlainMessage | undefined, b: QueryBlameByIdentifierRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryBlameByIdentifierResponse + */ +export declare class QueryBlameByIdentifierResponse extends Message { + /** + * @generated from field: zetachain.zetacore.observer.Blame blame_info = 1; + */ + blameInfo?: Blame; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryBlameByIdentifierResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBlameByIdentifierResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBlameByIdentifierResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryBlameByIdentifierResponse; + + static equals(a: QueryBlameByIdentifierResponse | PlainMessage | undefined, b: QueryBlameByIdentifierResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryAllBlameRecordsRequest + */ +export declare class QueryAllBlameRecordsRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryAllBlameRecordsRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllBlameRecordsRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllBlameRecordsRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllBlameRecordsRequest; + + static equals(a: QueryAllBlameRecordsRequest | PlainMessage | undefined, b: QueryAllBlameRecordsRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryAllBlameRecordsResponse + */ +export declare class QueryAllBlameRecordsResponse extends Message { + /** + * @generated from field: repeated zetachain.zetacore.observer.Blame blame_info = 1; + */ + blameInfo: Blame[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryAllBlameRecordsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllBlameRecordsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllBlameRecordsResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllBlameRecordsResponse; + + static equals(a: QueryAllBlameRecordsResponse | PlainMessage | undefined, b: QueryAllBlameRecordsResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryBlameByChainAndNonceRequest + */ +export declare class QueryBlameByChainAndNonceRequest extends Message { + /** + * @generated from field: int64 chain_id = 1; + */ + chainId: bigint; + + /** + * @generated from field: int64 nonce = 2; + */ + nonce: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryBlameByChainAndNonceRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBlameByChainAndNonceRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBlameByChainAndNonceRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryBlameByChainAndNonceRequest; + + static equals(a: QueryBlameByChainAndNonceRequest | PlainMessage | undefined, b: QueryBlameByChainAndNonceRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryBlameByChainAndNonceResponse + */ +export declare class QueryBlameByChainAndNonceResponse extends Message { + /** + * @generated from field: repeated zetachain.zetacore.observer.Blame blame_info = 1; + */ + blameInfo: Blame[]; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryBlameByChainAndNonceResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryBlameByChainAndNonceResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryBlameByChainAndNonceResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryBlameByChainAndNonceResponse; + + static equals(a: QueryBlameByChainAndNonceResponse | PlainMessage | undefined, b: QueryBlameByChainAndNonceResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryAllBlockHeaderRequest + */ +export declare class QueryAllBlockHeaderRequest extends Message { + /** + * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; + */ + pagination?: PageRequest; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryAllBlockHeaderRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllBlockHeaderRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllBlockHeaderRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllBlockHeaderRequest; + + static equals(a: QueryAllBlockHeaderRequest | PlainMessage | undefined, b: QueryAllBlockHeaderRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryAllBlockHeaderResponse + */ +export declare class QueryAllBlockHeaderResponse extends Message { + /** + * @generated from field: repeated common.BlockHeader block_headers = 1; + */ + blockHeaders: BlockHeader[]; + + /** + * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; + */ + pagination?: PageResponse; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryAllBlockHeaderResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllBlockHeaderResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllBlockHeaderResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryAllBlockHeaderResponse; + + static equals(a: QueryAllBlockHeaderResponse | PlainMessage | undefined, b: QueryAllBlockHeaderResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryGetBlockHeaderByHashRequest + */ +export declare class QueryGetBlockHeaderByHashRequest extends Message { + /** + * @generated from field: bytes block_hash = 1; + */ + blockHash: Uint8Array; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryGetBlockHeaderByHashRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetBlockHeaderByHashRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetBlockHeaderByHashRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetBlockHeaderByHashRequest; + + static equals(a: QueryGetBlockHeaderByHashRequest | PlainMessage | undefined, b: QueryGetBlockHeaderByHashRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryGetBlockHeaderByHashResponse + */ +export declare class QueryGetBlockHeaderByHashResponse extends Message { + /** + * @generated from field: common.BlockHeader block_header = 1; + */ + blockHeader?: BlockHeader; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryGetBlockHeaderByHashResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetBlockHeaderByHashResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetBlockHeaderByHashResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetBlockHeaderByHashResponse; + + static equals(a: QueryGetBlockHeaderByHashResponse | PlainMessage | undefined, b: QueryGetBlockHeaderByHashResponse | PlainMessage | undefined): boolean; +} + diff --git a/typescript/observer/tx_pb.d.ts b/typescript/observer/tx_pb.d.ts new file mode 100644 index 0000000000..c1933dd04f --- /dev/null +++ b/typescript/observer/tx_pb.d.ts @@ -0,0 +1,345 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" +// @generated from file observer/tx.proto (package zetachain.zetacore.observer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import type { HeaderData } from "../common/common_pb.js"; +import type { CoreParams } from "./params_pb.js"; +import type { Blame } from "./blame_pb.js"; +import type { BlockHeaderVerificationFlags, GasPriceIncreaseFlags } from "./crosschain_flags_pb.js"; + +/** + * @generated from message zetachain.zetacore.observer.MsgAddBlockHeader + */ +export declare class MsgAddBlockHeader extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: int64 chain_id = 2; + */ + chainId: bigint; + + /** + * @generated from field: bytes block_hash = 3; + */ + blockHash: Uint8Array; + + /** + * @generated from field: int64 height = 4; + */ + height: bigint; + + /** + * @generated from field: common.HeaderData header = 5; + */ + header?: HeaderData; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.MsgAddBlockHeader"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddBlockHeader; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddBlockHeader; + + static fromJsonString(jsonString: string, options?: Partial): MsgAddBlockHeader; + + static equals(a: MsgAddBlockHeader | PlainMessage | undefined, b: MsgAddBlockHeader | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.MsgAddBlockHeaderResponse + */ +export declare class MsgAddBlockHeaderResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.MsgAddBlockHeaderResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddBlockHeaderResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddBlockHeaderResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgAddBlockHeaderResponse; + + static equals(a: MsgAddBlockHeaderResponse | PlainMessage | undefined, b: MsgAddBlockHeaderResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.MsgUpdateCoreParams + */ +export declare class MsgUpdateCoreParams extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: zetachain.zetacore.observer.CoreParams coreParams = 2; + */ + coreParams?: CoreParams; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.MsgUpdateCoreParams"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateCoreParams; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateCoreParams; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateCoreParams; + + static equals(a: MsgUpdateCoreParams | PlainMessage | undefined, b: MsgUpdateCoreParams | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.MsgUpdateCoreParamsResponse + */ +export declare class MsgUpdateCoreParamsResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.MsgUpdateCoreParamsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateCoreParamsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateCoreParamsResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateCoreParamsResponse; + + static equals(a: MsgUpdateCoreParamsResponse | PlainMessage | undefined, b: MsgUpdateCoreParamsResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.MsgAddObserver + */ +export declare class MsgAddObserver extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: string observer_address = 2; + */ + observerAddress: string; + + /** + * @generated from field: string zetaclient_grantee_pubkey = 3; + */ + zetaclientGranteePubkey: string; + + /** + * @generated from field: bool add_node_account_only = 4; + */ + addNodeAccountOnly: boolean; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.MsgAddObserver"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddObserver; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddObserver; + + static fromJsonString(jsonString: string, options?: Partial): MsgAddObserver; + + static equals(a: MsgAddObserver | PlainMessage | undefined, b: MsgAddObserver | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.MsgAddObserverResponse + */ +export declare class MsgAddObserverResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.MsgAddObserverResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddObserverResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddObserverResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgAddObserverResponse; + + static equals(a: MsgAddObserverResponse | PlainMessage | undefined, b: MsgAddObserverResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.MsgAddBlameVote + */ +export declare class MsgAddBlameVote extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: int64 chain_id = 2; + */ + chainId: bigint; + + /** + * @generated from field: zetachain.zetacore.observer.Blame blame_info = 3; + */ + blameInfo?: Blame; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.MsgAddBlameVote"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddBlameVote; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddBlameVote; + + static fromJsonString(jsonString: string, options?: Partial): MsgAddBlameVote; + + static equals(a: MsgAddBlameVote | PlainMessage | undefined, b: MsgAddBlameVote | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.MsgAddBlameVoteResponse + */ +export declare class MsgAddBlameVoteResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.MsgAddBlameVoteResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddBlameVoteResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddBlameVoteResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgAddBlameVoteResponse; + + static equals(a: MsgAddBlameVoteResponse | PlainMessage | undefined, b: MsgAddBlameVoteResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.MsgUpdateCrosschainFlags + */ +export declare class MsgUpdateCrosschainFlags extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: bool isInboundEnabled = 3; + */ + isInboundEnabled: boolean; + + /** + * @generated from field: bool isOutboundEnabled = 4; + */ + isOutboundEnabled: boolean; + + /** + * @generated from field: zetachain.zetacore.observer.GasPriceIncreaseFlags gasPriceIncreaseFlags = 5; + */ + gasPriceIncreaseFlags?: GasPriceIncreaseFlags; + + /** + * @generated from field: zetachain.zetacore.observer.BlockHeaderVerificationFlags blockHeaderVerificationFlags = 6; + */ + blockHeaderVerificationFlags?: BlockHeaderVerificationFlags; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.MsgUpdateCrosschainFlags"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateCrosschainFlags; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateCrosschainFlags; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateCrosschainFlags; + + static equals(a: MsgUpdateCrosschainFlags | PlainMessage | undefined, b: MsgUpdateCrosschainFlags | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.MsgUpdateCrosschainFlagsResponse + */ +export declare class MsgUpdateCrosschainFlagsResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.MsgUpdateCrosschainFlagsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateCrosschainFlagsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateCrosschainFlagsResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateCrosschainFlagsResponse; + + static equals(a: MsgUpdateCrosschainFlagsResponse | PlainMessage | undefined, b: MsgUpdateCrosschainFlagsResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.MsgUpdateKeygen + */ +export declare class MsgUpdateKeygen extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: int64 block = 2; + */ + block: bigint; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.MsgUpdateKeygen"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateKeygen; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateKeygen; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateKeygen; + + static equals(a: MsgUpdateKeygen | PlainMessage | undefined, b: MsgUpdateKeygen | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.MsgUpdateKeygenResponse + */ +export declare class MsgUpdateKeygenResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.MsgUpdateKeygenResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateKeygenResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateKeygenResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateKeygenResponse; + + static equals(a: MsgUpdateKeygenResponse | PlainMessage | undefined, b: MsgUpdateKeygenResponse | PlainMessage | undefined): boolean; +} + diff --git a/typescript/package.json b/typescript/package.json new file mode 100644 index 0000000000..369d5cbb82 --- /dev/null +++ b/typescript/package.json @@ -0,0 +1,9 @@ +{ + "name": "@zetachain/blockchain-types", + "version": "0.0.0-set-on-publish", + "description": "", + "main": "", + "keywords": [], + "author": "ZetaChain", + "license": "MIT" +}