From 25cd22f14c2375675a7aec707f2748a365e48ab8 Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Wed, 19 Jul 2023 18:44:54 +0200 Subject: [PATCH 1/5] feat: generate typescript bindigns --- Makefile | 5 + proto/buf.ts.yaml | 6 + scripts/protoc-gen-typescript.sh | 5 + typescript/common/common_pb.d.ts | 202 ++ typescript/common/common_pb.js | 79 + typescript/crosschain/chain_nonces_pb.d.ts | 57 + typescript/crosschain/chain_nonces_pb.js | 22 + typescript/crosschain/cross_chain_tx_pb.d.ts | 293 +++ typescript/crosschain/cross_chain_tx_pb.js | 89 + typescript/crosschain/gas_price_pb.d.ts | 62 + typescript/crosschain/gas_price_pb.js | 23 + typescript/crosschain/genesis_pb.d.ts | 97 + typescript/crosschain/genesis_pb.js | 40 + .../crosschain/in_tx_hash_to_cctx_pb.d.ts | 37 + .../crosschain/in_tx_hash_to_cctx_pb.js | 18 + typescript/crosschain/keygen_pb.d.ts | 66 + typescript/crosschain/keygen_pb.js | 31 + .../crosschain/last_block_height_pb.d.ts | 52 + typescript/crosschain/last_block_height_pb.js | 21 + typescript/crosschain/node_account_pb.d.ts | 83 + typescript/crosschain/node_account_pb.js | 36 + typescript/crosschain/nonce_to_cctx_pb.d.ts | 90 + typescript/crosschain/nonce_to_cctx_pb.js | 37 + typescript/crosschain/out_tx_tracker_pb.d.ts | 78 + typescript/crosschain/out_tx_tracker_pb.js | 31 + typescript/crosschain/params_pb.d.ts | 34 + typescript/crosschain/params_pb.js | 19 + .../crosschain/permission_flags_pb.d.ts | 32 + typescript/crosschain/permission_flags_pb.js | 17 + typescript/crosschain/query_pb.d.ts | 1714 +++++++++++++++++ typescript/crosschain/query_pb.js | 651 +++++++ typescript/crosschain/tss_pb.d.ts | 52 + typescript/crosschain/tss_pb.js | 21 + typescript/crosschain/tx_pb.d.ts | 635 ++++++ typescript/crosschain/tx_pb.js | 228 +++ typescript/emissions/genesis_pb.d.ts | 37 + typescript/emissions/genesis_pb.js | 20 + typescript/emissions/params_pb.d.ts | 69 + typescript/emissions/params_pb.js | 26 + typescript/emissions/query_pb.d.ts | 111 ++ typescript/emissions/query_pb.js | 50 + typescript/fungible/foreign_coins_pb.d.ts | 72 + typescript/fungible/foreign_coins_pb.js | 25 + typescript/fungible/genesis_pb.d.ts | 49 + typescript/fungible/genesis_pb.js | 24 + typescript/fungible/params_pb.d.ts | 29 + typescript/fungible/params_pb.js | 17 + typescript/fungible/query_pb.d.ts | 205 ++ typescript/fungible/query_pb.js | 92 + typescript/fungible/system_contract_pb.d.ts | 37 + typescript/fungible/system_contract_pb.js | 18 + typescript/fungible/tx_pb.d.ts | 135 ++ typescript/fungible/tx_pb.js | 52 + typescript/observer/ballot_pb.d.ts | 105 + typescript/observer/ballot_pb.js | 48 + typescript/observer/genesis_pb.d.ts | 45 + typescript/observer/genesis_pb.js | 22 + typescript/observer/observer_pb.d.ts | 68 + typescript/observer/observer_pb.js | 33 + typescript/observer/params_pb.d.ts | 238 +++ typescript/observer/params_pb.js | 89 + typescript/observer/query_pb.d.ts | 376 ++++ typescript/observer/query_pb.js | 159 ++ typescript/observer/tx_pb.d.ts | 122 ++ typescript/observer/tx_pb.js | 59 + 65 files changed, 7395 insertions(+) create mode 100644 proto/buf.ts.yaml create mode 100755 scripts/protoc-gen-typescript.sh create mode 100644 typescript/common/common_pb.d.ts create mode 100644 typescript/common/common_pb.js create mode 100644 typescript/crosschain/chain_nonces_pb.d.ts create mode 100644 typescript/crosschain/chain_nonces_pb.js create mode 100644 typescript/crosschain/cross_chain_tx_pb.d.ts create mode 100644 typescript/crosschain/cross_chain_tx_pb.js create mode 100644 typescript/crosschain/gas_price_pb.d.ts create mode 100644 typescript/crosschain/gas_price_pb.js create mode 100644 typescript/crosschain/genesis_pb.d.ts create mode 100644 typescript/crosschain/genesis_pb.js create mode 100644 typescript/crosschain/in_tx_hash_to_cctx_pb.d.ts create mode 100644 typescript/crosschain/in_tx_hash_to_cctx_pb.js create mode 100644 typescript/crosschain/keygen_pb.d.ts create mode 100644 typescript/crosschain/keygen_pb.js create mode 100644 typescript/crosschain/last_block_height_pb.d.ts create mode 100644 typescript/crosschain/last_block_height_pb.js create mode 100644 typescript/crosschain/node_account_pb.d.ts create mode 100644 typescript/crosschain/node_account_pb.js create mode 100644 typescript/crosschain/nonce_to_cctx_pb.d.ts create mode 100644 typescript/crosschain/nonce_to_cctx_pb.js create mode 100644 typescript/crosschain/out_tx_tracker_pb.d.ts create mode 100644 typescript/crosschain/out_tx_tracker_pb.js create mode 100644 typescript/crosschain/params_pb.d.ts create mode 100644 typescript/crosschain/params_pb.js create mode 100644 typescript/crosschain/permission_flags_pb.d.ts create mode 100644 typescript/crosschain/permission_flags_pb.js create mode 100644 typescript/crosschain/query_pb.d.ts create mode 100644 typescript/crosschain/query_pb.js create mode 100644 typescript/crosschain/tss_pb.d.ts create mode 100644 typescript/crosschain/tss_pb.js create mode 100644 typescript/crosschain/tx_pb.d.ts create mode 100644 typescript/crosschain/tx_pb.js create mode 100644 typescript/emissions/genesis_pb.d.ts create mode 100644 typescript/emissions/genesis_pb.js create mode 100644 typescript/emissions/params_pb.d.ts create mode 100644 typescript/emissions/params_pb.js create mode 100644 typescript/emissions/query_pb.d.ts create mode 100644 typescript/emissions/query_pb.js create mode 100644 typescript/fungible/foreign_coins_pb.d.ts create mode 100644 typescript/fungible/foreign_coins_pb.js create mode 100644 typescript/fungible/genesis_pb.d.ts create mode 100644 typescript/fungible/genesis_pb.js create mode 100644 typescript/fungible/params_pb.d.ts create mode 100644 typescript/fungible/params_pb.js create mode 100644 typescript/fungible/query_pb.d.ts create mode 100644 typescript/fungible/query_pb.js create mode 100644 typescript/fungible/system_contract_pb.d.ts create mode 100644 typescript/fungible/system_contract_pb.js create mode 100644 typescript/fungible/tx_pb.d.ts create mode 100644 typescript/fungible/tx_pb.js create mode 100644 typescript/observer/ballot_pb.d.ts create mode 100644 typescript/observer/ballot_pb.js create mode 100644 typescript/observer/genesis_pb.d.ts create mode 100644 typescript/observer/genesis_pb.js create mode 100644 typescript/observer/observer_pb.d.ts create mode 100644 typescript/observer/observer_pb.js create mode 100644 typescript/observer/params_pb.d.ts create mode 100644 typescript/observer/params_pb.js create mode 100644 typescript/observer/query_pb.d.ts create mode 100644 typescript/observer/query_pb.js create mode 100644 typescript/observer/tx_pb.d.ts create mode 100644 typescript/observer/tx_pb.js diff --git a/Makefile b/Makefile index 08fc784e06..a63b732fdd 100644 --- a/Makefile +++ b/Makefile @@ -132,6 +132,11 @@ proto: @bash ./scripts/protoc-gen-openapi.sh .PHONY: proto +typescript: + @echo "--> Generating TypeScript bindings" + @bash ./scripts/protoc-gen-typescript.sh +.PHONY: typescript + specs: @go run ./scripts/gen-spec.go .PHONY: specs diff --git a/proto/buf.ts.yaml b/proto/buf.ts.yaml new file mode 100644 index 0000000000..3d6c7800b8 --- /dev/null +++ b/proto/buf.ts.yaml @@ -0,0 +1,6 @@ +version: v1 +managed: + enabled: true +plugins: + - plugin: buf.build/bufbuild/es:v1.3.0 + out: ../typescript \ No newline at end of file diff --git a/scripts/protoc-gen-typescript.sh b/scripts/protoc-gen-typescript.sh new file mode 100755 index 0000000000..997f73d2f0 --- /dev/null +++ b/scripts/protoc-gen-typescript.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +cd proto +rm -rf typescript +buf generate --template buf.ts.yaml \ No newline at end of file diff --git a/typescript/common/common_pb.d.ts b/typescript/common/common_pb.d.ts new file mode 100644 index 0000000000..ac48c63ac2 --- /dev/null +++ b/typescript/common/common_pb.d.ts @@ -0,0 +1,202 @@ +// @generated by protoc-gen-es v1.3.0 +// @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"; + +/** + * @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, +} + +/** + * @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; +} + diff --git a/typescript/common/common_pb.js b/typescript/common/common_pb.js new file mode 100644 index 0000000000..778a4e994f --- /dev/null +++ b/typescript/common/common_pb.js @@ -0,0 +1,79 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file common/common.proto (package common, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from enum common.ReceiveStatus + */ +export const ReceiveStatus = proto3.makeEnum( + "common.ReceiveStatus", + [ + {no: 0, name: "Created"}, + {no: 1, name: "Success"}, + {no: 2, name: "Failed"}, + ], +); + +/** + * @generated from enum common.CoinType + */ +export const CoinType = proto3.makeEnum( + "common.CoinType", + [ + {no: 0, name: "Zeta"}, + {no: 1, name: "Gas"}, + {no: 2, name: "ERC20"}, + ], +); + +/** + * @generated from enum common.ChainName + */ +export const ChainName = proto3.makeEnum( + "common.ChainName", + [ + {no: 0, name: "empty"}, + {no: 1, name: "eth_mainnet"}, + {no: 2, name: "zeta_mainnet"}, + {no: 3, name: "btc_mainnet"}, + {no: 4, name: "polygon_mainnet"}, + {no: 5, name: "bsc_mainnet"}, + {no: 6, name: "goerli_testnet"}, + {no: 7, name: "mumbai_testnet"}, + {no: 8, name: "ganache_testnet"}, + {no: 9, name: "baobab_testnet"}, + {no: 10, name: "bsc_testnet"}, + {no: 11, name: "zeta_testnet"}, + {no: 12, name: "btc_testnet"}, + {no: 14, name: "goerli_localnet"}, + {no: 15, name: "btc_regtest"}, + ], +); + +/** + * PubKeySet contains two pub keys , secp256k1 and ed25519 + * + * @generated from message common.PubKeySet + */ +export const PubKeySet = proto3.makeMessageType( + "common.PubKeySet", + () => [ + { no: 1, name: "secp256k1", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "ed25519", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message common.Chain + */ +export const Chain = proto3.makeMessageType( + "common.Chain", + () => [ + { no: 1, name: "chain_name", kind: "enum", T: proto3.getEnumType(ChainName) }, + { no: 2, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ], +); + diff --git a/typescript/crosschain/chain_nonces_pb.d.ts b/typescript/crosschain/chain_nonces_pb.d.ts new file mode 100644 index 0000000000..4dbb8c8e6d --- /dev/null +++ b/typescript/crosschain/chain_nonces_pb.d.ts @@ -0,0 +1,57 @@ +// @generated by protoc-gen-es v1.3.0 +// @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/chain_nonces_pb.js b/typescript/crosschain/chain_nonces_pb.js new file mode 100644 index 0000000000..39348a8391 --- /dev/null +++ b/typescript/crosschain/chain_nonces_pb.js @@ -0,0 +1,22 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file crosschain/chain_nonces.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.crosschain.ChainNonces + */ +export const ChainNonces = proto3.makeMessageType( + "zetachain.zetacore.crosschain.ChainNonces", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "signers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 6, name: "finalizedHeight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ], +); + 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..5be7a98c5c --- /dev/null +++ b/typescript/crosschain/cross_chain_tx_pb.d.ts @@ -0,0 +1,293 @@ +// @generated by protoc-gen-es v1.3.0 +// @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 for the outbound tx are 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; + + 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/cross_chain_tx_pb.js b/typescript/crosschain/cross_chain_tx_pb.js new file mode 100644 index 0000000000..d9f5da8cf6 --- /dev/null +++ b/typescript/crosschain/cross_chain_tx_pb.js @@ -0,0 +1,89 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file crosschain/cross_chain_tx.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; +import { CoinType } from "../common/common_pb.js"; + +/** + * @generated from enum zetachain.zetacore.crosschain.CctxStatus + */ +export const CctxStatus = proto3.makeEnum( + "zetachain.zetacore.crosschain.CctxStatus", + [ + {no: 0, name: "PendingInbound"}, + {no: 1, name: "PendingOutbound"}, + {no: 3, name: "OutboundMined"}, + {no: 4, name: "PendingRevert"}, + {no: 5, name: "Reverted"}, + {no: 6, name: "Aborted"}, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.InboundTxParams + */ +export const InboundTxParams = proto3.makeMessageType( + "zetachain.zetacore.crosschain.InboundTxParams", + () => [ + { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "sender_chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "tx_origin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "coin_type", kind: "enum", T: proto3.getEnumType(CoinType) }, + { no: 5, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "inbound_tx_observed_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "inbound_tx_observed_external_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 9, name: "inbound_tx_ballot_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "inbound_tx_finalized_zeta_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.OutboundTxParams + */ +export const OutboundTxParams = proto3.makeMessageType( + "zetachain.zetacore.crosschain.OutboundTxParams", + () => [ + { no: 1, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "receiver_chainId", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "coin_type", kind: "enum", T: proto3.getEnumType(CoinType) }, + { no: 4, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "outbound_tx_tss_nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 6, name: "outbound_tx_gas_limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "outbound_tx_gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "outbound_tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "outbound_tx_ballot_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "outbound_tx_observed_external_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.Status + */ +export const Status = proto3.makeMessageType( + "zetachain.zetacore.crosschain.Status", + () => [ + { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(CctxStatus) }, + { no: 2, name: "status_message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "lastUpdate_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.CrossChainTx + */ +export const CrossChainTx = proto3.makeMessageType( + "zetachain.zetacore.crosschain.CrossChainTx", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "zeta_fees", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "relayed_message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "cctx_status", kind: "message", T: Status }, + { no: 9, name: "inbound_tx_params", kind: "message", T: InboundTxParams }, + { no: 10, name: "outbound_tx_params", kind: "message", T: OutboundTxParams, repeated: true }, + ], +); + diff --git a/typescript/crosschain/gas_price_pb.d.ts b/typescript/crosschain/gas_price_pb.d.ts new file mode 100644 index 0000000000..7cf7edbf5c --- /dev/null +++ b/typescript/crosschain/gas_price_pb.d.ts @@ -0,0 +1,62 @@ +// @generated by protoc-gen-es v1.3.0 +// @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/gas_price_pb.js b/typescript/crosschain/gas_price_pb.js new file mode 100644 index 0000000000..bc28ba3f46 --- /dev/null +++ b/typescript/crosschain/gas_price_pb.js @@ -0,0 +1,23 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file crosschain/gas_price.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.crosschain.GasPrice + */ +export const GasPrice = proto3.makeMessageType( + "zetachain.zetacore.crosschain.GasPrice", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "signers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 5, name: "block_nums", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 6, name: "prices", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, + { no: 7, name: "median_index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ], +); + diff --git a/typescript/crosschain/genesis_pb.d.ts b/typescript/crosschain/genesis_pb.d.ts new file mode 100644 index 0000000000..1560bcaebd --- /dev/null +++ b/typescript/crosschain/genesis_pb.d.ts @@ -0,0 +1,97 @@ +// @generated by protoc-gen-es v1.3.0 +// @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 { Keygen } from "./keygen_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 { NodeAccount } from "./node_account_pb.js"; +import type { LastBlockHeight } from "./last_block_height_pb.js"; +import type { InTxHashToCctx } from "./in_tx_hash_to_cctx_pb.js"; +import type { PermissionFlags } from "./permission_flags_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.Keygen keygen = 3; + */ + keygen?: Keygen; + + /** + * @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.NodeAccount nodeAccountList = 8; + */ + nodeAccountList: NodeAccount[]; + + /** + * @generated from field: repeated zetachain.zetacore.crosschain.LastBlockHeight lastBlockHeightList = 9; + */ + lastBlockHeightList: LastBlockHeight[]; + + /** + * @generated from field: repeated zetachain.zetacore.crosschain.InTxHashToCctx inTxHashToCctxList = 10; + */ + inTxHashToCctxList: InTxHashToCctx[]; + + /** + * this line is used by starport scaffolding # genesis/proto/state + * + * @generated from field: zetachain.zetacore.crosschain.PermissionFlags permissionFlags = 11; + */ + permissionFlags?: PermissionFlags; + + 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/genesis_pb.js b/typescript/crosschain/genesis_pb.js new file mode 100644 index 0000000000..956c1c0b8a --- /dev/null +++ b/typescript/crosschain/genesis_pb.js @@ -0,0 +1,40 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file crosschain/genesis.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { OutTxTracker } from "./out_tx_tracker_pb.js"; +import { Keygen } from "./keygen_pb.js"; +import { TSS } from "./tss_pb.js"; +import { GasPrice } from "./gas_price_pb.js"; +import { ChainNonces } from "./chain_nonces_pb.js"; +import { CrossChainTx } from "./cross_chain_tx_pb.js"; +import { NodeAccount } from "./node_account_pb.js"; +import { LastBlockHeight } from "./last_block_height_pb.js"; +import { InTxHashToCctx } from "./in_tx_hash_to_cctx_pb.js"; +import { PermissionFlags } from "./permission_flags_pb.js"; + +/** + * GenesisState defines the metacore module's genesis state. + * + * @generated from message zetachain.zetacore.crosschain.GenesisState + */ +export const GenesisState = proto3.makeMessageType( + "zetachain.zetacore.crosschain.GenesisState", + () => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "outTxTrackerList", kind: "message", T: OutTxTracker, repeated: true }, + { no: 3, name: "keygen", kind: "message", T: Keygen }, + { no: 4, name: "tss", kind: "message", T: TSS }, + { no: 5, name: "gasPriceList", kind: "message", T: GasPrice, repeated: true }, + { no: 6, name: "chainNoncesList", kind: "message", T: ChainNonces, repeated: true }, + { no: 7, name: "CrossChainTxs", kind: "message", T: CrossChainTx, repeated: true }, + { no: 8, name: "nodeAccountList", kind: "message", T: NodeAccount, repeated: true }, + { no: 9, name: "lastBlockHeightList", kind: "message", T: LastBlockHeight, repeated: true }, + { no: 10, name: "inTxHashToCctxList", kind: "message", T: InTxHashToCctx, repeated: true }, + { no: 11, name: "permissionFlags", kind: "message", T: PermissionFlags }, + ], +); + 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..47800adc8c --- /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 +// @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: 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_hash_to_cctx_pb.js b/typescript/crosschain/in_tx_hash_to_cctx_pb.js new file mode 100644 index 0000000000..1f77661820 --- /dev/null +++ b/typescript/crosschain/in_tx_hash_to_cctx_pb.js @@ -0,0 +1,18 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file crosschain/in_tx_hash_to_cctx.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.crosschain.InTxHashToCctx + */ +export const InTxHashToCctx = proto3.makeMessageType( + "zetachain.zetacore.crosschain.InTxHashToCctx", + () => [ + { no: 1, name: "in_tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "cctx_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + diff --git a/typescript/crosschain/keygen_pb.d.ts b/typescript/crosschain/keygen_pb.d.ts new file mode 100644 index 0000000000..21aa58ff62 --- /dev/null +++ b/typescript/crosschain/keygen_pb.d.ts @@ -0,0 +1,66 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file crosschain/keygen.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 enum zetachain.zetacore.crosschain.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.crosschain.Keygen + */ +export declare class Keygen extends Message { + /** + * 0--to generate key; 1--generated; 2--error + * + * @generated from field: zetachain.zetacore.crosschain.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.crosschain.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/crosschain/keygen_pb.js b/typescript/crosschain/keygen_pb.js new file mode 100644 index 0000000000..91ee5cbb3e --- /dev/null +++ b/typescript/crosschain/keygen_pb.js @@ -0,0 +1,31 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file crosschain/keygen.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from enum zetachain.zetacore.crosschain.KeygenStatus + */ +export const KeygenStatus = proto3.makeEnum( + "zetachain.zetacore.crosschain.KeygenStatus", + [ + {no: 0, name: "PendingKeygen"}, + {no: 1, name: "KeyGenSuccess"}, + {no: 3, name: "KeyGenFailed"}, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.Keygen + */ +export const Keygen = proto3.makeMessageType( + "zetachain.zetacore.crosschain.Keygen", + () => [ + { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(KeygenStatus) }, + { no: 3, name: "granteePubkeys", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "blockNumber", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ], +); + 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..eeb15280ca --- /dev/null +++ b/typescript/crosschain/last_block_height_pb.d.ts @@ -0,0 +1,52 @@ +// @generated by protoc-gen-es v1.3.0 +// @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/last_block_height_pb.js b/typescript/crosschain/last_block_height_pb.js new file mode 100644 index 0000000000..0610fbaab4 --- /dev/null +++ b/typescript/crosschain/last_block_height_pb.js @@ -0,0 +1,21 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file crosschain/last_block_height.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.crosschain.LastBlockHeight + */ +export const LastBlockHeight = proto3.makeMessageType( + "zetachain.zetacore.crosschain.LastBlockHeight", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "lastSendHeight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "lastReceiveHeight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ], +); + diff --git a/typescript/crosschain/node_account_pb.d.ts b/typescript/crosschain/node_account_pb.d.ts new file mode 100644 index 0000000000..919e3b6628 --- /dev/null +++ b/typescript/crosschain/node_account_pb.d.ts @@ -0,0 +1,83 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file crosschain/node_account.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 { PubKeySet } from "../common/common_pb.js"; + +/** + * @generated from enum zetachain.zetacore.crosschain.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.crosschain.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.crosschain.NodeStatus nodeStatus = 4; + */ + nodeStatus: NodeStatus; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.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/crosschain/node_account_pb.js b/typescript/crosschain/node_account_pb.js new file mode 100644 index 0000000000..1b417c9dce --- /dev/null +++ b/typescript/crosschain/node_account_pb.js @@ -0,0 +1,36 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file crosschain/node_account.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; +import { PubKeySet } from "../common/common_pb.js"; + +/** + * @generated from enum zetachain.zetacore.crosschain.NodeStatus + */ +export const NodeStatus = proto3.makeEnum( + "zetachain.zetacore.crosschain.NodeStatus", + [ + {no: 0, name: "Unknown"}, + {no: 1, name: "Whitelisted"}, + {no: 2, name: "Standby"}, + {no: 3, name: "Ready"}, + {no: 4, name: "Active"}, + {no: 5, name: "Disabled"}, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.NodeAccount + */ +export const NodeAccount = proto3.makeMessageType( + "zetachain.zetacore.crosschain.NodeAccount", + () => [ + { no: 1, name: "operator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "granteeAddress", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "granteePubkey", kind: "message", T: PubKeySet }, + { no: 4, name: "nodeStatus", kind: "enum", T: proto3.getEnumType(NodeStatus) }, + ], +); + 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..a4b0163ada --- /dev/null +++ b/typescript/crosschain/nonce_to_cctx_pb.d.ts @@ -0,0 +1,90 @@ +// @generated by protoc-gen-es v1.3.0 +// @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/nonce_to_cctx_pb.js b/typescript/crosschain/nonce_to_cctx_pb.js new file mode 100644 index 0000000000..ecde957183 --- /dev/null +++ b/typescript/crosschain/nonce_to_cctx_pb.js @@ -0,0 +1,37 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file crosschain/nonce_to_cctx.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * store key is tss+chainid+nonce + * + * @generated from message zetachain.zetacore.crosschain.NonceToCctx + */ +export const NonceToCctx = proto3.makeMessageType( + "zetachain.zetacore.crosschain.NonceToCctx", + () => [ + { no: 1, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "nonce", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "cctxIndex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "tss", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * store key is tss+chainid + * + * @generated from message zetachain.zetacore.crosschain.PendingNonces + */ +export const PendingNonces = proto3.makeMessageType( + "zetachain.zetacore.crosschain.PendingNonces", + () => [ + { no: 1, name: "nonce_low", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "nonce_high", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "tss", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + 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..3f8422f909 --- /dev/null +++ b/typescript/crosschain/out_tx_tracker_pb.d.ts @@ -0,0 +1,78 @@ +// @generated by protoc-gen-es v1.3.0 +// @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; + + 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/out_tx_tracker_pb.js b/typescript/crosschain/out_tx_tracker_pb.js new file mode 100644 index 0000000000..93e871fe8a --- /dev/null +++ b/typescript/crosschain/out_tx_tracker_pb.js @@ -0,0 +1,31 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file crosschain/out_tx_tracker.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.crosschain.TxHashList + */ +export const TxHashList = proto3.makeMessageType( + "zetachain.zetacore.crosschain.TxHashList", + () => [ + { no: 1, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "tx_signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.OutTxTracker + */ +export const OutTxTracker = proto3.makeMessageType( + "zetachain.zetacore.crosschain.OutTxTracker", + () => [ + { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "hash_list", kind: "message", T: TxHashList, repeated: true }, + ], +); + diff --git a/typescript/crosschain/params_pb.d.ts b/typescript/crosschain/params_pb.d.ts new file mode 100644 index 0000000000..be5eaeabe3 --- /dev/null +++ b/typescript/crosschain/params_pb.d.ts @@ -0,0 +1,34 @@ +// @generated by protoc-gen-es v1.3.0 +// @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/params_pb.js b/typescript/crosschain/params_pb.js new file mode 100644 index 0000000000..6bdc8f7248 --- /dev/null +++ b/typescript/crosschain/params_pb.js @@ -0,0 +1,19 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file crosschain/params.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message zetachain.zetacore.crosschain.Params + */ +export const Params = proto3.makeMessageType( + "zetachain.zetacore.crosschain.Params", + () => [ + { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ], +); + diff --git a/typescript/crosschain/permission_flags_pb.d.ts b/typescript/crosschain/permission_flags_pb.d.ts new file mode 100644 index 0000000000..590153599c --- /dev/null +++ b/typescript/crosschain/permission_flags_pb.d.ts @@ -0,0 +1,32 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file crosschain/permission_flags.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.PermissionFlags + */ +export declare class PermissionFlags extends Message { + /** + * @generated from field: bool isInboundEnabled = 1; + */ + isInboundEnabled: boolean; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.PermissionFlags"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): PermissionFlags; + + static fromJson(jsonValue: JsonValue, options?: Partial): PermissionFlags; + + static fromJsonString(jsonString: string, options?: Partial): PermissionFlags; + + static equals(a: PermissionFlags | PlainMessage | undefined, b: PermissionFlags | PlainMessage | undefined): boolean; +} + diff --git a/typescript/crosschain/permission_flags_pb.js b/typescript/crosschain/permission_flags_pb.js new file mode 100644 index 0000000000..cf861474e1 --- /dev/null +++ b/typescript/crosschain/permission_flags_pb.js @@ -0,0 +1,17 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file crosschain/permission_flags.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.crosschain.PermissionFlags + */ +export const PermissionFlags = proto3.makeMessageType( + "zetachain.zetacore.crosschain.PermissionFlags", + () => [ + { no: 1, name: "isInboundEnabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ], +); + diff --git a/typescript/crosschain/query_pb.d.ts b/typescript/crosschain/query_pb.d.ts new file mode 100644 index 0000000000..ec9f750b29 --- /dev/null +++ b/typescript/crosschain/query_pb.d.ts @@ -0,0 +1,1714 @@ +// @generated by protoc-gen-es v1.3.0 +// @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 { 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 { InTxHashToCctx } from "./in_tx_hash_to_cctx_pb.js"; +import type { PermissionFlags } from "./permission_flags_pb.js"; +import type { Keygen } from "./keygen_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 { PendingNonces } from "./nonce_to_cctx_pb.js"; +import type { LastBlockHeight } from "./last_block_height_pb.js"; +import type { CrossChainTx } from "./cross_chain_tx_pb.js"; +import type { NodeAccount } from "./node_account_pb.js"; + +/** + * 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.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.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.QueryGetPermissionFlagsRequest + */ +export declare class QueryGetPermissionFlagsRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryGetPermissionFlagsRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPermissionFlagsRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPermissionFlagsRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPermissionFlagsRequest; + + static equals(a: QueryGetPermissionFlagsRequest | PlainMessage | undefined, b: QueryGetPermissionFlagsRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetPermissionFlagsResponse + */ +export declare class QueryGetPermissionFlagsResponse extends Message { + /** + * @generated from field: zetachain.zetacore.crosschain.PermissionFlags PermissionFlags = 1; + */ + PermissionFlags?: PermissionFlags; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.QueryGetPermissionFlagsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPermissionFlagsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPermissionFlagsResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPermissionFlagsResponse; + + static equals(a: QueryGetPermissionFlagsResponse | PlainMessage | undefined, b: QueryGetPermissionFlagsResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetTssAddressRequest + */ +export declare class QueryGetTssAddressRequest extends Message { + 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; +} + +/** + * this line is used by starport scaffolding # 3 + * + * @generated from message zetachain.zetacore.crosschain.QueryGetKeygenRequest + */ +export declare class QueryGetKeygenRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.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.crosschain.QueryGetKeygenResponse + */ +export declare class QueryGetKeygenResponse extends Message { + /** + * @generated from field: zetachain.zetacore.crosschain.Keygen Keygen = 1; + */ + Keygen?: Keygen; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.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.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.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.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: uint64 chainId = 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.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.crosschain.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.crosschain.QueryGetNodeAccountResponse + */ +export declare class QueryGetNodeAccountResponse extends Message { + /** + * @generated from field: zetachain.zetacore.crosschain.NodeAccount NodeAccount = 1; + */ + NodeAccount?: NodeAccount; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.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.crosschain.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.crosschain.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.crosschain.QueryAllNodeAccountResponse + */ +export declare class QueryAllNodeAccountResponse extends Message { + /** + * @generated from field: repeated zetachain.zetacore.crosschain.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.crosschain.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.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: string chain = 1; + */ + chain: string; + + /** + * @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/query_pb.js b/typescript/crosschain/query_pb.js new file mode 100644 index 0000000000..abde71ce88 --- /dev/null +++ b/typescript/crosschain/query_pb.js @@ -0,0 +1,651 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file crosschain/query.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { OutTxTracker } from "./out_tx_tracker_pb.js"; +import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination_pb.js"; +import { InTxHashToCctx } from "./in_tx_hash_to_cctx_pb.js"; +import { PermissionFlags } from "./permission_flags_pb.js"; +import { Keygen } from "./keygen_pb.js"; +import { TSS } from "./tss_pb.js"; +import { GasPrice } from "./gas_price_pb.js"; +import { ChainNonces } from "./chain_nonces_pb.js"; +import { PendingNonces } from "./nonce_to_cctx_pb.js"; +import { LastBlockHeight } from "./last_block_height_pb.js"; +import { CrossChainTx } from "./cross_chain_tx_pb.js"; +import { NodeAccount } from "./node_account_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message zetachain.zetacore.crosschain.QueryParamsRequest + */ +export const QueryParamsRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryParamsRequest", + [], +); + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message zetachain.zetacore.crosschain.QueryParamsResponse + */ +export const QueryParamsResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryParamsResponse", + () => [ + { no: 1, name: "params", kind: "message", T: Params }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetOutTxTrackerRequest + */ +export const QueryGetOutTxTrackerRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryGetOutTxTrackerRequest", + () => [ + { no: 1, name: "chainID", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetOutTxTrackerResponse + */ +export const QueryGetOutTxTrackerResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryGetOutTxTrackerResponse", + () => [ + { no: 1, name: "outTxTracker", kind: "message", T: OutTxTracker }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllOutTxTrackerRequest + */ +export const QueryAllOutTxTrackerRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryAllOutTxTrackerRequest", + () => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllOutTxTrackerResponse + */ +export const QueryAllOutTxTrackerResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryAllOutTxTrackerResponse", + () => [ + { no: 1, name: "outTxTracker", kind: "message", T: OutTxTracker, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllOutTxTrackerByChainRequest + */ +export const QueryAllOutTxTrackerByChainRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryAllOutTxTrackerByChainRequest", + () => [ + { no: 1, name: "chain", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllOutTxTrackerByChainResponse + */ +export const QueryAllOutTxTrackerByChainResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryAllOutTxTrackerByChainResponse", + () => [ + { no: 1, name: "outTxTracker", kind: "message", T: OutTxTracker, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetInTxHashToCctxRequest + */ +export const QueryGetInTxHashToCctxRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryGetInTxHashToCctxRequest", + () => [ + { no: 1, name: "inTxHash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetInTxHashToCctxResponse + */ +export const QueryGetInTxHashToCctxResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryGetInTxHashToCctxResponse", + () => [ + { no: 1, name: "inTxHashToCctx", kind: "message", T: InTxHashToCctx }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllInTxHashToCctxRequest + */ +export const QueryAllInTxHashToCctxRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryAllInTxHashToCctxRequest", + () => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllInTxHashToCctxResponse + */ +export const QueryAllInTxHashToCctxResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryAllInTxHashToCctxResponse", + () => [ + { no: 1, name: "inTxHashToCctx", kind: "message", T: InTxHashToCctx, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetPermissionFlagsRequest + */ +export const QueryGetPermissionFlagsRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryGetPermissionFlagsRequest", + [], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetPermissionFlagsResponse + */ +export const QueryGetPermissionFlagsResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryGetPermissionFlagsResponse", + () => [ + { no: 1, name: "PermissionFlags", kind: "message", T: PermissionFlags }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetTssAddressRequest + */ +export const QueryGetTssAddressRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryGetTssAddressRequest", + [], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetTssAddressResponse + */ +export const QueryGetTssAddressResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryGetTssAddressResponse", + () => [ + { no: 1, name: "eth", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "btc", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * this line is used by starport scaffolding # 3 + * + * @generated from message zetachain.zetacore.crosschain.QueryGetKeygenRequest + */ +export const QueryGetKeygenRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryGetKeygenRequest", + [], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetKeygenResponse + */ +export const QueryGetKeygenResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryGetKeygenResponse", + () => [ + { no: 1, name: "Keygen", kind: "message", T: Keygen }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetTSSRequest + */ +export const QueryGetTSSRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryGetTSSRequest", + [], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetTSSResponse + */ +export const QueryGetTSSResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryGetTSSResponse", + () => [ + { no: 1, name: "TSS", kind: "message", T: TSS }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetGasPriceRequest + */ +export const QueryGetGasPriceRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryGetGasPriceRequest", + () => [ + { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetGasPriceResponse + */ +export const QueryGetGasPriceResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryGetGasPriceResponse", + () => [ + { no: 1, name: "GasPrice", kind: "message", T: GasPrice }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllGasPriceRequest + */ +export const QueryAllGasPriceRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryAllGasPriceRequest", + () => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllGasPriceResponse + */ +export const QueryAllGasPriceResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryAllGasPriceResponse", + () => [ + { no: 1, name: "GasPrice", kind: "message", T: GasPrice, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetChainNoncesRequest + */ +export const QueryGetChainNoncesRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryGetChainNoncesRequest", + () => [ + { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetChainNoncesResponse + */ +export const QueryGetChainNoncesResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryGetChainNoncesResponse", + () => [ + { no: 1, name: "ChainNonces", kind: "message", T: ChainNonces }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllChainNoncesRequest + */ +export const QueryAllChainNoncesRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryAllChainNoncesRequest", + () => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllChainNoncesResponse + */ +export const QueryAllChainNoncesResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryAllChainNoncesResponse", + () => [ + { no: 1, name: "ChainNonces", kind: "message", T: ChainNonces, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllPendingNoncesRequest + */ +export const QueryAllPendingNoncesRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryAllPendingNoncesRequest", + [], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllPendingNoncesResponse + */ +export const QueryAllPendingNoncesResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryAllPendingNoncesResponse", + () => [ + { no: 1, name: "pending_nonces", kind: "message", T: PendingNonces, repeated: true }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetLastBlockHeightRequest + */ +export const QueryGetLastBlockHeightRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryGetLastBlockHeightRequest", + () => [ + { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetLastBlockHeightResponse + */ +export const QueryGetLastBlockHeightResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryGetLastBlockHeightResponse", + () => [ + { no: 1, name: "LastBlockHeight", kind: "message", T: LastBlockHeight }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllLastBlockHeightRequest + */ +export const QueryAllLastBlockHeightRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryAllLastBlockHeightRequest", + () => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllLastBlockHeightResponse + */ +export const QueryAllLastBlockHeightResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryAllLastBlockHeightResponse", + () => [ + { no: 1, name: "LastBlockHeight", kind: "message", T: LastBlockHeight, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetCctxRequest + */ +export const QueryGetCctxRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryGetCctxRequest", + () => [ + { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetCctxResponse + */ +export const QueryGetCctxResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryGetCctxResponse", + () => [ + { no: 1, name: "CrossChainTx", kind: "message", T: CrossChainTx }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllCctxRequest + */ +export const QueryAllCctxRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryAllCctxRequest", + () => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllCctxResponse + */ +export const QueryAllCctxResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryAllCctxResponse", + () => [ + { no: 1, name: "CrossChainTx", kind: "message", T: CrossChainTx, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllCctxPendingRequest + */ +export const QueryAllCctxPendingRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryAllCctxPendingRequest", + () => [ + { no: 1, name: "chainId", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "pagination", kind: "message", T: PageRequest }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllCctxPendingResponse + */ +export const QueryAllCctxPendingResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryAllCctxPendingResponse", + () => [ + { no: 1, name: "CrossChainTx", kind: "message", T: CrossChainTx, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetNodeAccountRequest + */ +export const QueryGetNodeAccountRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryGetNodeAccountRequest", + () => [ + { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryGetNodeAccountResponse + */ +export const QueryGetNodeAccountResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryGetNodeAccountResponse", + () => [ + { no: 1, name: "NodeAccount", kind: "message", T: NodeAccount }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllNodeAccountRequest + */ +export const QueryAllNodeAccountRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryAllNodeAccountRequest", + () => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryAllNodeAccountResponse + */ +export const QueryAllNodeAccountResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryAllNodeAccountResponse", + () => [ + { no: 1, name: "NodeAccount", kind: "message", T: NodeAccount, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryLastZetaHeightRequest + */ +export const QueryLastZetaHeightRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryLastZetaHeightRequest", + [], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryLastZetaHeightResponse + */ +export const QueryLastZetaHeightResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryLastZetaHeightResponse", + () => [ + { no: 1, name: "Height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryConvertGasToZetaRequest + */ +export const QueryConvertGasToZetaRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryConvertGasToZetaRequest", + () => [ + { no: 1, name: "chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "gasLimit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryConvertGasToZetaResponse + */ +export const QueryConvertGasToZetaResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryConvertGasToZetaResponse", + () => [ + { no: 1, name: "outboundGasInZeta", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "protocolFeeInZeta", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "ZetaBlockHeight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryMessagePassingProtocolFeeRequest + */ +export const QueryMessagePassingProtocolFeeRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryMessagePassingProtocolFeeRequest", + [], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryMessagePassingProtocolFeeResponse + */ +export const QueryMessagePassingProtocolFeeResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryMessagePassingProtocolFeeResponse", + () => [ + { no: 1, name: "feeInZeta", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryZEVMGetTransactionReceiptRequest + */ +export const QueryZEVMGetTransactionReceiptRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryZEVMGetTransactionReceiptRequest", + () => [ + { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryZEVMGetTransactionReceiptResponse + */ +export const QueryZEVMGetTransactionReceiptResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryZEVMGetTransactionReceiptResponse", + () => [ + { no: 1, name: "block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "block_number", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "cumulative_gas_used", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "gas_used", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "logs_bloom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "transaction_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "transaction_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "logs", kind: "message", T: Log, repeated: true }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.Log + */ +export const Log = proto3.makeMessageType( + "zetachain.zetacore.crosschain.Log", + () => [ + { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "topics", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "block_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "transaction_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "transaction_index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 7, name: "block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "log_index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 9, name: "removed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryZEVMGetTransactionRequest + */ +export const QueryZEVMGetTransactionRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryZEVMGetTransactionRequest", + () => [ + { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryZEVMGetTransactionResponse + */ +export const QueryZEVMGetTransactionResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryZEVMGetTransactionResponse", + () => [ + { no: 1, name: "block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "block_number", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "gas", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "input", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "nonce", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "transaction_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "access_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 14, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 15, name: "v", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "r", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 17, name: "s", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryZEVMGetBlockByNumberRequest + */ +export const QueryZEVMGetBlockByNumberRequest = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryZEVMGetBlockByNumberRequest", + () => [ + { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.QueryZEVMGetBlockByNumberResponse + */ +export const QueryZEVMGetBlockByNumberResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.QueryZEVMGetBlockByNumberResponse", + () => [ + { no: 1, name: "number", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "parent_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "nonce", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "sha3_uncles", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "logs_bloom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "transactions_root", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "state_root", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "receipts_root", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "miner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "difficulty", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "total_difficulty", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "extra_data", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 15, name: "gas_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "gas_used", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 17, name: "timestamp", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 18, name: "transactions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 19, name: "uncles", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 20, name: "base_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 21, name: "mix_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + diff --git a/typescript/crosschain/tss_pb.d.ts b/typescript/crosschain/tss_pb.d.ts new file mode 100644 index 0000000000..b8598b9019 --- /dev/null +++ b/typescript/crosschain/tss_pb.d.ts @@ -0,0 +1,52 @@ +// @generated by protoc-gen-es v1.3.0 +// @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/tss_pb.js b/typescript/crosschain/tss_pb.js new file mode 100644 index 0000000000..3946c02f26 --- /dev/null +++ b/typescript/crosschain/tss_pb.js @@ -0,0 +1,21 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file crosschain/tss.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.crosschain.TSS + */ +export const TSS = proto3.makeMessageType( + "zetachain.zetacore.crosschain.TSS", + () => [ + { no: 3, name: "tss_pubkey", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "tss_participant_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 5, name: "operator_address_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 6, name: "finalizedZetaHeight", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 7, name: "keyGenZetaHeight", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ], +); + diff --git a/typescript/crosschain/tx_pb.d.ts b/typescript/crosschain/tx_pb.d.ts new file mode 100644 index 0000000000..2d254801ac --- /dev/null +++ b/typescript/crosschain/tx_pb.d.ts @@ -0,0 +1,635 @@ +// @generated by protoc-gen-es v1.3.0 +// @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, PubKeySet, ReceiveStatus } from "../common/common_pb.js"; + +/** + * @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; + + 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.MsgUpdatePermissionFlags + */ +export declare class MsgUpdatePermissionFlags extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: bool isInboundEnabled = 3; + */ + isInboundEnabled: boolean; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgUpdatePermissionFlags"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdatePermissionFlags; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdatePermissionFlags; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdatePermissionFlags; + + static equals(a: MsgUpdatePermissionFlags | PlainMessage | undefined, b: MsgUpdatePermissionFlags | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.MsgUpdatePermissionFlagsResponse + */ +export declare class MsgUpdatePermissionFlagsResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.MsgUpdatePermissionFlagsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdatePermissionFlagsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdatePermissionFlagsResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdatePermissionFlagsResponse; + + static equals(a: MsgUpdatePermissionFlagsResponse | PlainMessage | undefined, b: MsgUpdatePermissionFlagsResponse | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.crosschain.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.crosschain.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.crosschain.MsgUpdateKeygenResponse + */ +export declare class MsgUpdateKeygenResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.crosschain.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; +} + +/** + * this line is used by starport scaffolding # proto/tx/message + * + * @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: string zeta_minted = 5; + */ + zetaMinted: 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/crosschain/tx_pb.js b/typescript/crosschain/tx_pb.js new file mode 100644 index 0000000000..7262b95086 --- /dev/null +++ b/typescript/crosschain/tx_pb.js @@ -0,0 +1,228 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file crosschain/tx.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; +import { CoinType, PubKeySet, ReceiveStatus } from "../common/common_pb.js"; + +/** + * @generated from message zetachain.zetacore.crosschain.MsgAddToOutTxTracker + */ +export const MsgAddToOutTxTracker = proto3.makeMessageType( + "zetachain.zetacore.crosschain.MsgAddToOutTxTracker", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.MsgAddToOutTxTrackerResponse + */ +export const MsgAddToOutTxTrackerResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.MsgAddToOutTxTrackerResponse", + [], +); + +/** + * @generated from message zetachain.zetacore.crosschain.MsgRemoveFromOutTxTracker + */ +export const MsgRemoveFromOutTxTracker = proto3.makeMessageType( + "zetachain.zetacore.crosschain.MsgRemoveFromOutTxTracker", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.MsgRemoveFromOutTxTrackerResponse + */ +export const MsgRemoveFromOutTxTrackerResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.MsgRemoveFromOutTxTrackerResponse", + [], +); + +/** + * @generated from message zetachain.zetacore.crosschain.MsgUpdatePermissionFlags + */ +export const MsgUpdatePermissionFlags = proto3.makeMessageType( + "zetachain.zetacore.crosschain.MsgUpdatePermissionFlags", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "isInboundEnabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.MsgUpdatePermissionFlagsResponse + */ +export const MsgUpdatePermissionFlagsResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.MsgUpdatePermissionFlagsResponse", + [], +); + +/** + * @generated from message zetachain.zetacore.crosschain.MsgUpdateKeygen + */ +export const MsgUpdateKeygen = proto3.makeMessageType( + "zetachain.zetacore.crosschain.MsgUpdateKeygen", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.MsgUpdateKeygenResponse + */ +export const MsgUpdateKeygenResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.MsgUpdateKeygenResponse", + [], +); + +/** + * this line is used by starport scaffolding # proto/tx/message + * + * @generated from message zetachain.zetacore.crosschain.MsgCreateTSSVoter + */ +export const MsgCreateTSSVoter = proto3.makeMessageType( + "zetachain.zetacore.crosschain.MsgCreateTSSVoter", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "tss_pubkey", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "keyGenZetaHeight", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "status", kind: "enum", T: proto3.getEnumType(ReceiveStatus) }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.MsgCreateTSSVoterResponse + */ +export const MsgCreateTSSVoterResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.MsgCreateTSSVoterResponse", + [], +); + +/** + * @generated from message zetachain.zetacore.crosschain.MsgGasPriceVoter + */ +export const MsgGasPriceVoter = proto3.makeMessageType( + "zetachain.zetacore.crosschain.MsgGasPriceVoter", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "price", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "block_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "supply", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.MsgGasPriceVoterResponse + */ +export const MsgGasPriceVoterResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.MsgGasPriceVoterResponse", + [], +); + +/** + * @generated from message zetachain.zetacore.crosschain.MsgNonceVoter + */ +export const MsgNonceVoter = proto3.makeMessageType( + "zetachain.zetacore.crosschain.MsgNonceVoter", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.MsgNonceVoterResponse + */ +export const MsgNonceVoterResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.MsgNonceVoterResponse", + [], +); + +/** + * @generated from message zetachain.zetacore.crosschain.MsgVoteOnObservedOutboundTx + */ +export const MsgVoteOnObservedOutboundTx = proto3.makeMessageType( + "zetachain.zetacore.crosschain.MsgVoteOnObservedOutboundTx", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "cctx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "observed_outTx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "observed_outTx_blockHeight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "zeta_minted", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "status", kind: "enum", T: proto3.getEnumType(ReceiveStatus) }, + { no: 7, name: "outTx_chain", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 8, name: "outTx_tss_nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 9, name: "coin_type", kind: "enum", T: proto3.getEnumType(CoinType) }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.MsgVoteOnObservedOutboundTxResponse + */ +export const MsgVoteOnObservedOutboundTxResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.MsgVoteOnObservedOutboundTxResponse", + [], +); + +/** + * @generated from message zetachain.zetacore.crosschain.MsgVoteOnObservedInboundTx + */ +export const MsgVoteOnObservedInboundTx = proto3.makeMessageType( + "zetachain.zetacore.crosschain.MsgVoteOnObservedInboundTx", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sender_chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 4, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "receiver_chain", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 6, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "in_tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "in_block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 11, name: "gas_limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 12, name: "coin_type", kind: "enum", T: proto3.getEnumType(CoinType) }, + { no: 13, name: "tx_origin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.MsgVoteOnObservedInboundTxResponse + */ +export const MsgVoteOnObservedInboundTxResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.MsgVoteOnObservedInboundTxResponse", + [], +); + +/** + * @generated from message zetachain.zetacore.crosschain.MsgSetNodeKeys + */ +export const MsgSetNodeKeys = proto3.makeMessageType( + "zetachain.zetacore.crosschain.MsgSetNodeKeys", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "pubkeySet", kind: "message", T: PubKeySet }, + { no: 3, name: "tss_signer_Address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.MsgSetNodeKeysResponse + */ +export const MsgSetNodeKeysResponse = proto3.makeMessageType( + "zetachain.zetacore.crosschain.MsgSetNodeKeysResponse", + [], +); + diff --git a/typescript/emissions/genesis_pb.d.ts b/typescript/emissions/genesis_pb.d.ts new file mode 100644 index 0000000000..6cdead3378 --- /dev/null +++ b/typescript/emissions/genesis_pb.d.ts @@ -0,0 +1,37 @@ +// @generated by protoc-gen-es v1.3.0 +// @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"; + +/** + * GenesisState defines the emissions module's genesis state. + * + * @generated from message zetachain.zetacore.emissions.GenesisState + */ +export declare class GenesisState extends Message { + /** + * this line is used by starport scaffolding # genesis/proto/state + * + * @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.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/genesis_pb.js b/typescript/emissions/genesis_pb.js new file mode 100644 index 0000000000..03b7302138 --- /dev/null +++ b/typescript/emissions/genesis_pb.js @@ -0,0 +1,20 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file emissions/genesis.proto (package zetachain.zetacore.emissions, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * GenesisState defines the emissions module's genesis state. + * + * @generated from message zetachain.zetacore.emissions.GenesisState + */ +export const GenesisState = proto3.makeMessageType( + "zetachain.zetacore.emissions.GenesisState", + () => [ + { no: 1, name: "params", kind: "message", T: Params }, + ], +); + diff --git a/typescript/emissions/params_pb.d.ts b/typescript/emissions/params_pb.d.ts new file mode 100644 index 0000000000..dc2ce7d2dd --- /dev/null +++ b/typescript/emissions/params_pb.d.ts @@ -0,0 +1,69 @@ +// @generated by protoc-gen-es v1.3.0 +// @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; + + 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/params_pb.js b/typescript/emissions/params_pb.js new file mode 100644 index 0000000000..de7440259a --- /dev/null +++ b/typescript/emissions/params_pb.js @@ -0,0 +1,26 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file emissions/params.proto (package zetachain.zetacore.emissions, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message zetachain.zetacore.emissions.Params + */ +export const Params = proto3.makeMessageType( + "zetachain.zetacore.emissions.Params", + () => [ + { no: 1, name: "max_bond_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "min_bond_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "avg_block_time", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "target_bond_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "validator_emission_percentage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "observer_emission_percentage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "tss_signer_emission_percentage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "duration_factor_constant", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + diff --git a/typescript/emissions/query_pb.d.ts b/typescript/emissions/query_pb.d.ts new file mode 100644 index 0000000000..5f7d9d3b67 --- /dev/null +++ b/typescript/emissions/query_pb.d.ts @@ -0,0 +1,111 @@ +// @generated by protoc-gen-es v1.3.0 +// @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; +} + diff --git a/typescript/emissions/query_pb.js b/typescript/emissions/query_pb.js new file mode 100644 index 0000000000..4a37fda0bf --- /dev/null +++ b/typescript/emissions/query_pb.js @@ -0,0 +1,50 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file emissions/query.proto (package zetachain.zetacore.emissions, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message zetachain.zetacore.emissions.QueryParamsRequest + */ +export const QueryParamsRequest = proto3.makeMessageType( + "zetachain.zetacore.emissions.QueryParamsRequest", + [], +); + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message zetachain.zetacore.emissions.QueryParamsResponse + */ +export const QueryParamsResponse = proto3.makeMessageType( + "zetachain.zetacore.emissions.QueryParamsResponse", + () => [ + { no: 1, name: "params", kind: "message", T: Params }, + ], +); + +/** + * @generated from message zetachain.zetacore.emissions.QueryListPoolAddressesRequest + */ +export const QueryListPoolAddressesRequest = proto3.makeMessageType( + "zetachain.zetacore.emissions.QueryListPoolAddressesRequest", + [], +); + +/** + * @generated from message zetachain.zetacore.emissions.QueryListPoolAddressesResponse + */ +export const QueryListPoolAddressesResponse = proto3.makeMessageType( + "zetachain.zetacore.emissions.QueryListPoolAddressesResponse", + () => [ + { no: 1, name: "undistributed_observer_balances_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "undistributed_tss_balances_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "emission_module_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + diff --git a/typescript/fungible/foreign_coins_pb.d.ts b/typescript/fungible/foreign_coins_pb.d.ts new file mode 100644 index 0000000000..4ee5b917d1 --- /dev/null +++ b/typescript/fungible/foreign_coins_pb.d.ts @@ -0,0 +1,72 @@ +// @generated by protoc-gen-es v1.3.0 +// @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; + + 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/foreign_coins_pb.js b/typescript/fungible/foreign_coins_pb.js new file mode 100644 index 0000000000..e0ed6d1791 --- /dev/null +++ b/typescript/fungible/foreign_coins_pb.js @@ -0,0 +1,25 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file fungible/foreign_coins.proto (package zetachain.zetacore.fungible, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; +import { CoinType } from "../common/common_pb.js"; + +/** + * @generated from message zetachain.zetacore.fungible.ForeignCoins + */ +export const ForeignCoins = proto3.makeMessageType( + "zetachain.zetacore.fungible.ForeignCoins", + () => [ + { no: 2, name: "zrc20_contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "foreign_chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 5, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 6, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "coin_type", kind: "enum", T: proto3.getEnumType(CoinType) }, + { no: 9, name: "gas_limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + ], +); + diff --git a/typescript/fungible/genesis_pb.d.ts b/typescript/fungible/genesis_pb.d.ts new file mode 100644 index 0000000000..3ddf8a5fc3 --- /dev/null +++ b/typescript/fungible/genesis_pb.d.ts @@ -0,0 +1,49 @@ +// @generated by protoc-gen-es v1.3.0 +// @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[]; + + /** + * this line is used by starport scaffolding # genesis/proto/state + * + * @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/genesis_pb.js b/typescript/fungible/genesis_pb.js new file mode 100644 index 0000000000..ad99a28415 --- /dev/null +++ b/typescript/fungible/genesis_pb.js @@ -0,0 +1,24 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file fungible/genesis.proto (package zetachain.zetacore.fungible, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { ForeignCoins } from "./foreign_coins_pb.js"; +import { SystemContract } from "./system_contract_pb.js"; + +/** + * GenesisState defines the fungible module's genesis state. + * + * @generated from message zetachain.zetacore.fungible.GenesisState + */ +export const GenesisState = proto3.makeMessageType( + "zetachain.zetacore.fungible.GenesisState", + () => [ + { no: 1, name: "params", kind: "message", T: Params }, + { no: 2, name: "foreignCoinsList", kind: "message", T: ForeignCoins, repeated: true }, + { no: 3, name: "systemContract", kind: "message", T: SystemContract }, + ], +); + diff --git a/typescript/fungible/params_pb.d.ts b/typescript/fungible/params_pb.d.ts new file mode 100644 index 0000000000..bbe29829ca --- /dev/null +++ b/typescript/fungible/params_pb.d.ts @@ -0,0 +1,29 @@ +// @generated by protoc-gen-es v1.3.0 +// @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/params_pb.js b/typescript/fungible/params_pb.js new file mode 100644 index 0000000000..469b702bd6 --- /dev/null +++ b/typescript/fungible/params_pb.js @@ -0,0 +1,17 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file fungible/params.proto (package zetachain.zetacore.fungible, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * Params defines the parameters for the module. + * + * @generated from message zetachain.zetacore.fungible.Params + */ +export const Params = proto3.makeMessageType( + "zetachain.zetacore.fungible.Params", + [], +); + diff --git a/typescript/fungible/query_pb.d.ts b/typescript/fungible/query_pb.d.ts new file mode 100644 index 0000000000..9f0025dc1a --- /dev/null +++ b/typescript/fungible/query_pb.d.ts @@ -0,0 +1,205 @@ +// @generated by protoc-gen-es v1.3.0 +// @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; +} + diff --git a/typescript/fungible/query_pb.js b/typescript/fungible/query_pb.js new file mode 100644 index 0000000000..d15992bbed --- /dev/null +++ b/typescript/fungible/query_pb.js @@ -0,0 +1,92 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file fungible/query.proto (package zetachain.zetacore.fungible, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; +import { Params } from "./params_pb.js"; +import { ForeignCoins } from "./foreign_coins_pb.js"; +import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination_pb.js"; +import { SystemContract } from "./system_contract_pb.js"; + +/** + * QueryParamsRequest is request type for the Query/Params RPC method. + * + * @generated from message zetachain.zetacore.fungible.QueryParamsRequest + */ +export const QueryParamsRequest = proto3.makeMessageType( + "zetachain.zetacore.fungible.QueryParamsRequest", + [], +); + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message zetachain.zetacore.fungible.QueryParamsResponse + */ +export const QueryParamsResponse = proto3.makeMessageType( + "zetachain.zetacore.fungible.QueryParamsResponse", + () => [ + { no: 1, name: "params", kind: "message", T: Params }, + ], +); + +/** + * @generated from message zetachain.zetacore.fungible.QueryGetForeignCoinsRequest + */ +export const QueryGetForeignCoinsRequest = proto3.makeMessageType( + "zetachain.zetacore.fungible.QueryGetForeignCoinsRequest", + () => [ + { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.fungible.QueryGetForeignCoinsResponse + */ +export const QueryGetForeignCoinsResponse = proto3.makeMessageType( + "zetachain.zetacore.fungible.QueryGetForeignCoinsResponse", + () => [ + { no: 1, name: "foreignCoins", kind: "message", T: ForeignCoins }, + ], +); + +/** + * @generated from message zetachain.zetacore.fungible.QueryAllForeignCoinsRequest + */ +export const QueryAllForeignCoinsRequest = proto3.makeMessageType( + "zetachain.zetacore.fungible.QueryAllForeignCoinsRequest", + () => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ], +); + +/** + * @generated from message zetachain.zetacore.fungible.QueryAllForeignCoinsResponse + */ +export const QueryAllForeignCoinsResponse = proto3.makeMessageType( + "zetachain.zetacore.fungible.QueryAllForeignCoinsResponse", + () => [ + { no: 1, name: "foreignCoins", kind: "message", T: ForeignCoins, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ], +); + +/** + * @generated from message zetachain.zetacore.fungible.QueryGetSystemContractRequest + */ +export const QueryGetSystemContractRequest = proto3.makeMessageType( + "zetachain.zetacore.fungible.QueryGetSystemContractRequest", + [], +); + +/** + * @generated from message zetachain.zetacore.fungible.QueryGetSystemContractResponse + */ +export const QueryGetSystemContractResponse = proto3.makeMessageType( + "zetachain.zetacore.fungible.QueryGetSystemContractResponse", + () => [ + { no: 1, name: "SystemContract", kind: "message", T: SystemContract }, + ], +); + diff --git a/typescript/fungible/system_contract_pb.d.ts b/typescript/fungible/system_contract_pb.d.ts new file mode 100644 index 0000000000..ee7770a908 --- /dev/null +++ b/typescript/fungible/system_contract_pb.d.ts @@ -0,0 +1,37 @@ +// @generated by protoc-gen-es v1.3.0 +// @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/system_contract_pb.js b/typescript/fungible/system_contract_pb.js new file mode 100644 index 0000000000..50ebf46ef1 --- /dev/null +++ b/typescript/fungible/system_contract_pb.js @@ -0,0 +1,18 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file fungible/system_contract.proto (package zetachain.zetacore.fungible, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.fungible.SystemContract + */ +export const SystemContract = proto3.makeMessageType( + "zetachain.zetacore.fungible.SystemContract", + () => [ + { no: 1, name: "system_contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "connector_zevm", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + diff --git a/typescript/fungible/tx_pb.d.ts b/typescript/fungible/tx_pb.d.ts new file mode 100644 index 0000000000..2c8fbf3c20 --- /dev/null +++ b/typescript/fungible/tx_pb.d.ts @@ -0,0 +1,135 @@ +// @generated by protoc-gen-es v1.3.0 +// @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 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: string foreignChain = 3; + */ + foreignChain: string; + + /** + * @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 coinType = 7; + */ + coinType: CoinType; + + /** + * @generated from field: int64 gasLimit = 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 { + 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; +} + diff --git a/typescript/fungible/tx_pb.js b/typescript/fungible/tx_pb.js new file mode 100644 index 0000000000..d9afd5aba9 --- /dev/null +++ b/typescript/fungible/tx_pb.js @@ -0,0 +1,52 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file fungible/tx.proto (package zetachain.zetacore.fungible, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; +import { CoinType } from "../common/common_pb.js"; + +/** + * @generated from message zetachain.zetacore.fungible.MsgDeployFungibleCoinZRC20 + */ +export const MsgDeployFungibleCoinZRC20 = proto3.makeMessageType( + "zetachain.zetacore.fungible.MsgDeployFungibleCoinZRC20", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "ERC20", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "foreignChain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "coinType", kind: "enum", T: proto3.getEnumType(CoinType) }, + { no: 8, name: "gasLimit", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.fungible.MsgDeployFungibleCoinZRC20Response + */ +export const MsgDeployFungibleCoinZRC20Response = proto3.makeMessageType( + "zetachain.zetacore.fungible.MsgDeployFungibleCoinZRC20Response", + [], +); + +/** + * @generated from message zetachain.zetacore.fungible.MsgRemoveForeignCoin + */ +export const MsgRemoveForeignCoin = proto3.makeMessageType( + "zetachain.zetacore.fungible.MsgRemoveForeignCoin", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.fungible.MsgRemoveForeignCoinResponse + */ +export const MsgRemoveForeignCoinResponse = proto3.makeMessageType( + "zetachain.zetacore.fungible.MsgRemoveForeignCoinResponse", + [], +); + diff --git a/typescript/observer/ballot_pb.d.ts b/typescript/observer/ballot_pb.d.ts new file mode 100644 index 0000000000..d4337b900b --- /dev/null +++ b/typescript/observer/ballot_pb.d.ts @@ -0,0 +1,105 @@ +// @generated by protoc-gen-es v1.3.0 +// @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 BallotThreshold = 6; + */ + BallotThreshold: string; + + /** + * @generated from field: zetachain.zetacore.observer.BallotStatus ballot_status = 7; + */ + ballotStatus: BallotStatus; + + 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; +} + diff --git a/typescript/observer/ballot_pb.js b/typescript/observer/ballot_pb.js new file mode 100644 index 0000000000..efb29246d2 --- /dev/null +++ b/typescript/observer/ballot_pb.js @@ -0,0 +1,48 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file observer/ballot.proto (package zetachain.zetacore.observer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; +import { ObservationType } from "./observer_pb.js"; + +/** + * @generated from enum zetachain.zetacore.observer.VoteType + */ +export const VoteType = proto3.makeEnum( + "zetachain.zetacore.observer.VoteType", + [ + {no: 0, name: "SuccessObservation"}, + {no: 1, name: "FailureObservation"}, + {no: 2, name: "NotYetVoted"}, + ], +); + +/** + * @generated from enum zetachain.zetacore.observer.BallotStatus + */ +export const BallotStatus = proto3.makeEnum( + "zetachain.zetacore.observer.BallotStatus", + [ + {no: 0, name: "BallotFinalized_SuccessObservation"}, + {no: 1, name: "BallotFinalized_FailureObservation"}, + {no: 2, name: "BallotInProgress"}, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.Ballot + */ +export const Ballot = proto3.makeMessageType( + "zetachain.zetacore.observer.Ballot", + () => [ + { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "ballot_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "voter_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "votes", kind: "enum", T: proto3.getEnumType(VoteType), repeated: true }, + { no: 5, name: "observation_type", kind: "enum", T: proto3.getEnumType(ObservationType) }, + { no: 6, name: "BallotThreshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "ballot_status", kind: "enum", T: proto3.getEnumType(BallotStatus) }, + ], +); + diff --git a/typescript/observer/genesis_pb.d.ts b/typescript/observer/genesis_pb.d.ts new file mode 100644 index 0000000000..19dcbf7ae1 --- /dev/null +++ b/typescript/observer/genesis_pb.d.ts @@ -0,0 +1,45 @@ +// @generated by protoc-gen-es v1.3.0 +// @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 { ObserverMapper } from "./observer_pb.js"; +import type { Params } from "./params_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: zetachain.zetacore.observer.Params params = 3; + */ + params?: Params; + + 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/genesis_pb.js b/typescript/observer/genesis_pb.js new file mode 100644 index 0000000000..3c0cd8279f --- /dev/null +++ b/typescript/observer/genesis_pb.js @@ -0,0 +1,22 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file observer/genesis.proto (package zetachain.zetacore.observer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; +import { Ballot } from "./ballot_pb.js"; +import { ObserverMapper } from "./observer_pb.js"; +import { Params } from "./params_pb.js"; + +/** + * @generated from message zetachain.zetacore.observer.GenesisState + */ +export const GenesisState = proto3.makeMessageType( + "zetachain.zetacore.observer.GenesisState", + () => [ + { no: 1, name: "ballots", kind: "message", T: Ballot, repeated: true }, + { no: 2, name: "observers", kind: "message", T: ObserverMapper, repeated: true }, + { no: 3, name: "params", kind: "message", T: Params }, + ], +); + diff --git a/typescript/observer/observer_pb.d.ts b/typescript/observer/observer_pb.d.ts new file mode 100644 index 0000000000..9e7c2b7d1c --- /dev/null +++ b/typescript/observer/observer_pb.d.ts @@ -0,0 +1,68 @@ +// @generated by protoc-gen-es v1.3.0 +// @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 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; +} + diff --git a/typescript/observer/observer_pb.js b/typescript/observer/observer_pb.js new file mode 100644 index 0000000000..9ffb085ea9 --- /dev/null +++ b/typescript/observer/observer_pb.js @@ -0,0 +1,33 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file observer/observer.proto (package zetachain.zetacore.observer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; +import { Chain } from "../common/common_pb.js"; + +/** + * @generated from enum zetachain.zetacore.observer.ObservationType + */ +export const ObservationType = proto3.makeEnum( + "zetachain.zetacore.observer.ObservationType", + [ + {no: 0, name: "EmptyObserverType"}, + {no: 1, name: "InBoundTx"}, + {no: 2, name: "OutBoundTx"}, + {no: 3, name: "TSSKeyGen"}, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.ObserverMapper + */ +export const ObserverMapper = proto3.makeMessageType( + "zetachain.zetacore.observer.ObserverMapper", + () => [ + { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "observer_chain", kind: "message", T: Chain }, + { no: 4, name: "observer_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ], +); + diff --git a/typescript/observer/params_pb.d.ts b/typescript/observer/params_pb.d.ts new file mode 100644 index 0000000000..4b642a5aa1 --- /dev/null +++ b/typescript/observer/params_pb.d.ts @@ -0,0 +1,238 @@ +// @generated by protoc-gen-es v1.3.0 +// @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 { + /** + * some observer sees inbound tx + * + * @generated from enum value: stop_inbound_cctx = 0; + */ + stop_inbound_cctx = 0, + + /** + * @generated from enum value: deploy_fungible_coin = 1; + */ + deploy_fungible_coin = 1, + + /** + * @generated from enum value: update_client_params = 2; + */ + update_client_params = 2, + + /** + * @generated from enum value: update_keygen_block = 3; + */ + update_keygen_block = 3, + + /** + * @generated from enum value: out_tx_tracker = 4; + */ + out_tx_tracker = 4, +} + +/** + * @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[]; + + 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/params_pb.js b/typescript/observer/params_pb.js new file mode 100644 index 0000000000..5d2d156197 --- /dev/null +++ b/typescript/observer/params_pb.js @@ -0,0 +1,89 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file observer/params.proto (package zetachain.zetacore.observer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; +import { Chain } from "../common/common_pb.js"; + +/** + * @generated from enum zetachain.zetacore.observer.Policy_Type + */ +export const Policy_Type = proto3.makeEnum( + "zetachain.zetacore.observer.Policy_Type", + [ + {no: 0, name: "stop_inbound_cctx"}, + {no: 1, name: "deploy_fungible_coin"}, + {no: 2, name: "update_client_params"}, + {no: 3, name: "update_keygen_block"}, + {no: 4, name: "out_tx_tracker"}, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.CoreParamsList + */ +export const CoreParamsList = proto3.makeMessageType( + "zetachain.zetacore.observer.CoreParamsList", + () => [ + { no: 1, name: "core_params", kind: "message", T: CoreParams, repeated: true }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.CoreParams + */ +export const CoreParams = proto3.makeMessageType( + "zetachain.zetacore.observer.CoreParams", + () => [ + { no: 1, name: "confirmation_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "gas_price_ticker", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 3, name: "in_tx_ticker", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "out_tx_ticker", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 5, name: "watch_utxo_ticker", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 8, name: "zeta_token_contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "connector_contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "erc20_custody_contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 12, name: "outbound_tx_schedule_interval", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 13, name: "outbound_tx_schedule_lookahead", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.ObserverParams + */ +export const ObserverParams = proto3.makeMessageType( + "zetachain.zetacore.observer.ObserverParams", + () => [ + { no: 1, name: "chain", kind: "message", T: Chain }, + { no: 3, name: "ballot_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "min_observer_delegation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "is_supported", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.Admin_Policy + */ +export const Admin_Policy = proto3.makeMessageType( + "zetachain.zetacore.observer.Admin_Policy", + () => [ + { no: 1, name: "policy_type", kind: "enum", T: proto3.getEnumType(Policy_Type) }, + { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * Params defines the parameters for the module. + * + * @generated from message zetachain.zetacore.observer.Params + */ +export const Params = proto3.makeMessageType( + "zetachain.zetacore.observer.Params", + () => [ + { no: 1, name: "observer_params", kind: "message", T: ObserverParams, repeated: true }, + { no: 2, name: "admin_policy", kind: "message", T: Admin_Policy, repeated: true }, + ], +); + diff --git a/typescript/observer/query_pb.d.ts b/typescript/observer/query_pb.d.ts new file mode 100644 index 0000000000..57900dc503 --- /dev/null +++ b/typescript/observer/query_pb.d.ts @@ -0,0 +1,376 @@ +// @generated by protoc-gen-es v1.3.0 +// @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 { CoreParams, CoreParamsList, Params } from "./params_pb.js"; +import type { BallotStatus, VoteType } from "./ballot_pb.js"; +import type { ObservationType, ObserverMapper } from "./observer_pb.js"; +import type { Chain } from "../common/common_pb.js"; + +/** + * @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 BallotIdentifier = 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 chainID = 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; +} + diff --git a/typescript/observer/query_pb.js b/typescript/observer/query_pb.js new file mode 100644 index 0000000000..0bfae76a2f --- /dev/null +++ b/typescript/observer/query_pb.js @@ -0,0 +1,159 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file observer/query.proto (package zetachain.zetacore.observer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; +import { CoreParams, CoreParamsList, Params } from "./params_pb.js"; +import { BallotStatus, VoteType } from "./ballot_pb.js"; +import { ObservationType, ObserverMapper } from "./observer_pb.js"; +import { Chain } from "../common/common_pb.js"; + +/** + * @generated from message zetachain.zetacore.observer.QueryParamsRequest + */ +export const QueryParamsRequest = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryParamsRequest", + [], +); + +/** + * QueryParamsResponse is response type for the Query/Params RPC method. + * + * @generated from message zetachain.zetacore.observer.QueryParamsResponse + */ +export const QueryParamsResponse = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryParamsResponse", + () => [ + { no: 1, name: "params", kind: "message", T: Params }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryBallotByIdentifierRequest + */ +export const QueryBallotByIdentifierRequest = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryBallotByIdentifierRequest", + () => [ + { no: 1, name: "ballot_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.VoterList + */ +export const VoterList = proto3.makeMessageType( + "zetachain.zetacore.observer.VoterList", + () => [ + { no: 1, name: "voter_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "vote_type", kind: "enum", T: proto3.getEnumType(VoteType) }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryBallotByIdentifierResponse + */ +export const QueryBallotByIdentifierResponse = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryBallotByIdentifierResponse", + () => [ + { no: 1, name: "BallotIdentifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "voters", kind: "message", T: VoterList, repeated: true }, + { no: 3, name: "observation_type", kind: "enum", T: proto3.getEnumType(ObservationType) }, + { no: 4, name: "ballot_status", kind: "enum", T: proto3.getEnumType(BallotStatus) }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryObserversByChainRequest + */ +export const QueryObserversByChainRequest = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryObserversByChainRequest", + () => [ + { no: 1, name: "observation_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryObserversByChainResponse + */ +export const QueryObserversByChainResponse = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryObserversByChainResponse", + () => [ + { no: 1, name: "observers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryAllObserverMappersRequest + */ +export const QueryAllObserverMappersRequest = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryAllObserverMappersRequest", + [], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryAllObserverMappersResponse + */ +export const QueryAllObserverMappersResponse = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryAllObserverMappersResponse", + () => [ + { no: 1, name: "observer_mappers", kind: "message", T: ObserverMapper, repeated: true }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.QuerySupportedChains + */ +export const QuerySupportedChains = proto3.makeMessageType( + "zetachain.zetacore.observer.QuerySupportedChains", + [], +); + +/** + * @generated from message zetachain.zetacore.observer.QuerySupportedChainsResponse + */ +export const QuerySupportedChainsResponse = proto3.makeMessageType( + "zetachain.zetacore.observer.QuerySupportedChainsResponse", + () => [ + { no: 1, name: "chains", kind: "message", T: Chain, repeated: true }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryGetCoreParamsForChainRequest + */ +export const QueryGetCoreParamsForChainRequest = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryGetCoreParamsForChainRequest", + () => [ + { no: 1, name: "chainID", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryGetCoreParamsForChainResponse + */ +export const QueryGetCoreParamsForChainResponse = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryGetCoreParamsForChainResponse", + () => [ + { no: 1, name: "core_params", kind: "message", T: CoreParams }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryGetCoreParamsRequest + */ +export const QueryGetCoreParamsRequest = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryGetCoreParamsRequest", + [], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryGetCoreParamsResponse + */ +export const QueryGetCoreParamsResponse = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryGetCoreParamsResponse", + () => [ + { no: 1, name: "core_params", kind: "message", T: CoreParamsList }, + ], +); + diff --git a/typescript/observer/tx_pb.d.ts b/typescript/observer/tx_pb.d.ts new file mode 100644 index 0000000000..fda5dbec20 --- /dev/null +++ b/typescript/observer/tx_pb.d.ts @@ -0,0 +1,122 @@ +// @generated by protoc-gen-es v1.3.0 +// @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 { CoreParams } from "./params_pb.js"; +import type { ObservationType } from "./observer_pb.js"; + +/** + * message MsgSetSupportedChains { + * string creator = 1; + * int64 chain_id=2; + * common.ChainName ChainName=3; + * } + * + * @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; +} + +/** + * this line is used by starport scaffolding # proto/tx/message + * + * message MsgSetSupportedChainsResponse{ + * } + * + * @generated from message zetachain.zetacore.observer.MsgAddObserver + */ +export declare class MsgAddObserver 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.ObservationType observationType = 3; + */ + observationType: ObservationType; + + 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; +} + diff --git a/typescript/observer/tx_pb.js b/typescript/observer/tx_pb.js new file mode 100644 index 0000000000..db3458f5e3 --- /dev/null +++ b/typescript/observer/tx_pb.js @@ -0,0 +1,59 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file observer/tx.proto (package zetachain.zetacore.observer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; +import { CoreParams } from "./params_pb.js"; +import { ObservationType } from "./observer_pb.js"; + +/** + * message MsgSetSupportedChains { + * string creator = 1; + * int64 chain_id=2; + * common.ChainName ChainName=3; + * } + * + * @generated from message zetachain.zetacore.observer.MsgUpdateCoreParams + */ +export const MsgUpdateCoreParams = proto3.makeMessageType( + "zetachain.zetacore.observer.MsgUpdateCoreParams", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "coreParams", kind: "message", T: CoreParams }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.MsgUpdateCoreParamsResponse + */ +export const MsgUpdateCoreParamsResponse = proto3.makeMessageType( + "zetachain.zetacore.observer.MsgUpdateCoreParamsResponse", + [], +); + +/** + * this line is used by starport scaffolding # proto/tx/message + * + * message MsgSetSupportedChainsResponse{ + * } + * + * @generated from message zetachain.zetacore.observer.MsgAddObserver + */ +export const MsgAddObserver = proto3.makeMessageType( + "zetachain.zetacore.observer.MsgAddObserver", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "observationType", kind: "enum", T: proto3.getEnumType(ObservationType) }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.MsgAddObserverResponse + */ +export const MsgAddObserverResponse = proto3.makeMessageType( + "zetachain.zetacore.observer.MsgAddObserverResponse", + [], +); + From bd42f01da69b3aa5b0b23074591eca91882e6f66 Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Fri, 11 Aug 2023 12:20:29 +0400 Subject: [PATCH 2/5] remove _pb --- proto/buf.ts.yaml | 2 +- scripts/protoc-gen-typescript.sh | 14 +- .../common/{common_pb.d.ts => common.d.ts} | 0 typescript/common/{common_pb.js => common.js} | 0 ...chain_nonces_pb.d.ts => chain_nonces.d.ts} | 0 .../{chain_nonces_pb.js => chain_nonces.js} | 0 ...s_chain_tx_pb.d.ts => cross_chain_tx.d.ts} | 0 ...cross_chain_tx_pb.js => cross_chain_tx.js} | 0 typescript/crosschain/events.d.ts | 293 ++++++++++++++++ typescript/crosschain/events.js | 90 +++++ .../{gas_price_pb.d.ts => gas_price.d.ts} | 0 .../{gas_price_pb.js => gas_price.js} | 0 .../{genesis_pb.d.ts => genesis.d.ts} | 24 +- .../crosschain/{genesis_pb.js => genesis.js} | 10 +- ...o_cctx_pb.d.ts => in_tx_hash_to_cctx.d.ts} | 0 ...sh_to_cctx_pb.js => in_tx_hash_to_cctx.js} | 0 ..._height_pb.d.ts => last_block_height.d.ts} | 0 ...lock_height_pb.js => last_block_height.js} | 0 ...nce_to_cctx_pb.d.ts => nonce_to_cctx.d.ts} | 0 .../{nonce_to_cctx_pb.js => nonce_to_cctx.js} | 0 ...tx_tracker_pb.d.ts => out_tx_tracker.d.ts} | 0 ...out_tx_tracker_pb.js => out_tx_tracker.js} | 0 .../{params_pb.d.ts => params.d.ts} | 0 .../crosschain/{params_pb.js => params.js} | 0 .../crosschain/{query_pb.d.ts => query.d.ts} | 192 ---------- .../crosschain/{query_pb.js => query.js} | 82 ----- .../crosschain/{tss_pb.d.ts => tss.d.ts} | 0 typescript/crosschain/{tss_pb.js => tss.js} | 0 typescript/crosschain/{tx_pb.d.ts => tx.d.ts} | 98 ------ typescript/crosschain/{tx_pb.js => tx.js} | 40 --- typescript/emissions/events.d.ts | 62 ++++ typescript/emissions/events.js | 23 ++ .../{genesis_pb.d.ts => genesis.d.ts} | 2 - .../emissions/{genesis_pb.js => genesis.js} | 0 .../emissions/{params_pb.d.ts => params.d.ts} | 0 .../emissions/{params_pb.js => params.js} | 0 .../emissions/{query_pb.d.ts => query.d.ts} | 0 .../emissions/{query_pb.js => query.js} | 0 ...reign_coins_pb.d.ts => foreign_coins.d.ts} | 0 .../{foreign_coins_pb.js => foreign_coins.js} | 0 .../{genesis_pb.d.ts => genesis.d.ts} | 2 - .../fungible/{genesis_pb.js => genesis.js} | 0 .../fungible/{params_pb.d.ts => params.d.ts} | 0 .../fungible/{params_pb.js => params.js} | 0 .../fungible/{query_pb.d.ts => query.d.ts} | 0 typescript/fungible/{query_pb.js => query.js} | 0 ..._contract_pb.d.ts => system_contract.d.ts} | 0 ...stem_contract_pb.js => system_contract.js} | 0 typescript/fungible/{tx_pb.d.ts => tx.d.ts} | 0 typescript/fungible/{tx_pb.js => tx.js} | 0 .../observer/{ballot_pb.d.ts => ballot.d.ts} | 0 .../observer/{ballot_pb.js => ballot.js} | 0 typescript/observer/blame.d.ts | 76 ++++ typescript/observer/blame.js | 31 ++ typescript/observer/events.d.ts | 86 +++++ typescript/observer/events.js | 33 ++ .../{genesis_pb.d.ts => genesis.d.ts} | 20 +- .../observer/{genesis_pb.js => genesis.js} | 8 +- .../keygen_pb.d.ts => observer/keygen.d.ts} | 10 +- .../keygen_pb.js => observer/keygen.js} | 10 +- .../node_account.d.ts} | 10 +- .../node_account.js} | 10 +- .../{observer_pb.d.ts => observer.d.ts} | 34 ++ .../observer/{observer_pb.js => observer.js} | 12 + .../observer/{params_pb.d.ts => params.d.ts} | 0 .../observer/{params_pb.js => params.js} | 0 .../permission_flags.d.ts} | 6 +- .../permission_flags.js} | 6 +- .../observer/{query_pb.d.ts => query.d.ts} | 328 +++++++++++++++++- typescript/observer/{query_pb.js => query.js} | 140 +++++++- typescript/observer/tx.d.ts | 261 ++++++++++++++ typescript/observer/tx.js | 107 ++++++ typescript/observer/tx_pb.d.ts | 122 ------- typescript/observer/tx_pb.js | 59 ---- 74 files changed, 1644 insertions(+), 659 deletions(-) rename typescript/common/{common_pb.d.ts => common.d.ts} (100%) rename typescript/common/{common_pb.js => common.js} (100%) rename typescript/crosschain/{chain_nonces_pb.d.ts => chain_nonces.d.ts} (100%) rename typescript/crosschain/{chain_nonces_pb.js => chain_nonces.js} (100%) rename typescript/crosschain/{cross_chain_tx_pb.d.ts => cross_chain_tx.d.ts} (100%) rename typescript/crosschain/{cross_chain_tx_pb.js => cross_chain_tx.js} (100%) create mode 100644 typescript/crosschain/events.d.ts create mode 100644 typescript/crosschain/events.js rename typescript/crosschain/{gas_price_pb.d.ts => gas_price.d.ts} (100%) rename typescript/crosschain/{gas_price_pb.js => gas_price.js} (100%) rename typescript/crosschain/{genesis_pb.d.ts => genesis.d.ts} (78%) rename typescript/crosschain/{genesis_pb.js => genesis.js} (72%) rename typescript/crosschain/{in_tx_hash_to_cctx_pb.d.ts => in_tx_hash_to_cctx.d.ts} (100%) rename typescript/crosschain/{in_tx_hash_to_cctx_pb.js => in_tx_hash_to_cctx.js} (100%) rename typescript/crosschain/{last_block_height_pb.d.ts => last_block_height.d.ts} (100%) rename typescript/crosschain/{last_block_height_pb.js => last_block_height.js} (100%) rename typescript/crosschain/{nonce_to_cctx_pb.d.ts => nonce_to_cctx.d.ts} (100%) rename typescript/crosschain/{nonce_to_cctx_pb.js => nonce_to_cctx.js} (100%) rename typescript/crosschain/{out_tx_tracker_pb.d.ts => out_tx_tracker.d.ts} (100%) rename typescript/crosschain/{out_tx_tracker_pb.js => out_tx_tracker.js} (100%) rename typescript/crosschain/{params_pb.d.ts => params.d.ts} (100%) rename typescript/crosschain/{params_pb.js => params.js} (100%) rename typescript/crosschain/{query_pb.d.ts => query.d.ts} (87%) rename typescript/crosschain/{query_pb.js => query.js} (89%) rename typescript/crosschain/{tss_pb.d.ts => tss.d.ts} (100%) rename typescript/crosschain/{tss_pb.js => tss.js} (100%) rename typescript/crosschain/{tx_pb.d.ts => tx.d.ts} (82%) rename typescript/crosschain/{tx_pb.js => tx.js} (85%) create mode 100644 typescript/emissions/events.d.ts create mode 100644 typescript/emissions/events.js rename typescript/emissions/{genesis_pb.d.ts => genesis.d.ts} (94%) rename typescript/emissions/{genesis_pb.js => genesis.js} (100%) rename typescript/emissions/{params_pb.d.ts => params.d.ts} (100%) rename typescript/emissions/{params_pb.js => params.js} (100%) rename typescript/emissions/{query_pb.d.ts => query.d.ts} (100%) rename typescript/emissions/{query_pb.js => query.js} (100%) rename typescript/fungible/{foreign_coins_pb.d.ts => foreign_coins.d.ts} (100%) rename typescript/fungible/{foreign_coins_pb.js => foreign_coins.js} (100%) rename typescript/fungible/{genesis_pb.d.ts => genesis.d.ts} (95%) rename typescript/fungible/{genesis_pb.js => genesis.js} (100%) rename typescript/fungible/{params_pb.d.ts => params.d.ts} (100%) rename typescript/fungible/{params_pb.js => params.js} (100%) rename typescript/fungible/{query_pb.d.ts => query.d.ts} (100%) rename typescript/fungible/{query_pb.js => query.js} (100%) rename typescript/fungible/{system_contract_pb.d.ts => system_contract.d.ts} (100%) rename typescript/fungible/{system_contract_pb.js => system_contract.js} (100%) rename typescript/fungible/{tx_pb.d.ts => tx.d.ts} (100%) rename typescript/fungible/{tx_pb.js => tx.js} (100%) rename typescript/observer/{ballot_pb.d.ts => ballot.d.ts} (100%) rename typescript/observer/{ballot_pb.js => ballot.js} (100%) create mode 100644 typescript/observer/blame.d.ts create mode 100644 typescript/observer/blame.js create mode 100644 typescript/observer/events.d.ts create mode 100644 typescript/observer/events.js rename typescript/observer/{genesis_pb.d.ts => genesis.d.ts} (74%) rename typescript/observer/{genesis_pb.js => genesis.js} (61%) rename typescript/{crosschain/keygen_pb.d.ts => observer/keygen.d.ts} (79%) rename typescript/{crosschain/keygen_pb.js => observer/keygen.js} (66%) rename typescript/{crosschain/node_account_pb.d.ts => observer/node_account.d.ts} (81%) rename typescript/{crosschain/node_account_pb.js => observer/node_account.js} (70%) rename typescript/observer/{observer_pb.d.ts => observer.d.ts} (63%) rename typescript/observer/{observer_pb.js => observer.js} (71%) rename typescript/observer/{params_pb.d.ts => params.d.ts} (100%) rename typescript/observer/{params_pb.js => params.js} (100%) rename typescript/{crosschain/permission_flags_pb.d.ts => observer/permission_flags.d.ts} (79%) rename typescript/{crosschain/permission_flags_pb.js => observer/permission_flags.js} (54%) rename typescript/observer/{query_pb.d.ts => query.d.ts} (52%) rename typescript/observer/{query_pb.js => query.js} (53%) create mode 100644 typescript/observer/tx.d.ts create mode 100644 typescript/observer/tx.js delete mode 100644 typescript/observer/tx_pb.d.ts delete mode 100644 typescript/observer/tx_pb.js diff --git a/proto/buf.ts.yaml b/proto/buf.ts.yaml index 3d6c7800b8..cb8b9f7c80 100644 --- a/proto/buf.ts.yaml +++ b/proto/buf.ts.yaml @@ -3,4 +3,4 @@ managed: enabled: true plugins: - plugin: buf.build/bufbuild/es:v1.3.0 - out: ../typescript \ No newline at end of file + out: ../typescript diff --git a/scripts/protoc-gen-typescript.sh b/scripts/protoc-gen-typescript.sh index 997f73d2f0..ccf8405720 100755 --- a/scripts/protoc-gen-typescript.sh +++ b/scripts/protoc-gen-typescript.sh @@ -2,4 +2,16 @@ cd proto rm -rf typescript -buf generate --template buf.ts.yaml \ No newline at end of file +buf generate --template buf.ts.yaml + +# Set the target directory +DIR="../typescript" + +# Loop through each file in the directory recursively +find "$DIR" -type f -name "*_pb.*" | while read -r file; do + # Compute the new filename by removing '_pb' + new_file="${file/_pb/}" + + # Rename the file + mv "$file" "$new_file" +done \ No newline at end of file diff --git a/typescript/common/common_pb.d.ts b/typescript/common/common.d.ts similarity index 100% rename from typescript/common/common_pb.d.ts rename to typescript/common/common.d.ts diff --git a/typescript/common/common_pb.js b/typescript/common/common.js similarity index 100% rename from typescript/common/common_pb.js rename to typescript/common/common.js diff --git a/typescript/crosschain/chain_nonces_pb.d.ts b/typescript/crosschain/chain_nonces.d.ts similarity index 100% rename from typescript/crosschain/chain_nonces_pb.d.ts rename to typescript/crosschain/chain_nonces.d.ts diff --git a/typescript/crosschain/chain_nonces_pb.js b/typescript/crosschain/chain_nonces.js similarity index 100% rename from typescript/crosschain/chain_nonces_pb.js rename to typescript/crosschain/chain_nonces.js diff --git a/typescript/crosschain/cross_chain_tx_pb.d.ts b/typescript/crosschain/cross_chain_tx.d.ts similarity index 100% rename from typescript/crosschain/cross_chain_tx_pb.d.ts rename to typescript/crosschain/cross_chain_tx.d.ts diff --git a/typescript/crosschain/cross_chain_tx_pb.js b/typescript/crosschain/cross_chain_tx.js similarity index 100% rename from typescript/crosschain/cross_chain_tx_pb.js rename to typescript/crosschain/cross_chain_tx.js diff --git a/typescript/crosschain/events.d.ts b/typescript/crosschain/events.d.ts new file mode 100644 index 0000000000..3c6dd79a1c --- /dev/null +++ b/typescript/crosschain/events.d.ts @@ -0,0 +1,293 @@ +// @generated by protoc-gen-es v1.3.0 +// @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 zeta_minted = 5; + */ + zetaMinted: 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 zeta_minted = 5; + */ + zetaMinted: 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/events.js b/typescript/crosschain/events.js new file mode 100644 index 0000000000..251ab847e6 --- /dev/null +++ b/typescript/crosschain/events.js @@ -0,0 +1,90 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file crosschain/events.proto (package zetachain.zetacore.crosschain, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.crosschain.EventInboundFinalized + */ +export const EventInboundFinalized = proto3.makeMessageType( + "zetachain.zetacore.crosschain.EventInboundFinalized", + () => [ + { no: 1, name: "msg_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "cctx_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "tx_orgin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "in_tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "in_block_height", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "receiver_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 10, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "relayed_message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "new_status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "status_message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 14, name: "sender_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.EventZrcWithdrawCreated + */ +export const EventZrcWithdrawCreated = proto3.makeMessageType( + "zetachain.zetacore.crosschain.EventZrcWithdrawCreated", + () => [ + { no: 1, name: "msg_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "cctx_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "sender_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "in_tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "receiver_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "new_status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.EventZetaWithdrawCreated + */ +export const EventZetaWithdrawCreated = proto3.makeMessageType( + "zetachain.zetacore.crosschain.EventZetaWithdrawCreated", + () => [ + { no: 1, name: "msg_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "cctx_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "in_tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "new_status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.EventOutboundFailure + */ +export const EventOutboundFailure = proto3.makeMessageType( + "zetachain.zetacore.crosschain.EventOutboundFailure", + () => [ + { no: 1, name: "msg_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "cctx_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "old_status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "new_status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "zeta_minted", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.crosschain.EventOutboundSuccess + */ +export const EventOutboundSuccess = proto3.makeMessageType( + "zetachain.zetacore.crosschain.EventOutboundSuccess", + () => [ + { no: 1, name: "msg_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "cctx_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "old_status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "new_status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "zeta_minted", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + diff --git a/typescript/crosschain/gas_price_pb.d.ts b/typescript/crosschain/gas_price.d.ts similarity index 100% rename from typescript/crosschain/gas_price_pb.d.ts rename to typescript/crosschain/gas_price.d.ts diff --git a/typescript/crosschain/gas_price_pb.js b/typescript/crosschain/gas_price.js similarity index 100% rename from typescript/crosschain/gas_price_pb.js rename to typescript/crosschain/gas_price.js diff --git a/typescript/crosschain/genesis_pb.d.ts b/typescript/crosschain/genesis.d.ts similarity index 78% rename from typescript/crosschain/genesis_pb.d.ts rename to typescript/crosschain/genesis.d.ts index 1560bcaebd..b12fd1b372 100644 --- a/typescript/crosschain/genesis_pb.d.ts +++ b/typescript/crosschain/genesis.d.ts @@ -7,15 +7,12 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM import { Message, proto3 } from "@bufbuild/protobuf"; import type { Params } from "./params_pb.js"; import type { OutTxTracker } from "./out_tx_tracker_pb.js"; -import type { Keygen } from "./keygen_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 { NodeAccount } from "./node_account_pb.js"; import type { LastBlockHeight } from "./last_block_height_pb.js"; import type { InTxHashToCctx } from "./in_tx_hash_to_cctx_pb.js"; -import type { PermissionFlags } from "./permission_flags_pb.js"; /** * GenesisState defines the metacore module's genesis state. @@ -33,11 +30,6 @@ export declare class GenesisState extends Message { */ outTxTrackerList: OutTxTracker[]; - /** - * @generated from field: zetachain.zetacore.crosschain.Keygen keygen = 3; - */ - keygen?: Keygen; - /** * @generated from field: zetachain.zetacore.crosschain.TSS tss = 4; */ @@ -59,27 +51,15 @@ export declare class GenesisState extends Message { CrossChainTxs: CrossChainTx[]; /** - * @generated from field: repeated zetachain.zetacore.crosschain.NodeAccount nodeAccountList = 8; - */ - nodeAccountList: NodeAccount[]; - - /** - * @generated from field: repeated zetachain.zetacore.crosschain.LastBlockHeight lastBlockHeightList = 9; + * @generated from field: repeated zetachain.zetacore.crosschain.LastBlockHeight lastBlockHeightList = 8; */ lastBlockHeightList: LastBlockHeight[]; /** - * @generated from field: repeated zetachain.zetacore.crosschain.InTxHashToCctx inTxHashToCctxList = 10; + * @generated from field: repeated zetachain.zetacore.crosschain.InTxHashToCctx inTxHashToCctxList = 9; */ inTxHashToCctxList: InTxHashToCctx[]; - /** - * this line is used by starport scaffolding # genesis/proto/state - * - * @generated from field: zetachain.zetacore.crosschain.PermissionFlags permissionFlags = 11; - */ - permissionFlags?: PermissionFlags; - constructor(data?: PartialMessage); static readonly runtime: typeof proto3; diff --git a/typescript/crosschain/genesis_pb.js b/typescript/crosschain/genesis.js similarity index 72% rename from typescript/crosschain/genesis_pb.js rename to typescript/crosschain/genesis.js index 956c1c0b8a..033e2c5c54 100644 --- a/typescript/crosschain/genesis_pb.js +++ b/typescript/crosschain/genesis.js @@ -6,15 +6,12 @@ import { proto3 } from "@bufbuild/protobuf"; import { Params } from "./params_pb.js"; import { OutTxTracker } from "./out_tx_tracker_pb.js"; -import { Keygen } from "./keygen_pb.js"; import { TSS } from "./tss_pb.js"; import { GasPrice } from "./gas_price_pb.js"; import { ChainNonces } from "./chain_nonces_pb.js"; import { CrossChainTx } from "./cross_chain_tx_pb.js"; -import { NodeAccount } from "./node_account_pb.js"; import { LastBlockHeight } from "./last_block_height_pb.js"; import { InTxHashToCctx } from "./in_tx_hash_to_cctx_pb.js"; -import { PermissionFlags } from "./permission_flags_pb.js"; /** * GenesisState defines the metacore module's genesis state. @@ -26,15 +23,12 @@ export const GenesisState = proto3.makeMessageType( () => [ { no: 1, name: "params", kind: "message", T: Params }, { no: 2, name: "outTxTrackerList", kind: "message", T: OutTxTracker, repeated: true }, - { no: 3, name: "keygen", kind: "message", T: Keygen }, { no: 4, name: "tss", kind: "message", T: TSS }, { no: 5, name: "gasPriceList", kind: "message", T: GasPrice, repeated: true }, { no: 6, name: "chainNoncesList", kind: "message", T: ChainNonces, repeated: true }, { no: 7, name: "CrossChainTxs", kind: "message", T: CrossChainTx, repeated: true }, - { no: 8, name: "nodeAccountList", kind: "message", T: NodeAccount, repeated: true }, - { no: 9, name: "lastBlockHeightList", kind: "message", T: LastBlockHeight, repeated: true }, - { no: 10, name: "inTxHashToCctxList", kind: "message", T: InTxHashToCctx, repeated: true }, - { no: 11, name: "permissionFlags", kind: "message", T: PermissionFlags }, + { no: 8, name: "lastBlockHeightList", kind: "message", T: LastBlockHeight, repeated: true }, + { no: 9, name: "inTxHashToCctxList", kind: "message", T: InTxHashToCctx, repeated: true }, ], ); diff --git a/typescript/crosschain/in_tx_hash_to_cctx_pb.d.ts b/typescript/crosschain/in_tx_hash_to_cctx.d.ts similarity index 100% rename from typescript/crosschain/in_tx_hash_to_cctx_pb.d.ts rename to typescript/crosschain/in_tx_hash_to_cctx.d.ts diff --git a/typescript/crosschain/in_tx_hash_to_cctx_pb.js b/typescript/crosschain/in_tx_hash_to_cctx.js similarity index 100% rename from typescript/crosschain/in_tx_hash_to_cctx_pb.js rename to typescript/crosschain/in_tx_hash_to_cctx.js diff --git a/typescript/crosschain/last_block_height_pb.d.ts b/typescript/crosschain/last_block_height.d.ts similarity index 100% rename from typescript/crosschain/last_block_height_pb.d.ts rename to typescript/crosschain/last_block_height.d.ts diff --git a/typescript/crosschain/last_block_height_pb.js b/typescript/crosschain/last_block_height.js similarity index 100% rename from typescript/crosschain/last_block_height_pb.js rename to typescript/crosschain/last_block_height.js diff --git a/typescript/crosschain/nonce_to_cctx_pb.d.ts b/typescript/crosschain/nonce_to_cctx.d.ts similarity index 100% rename from typescript/crosschain/nonce_to_cctx_pb.d.ts rename to typescript/crosschain/nonce_to_cctx.d.ts diff --git a/typescript/crosschain/nonce_to_cctx_pb.js b/typescript/crosschain/nonce_to_cctx.js similarity index 100% rename from typescript/crosschain/nonce_to_cctx_pb.js rename to typescript/crosschain/nonce_to_cctx.js diff --git a/typescript/crosschain/out_tx_tracker_pb.d.ts b/typescript/crosschain/out_tx_tracker.d.ts similarity index 100% rename from typescript/crosschain/out_tx_tracker_pb.d.ts rename to typescript/crosschain/out_tx_tracker.d.ts diff --git a/typescript/crosschain/out_tx_tracker_pb.js b/typescript/crosschain/out_tx_tracker.js similarity index 100% rename from typescript/crosschain/out_tx_tracker_pb.js rename to typescript/crosschain/out_tx_tracker.js diff --git a/typescript/crosschain/params_pb.d.ts b/typescript/crosschain/params.d.ts similarity index 100% rename from typescript/crosschain/params_pb.d.ts rename to typescript/crosschain/params.d.ts diff --git a/typescript/crosschain/params_pb.js b/typescript/crosschain/params.js similarity index 100% rename from typescript/crosschain/params_pb.js rename to typescript/crosschain/params.js diff --git a/typescript/crosschain/query_pb.d.ts b/typescript/crosschain/query.d.ts similarity index 87% rename from typescript/crosschain/query_pb.d.ts rename to typescript/crosschain/query.d.ts index ec9f750b29..4377405082 100644 --- a/typescript/crosschain/query_pb.d.ts +++ b/typescript/crosschain/query.d.ts @@ -9,15 +9,12 @@ 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 { InTxHashToCctx } from "./in_tx_hash_to_cctx_pb.js"; -import type { PermissionFlags } from "./permission_flags_pb.js"; -import type { Keygen } from "./keygen_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 { PendingNonces } from "./nonce_to_cctx_pb.js"; import type { LastBlockHeight } from "./last_block_height_pb.js"; import type { CrossChainTx } from "./cross_chain_tx_pb.js"; -import type { NodeAccount } from "./node_account_pb.js"; /** * QueryParamsRequest is request type for the Query/Params RPC method. @@ -333,49 +330,6 @@ export declare class QueryAllInTxHashToCctxResponse extends Message | undefined, b: QueryAllInTxHashToCctxResponse | PlainMessage | undefined): boolean; } -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetPermissionFlagsRequest - */ -export declare class QueryGetPermissionFlagsRequest extends Message { - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "zetachain.zetacore.crosschain.QueryGetPermissionFlagsRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPermissionFlagsRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPermissionFlagsRequest; - - static fromJsonString(jsonString: string, options?: Partial): QueryGetPermissionFlagsRequest; - - static equals(a: QueryGetPermissionFlagsRequest | PlainMessage | undefined, b: QueryGetPermissionFlagsRequest | PlainMessage | undefined): boolean; -} - -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetPermissionFlagsResponse - */ -export declare class QueryGetPermissionFlagsResponse extends Message { - /** - * @generated from field: zetachain.zetacore.crosschain.PermissionFlags PermissionFlags = 1; - */ - PermissionFlags?: PermissionFlags; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "zetachain.zetacore.crosschain.QueryGetPermissionFlagsResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPermissionFlagsResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPermissionFlagsResponse; - - static fromJsonString(jsonString: string, options?: Partial): QueryGetPermissionFlagsResponse; - - static equals(a: QueryGetPermissionFlagsResponse | PlainMessage | undefined, b: QueryGetPermissionFlagsResponse | PlainMessage | undefined): boolean; -} - /** * @generated from message zetachain.zetacore.crosschain.QueryGetTssAddressRequest */ @@ -424,51 +378,6 @@ export declare class QueryGetTssAddressResponse extends Message | undefined, b: QueryGetTssAddressResponse | PlainMessage | undefined): boolean; } -/** - * this line is used by starport scaffolding # 3 - * - * @generated from message zetachain.zetacore.crosschain.QueryGetKeygenRequest - */ -export declare class QueryGetKeygenRequest extends Message { - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "zetachain.zetacore.crosschain.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.crosschain.QueryGetKeygenResponse - */ -export declare class QueryGetKeygenResponse extends Message { - /** - * @generated from field: zetachain.zetacore.crosschain.Keygen Keygen = 1; - */ - Keygen?: Keygen; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "zetachain.zetacore.crosschain.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.crosschain.QueryGetTSSRequest */ @@ -1017,107 +926,6 @@ export declare class QueryAllCctxPendingResponse extends Message | undefined, b: QueryAllCctxPendingResponse | PlainMessage | undefined): boolean; } -/** - * @generated from message zetachain.zetacore.crosschain.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.crosschain.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.crosschain.QueryGetNodeAccountResponse - */ -export declare class QueryGetNodeAccountResponse extends Message { - /** - * @generated from field: zetachain.zetacore.crosschain.NodeAccount NodeAccount = 1; - */ - NodeAccount?: NodeAccount; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "zetachain.zetacore.crosschain.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.crosschain.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.crosschain.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.crosschain.QueryAllNodeAccountResponse - */ -export declare class QueryAllNodeAccountResponse extends Message { - /** - * @generated from field: repeated zetachain.zetacore.crosschain.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.crosschain.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.crosschain.QueryLastZetaHeightRequest */ diff --git a/typescript/crosschain/query_pb.js b/typescript/crosschain/query.js similarity index 89% rename from typescript/crosschain/query_pb.js rename to typescript/crosschain/query.js index abde71ce88..e555e1d6be 100644 --- a/typescript/crosschain/query_pb.js +++ b/typescript/crosschain/query.js @@ -8,15 +8,12 @@ import { Params } from "./params_pb.js"; import { OutTxTracker } from "./out_tx_tracker_pb.js"; import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination_pb.js"; import { InTxHashToCctx } from "./in_tx_hash_to_cctx_pb.js"; -import { PermissionFlags } from "./permission_flags_pb.js"; -import { Keygen } from "./keygen_pb.js"; import { TSS } from "./tss_pb.js"; import { GasPrice } from "./gas_price_pb.js"; import { ChainNonces } from "./chain_nonces_pb.js"; import { PendingNonces } from "./nonce_to_cctx_pb.js"; import { LastBlockHeight } from "./last_block_height_pb.js"; import { CrossChainTx } from "./cross_chain_tx_pb.js"; -import { NodeAccount } from "./node_account_pb.js"; /** * QueryParamsRequest is request type for the Query/Params RPC method. @@ -145,24 +142,6 @@ export const QueryAllInTxHashToCctxResponse = proto3.makeMessageType( ], ); -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetPermissionFlagsRequest - */ -export const QueryGetPermissionFlagsRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryGetPermissionFlagsRequest", - [], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetPermissionFlagsResponse - */ -export const QueryGetPermissionFlagsResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryGetPermissionFlagsResponse", - () => [ - { no: 1, name: "PermissionFlags", kind: "message", T: PermissionFlags }, - ], -); - /** * @generated from message zetachain.zetacore.crosschain.QueryGetTssAddressRequest */ @@ -182,26 +161,6 @@ export const QueryGetTssAddressResponse = proto3.makeMessageType( ], ); -/** - * this line is used by starport scaffolding # 3 - * - * @generated from message zetachain.zetacore.crosschain.QueryGetKeygenRequest - */ -export const QueryGetKeygenRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryGetKeygenRequest", - [], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetKeygenResponse - */ -export const QueryGetKeygenResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryGetKeygenResponse", - () => [ - { no: 1, name: "Keygen", kind: "message", T: Keygen }, - ], -); - /** * @generated from message zetachain.zetacore.crosschain.QueryGetTSSRequest */ @@ -424,47 +383,6 @@ export const QueryAllCctxPendingResponse = proto3.makeMessageType( ], ); -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetNodeAccountRequest - */ -export const QueryGetNodeAccountRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryGetNodeAccountRequest", - () => [ - { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetNodeAccountResponse - */ -export const QueryGetNodeAccountResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryGetNodeAccountResponse", - () => [ - { no: 1, name: "NodeAccount", kind: "message", T: NodeAccount }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryAllNodeAccountRequest - */ -export const QueryAllNodeAccountRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryAllNodeAccountRequest", - () => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryAllNodeAccountResponse - */ -export const QueryAllNodeAccountResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryAllNodeAccountResponse", - () => [ - { no: 1, name: "NodeAccount", kind: "message", T: NodeAccount, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ], -); - /** * @generated from message zetachain.zetacore.crosschain.QueryLastZetaHeightRequest */ diff --git a/typescript/crosschain/tss_pb.d.ts b/typescript/crosschain/tss.d.ts similarity index 100% rename from typescript/crosschain/tss_pb.d.ts rename to typescript/crosschain/tss.d.ts diff --git a/typescript/crosschain/tss_pb.js b/typescript/crosschain/tss.js similarity index 100% rename from typescript/crosschain/tss_pb.js rename to typescript/crosschain/tss.js diff --git a/typescript/crosschain/tx_pb.d.ts b/typescript/crosschain/tx.d.ts similarity index 82% rename from typescript/crosschain/tx_pb.d.ts rename to typescript/crosschain/tx.d.ts index 2d254801ac..90147d4a2b 100644 --- a/typescript/crosschain/tx_pb.d.ts +++ b/typescript/crosschain/tx.d.ts @@ -119,104 +119,6 @@ export declare class MsgRemoveFromOutTxTrackerResponse extends Message { - /** - * @generated from field: string creator = 1; - */ - creator: string; - - /** - * @generated from field: bool isInboundEnabled = 3; - */ - isInboundEnabled: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "zetachain.zetacore.crosschain.MsgUpdatePermissionFlags"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdatePermissionFlags; - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdatePermissionFlags; - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdatePermissionFlags; - - static equals(a: MsgUpdatePermissionFlags | PlainMessage | undefined, b: MsgUpdatePermissionFlags | PlainMessage | undefined): boolean; -} - -/** - * @generated from message zetachain.zetacore.crosschain.MsgUpdatePermissionFlagsResponse - */ -export declare class MsgUpdatePermissionFlagsResponse extends Message { - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "zetachain.zetacore.crosschain.MsgUpdatePermissionFlagsResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdatePermissionFlagsResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdatePermissionFlagsResponse; - - static fromJsonString(jsonString: string, options?: Partial): MsgUpdatePermissionFlagsResponse; - - static equals(a: MsgUpdatePermissionFlagsResponse | PlainMessage | undefined, b: MsgUpdatePermissionFlagsResponse | PlainMessage | undefined): boolean; -} - -/** - * @generated from message zetachain.zetacore.crosschain.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.crosschain.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.crosschain.MsgUpdateKeygenResponse - */ -export declare class MsgUpdateKeygenResponse extends Message { - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "zetachain.zetacore.crosschain.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; -} - -/** - * this line is used by starport scaffolding # proto/tx/message - * * @generated from message zetachain.zetacore.crosschain.MsgCreateTSSVoter */ export declare class MsgCreateTSSVoter extends Message { diff --git a/typescript/crosschain/tx_pb.js b/typescript/crosschain/tx.js similarity index 85% rename from typescript/crosschain/tx_pb.js rename to typescript/crosschain/tx.js index 7262b95086..aef616a86e 100644 --- a/typescript/crosschain/tx_pb.js +++ b/typescript/crosschain/tx.js @@ -48,46 +48,6 @@ export const MsgRemoveFromOutTxTrackerResponse = proto3.makeMessageType( ); /** - * @generated from message zetachain.zetacore.crosschain.MsgUpdatePermissionFlags - */ -export const MsgUpdatePermissionFlags = proto3.makeMessageType( - "zetachain.zetacore.crosschain.MsgUpdatePermissionFlags", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "isInboundEnabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.MsgUpdatePermissionFlagsResponse - */ -export const MsgUpdatePermissionFlagsResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.MsgUpdatePermissionFlagsResponse", - [], -); - -/** - * @generated from message zetachain.zetacore.crosschain.MsgUpdateKeygen - */ -export const MsgUpdateKeygen = proto3.makeMessageType( - "zetachain.zetacore.crosschain.MsgUpdateKeygen", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.MsgUpdateKeygenResponse - */ -export const MsgUpdateKeygenResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.MsgUpdateKeygenResponse", - [], -); - -/** - * this line is used by starport scaffolding # proto/tx/message - * * @generated from message zetachain.zetacore.crosschain.MsgCreateTSSVoter */ export const MsgCreateTSSVoter = proto3.makeMessageType( diff --git a/typescript/emissions/events.d.ts b/typescript/emissions/events.d.ts new file mode 100644 index 0000000000..36b3e73b0b --- /dev/null +++ b/typescript/emissions/events.d.ts @@ -0,0 +1,62 @@ +// @generated by protoc-gen-es v1.3.0 +// @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 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/events.js b/typescript/emissions/events.js new file mode 100644 index 0000000000..4ed9c580cd --- /dev/null +++ b/typescript/emissions/events.js @@ -0,0 +1,23 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file emissions/events.proto (package zetachain.zetacore.emissions, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.emissions.EventBlockEmissions + */ +export const EventBlockEmissions = proto3.makeMessageType( + "zetachain.zetacore.emissions.EventBlockEmissions", + () => [ + { no: 1, name: "msg_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "bond_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "reserves_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "duration_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "validator_rewards_for_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "observer_rewards_for_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "tss_rewards_for_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + diff --git a/typescript/emissions/genesis_pb.d.ts b/typescript/emissions/genesis.d.ts similarity index 94% rename from typescript/emissions/genesis_pb.d.ts rename to typescript/emissions/genesis.d.ts index 6cdead3378..872ec813d4 100644 --- a/typescript/emissions/genesis_pb.d.ts +++ b/typescript/emissions/genesis.d.ts @@ -14,8 +14,6 @@ import type { Params } from "./params_pb.js"; */ export declare class GenesisState extends Message { /** - * this line is used by starport scaffolding # genesis/proto/state - * * @generated from field: zetachain.zetacore.emissions.Params params = 1; */ params?: Params; diff --git a/typescript/emissions/genesis_pb.js b/typescript/emissions/genesis.js similarity index 100% rename from typescript/emissions/genesis_pb.js rename to typescript/emissions/genesis.js diff --git a/typescript/emissions/params_pb.d.ts b/typescript/emissions/params.d.ts similarity index 100% rename from typescript/emissions/params_pb.d.ts rename to typescript/emissions/params.d.ts diff --git a/typescript/emissions/params_pb.js b/typescript/emissions/params.js similarity index 100% rename from typescript/emissions/params_pb.js rename to typescript/emissions/params.js diff --git a/typescript/emissions/query_pb.d.ts b/typescript/emissions/query.d.ts similarity index 100% rename from typescript/emissions/query_pb.d.ts rename to typescript/emissions/query.d.ts diff --git a/typescript/emissions/query_pb.js b/typescript/emissions/query.js similarity index 100% rename from typescript/emissions/query_pb.js rename to typescript/emissions/query.js diff --git a/typescript/fungible/foreign_coins_pb.d.ts b/typescript/fungible/foreign_coins.d.ts similarity index 100% rename from typescript/fungible/foreign_coins_pb.d.ts rename to typescript/fungible/foreign_coins.d.ts diff --git a/typescript/fungible/foreign_coins_pb.js b/typescript/fungible/foreign_coins.js similarity index 100% rename from typescript/fungible/foreign_coins_pb.js rename to typescript/fungible/foreign_coins.js diff --git a/typescript/fungible/genesis_pb.d.ts b/typescript/fungible/genesis.d.ts similarity index 95% rename from typescript/fungible/genesis_pb.d.ts rename to typescript/fungible/genesis.d.ts index 3ddf8a5fc3..6d5040e5f7 100644 --- a/typescript/fungible/genesis_pb.d.ts +++ b/typescript/fungible/genesis.d.ts @@ -26,8 +26,6 @@ export declare class GenesisState extends Message { foreignCoinsList: ForeignCoins[]; /** - * this line is used by starport scaffolding # genesis/proto/state - * * @generated from field: zetachain.zetacore.fungible.SystemContract systemContract = 3; */ systemContract?: SystemContract; diff --git a/typescript/fungible/genesis_pb.js b/typescript/fungible/genesis.js similarity index 100% rename from typescript/fungible/genesis_pb.js rename to typescript/fungible/genesis.js diff --git a/typescript/fungible/params_pb.d.ts b/typescript/fungible/params.d.ts similarity index 100% rename from typescript/fungible/params_pb.d.ts rename to typescript/fungible/params.d.ts diff --git a/typescript/fungible/params_pb.js b/typescript/fungible/params.js similarity index 100% rename from typescript/fungible/params_pb.js rename to typescript/fungible/params.js diff --git a/typescript/fungible/query_pb.d.ts b/typescript/fungible/query.d.ts similarity index 100% rename from typescript/fungible/query_pb.d.ts rename to typescript/fungible/query.d.ts diff --git a/typescript/fungible/query_pb.js b/typescript/fungible/query.js similarity index 100% rename from typescript/fungible/query_pb.js rename to typescript/fungible/query.js diff --git a/typescript/fungible/system_contract_pb.d.ts b/typescript/fungible/system_contract.d.ts similarity index 100% rename from typescript/fungible/system_contract_pb.d.ts rename to typescript/fungible/system_contract.d.ts diff --git a/typescript/fungible/system_contract_pb.js b/typescript/fungible/system_contract.js similarity index 100% rename from typescript/fungible/system_contract_pb.js rename to typescript/fungible/system_contract.js diff --git a/typescript/fungible/tx_pb.d.ts b/typescript/fungible/tx.d.ts similarity index 100% rename from typescript/fungible/tx_pb.d.ts rename to typescript/fungible/tx.d.ts diff --git a/typescript/fungible/tx_pb.js b/typescript/fungible/tx.js similarity index 100% rename from typescript/fungible/tx_pb.js rename to typescript/fungible/tx.js diff --git a/typescript/observer/ballot_pb.d.ts b/typescript/observer/ballot.d.ts similarity index 100% rename from typescript/observer/ballot_pb.d.ts rename to typescript/observer/ballot.d.ts diff --git a/typescript/observer/ballot_pb.js b/typescript/observer/ballot.js similarity index 100% rename from typescript/observer/ballot_pb.js rename to typescript/observer/ballot.js diff --git a/typescript/observer/blame.d.ts b/typescript/observer/blame.d.ts new file mode 100644 index 0000000000..21b5e17ff9 --- /dev/null +++ b/typescript/observer/blame.d.ts @@ -0,0 +1,76 @@ +// @generated by protoc-gen-es v1.3.0 +// @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/blame.js b/typescript/observer/blame.js new file mode 100644 index 0000000000..d65661ca51 --- /dev/null +++ b/typescript/observer/blame.js @@ -0,0 +1,31 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file observer/blame.proto (package zetachain.zetacore.observer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.observer.Node + */ +export const Node = proto3.makeMessageType( + "zetachain.zetacore.observer.Node", + () => [ + { no: 1, name: "pub_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "blame_data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "blame_signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.Blame + */ +export const Blame = proto3.makeMessageType( + "zetachain.zetacore.observer.Blame", + () => [ + { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "failure_reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "nodes", kind: "message", T: Node, repeated: true }, + ], +); + diff --git a/typescript/observer/events.d.ts b/typescript/observer/events.d.ts new file mode 100644 index 0000000000..c80b685008 --- /dev/null +++ b/typescript/observer/events.d.ts @@ -0,0 +1,86 @@ +// @generated by protoc-gen-es v1.3.0 +// @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"; + +/** + * @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 = 3; + */ + ballotIdentifier: string; + + /** + * @generated from field: string observation_hash = 4; + */ + observationHash: string; + + /** + * @generated from field: string observation_chain = 5; + */ + observationChain: string; + + /** + * @generated from field: string ballot_type = 6; + */ + 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; +} + diff --git a/typescript/observer/events.js b/typescript/observer/events.js new file mode 100644 index 0000000000..9cb592cee9 --- /dev/null +++ b/typescript/observer/events.js @@ -0,0 +1,33 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file observer/events.proto (package zetachain.zetacore.observer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message zetachain.zetacore.observer.EventBallotCreated + */ +export const EventBallotCreated = proto3.makeMessageType( + "zetachain.zetacore.observer.EventBallotCreated", + () => [ + { no: 1, name: "msg_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "ballot_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "observation_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "observation_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "ballot_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.EventKeygenBlockUpdated + */ +export const EventKeygenBlockUpdated = proto3.makeMessageType( + "zetachain.zetacore.observer.EventKeygenBlockUpdated", + () => [ + { no: 1, name: "msg_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "keygen_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "keygen_pubkeys", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + diff --git a/typescript/observer/genesis_pb.d.ts b/typescript/observer/genesis.d.ts similarity index 74% rename from typescript/observer/genesis_pb.d.ts rename to typescript/observer/genesis.d.ts index 19dcbf7ae1..f05666d3a9 100644 --- a/typescript/observer/genesis_pb.d.ts +++ b/typescript/observer/genesis.d.ts @@ -7,7 +7,10 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM import { Message, proto3 } from "@bufbuild/protobuf"; import type { Ballot } from "./ballot_pb.js"; import type { ObserverMapper } from "./observer_pb.js"; +import type { NodeAccount } from "./node_account_pb.js"; +import type { PermissionFlags } from "./permission_flags_pb.js"; import type { Params } from "./params_pb.js"; +import type { Keygen } from "./keygen_pb.js"; /** * @generated from message zetachain.zetacore.observer.GenesisState @@ -24,10 +27,25 @@ export declare class GenesisState extends Message { observers: ObserverMapper[]; /** - * @generated from field: zetachain.zetacore.observer.Params params = 3; + * @generated from field: repeated zetachain.zetacore.observer.NodeAccount nodeAccountList = 3; + */ + nodeAccountList: NodeAccount[]; + + /** + * @generated from field: zetachain.zetacore.observer.PermissionFlags permissionFlags = 4; + */ + permissionFlags?: PermissionFlags; + + /** + * @generated from field: zetachain.zetacore.observer.Params params = 5; */ params?: Params; + /** + * @generated from field: zetachain.zetacore.observer.Keygen keygen = 6; + */ + keygen?: Keygen; + constructor(data?: PartialMessage); static readonly runtime: typeof proto3; diff --git a/typescript/observer/genesis_pb.js b/typescript/observer/genesis.js similarity index 61% rename from typescript/observer/genesis_pb.js rename to typescript/observer/genesis.js index 3c0cd8279f..106ade4840 100644 --- a/typescript/observer/genesis_pb.js +++ b/typescript/observer/genesis.js @@ -6,7 +6,10 @@ import { proto3 } from "@bufbuild/protobuf"; import { Ballot } from "./ballot_pb.js"; import { ObserverMapper } from "./observer_pb.js"; +import { NodeAccount } from "./node_account_pb.js"; +import { PermissionFlags } from "./permission_flags_pb.js"; import { Params } from "./params_pb.js"; +import { Keygen } from "./keygen_pb.js"; /** * @generated from message zetachain.zetacore.observer.GenesisState @@ -16,7 +19,10 @@ export const GenesisState = proto3.makeMessageType( () => [ { no: 1, name: "ballots", kind: "message", T: Ballot, repeated: true }, { no: 2, name: "observers", kind: "message", T: ObserverMapper, repeated: true }, - { no: 3, name: "params", kind: "message", T: Params }, + { no: 3, name: "nodeAccountList", kind: "message", T: NodeAccount, repeated: true }, + { no: 4, name: "permissionFlags", kind: "message", T: PermissionFlags }, + { no: 5, name: "params", kind: "message", T: Params }, + { no: 6, name: "keygen", kind: "message", T: Keygen }, ], ); diff --git a/typescript/crosschain/keygen_pb.d.ts b/typescript/observer/keygen.d.ts similarity index 79% rename from typescript/crosschain/keygen_pb.d.ts rename to typescript/observer/keygen.d.ts index 21aa58ff62..ae3c933b6e 100644 --- a/typescript/crosschain/keygen_pb.d.ts +++ b/typescript/observer/keygen.d.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.3.0 -// @generated from file crosschain/keygen.proto (package zetachain.zetacore.crosschain, syntax proto3) +// @generated from file observer/keygen.proto (package zetachain.zetacore.observer, syntax proto3) /* eslint-disable */ // @ts-nocheck @@ -7,7 +7,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM import { Message, proto3 } from "@bufbuild/protobuf"; /** - * @generated from enum zetachain.zetacore.crosschain.KeygenStatus + * @generated from enum zetachain.zetacore.observer.KeygenStatus */ export declare enum KeygenStatus { /** @@ -27,13 +27,13 @@ export declare enum KeygenStatus { } /** - * @generated from message zetachain.zetacore.crosschain.Keygen + * @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.crosschain.KeygenStatus status = 2; + * @generated from field: zetachain.zetacore.observer.KeygenStatus status = 2; */ status: KeygenStatus; @@ -52,7 +52,7 @@ export declare class Keygen extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; - static readonly typeName = "zetachain.zetacore.crosschain.Keygen"; + static readonly typeName = "zetachain.zetacore.observer.Keygen"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Keygen; diff --git a/typescript/crosschain/keygen_pb.js b/typescript/observer/keygen.js similarity index 66% rename from typescript/crosschain/keygen_pb.js rename to typescript/observer/keygen.js index 91ee5cbb3e..70baa1004d 100644 --- a/typescript/crosschain/keygen_pb.js +++ b/typescript/observer/keygen.js @@ -1,15 +1,15 @@ // @generated by protoc-gen-es v1.3.0 -// @generated from file crosschain/keygen.proto (package zetachain.zetacore.crosschain, syntax proto3) +// @generated from file observer/keygen.proto (package zetachain.zetacore.observer, syntax proto3) /* eslint-disable */ // @ts-nocheck import { proto3 } from "@bufbuild/protobuf"; /** - * @generated from enum zetachain.zetacore.crosschain.KeygenStatus + * @generated from enum zetachain.zetacore.observer.KeygenStatus */ export const KeygenStatus = proto3.makeEnum( - "zetachain.zetacore.crosschain.KeygenStatus", + "zetachain.zetacore.observer.KeygenStatus", [ {no: 0, name: "PendingKeygen"}, {no: 1, name: "KeyGenSuccess"}, @@ -18,10 +18,10 @@ export const KeygenStatus = proto3.makeEnum( ); /** - * @generated from message zetachain.zetacore.crosschain.Keygen + * @generated from message zetachain.zetacore.observer.Keygen */ export const Keygen = proto3.makeMessageType( - "zetachain.zetacore.crosschain.Keygen", + "zetachain.zetacore.observer.Keygen", () => [ { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(KeygenStatus) }, { no: 3, name: "granteePubkeys", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, diff --git a/typescript/crosschain/node_account_pb.d.ts b/typescript/observer/node_account.d.ts similarity index 81% rename from typescript/crosschain/node_account_pb.d.ts rename to typescript/observer/node_account.d.ts index 919e3b6628..aada3e4dc9 100644 --- a/typescript/crosschain/node_account_pb.d.ts +++ b/typescript/observer/node_account.d.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.3.0 -// @generated from file crosschain/node_account.proto (package zetachain.zetacore.crosschain, syntax proto3) +// @generated from file observer/node_account.proto (package zetachain.zetacore.observer, syntax proto3) /* eslint-disable */ // @ts-nocheck @@ -8,7 +8,7 @@ import { Message, proto3 } from "@bufbuild/protobuf"; import type { PubKeySet } from "../common/common_pb.js"; /** - * @generated from enum zetachain.zetacore.crosschain.NodeStatus + * @generated from enum zetachain.zetacore.observer.NodeStatus */ export declare enum NodeStatus { /** @@ -43,7 +43,7 @@ export declare enum NodeStatus { } /** - * @generated from message zetachain.zetacore.crosschain.NodeAccount + * @generated from message zetachain.zetacore.observer.NodeAccount */ export declare class NodeAccount extends Message { /** @@ -62,14 +62,14 @@ export declare class NodeAccount extends Message { granteePubkey?: PubKeySet; /** - * @generated from field: zetachain.zetacore.crosschain.NodeStatus nodeStatus = 4; + * @generated from field: zetachain.zetacore.observer.NodeStatus nodeStatus = 4; */ nodeStatus: NodeStatus; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; - static readonly typeName = "zetachain.zetacore.crosschain.NodeAccount"; + static readonly typeName = "zetachain.zetacore.observer.NodeAccount"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): NodeAccount; diff --git a/typescript/crosschain/node_account_pb.js b/typescript/observer/node_account.js similarity index 70% rename from typescript/crosschain/node_account_pb.js rename to typescript/observer/node_account.js index 1b417c9dce..d1f60efc13 100644 --- a/typescript/crosschain/node_account_pb.js +++ b/typescript/observer/node_account.js @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.3.0 -// @generated from file crosschain/node_account.proto (package zetachain.zetacore.crosschain, syntax proto3) +// @generated from file observer/node_account.proto (package zetachain.zetacore.observer, syntax proto3) /* eslint-disable */ // @ts-nocheck @@ -7,10 +7,10 @@ import { proto3 } from "@bufbuild/protobuf"; import { PubKeySet } from "../common/common_pb.js"; /** - * @generated from enum zetachain.zetacore.crosschain.NodeStatus + * @generated from enum zetachain.zetacore.observer.NodeStatus */ export const NodeStatus = proto3.makeEnum( - "zetachain.zetacore.crosschain.NodeStatus", + "zetachain.zetacore.observer.NodeStatus", [ {no: 0, name: "Unknown"}, {no: 1, name: "Whitelisted"}, @@ -22,10 +22,10 @@ export const NodeStatus = proto3.makeEnum( ); /** - * @generated from message zetachain.zetacore.crosschain.NodeAccount + * @generated from message zetachain.zetacore.observer.NodeAccount */ export const NodeAccount = proto3.makeMessageType( - "zetachain.zetacore.crosschain.NodeAccount", + "zetachain.zetacore.observer.NodeAccount", () => [ { no: 1, name: "operator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "granteeAddress", kind: "scalar", T: 9 /* ScalarType.STRING */ }, diff --git a/typescript/observer/observer_pb.d.ts b/typescript/observer/observer.d.ts similarity index 63% rename from typescript/observer/observer_pb.d.ts rename to typescript/observer/observer.d.ts index 9e7c2b7d1c..141cb0f68d 100644 --- a/typescript/observer/observer_pb.d.ts +++ b/typescript/observer/observer.d.ts @@ -30,6 +30,11 @@ export declare enum ObservationType { * @generated from enum value: TSSKeyGen = 3; */ TSSKeyGen = 3, + + /** + * @generated from enum value: TSSKeySign = 4; + */ + TSSKeySign = 4, } /** @@ -66,3 +71,32 @@ export declare class ObserverMapper extends Message { 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/observer_pb.js b/typescript/observer/observer.js similarity index 71% rename from typescript/observer/observer_pb.js rename to typescript/observer/observer.js index 9ffb085ea9..05d5fb23fa 100644 --- a/typescript/observer/observer_pb.js +++ b/typescript/observer/observer.js @@ -16,6 +16,7 @@ export const ObservationType = proto3.makeEnum( {no: 1, name: "InBoundTx"}, {no: 2, name: "OutBoundTx"}, {no: 3, name: "TSSKeyGen"}, + {no: 4, name: "TSSKeySign"}, ], ); @@ -31,3 +32,14 @@ export const ObserverMapper = proto3.makeMessageType( ], ); +/** + * @generated from message zetachain.zetacore.observer.LastObserverCount + */ +export const LastObserverCount = proto3.makeMessageType( + "zetachain.zetacore.observer.LastObserverCount", + () => [ + { no: 1, name: "count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 2, name: "last_change_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ], +); + diff --git a/typescript/observer/params_pb.d.ts b/typescript/observer/params.d.ts similarity index 100% rename from typescript/observer/params_pb.d.ts rename to typescript/observer/params.d.ts diff --git a/typescript/observer/params_pb.js b/typescript/observer/params.js similarity index 100% rename from typescript/observer/params_pb.js rename to typescript/observer/params.js diff --git a/typescript/crosschain/permission_flags_pb.d.ts b/typescript/observer/permission_flags.d.ts similarity index 79% rename from typescript/crosschain/permission_flags_pb.d.ts rename to typescript/observer/permission_flags.d.ts index 590153599c..a5184c70ac 100644 --- a/typescript/crosschain/permission_flags_pb.d.ts +++ b/typescript/observer/permission_flags.d.ts @@ -1,5 +1,5 @@ // @generated by protoc-gen-es v1.3.0 -// @generated from file crosschain/permission_flags.proto (package zetachain.zetacore.crosschain, syntax proto3) +// @generated from file observer/permission_flags.proto (package zetachain.zetacore.observer, syntax proto3) /* eslint-disable */ // @ts-nocheck @@ -7,7 +7,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM import { Message, proto3 } from "@bufbuild/protobuf"; /** - * @generated from message zetachain.zetacore.crosschain.PermissionFlags + * @generated from message zetachain.zetacore.observer.PermissionFlags */ export declare class PermissionFlags extends Message { /** @@ -18,7 +18,7 @@ export declare class PermissionFlags extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; - static readonly typeName = "zetachain.zetacore.crosschain.PermissionFlags"; + static readonly typeName = "zetachain.zetacore.observer.PermissionFlags"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): PermissionFlags; diff --git a/typescript/crosschain/permission_flags_pb.js b/typescript/observer/permission_flags.js similarity index 54% rename from typescript/crosschain/permission_flags_pb.js rename to typescript/observer/permission_flags.js index cf861474e1..c067413c3a 100644 --- a/typescript/crosschain/permission_flags_pb.js +++ b/typescript/observer/permission_flags.js @@ -1,15 +1,15 @@ // @generated by protoc-gen-es v1.3.0 -// @generated from file crosschain/permission_flags.proto (package zetachain.zetacore.crosschain, syntax proto3) +// @generated from file observer/permission_flags.proto (package zetachain.zetacore.observer, syntax proto3) /* eslint-disable */ // @ts-nocheck import { proto3 } from "@bufbuild/protobuf"; /** - * @generated from message zetachain.zetacore.crosschain.PermissionFlags + * @generated from message zetachain.zetacore.observer.PermissionFlags */ export const PermissionFlags = proto3.makeMessageType( - "zetachain.zetacore.crosschain.PermissionFlags", + "zetachain.zetacore.observer.PermissionFlags", () => [ { no: 1, name: "isInboundEnabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ], diff --git a/typescript/observer/query_pb.d.ts b/typescript/observer/query.d.ts similarity index 52% rename from typescript/observer/query_pb.d.ts rename to typescript/observer/query.d.ts index 57900dc503..580d92355b 100644 --- a/typescript/observer/query_pb.d.ts +++ b/typescript/observer/query.d.ts @@ -7,8 +7,13 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM import { Message, proto3 } from "@bufbuild/protobuf"; import type { CoreParams, CoreParamsList, Params } from "./params_pb.js"; import type { BallotStatus, VoteType } from "./ballot_pb.js"; -import type { ObservationType, ObserverMapper } from "./observer_pb.js"; +import type { LastObserverCount, ObservationType, ObserverMapper } from "./observer_pb.js"; import type { Chain } from "../common/common_pb.js"; +import type { NodeAccount } from "./node_account_pb.js"; +import type { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination_pb.js"; +import type { PermissionFlags } from "./permission_flags_pb.js"; +import type { Keygen } from "./keygen_pb.js"; +import type { Blame } from "./blame_pb.js"; /** * @generated from message zetachain.zetacore.observer.QueryParamsRequest @@ -374,3 +379,324 @@ export declare class QueryGetCoreParamsResponse extends Message | 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 NodeAccount = 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.QueryGetPermissionFlagsRequest + */ +export declare class QueryGetPermissionFlagsRequest extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryGetPermissionFlagsRequest"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPermissionFlagsRequest; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPermissionFlagsRequest; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPermissionFlagsRequest; + + static equals(a: QueryGetPermissionFlagsRequest | PlainMessage | undefined, b: QueryGetPermissionFlagsRequest | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.QueryGetPermissionFlagsResponse + */ +export declare class QueryGetPermissionFlagsResponse extends Message { + /** + * @generated from field: zetachain.zetacore.observer.PermissionFlags PermissionFlags = 1; + */ + PermissionFlags?: PermissionFlags; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.QueryGetPermissionFlagsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPermissionFlagsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPermissionFlagsResponse; + + static fromJsonString(jsonString: string, options?: Partial): QueryGetPermissionFlagsResponse; + + static equals(a: QueryGetPermissionFlagsResponse | PlainMessage | undefined, b: QueryGetPermissionFlagsResponse | 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 blameInfo = 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 blameInfo = 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; +} + diff --git a/typescript/observer/query_pb.js b/typescript/observer/query.js similarity index 53% rename from typescript/observer/query_pb.js rename to typescript/observer/query.js index 0bfae76a2f..61ee7d1eff 100644 --- a/typescript/observer/query_pb.js +++ b/typescript/observer/query.js @@ -6,8 +6,13 @@ import { proto3 } from "@bufbuild/protobuf"; import { CoreParams, CoreParamsList, Params } from "./params_pb.js"; import { BallotStatus, VoteType } from "./ballot_pb.js"; -import { ObservationType, ObserverMapper } from "./observer_pb.js"; +import { LastObserverCount, ObservationType, ObserverMapper } from "./observer_pb.js"; import { Chain } from "../common/common_pb.js"; +import { NodeAccount } from "./node_account_pb.js"; +import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination_pb.js"; +import { PermissionFlags } from "./permission_flags_pb.js"; +import { Keygen } from "./keygen_pb.js"; +import { Blame } from "./blame_pb.js"; /** * @generated from message zetachain.zetacore.observer.QueryParamsRequest @@ -157,3 +162,136 @@ export const QueryGetCoreParamsResponse = proto3.makeMessageType( ], ); +/** + * @generated from message zetachain.zetacore.observer.QueryGetNodeAccountRequest + */ +export const QueryGetNodeAccountRequest = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryGetNodeAccountRequest", + () => [ + { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryGetNodeAccountResponse + */ +export const QueryGetNodeAccountResponse = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryGetNodeAccountResponse", + () => [ + { no: 1, name: "NodeAccount", kind: "message", T: NodeAccount }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryAllNodeAccountRequest + */ +export const QueryAllNodeAccountRequest = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryAllNodeAccountRequest", + () => [ + { no: 1, name: "pagination", kind: "message", T: PageRequest }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryAllNodeAccountResponse + */ +export const QueryAllNodeAccountResponse = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryAllNodeAccountResponse", + () => [ + { no: 1, name: "NodeAccount", kind: "message", T: NodeAccount, repeated: true }, + { no: 2, name: "pagination", kind: "message", T: PageResponse }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryGetPermissionFlagsRequest + */ +export const QueryGetPermissionFlagsRequest = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryGetPermissionFlagsRequest", + [], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryGetPermissionFlagsResponse + */ +export const QueryGetPermissionFlagsResponse = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryGetPermissionFlagsResponse", + () => [ + { no: 1, name: "PermissionFlags", kind: "message", T: PermissionFlags }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryGetKeygenRequest + */ +export const QueryGetKeygenRequest = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryGetKeygenRequest", + [], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryGetKeygenResponse + */ +export const QueryGetKeygenResponse = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryGetKeygenResponse", + () => [ + { no: 1, name: "Keygen", kind: "message", T: Keygen }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryShowObserverCountRequest + */ +export const QueryShowObserverCountRequest = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryShowObserverCountRequest", + [], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryShowObserverCountResponse + */ +export const QueryShowObserverCountResponse = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryShowObserverCountResponse", + () => [ + { no: 1, name: "last_observer_count", kind: "message", T: LastObserverCount }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryBlameByIdentifierRequest + */ +export const QueryBlameByIdentifierRequest = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryBlameByIdentifierRequest", + () => [ + { no: 1, name: "blame_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryBlameByIdentifierResponse + */ +export const QueryBlameByIdentifierResponse = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryBlameByIdentifierResponse", + () => [ + { no: 1, name: "blameInfo", kind: "message", T: Blame }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryAllBlameRecordsRequest + */ +export const QueryAllBlameRecordsRequest = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryAllBlameRecordsRequest", + [], +); + +/** + * @generated from message zetachain.zetacore.observer.QueryAllBlameRecordsResponse + */ +export const QueryAllBlameRecordsResponse = proto3.makeMessageType( + "zetachain.zetacore.observer.QueryAllBlameRecordsResponse", + () => [ + { no: 1, name: "blameInfo", kind: "message", T: Blame, repeated: true }, + ], +); + diff --git a/typescript/observer/tx.d.ts b/typescript/observer/tx.d.ts new file mode 100644 index 0000000000..1c366490b9 --- /dev/null +++ b/typescript/observer/tx.d.ts @@ -0,0 +1,261 @@ +// @generated by protoc-gen-es v1.3.0 +// @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 { CoreParams } from "./params_pb.js"; +import type { ObservationType } from "./observer_pb.js"; +import type { Blame } from "./blame_pb.js"; + +/** + * @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: int64 chain_id = 2; + */ + chainId: bigint; + + /** + * @generated from field: zetachain.zetacore.observer.ObservationType observationType = 3; + */ + observationType: ObservationType; + + 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.MsgUpdatePermissionFlags + */ +export declare class MsgUpdatePermissionFlags extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: bool isInboundEnabled = 3; + */ + isInboundEnabled: boolean; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.MsgUpdatePermissionFlags"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdatePermissionFlags; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdatePermissionFlags; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdatePermissionFlags; + + static equals(a: MsgUpdatePermissionFlags | PlainMessage | undefined, b: MsgUpdatePermissionFlags | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.MsgUpdatePermissionFlagsResponse + */ +export declare class MsgUpdatePermissionFlagsResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.MsgUpdatePermissionFlagsResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdatePermissionFlagsResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdatePermissionFlagsResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdatePermissionFlagsResponse; + + static equals(a: MsgUpdatePermissionFlagsResponse | PlainMessage | undefined, b: MsgUpdatePermissionFlagsResponse | 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/observer/tx.js b/typescript/observer/tx.js new file mode 100644 index 0000000000..216772c86a --- /dev/null +++ b/typescript/observer/tx.js @@ -0,0 +1,107 @@ +// @generated by protoc-gen-es v1.3.0 +// @generated from file observer/tx.proto (package zetachain.zetacore.observer, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { proto3 } from "@bufbuild/protobuf"; +import { CoreParams } from "./params_pb.js"; +import { ObservationType } from "./observer_pb.js"; +import { Blame } from "./blame_pb.js"; + +/** + * @generated from message zetachain.zetacore.observer.MsgUpdateCoreParams + */ +export const MsgUpdateCoreParams = proto3.makeMessageType( + "zetachain.zetacore.observer.MsgUpdateCoreParams", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "coreParams", kind: "message", T: CoreParams }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.MsgUpdateCoreParamsResponse + */ +export const MsgUpdateCoreParamsResponse = proto3.makeMessageType( + "zetachain.zetacore.observer.MsgUpdateCoreParamsResponse", + [], +); + +/** + * @generated from message zetachain.zetacore.observer.MsgAddObserver + */ +export const MsgAddObserver = proto3.makeMessageType( + "zetachain.zetacore.observer.MsgAddObserver", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "observationType", kind: "enum", T: proto3.getEnumType(ObservationType) }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.MsgAddObserverResponse + */ +export const MsgAddObserverResponse = proto3.makeMessageType( + "zetachain.zetacore.observer.MsgAddObserverResponse", + [], +); + +/** + * @generated from message zetachain.zetacore.observer.MsgAddBlameVote + */ +export const MsgAddBlameVote = proto3.makeMessageType( + "zetachain.zetacore.observer.MsgAddBlameVote", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "blame_info", kind: "message", T: Blame }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.MsgAddBlameVoteResponse + */ +export const MsgAddBlameVoteResponse = proto3.makeMessageType( + "zetachain.zetacore.observer.MsgAddBlameVoteResponse", + [], +); + +/** + * @generated from message zetachain.zetacore.observer.MsgUpdatePermissionFlags + */ +export const MsgUpdatePermissionFlags = proto3.makeMessageType( + "zetachain.zetacore.observer.MsgUpdatePermissionFlags", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "isInboundEnabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.MsgUpdatePermissionFlagsResponse + */ +export const MsgUpdatePermissionFlagsResponse = proto3.makeMessageType( + "zetachain.zetacore.observer.MsgUpdatePermissionFlagsResponse", + [], +); + +/** + * @generated from message zetachain.zetacore.observer.MsgUpdateKeygen + */ +export const MsgUpdateKeygen = proto3.makeMessageType( + "zetachain.zetacore.observer.MsgUpdateKeygen", + () => [ + { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ], +); + +/** + * @generated from message zetachain.zetacore.observer.MsgUpdateKeygenResponse + */ +export const MsgUpdateKeygenResponse = proto3.makeMessageType( + "zetachain.zetacore.observer.MsgUpdateKeygenResponse", + [], +); + diff --git a/typescript/observer/tx_pb.d.ts b/typescript/observer/tx_pb.d.ts deleted file mode 100644 index fda5dbec20..0000000000 --- a/typescript/observer/tx_pb.d.ts +++ /dev/null @@ -1,122 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @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 { CoreParams } from "./params_pb.js"; -import type { ObservationType } from "./observer_pb.js"; - -/** - * message MsgSetSupportedChains { - * string creator = 1; - * int64 chain_id=2; - * common.ChainName ChainName=3; - * } - * - * @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; -} - -/** - * this line is used by starport scaffolding # proto/tx/message - * - * message MsgSetSupportedChainsResponse{ - * } - * - * @generated from message zetachain.zetacore.observer.MsgAddObserver - */ -export declare class MsgAddObserver 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.ObservationType observationType = 3; - */ - observationType: ObservationType; - - 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; -} - diff --git a/typescript/observer/tx_pb.js b/typescript/observer/tx_pb.js deleted file mode 100644 index db3458f5e3..0000000000 --- a/typescript/observer/tx_pb.js +++ /dev/null @@ -1,59 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file observer/tx.proto (package zetachain.zetacore.observer, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { CoreParams } from "./params_pb.js"; -import { ObservationType } from "./observer_pb.js"; - -/** - * message MsgSetSupportedChains { - * string creator = 1; - * int64 chain_id=2; - * common.ChainName ChainName=3; - * } - * - * @generated from message zetachain.zetacore.observer.MsgUpdateCoreParams - */ -export const MsgUpdateCoreParams = proto3.makeMessageType( - "zetachain.zetacore.observer.MsgUpdateCoreParams", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "coreParams", kind: "message", T: CoreParams }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.MsgUpdateCoreParamsResponse - */ -export const MsgUpdateCoreParamsResponse = proto3.makeMessageType( - "zetachain.zetacore.observer.MsgUpdateCoreParamsResponse", - [], -); - -/** - * this line is used by starport scaffolding # proto/tx/message - * - * message MsgSetSupportedChainsResponse{ - * } - * - * @generated from message zetachain.zetacore.observer.MsgAddObserver - */ -export const MsgAddObserver = proto3.makeMessageType( - "zetachain.zetacore.observer.MsgAddObserver", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "observationType", kind: "enum", T: proto3.getEnumType(ObservationType) }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.MsgAddObserverResponse - */ -export const MsgAddObserverResponse = proto3.makeMessageType( - "zetachain.zetacore.observer.MsgAddObserverResponse", - [], -); - From caa0a19733f45d3687e694821140449ef70abe31 Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Fri, 11 Aug 2023 12:24:01 +0400 Subject: [PATCH 3/5] add index.d.ts --- scripts/protoc-gen-typescript.sh | 23 ++++++++++++++++++++++- typescript/common/index.d.ts | 1 + typescript/crosschain/index.d.ts | 13 +++++++++++++ typescript/emissions/index.d.ts | 4 ++++ typescript/fungible/index.d.ts | 6 ++++++ typescript/observer/index.d.ts | 11 +++++++++++ 6 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 typescript/common/index.d.ts create mode 100644 typescript/crosschain/index.d.ts create mode 100644 typescript/emissions/index.d.ts create mode 100644 typescript/fungible/index.d.ts create mode 100644 typescript/observer/index.d.ts diff --git a/scripts/protoc-gen-typescript.sh b/scripts/protoc-gen-typescript.sh index ccf8405720..e67ce8bc2a 100755 --- a/scripts/protoc-gen-typescript.sh +++ b/scripts/protoc-gen-typescript.sh @@ -14,4 +14,25 @@ find "$DIR" -type f -name "*_pb.*" | while read -r file; do # Rename the file mv "$file" "$new_file" -done \ No newline at end of file +done + +#!/bin/bash + +# 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/index.d.ts b/typescript/common/index.d.ts new file mode 100644 index 0000000000..6b57160892 --- /dev/null +++ b/typescript/common/index.d.ts @@ -0,0 +1 @@ +export * from "./common"; diff --git a/typescript/crosschain/index.d.ts b/typescript/crosschain/index.d.ts new file mode 100644 index 0000000000..4bcf4376fe --- /dev/null +++ b/typescript/crosschain/index.d.ts @@ -0,0 +1,13 @@ +export * from "./chain_nonces"; +export * from "./cross_chain_tx"; +export * from "./events"; +export * from "./gas_price"; +export * from "./genesis"; +export * from "./in_tx_hash_to_cctx"; +export * from "./last_block_height"; +export * from "./nonce_to_cctx"; +export * from "./out_tx_tracker"; +export * from "./params"; +export * from "./query"; +export * from "./tss"; +export * from "./tx"; diff --git a/typescript/emissions/index.d.ts b/typescript/emissions/index.d.ts new file mode 100644 index 0000000000..4260f3d2a5 --- /dev/null +++ b/typescript/emissions/index.d.ts @@ -0,0 +1,4 @@ +export * from "./events"; +export * from "./genesis"; +export * from "./params"; +export * from "./query"; diff --git a/typescript/fungible/index.d.ts b/typescript/fungible/index.d.ts new file mode 100644 index 0000000000..70ae49bf70 --- /dev/null +++ b/typescript/fungible/index.d.ts @@ -0,0 +1,6 @@ +export * from "./foreign_coins"; +export * from "./genesis"; +export * from "./params"; +export * from "./query"; +export * from "./system_contract"; +export * from "./tx"; diff --git a/typescript/observer/index.d.ts b/typescript/observer/index.d.ts new file mode 100644 index 0000000000..a1b93bf555 --- /dev/null +++ b/typescript/observer/index.d.ts @@ -0,0 +1,11 @@ +export * from "./ballot"; +export * from "./blame"; +export * from "./events"; +export * from "./genesis"; +export * from "./keygen"; +export * from "./node_account"; +export * from "./observer"; +export * from "./params"; +export * from "./permission_flags"; +export * from "./query"; +export * from "./tx"; From 8dbaafe2d79c64551eff997d4b79ca192c6982b6 Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Sat, 12 Aug 2023 15:02:10 +0400 Subject: [PATCH 4/5] package.json --- proto/buf.ts.yaml | 1 + scripts/protoc-gen-typescript.sh | 28 +- typescript/common/common.js | 79 --- .../common/{common.d.ts => common_pb.d.ts} | 2 +- typescript/common/index.d.ts | 2 +- typescript/crosschain/chain_nonces.js | 22 - ...chain_nonces.d.ts => chain_nonces_pb.d.ts} | 2 +- typescript/crosschain/cross_chain_tx.js | 89 --- ...s_chain_tx.d.ts => cross_chain_tx_pb.d.ts} | 2 +- typescript/crosschain/events.js | 90 --- .../{events.d.ts => events_pb.d.ts} | 2 +- typescript/crosschain/gas_price.js | 23 - .../{gas_price.d.ts => gas_price_pb.d.ts} | 2 +- typescript/crosschain/genesis.js | 34 -- .../{genesis.d.ts => genesis_pb.d.ts} | 2 +- typescript/crosschain/in_tx_hash_to_cctx.js | 18 - ...o_cctx.d.ts => in_tx_hash_to_cctx_pb.d.ts} | 2 +- typescript/crosschain/index.d.ts | 26 +- typescript/crosschain/last_block_height.js | 21 - ..._height.d.ts => last_block_height_pb.d.ts} | 2 +- typescript/crosschain/nonce_to_cctx.js | 37 -- ...nce_to_cctx.d.ts => nonce_to_cctx_pb.d.ts} | 2 +- typescript/crosschain/out_tx_tracker.js | 31 - ...tx_tracker.d.ts => out_tx_tracker_pb.d.ts} | 2 +- typescript/crosschain/params.js | 19 - .../{params.d.ts => params_pb.d.ts} | 2 +- typescript/crosschain/query.js | 569 ------------------ .../crosschain/{query.d.ts => query_pb.d.ts} | 6 +- typescript/crosschain/tss.js | 21 - .../crosschain/{tss.d.ts => tss_pb.d.ts} | 2 +- typescript/crosschain/tx.js | 188 ------ typescript/crosschain/{tx.d.ts => tx_pb.d.ts} | 2 +- typescript/emissions/events.js | 23 - .../emissions/{events.d.ts => events_pb.d.ts} | 2 +- typescript/emissions/genesis.js | 20 - .../{genesis.d.ts => genesis_pb.d.ts} | 2 +- typescript/emissions/index.d.ts | 8 +- typescript/emissions/params.js | 26 - .../emissions/{params.d.ts => params_pb.d.ts} | 2 +- typescript/emissions/query.js | 50 -- .../emissions/{query.d.ts => query_pb.d.ts} | 2 +- typescript/fungible/events_pb.d.ts | 166 +++++ typescript/fungible/foreign_coins.js | 25 - ...reign_coins.d.ts => foreign_coins_pb.d.ts} | 2 +- typescript/fungible/genesis.js | 24 - .../{genesis.d.ts => genesis_pb.d.ts} | 2 +- typescript/fungible/index.d.ts | 13 +- typescript/fungible/params.js | 17 - .../fungible/{params.d.ts => params_pb.d.ts} | 2 +- typescript/fungible/query.js | 92 --- .../fungible/{query.d.ts => query_pb.d.ts} | 2 +- typescript/fungible/system_contract.js | 18 - ..._contract.d.ts => system_contract_pb.d.ts} | 2 +- typescript/fungible/tx.js | 52 -- typescript/fungible/{tx.d.ts => tx_pb.d.ts} | 105 +++- typescript/observer/ballot.js | 48 -- .../observer/{ballot.d.ts => ballot_pb.d.ts} | 2 +- typescript/observer/blame.js | 31 - .../observer/{blame.d.ts => blame_pb.d.ts} | 2 +- typescript/observer/events.js | 33 - .../observer/{events.d.ts => events_pb.d.ts} | 2 +- typescript/observer/genesis.js | 28 - .../{genesis.d.ts => genesis_pb.d.ts} | 2 +- typescript/observer/index.d.ts | 22 +- typescript/observer/keygen.js | 31 - .../observer/{keygen.d.ts => keygen_pb.d.ts} | 2 +- typescript/observer/node_account.js | 36 -- ...node_account.d.ts => node_account_pb.d.ts} | 2 +- typescript/observer/observer.js | 45 -- .../{observer.d.ts => observer_pb.d.ts} | 2 +- typescript/observer/params.js | 89 --- .../observer/{params.d.ts => params_pb.d.ts} | 2 +- typescript/observer/permission_flags.js | 17 - ...on_flags.d.ts => permission_flags_pb.d.ts} | 2 +- typescript/observer/query.js | 297 --------- .../observer/{query.d.ts => query_pb.d.ts} | 2 +- typescript/observer/tx.js | 107 ---- typescript/observer/{tx.d.ts => tx_pb.d.ts} | 2 +- typescript/package.json | 9 + 79 files changed, 366 insertions(+), 2436 deletions(-) delete mode 100644 typescript/common/common.js rename typescript/common/{common.d.ts => common_pb.d.ts} (98%) delete mode 100644 typescript/crosschain/chain_nonces.js rename typescript/crosschain/{chain_nonces.d.ts => chain_nonces_pb.d.ts} (96%) delete mode 100644 typescript/crosschain/cross_chain_tx.js rename typescript/crosschain/{cross_chain_tx.d.ts => cross_chain_tx_pb.d.ts} (99%) delete mode 100644 typescript/crosschain/events.js rename typescript/crosschain/{events.d.ts => events_pb.d.ts} (99%) delete mode 100644 typescript/crosschain/gas_price.js rename typescript/crosschain/{gas_price.d.ts => gas_price_pb.d.ts} (96%) delete mode 100644 typescript/crosschain/genesis.js rename typescript/crosschain/{genesis.d.ts => genesis_pb.d.ts} (97%) delete mode 100644 typescript/crosschain/in_tx_hash_to_cctx.js rename typescript/crosschain/{in_tx_hash_to_cctx.d.ts => in_tx_hash_to_cctx_pb.d.ts} (95%) delete mode 100644 typescript/crosschain/last_block_height.js rename typescript/crosschain/{last_block_height.d.ts => last_block_height_pb.d.ts} (95%) delete mode 100644 typescript/crosschain/nonce_to_cctx.js rename typescript/crosschain/{nonce_to_cctx.d.ts => nonce_to_cctx_pb.d.ts} (97%) delete mode 100644 typescript/crosschain/out_tx_tracker.js rename typescript/crosschain/{out_tx_tracker.d.ts => out_tx_tracker_pb.d.ts} (97%) delete mode 100644 typescript/crosschain/params.js rename typescript/crosschain/{params.d.ts => params_pb.d.ts} (94%) delete mode 100644 typescript/crosschain/query.js rename typescript/crosschain/{query.d.ts => query_pb.d.ts} (99%) delete mode 100644 typescript/crosschain/tss.js rename typescript/crosschain/{tss.d.ts => tss_pb.d.ts} (95%) delete mode 100644 typescript/crosschain/tx.js rename typescript/crosschain/{tx.d.ts => tx_pb.d.ts} (99%) delete mode 100644 typescript/emissions/events.js rename typescript/emissions/{events.d.ts => events_pb.d.ts} (96%) delete mode 100644 typescript/emissions/genesis.js rename typescript/emissions/{genesis.d.ts => genesis_pb.d.ts} (95%) delete mode 100644 typescript/emissions/params.js rename typescript/emissions/{params.d.ts => params_pb.d.ts} (96%) delete mode 100644 typescript/emissions/query.js rename typescript/emissions/{query.d.ts => query_pb.d.ts} (98%) create mode 100644 typescript/fungible/events_pb.d.ts delete mode 100644 typescript/fungible/foreign_coins.js rename typescript/fungible/{foreign_coins.d.ts => foreign_coins_pb.d.ts} (96%) delete mode 100644 typescript/fungible/genesis.js rename typescript/fungible/{genesis.d.ts => genesis_pb.d.ts} (96%) delete mode 100644 typescript/fungible/params.js rename typescript/fungible/{params.d.ts => params_pb.d.ts} (94%) delete mode 100644 typescript/fungible/query.js rename typescript/fungible/{query.d.ts => query_pb.d.ts} (99%) delete mode 100644 typescript/fungible/system_contract.js rename typescript/fungible/{system_contract.d.ts => system_contract_pb.d.ts} (95%) delete mode 100644 typescript/fungible/tx.js rename typescript/fungible/{tx.d.ts => tx_pb.d.ts} (53%) delete mode 100644 typescript/observer/ballot.js rename typescript/observer/{ballot.d.ts => ballot_pb.d.ts} (97%) delete mode 100644 typescript/observer/blame.js rename typescript/observer/{blame.d.ts => blame_pb.d.ts} (97%) delete mode 100644 typescript/observer/events.js rename typescript/observer/{events.d.ts => events_pb.d.ts} (97%) delete mode 100644 typescript/observer/genesis.js rename typescript/observer/{genesis.d.ts => genesis_pb.d.ts} (97%) delete mode 100644 typescript/observer/keygen.js rename typescript/observer/{keygen.d.ts => keygen_pb.d.ts} (96%) delete mode 100644 typescript/observer/node_account.js rename typescript/observer/{node_account.d.ts => node_account_pb.d.ts} (96%) delete mode 100644 typescript/observer/observer.js rename typescript/observer/{observer.d.ts => observer_pb.d.ts} (97%) delete mode 100644 typescript/observer/params.js rename typescript/observer/{params.d.ts => params_pb.d.ts} (99%) delete mode 100644 typescript/observer/permission_flags.js rename typescript/observer/{permission_flags.d.ts => permission_flags_pb.d.ts} (94%) delete mode 100644 typescript/observer/query.js rename typescript/observer/{query.d.ts => query_pb.d.ts} (99%) delete mode 100644 typescript/observer/tx.js rename typescript/observer/{tx.d.ts => tx_pb.d.ts} (99%) create mode 100644 typescript/package.json diff --git a/proto/buf.ts.yaml b/proto/buf.ts.yaml index cb8b9f7c80..c9fa155abc 100644 --- a/proto/buf.ts.yaml +++ b/proto/buf.ts.yaml @@ -4,3 +4,4 @@ managed: 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 index e67ce8bc2a..526d4773da 100755 --- a/scripts/protoc-gen-typescript.sh +++ b/scripts/protoc-gen-typescript.sh @@ -1,22 +1,22 @@ #!/usr/bin/env bash -cd proto -rm -rf typescript -buf generate --template buf.ts.yaml +DIR="typescript" -# Set the target directory -DIR="../typescript" +rm -rf $DIR -# Loop through each file in the directory recursively -find "$DIR" -type f -name "*_pb.*" | while read -r file; do - # Compute the new filename by removing '_pb' - new_file="${file/_pb/}" - - # Rename the file - mv "$file" "$new_file" -done +(cd proto && buf generate --template buf.ts.yaml) -#!/bin/bash +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 diff --git a/typescript/common/common.js b/typescript/common/common.js deleted file mode 100644 index 778a4e994f..0000000000 --- a/typescript/common/common.js +++ /dev/null @@ -1,79 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file common/common.proto (package common, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from enum common.ReceiveStatus - */ -export const ReceiveStatus = proto3.makeEnum( - "common.ReceiveStatus", - [ - {no: 0, name: "Created"}, - {no: 1, name: "Success"}, - {no: 2, name: "Failed"}, - ], -); - -/** - * @generated from enum common.CoinType - */ -export const CoinType = proto3.makeEnum( - "common.CoinType", - [ - {no: 0, name: "Zeta"}, - {no: 1, name: "Gas"}, - {no: 2, name: "ERC20"}, - ], -); - -/** - * @generated from enum common.ChainName - */ -export const ChainName = proto3.makeEnum( - "common.ChainName", - [ - {no: 0, name: "empty"}, - {no: 1, name: "eth_mainnet"}, - {no: 2, name: "zeta_mainnet"}, - {no: 3, name: "btc_mainnet"}, - {no: 4, name: "polygon_mainnet"}, - {no: 5, name: "bsc_mainnet"}, - {no: 6, name: "goerli_testnet"}, - {no: 7, name: "mumbai_testnet"}, - {no: 8, name: "ganache_testnet"}, - {no: 9, name: "baobab_testnet"}, - {no: 10, name: "bsc_testnet"}, - {no: 11, name: "zeta_testnet"}, - {no: 12, name: "btc_testnet"}, - {no: 14, name: "goerli_localnet"}, - {no: 15, name: "btc_regtest"}, - ], -); - -/** - * PubKeySet contains two pub keys , secp256k1 and ed25519 - * - * @generated from message common.PubKeySet - */ -export const PubKeySet = proto3.makeMessageType( - "common.PubKeySet", - () => [ - { no: 1, name: "secp256k1", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "ed25519", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message common.Chain - */ -export const Chain = proto3.makeMessageType( - "common.Chain", - () => [ - { no: 1, name: "chain_name", kind: "enum", T: proto3.getEnumType(ChainName) }, - { no: 2, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ], -); - diff --git a/typescript/common/common.d.ts b/typescript/common/common_pb.d.ts similarity index 98% rename from typescript/common/common.d.ts rename to typescript/common/common_pb.d.ts index ac48c63ac2..0f2c85bf95 100644 --- a/typescript/common/common.d.ts +++ b/typescript/common/common_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/common/index.d.ts b/typescript/common/index.d.ts index 6b57160892..78b610bcc1 100644 --- a/typescript/common/index.d.ts +++ b/typescript/common/index.d.ts @@ -1 +1 @@ -export * from "./common"; +export * from "./common_pb"; diff --git a/typescript/crosschain/chain_nonces.js b/typescript/crosschain/chain_nonces.js deleted file mode 100644 index 39348a8391..0000000000 --- a/typescript/crosschain/chain_nonces.js +++ /dev/null @@ -1,22 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file crosschain/chain_nonces.proto (package zetachain.zetacore.crosschain, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from message zetachain.zetacore.crosschain.ChainNonces - */ -export const ChainNonces = proto3.makeMessageType( - "zetachain.zetacore.crosschain.ChainNonces", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "signers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 6, name: "finalizedHeight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ], -); - diff --git a/typescript/crosschain/chain_nonces.d.ts b/typescript/crosschain/chain_nonces_pb.d.ts similarity index 96% rename from typescript/crosschain/chain_nonces.d.ts rename to typescript/crosschain/chain_nonces_pb.d.ts index 4dbb8c8e6d..2f629ad9d9 100644 --- a/typescript/crosschain/chain_nonces.d.ts +++ b/typescript/crosschain/chain_nonces_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/crosschain/cross_chain_tx.js b/typescript/crosschain/cross_chain_tx.js deleted file mode 100644 index d9f5da8cf6..0000000000 --- a/typescript/crosschain/cross_chain_tx.js +++ /dev/null @@ -1,89 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file crosschain/cross_chain_tx.proto (package zetachain.zetacore.crosschain, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { CoinType } from "../common/common_pb.js"; - -/** - * @generated from enum zetachain.zetacore.crosschain.CctxStatus - */ -export const CctxStatus = proto3.makeEnum( - "zetachain.zetacore.crosschain.CctxStatus", - [ - {no: 0, name: "PendingInbound"}, - {no: 1, name: "PendingOutbound"}, - {no: 3, name: "OutboundMined"}, - {no: 4, name: "PendingRevert"}, - {no: 5, name: "Reverted"}, - {no: 6, name: "Aborted"}, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.InboundTxParams - */ -export const InboundTxParams = proto3.makeMessageType( - "zetachain.zetacore.crosschain.InboundTxParams", - () => [ - { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "sender_chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "tx_origin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "coin_type", kind: "enum", T: proto3.getEnumType(CoinType) }, - { no: 5, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "inbound_tx_observed_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "inbound_tx_observed_external_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 9, name: "inbound_tx_ballot_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "inbound_tx_finalized_zeta_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.OutboundTxParams - */ -export const OutboundTxParams = proto3.makeMessageType( - "zetachain.zetacore.crosschain.OutboundTxParams", - () => [ - { no: 1, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "receiver_chainId", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "coin_type", kind: "enum", T: proto3.getEnumType(CoinType) }, - { no: 4, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "outbound_tx_tss_nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 6, name: "outbound_tx_gas_limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 7, name: "outbound_tx_gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "outbound_tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "outbound_tx_ballot_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "outbound_tx_observed_external_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.Status - */ -export const Status = proto3.makeMessageType( - "zetachain.zetacore.crosschain.Status", - () => [ - { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(CctxStatus) }, - { no: 2, name: "status_message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "lastUpdate_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.CrossChainTx - */ -export const CrossChainTx = proto3.makeMessageType( - "zetachain.zetacore.crosschain.CrossChainTx", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "zeta_fees", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "relayed_message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "cctx_status", kind: "message", T: Status }, - { no: 9, name: "inbound_tx_params", kind: "message", T: InboundTxParams }, - { no: 10, name: "outbound_tx_params", kind: "message", T: OutboundTxParams, repeated: true }, - ], -); - diff --git a/typescript/crosschain/cross_chain_tx.d.ts b/typescript/crosschain/cross_chain_tx_pb.d.ts similarity index 99% rename from typescript/crosschain/cross_chain_tx.d.ts rename to typescript/crosschain/cross_chain_tx_pb.d.ts index 5be7a98c5c..9267972a10 100644 --- a/typescript/crosschain/cross_chain_tx.d.ts +++ b/typescript/crosschain/cross_chain_tx_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/crosschain/events.js b/typescript/crosschain/events.js deleted file mode 100644 index 251ab847e6..0000000000 --- a/typescript/crosschain/events.js +++ /dev/null @@ -1,90 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file crosschain/events.proto (package zetachain.zetacore.crosschain, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from message zetachain.zetacore.crosschain.EventInboundFinalized - */ -export const EventInboundFinalized = proto3.makeMessageType( - "zetachain.zetacore.crosschain.EventInboundFinalized", - () => [ - { no: 1, name: "msg_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "cctx_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "tx_orgin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "in_tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "in_block_height", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "receiver_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 11, name: "relayed_message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 12, name: "new_status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 13, name: "status_message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 14, name: "sender_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.EventZrcWithdrawCreated - */ -export const EventZrcWithdrawCreated = proto3.makeMessageType( - "zetachain.zetacore.crosschain.EventZrcWithdrawCreated", - () => [ - { no: 1, name: "msg_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "cctx_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "sender_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "in_tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "receiver_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "new_status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.EventZetaWithdrawCreated - */ -export const EventZetaWithdrawCreated = proto3.makeMessageType( - "zetachain.zetacore.crosschain.EventZetaWithdrawCreated", - () => [ - { no: 1, name: "msg_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "cctx_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "in_tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "new_status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.EventOutboundFailure - */ -export const EventOutboundFailure = proto3.makeMessageType( - "zetachain.zetacore.crosschain.EventOutboundFailure", - () => [ - { no: 1, name: "msg_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "cctx_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "old_status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "new_status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "zeta_minted", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.EventOutboundSuccess - */ -export const EventOutboundSuccess = proto3.makeMessageType( - "zetachain.zetacore.crosschain.EventOutboundSuccess", - () => [ - { no: 1, name: "msg_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "cctx_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "old_status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "new_status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "zeta_minted", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - diff --git a/typescript/crosschain/events.d.ts b/typescript/crosschain/events_pb.d.ts similarity index 99% rename from typescript/crosschain/events.d.ts rename to typescript/crosschain/events_pb.d.ts index 3c6dd79a1c..06693ae864 100644 --- a/typescript/crosschain/events.d.ts +++ b/typescript/crosschain/events_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/crosschain/gas_price.js b/typescript/crosschain/gas_price.js deleted file mode 100644 index bc28ba3f46..0000000000 --- a/typescript/crosschain/gas_price.js +++ /dev/null @@ -1,23 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file crosschain/gas_price.proto (package zetachain.zetacore.crosschain, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from message zetachain.zetacore.crosschain.GasPrice - */ -export const GasPrice = proto3.makeMessageType( - "zetachain.zetacore.crosschain.GasPrice", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "signers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 5, name: "block_nums", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - { no: 6, name: "prices", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, - { no: 7, name: "median_index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ], -); - diff --git a/typescript/crosschain/gas_price.d.ts b/typescript/crosschain/gas_price_pb.d.ts similarity index 96% rename from typescript/crosschain/gas_price.d.ts rename to typescript/crosschain/gas_price_pb.d.ts index 7cf7edbf5c..cd05e2a8dd 100644 --- a/typescript/crosschain/gas_price.d.ts +++ b/typescript/crosschain/gas_price_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/crosschain/genesis.js b/typescript/crosschain/genesis.js deleted file mode 100644 index 033e2c5c54..0000000000 --- a/typescript/crosschain/genesis.js +++ /dev/null @@ -1,34 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file crosschain/genesis.proto (package zetachain.zetacore.crosschain, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { OutTxTracker } from "./out_tx_tracker_pb.js"; -import { TSS } from "./tss_pb.js"; -import { GasPrice } from "./gas_price_pb.js"; -import { ChainNonces } from "./chain_nonces_pb.js"; -import { CrossChainTx } from "./cross_chain_tx_pb.js"; -import { LastBlockHeight } from "./last_block_height_pb.js"; -import { InTxHashToCctx } from "./in_tx_hash_to_cctx_pb.js"; - -/** - * GenesisState defines the metacore module's genesis state. - * - * @generated from message zetachain.zetacore.crosschain.GenesisState - */ -export const GenesisState = proto3.makeMessageType( - "zetachain.zetacore.crosschain.GenesisState", - () => [ - { no: 1, name: "params", kind: "message", T: Params }, - { no: 2, name: "outTxTrackerList", kind: "message", T: OutTxTracker, repeated: true }, - { no: 4, name: "tss", kind: "message", T: TSS }, - { no: 5, name: "gasPriceList", kind: "message", T: GasPrice, repeated: true }, - { no: 6, name: "chainNoncesList", kind: "message", T: ChainNonces, repeated: true }, - { no: 7, name: "CrossChainTxs", kind: "message", T: CrossChainTx, repeated: true }, - { no: 8, name: "lastBlockHeightList", kind: "message", T: LastBlockHeight, repeated: true }, - { no: 9, name: "inTxHashToCctxList", kind: "message", T: InTxHashToCctx, repeated: true }, - ], -); - diff --git a/typescript/crosschain/genesis.d.ts b/typescript/crosschain/genesis_pb.d.ts similarity index 97% rename from typescript/crosschain/genesis.d.ts rename to typescript/crosschain/genesis_pb.d.ts index b12fd1b372..54cd5945c5 100644 --- a/typescript/crosschain/genesis.d.ts +++ b/typescript/crosschain/genesis_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/crosschain/in_tx_hash_to_cctx.js b/typescript/crosschain/in_tx_hash_to_cctx.js deleted file mode 100644 index 1f77661820..0000000000 --- a/typescript/crosschain/in_tx_hash_to_cctx.js +++ /dev/null @@ -1,18 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file crosschain/in_tx_hash_to_cctx.proto (package zetachain.zetacore.crosschain, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from message zetachain.zetacore.crosschain.InTxHashToCctx - */ -export const InTxHashToCctx = proto3.makeMessageType( - "zetachain.zetacore.crosschain.InTxHashToCctx", - () => [ - { no: 1, name: "in_tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "cctx_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - diff --git a/typescript/crosschain/in_tx_hash_to_cctx.d.ts b/typescript/crosschain/in_tx_hash_to_cctx_pb.d.ts similarity index 95% rename from typescript/crosschain/in_tx_hash_to_cctx.d.ts rename to typescript/crosschain/in_tx_hash_to_cctx_pb.d.ts index 47800adc8c..c5c5b5b0e9 100644 --- a/typescript/crosschain/in_tx_hash_to_cctx.d.ts +++ b/typescript/crosschain/in_tx_hash_to_cctx_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/crosschain/index.d.ts b/typescript/crosschain/index.d.ts index 4bcf4376fe..be8f110e0e 100644 --- a/typescript/crosschain/index.d.ts +++ b/typescript/crosschain/index.d.ts @@ -1,13 +1,13 @@ -export * from "./chain_nonces"; -export * from "./cross_chain_tx"; -export * from "./events"; -export * from "./gas_price"; -export * from "./genesis"; -export * from "./in_tx_hash_to_cctx"; -export * from "./last_block_height"; -export * from "./nonce_to_cctx"; -export * from "./out_tx_tracker"; -export * from "./params"; -export * from "./query"; -export * from "./tss"; -export * from "./tx"; +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 "./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.js b/typescript/crosschain/last_block_height.js deleted file mode 100644 index 0610fbaab4..0000000000 --- a/typescript/crosschain/last_block_height.js +++ /dev/null @@ -1,21 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file crosschain/last_block_height.proto (package zetachain.zetacore.crosschain, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from message zetachain.zetacore.crosschain.LastBlockHeight - */ -export const LastBlockHeight = proto3.makeMessageType( - "zetachain.zetacore.crosschain.LastBlockHeight", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "lastSendHeight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "lastReceiveHeight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ], -); - diff --git a/typescript/crosschain/last_block_height.d.ts b/typescript/crosschain/last_block_height_pb.d.ts similarity index 95% rename from typescript/crosschain/last_block_height.d.ts rename to typescript/crosschain/last_block_height_pb.d.ts index eeb15280ca..f6c454ff33 100644 --- a/typescript/crosschain/last_block_height.d.ts +++ b/typescript/crosschain/last_block_height_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/crosschain/nonce_to_cctx.js b/typescript/crosschain/nonce_to_cctx.js deleted file mode 100644 index ecde957183..0000000000 --- a/typescript/crosschain/nonce_to_cctx.js +++ /dev/null @@ -1,37 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file crosschain/nonce_to_cctx.proto (package zetachain.zetacore.crosschain, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * store key is tss+chainid+nonce - * - * @generated from message zetachain.zetacore.crosschain.NonceToCctx - */ -export const NonceToCctx = proto3.makeMessageType( - "zetachain.zetacore.crosschain.NonceToCctx", - () => [ - { no: 1, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "nonce", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "cctxIndex", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "tss", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * store key is tss+chainid - * - * @generated from message zetachain.zetacore.crosschain.PendingNonces - */ -export const PendingNonces = proto3.makeMessageType( - "zetachain.zetacore.crosschain.PendingNonces", - () => [ - { no: 1, name: "nonce_low", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "nonce_high", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "tss", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - diff --git a/typescript/crosschain/nonce_to_cctx.d.ts b/typescript/crosschain/nonce_to_cctx_pb.d.ts similarity index 97% rename from typescript/crosschain/nonce_to_cctx.d.ts rename to typescript/crosschain/nonce_to_cctx_pb.d.ts index a4b0163ada..e2a75c5aa8 100644 --- a/typescript/crosschain/nonce_to_cctx.d.ts +++ b/typescript/crosschain/nonce_to_cctx_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/crosschain/out_tx_tracker.js b/typescript/crosschain/out_tx_tracker.js deleted file mode 100644 index 93e871fe8a..0000000000 --- a/typescript/crosschain/out_tx_tracker.js +++ /dev/null @@ -1,31 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file crosschain/out_tx_tracker.proto (package zetachain.zetacore.crosschain, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from message zetachain.zetacore.crosschain.TxHashList - */ -export const TxHashList = proto3.makeMessageType( - "zetachain.zetacore.crosschain.TxHashList", - () => [ - { no: 1, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "tx_signer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.OutTxTracker - */ -export const OutTxTracker = proto3.makeMessageType( - "zetachain.zetacore.crosschain.OutTxTracker", - () => [ - { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "hash_list", kind: "message", T: TxHashList, repeated: true }, - ], -); - diff --git a/typescript/crosschain/out_tx_tracker.d.ts b/typescript/crosschain/out_tx_tracker_pb.d.ts similarity index 97% rename from typescript/crosschain/out_tx_tracker.d.ts rename to typescript/crosschain/out_tx_tracker_pb.d.ts index 3f8422f909..bcdef5f01e 100644 --- a/typescript/crosschain/out_tx_tracker.d.ts +++ b/typescript/crosschain/out_tx_tracker_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/crosschain/params.js b/typescript/crosschain/params.js deleted file mode 100644 index 6bdc8f7248..0000000000 --- a/typescript/crosschain/params.js +++ /dev/null @@ -1,19 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file crosschain/params.proto (package zetachain.zetacore.crosschain, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * Params defines the parameters for the module. - * - * @generated from message zetachain.zetacore.crosschain.Params - */ -export const Params = proto3.makeMessageType( - "zetachain.zetacore.crosschain.Params", - () => [ - { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - diff --git a/typescript/crosschain/params.d.ts b/typescript/crosschain/params_pb.d.ts similarity index 94% rename from typescript/crosschain/params.d.ts rename to typescript/crosschain/params_pb.d.ts index be5eaeabe3..e3c135725c 100644 --- a/typescript/crosschain/params.d.ts +++ b/typescript/crosschain/params_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/crosschain/query.js b/typescript/crosschain/query.js deleted file mode 100644 index e555e1d6be..0000000000 --- a/typescript/crosschain/query.js +++ /dev/null @@ -1,569 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file crosschain/query.proto (package zetachain.zetacore.crosschain, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { OutTxTracker } from "./out_tx_tracker_pb.js"; -import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination_pb.js"; -import { InTxHashToCctx } from "./in_tx_hash_to_cctx_pb.js"; -import { TSS } from "./tss_pb.js"; -import { GasPrice } from "./gas_price_pb.js"; -import { ChainNonces } from "./chain_nonces_pb.js"; -import { PendingNonces } from "./nonce_to_cctx_pb.js"; -import { LastBlockHeight } from "./last_block_height_pb.js"; -import { CrossChainTx } from "./cross_chain_tx_pb.js"; - -/** - * QueryParamsRequest is request type for the Query/Params RPC method. - * - * @generated from message zetachain.zetacore.crosschain.QueryParamsRequest - */ -export const QueryParamsRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryParamsRequest", - [], -); - -/** - * QueryParamsResponse is response type for the Query/Params RPC method. - * - * @generated from message zetachain.zetacore.crosschain.QueryParamsResponse - */ -export const QueryParamsResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryParamsResponse", - () => [ - { no: 1, name: "params", kind: "message", T: Params }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetOutTxTrackerRequest - */ -export const QueryGetOutTxTrackerRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryGetOutTxTrackerRequest", - () => [ - { no: 1, name: "chainID", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetOutTxTrackerResponse - */ -export const QueryGetOutTxTrackerResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryGetOutTxTrackerResponse", - () => [ - { no: 1, name: "outTxTracker", kind: "message", T: OutTxTracker }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryAllOutTxTrackerRequest - */ -export const QueryAllOutTxTrackerRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryAllOutTxTrackerRequest", - () => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryAllOutTxTrackerResponse - */ -export const QueryAllOutTxTrackerResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryAllOutTxTrackerResponse", - () => [ - { no: 1, name: "outTxTracker", kind: "message", T: OutTxTracker, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryAllOutTxTrackerByChainRequest - */ -export const QueryAllOutTxTrackerByChainRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryAllOutTxTrackerByChainRequest", - () => [ - { no: 1, name: "chain", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryAllOutTxTrackerByChainResponse - */ -export const QueryAllOutTxTrackerByChainResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryAllOutTxTrackerByChainResponse", - () => [ - { no: 1, name: "outTxTracker", kind: "message", T: OutTxTracker, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetInTxHashToCctxRequest - */ -export const QueryGetInTxHashToCctxRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryGetInTxHashToCctxRequest", - () => [ - { no: 1, name: "inTxHash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetInTxHashToCctxResponse - */ -export const QueryGetInTxHashToCctxResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryGetInTxHashToCctxResponse", - () => [ - { no: 1, name: "inTxHashToCctx", kind: "message", T: InTxHashToCctx }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryAllInTxHashToCctxRequest - */ -export const QueryAllInTxHashToCctxRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryAllInTxHashToCctxRequest", - () => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryAllInTxHashToCctxResponse - */ -export const QueryAllInTxHashToCctxResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryAllInTxHashToCctxResponse", - () => [ - { no: 1, name: "inTxHashToCctx", kind: "message", T: InTxHashToCctx, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetTssAddressRequest - */ -export const QueryGetTssAddressRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryGetTssAddressRequest", - [], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetTssAddressResponse - */ -export const QueryGetTssAddressResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryGetTssAddressResponse", - () => [ - { no: 1, name: "eth", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "btc", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetTSSRequest - */ -export const QueryGetTSSRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryGetTSSRequest", - [], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetTSSResponse - */ -export const QueryGetTSSResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryGetTSSResponse", - () => [ - { no: 1, name: "TSS", kind: "message", T: TSS }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetGasPriceRequest - */ -export const QueryGetGasPriceRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryGetGasPriceRequest", - () => [ - { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetGasPriceResponse - */ -export const QueryGetGasPriceResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryGetGasPriceResponse", - () => [ - { no: 1, name: "GasPrice", kind: "message", T: GasPrice }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryAllGasPriceRequest - */ -export const QueryAllGasPriceRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryAllGasPriceRequest", - () => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryAllGasPriceResponse - */ -export const QueryAllGasPriceResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryAllGasPriceResponse", - () => [ - { no: 1, name: "GasPrice", kind: "message", T: GasPrice, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetChainNoncesRequest - */ -export const QueryGetChainNoncesRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryGetChainNoncesRequest", - () => [ - { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetChainNoncesResponse - */ -export const QueryGetChainNoncesResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryGetChainNoncesResponse", - () => [ - { no: 1, name: "ChainNonces", kind: "message", T: ChainNonces }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryAllChainNoncesRequest - */ -export const QueryAllChainNoncesRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryAllChainNoncesRequest", - () => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryAllChainNoncesResponse - */ -export const QueryAllChainNoncesResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryAllChainNoncesResponse", - () => [ - { no: 1, name: "ChainNonces", kind: "message", T: ChainNonces, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryAllPendingNoncesRequest - */ -export const QueryAllPendingNoncesRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryAllPendingNoncesRequest", - [], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryAllPendingNoncesResponse - */ -export const QueryAllPendingNoncesResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryAllPendingNoncesResponse", - () => [ - { no: 1, name: "pending_nonces", kind: "message", T: PendingNonces, repeated: true }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetLastBlockHeightRequest - */ -export const QueryGetLastBlockHeightRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryGetLastBlockHeightRequest", - () => [ - { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetLastBlockHeightResponse - */ -export const QueryGetLastBlockHeightResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryGetLastBlockHeightResponse", - () => [ - { no: 1, name: "LastBlockHeight", kind: "message", T: LastBlockHeight }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryAllLastBlockHeightRequest - */ -export const QueryAllLastBlockHeightRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryAllLastBlockHeightRequest", - () => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryAllLastBlockHeightResponse - */ -export const QueryAllLastBlockHeightResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryAllLastBlockHeightResponse", - () => [ - { no: 1, name: "LastBlockHeight", kind: "message", T: LastBlockHeight, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetCctxRequest - */ -export const QueryGetCctxRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryGetCctxRequest", - () => [ - { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryGetCctxResponse - */ -export const QueryGetCctxResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryGetCctxResponse", - () => [ - { no: 1, name: "CrossChainTx", kind: "message", T: CrossChainTx }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryAllCctxRequest - */ -export const QueryAllCctxRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryAllCctxRequest", - () => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryAllCctxResponse - */ -export const QueryAllCctxResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryAllCctxResponse", - () => [ - { no: 1, name: "CrossChainTx", kind: "message", T: CrossChainTx, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryAllCctxPendingRequest - */ -export const QueryAllCctxPendingRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryAllCctxPendingRequest", - () => [ - { no: 1, name: "chainId", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "pagination", kind: "message", T: PageRequest }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryAllCctxPendingResponse - */ -export const QueryAllCctxPendingResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryAllCctxPendingResponse", - () => [ - { no: 1, name: "CrossChainTx", kind: "message", T: CrossChainTx, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryLastZetaHeightRequest - */ -export const QueryLastZetaHeightRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryLastZetaHeightRequest", - [], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryLastZetaHeightResponse - */ -export const QueryLastZetaHeightResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryLastZetaHeightResponse", - () => [ - { no: 1, name: "Height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryConvertGasToZetaRequest - */ -export const QueryConvertGasToZetaRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryConvertGasToZetaRequest", - () => [ - { no: 1, name: "chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "gasLimit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryConvertGasToZetaResponse - */ -export const QueryConvertGasToZetaResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryConvertGasToZetaResponse", - () => [ - { no: 1, name: "outboundGasInZeta", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "protocolFeeInZeta", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "ZetaBlockHeight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryMessagePassingProtocolFeeRequest - */ -export const QueryMessagePassingProtocolFeeRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryMessagePassingProtocolFeeRequest", - [], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryMessagePassingProtocolFeeResponse - */ -export const QueryMessagePassingProtocolFeeResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryMessagePassingProtocolFeeResponse", - () => [ - { no: 1, name: "feeInZeta", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryZEVMGetTransactionReceiptRequest - */ -export const QueryZEVMGetTransactionReceiptRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryZEVMGetTransactionReceiptRequest", - () => [ - { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryZEVMGetTransactionReceiptResponse - */ -export const QueryZEVMGetTransactionReceiptResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryZEVMGetTransactionReceiptResponse", - () => [ - { no: 1, name: "block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "block_number", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "cumulative_gas_used", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "gas_used", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "logs_bloom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "transaction_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 11, name: "transaction_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 12, name: "logs", kind: "message", T: Log, repeated: true }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.Log - */ -export const Log = proto3.makeMessageType( - "zetachain.zetacore.crosschain.Log", - () => [ - { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "topics", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 3, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "block_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "transaction_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "transaction_index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 7, name: "block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "log_index", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 9, name: "removed", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryZEVMGetTransactionRequest - */ -export const QueryZEVMGetTransactionRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryZEVMGetTransactionRequest", - () => [ - { no: 1, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryZEVMGetTransactionResponse - */ -export const QueryZEVMGetTransactionResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryZEVMGetTransactionResponse", - () => [ - { no: 1, name: "block_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "block_number", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "gas", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "input", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "nonce", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "transaction_index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 11, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 12, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 13, name: "access_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 14, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 15, name: "v", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 16, name: "r", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 17, name: "s", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryZEVMGetBlockByNumberRequest - */ -export const QueryZEVMGetBlockByNumberRequest = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryZEVMGetBlockByNumberRequest", - () => [ - { no: 1, name: "height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.QueryZEVMGetBlockByNumberResponse - */ -export const QueryZEVMGetBlockByNumberResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.QueryZEVMGetBlockByNumberResponse", - () => [ - { no: 1, name: "number", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "parent_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "nonce", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "sha3_uncles", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "logs_bloom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "transactions_root", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "state_root", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "receipts_root", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "miner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 11, name: "difficulty", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 12, name: "total_difficulty", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 13, name: "extra_data", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 14, name: "size", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 15, name: "gas_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 16, name: "gas_used", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 17, name: "timestamp", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 18, name: "transactions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 19, name: "uncles", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 20, name: "base_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 21, name: "mix_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - diff --git a/typescript/crosschain/query.d.ts b/typescript/crosschain/query_pb.d.ts similarity index 99% rename from typescript/crosschain/query.d.ts rename to typescript/crosschain/query_pb.d.ts index 4377405082..2e4fc850f9 100644 --- a/typescript/crosschain/query.d.ts +++ b/typescript/crosschain/query_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 @@ -974,9 +974,9 @@ export declare class QueryLastZetaHeightResponse extends Message { /** - * @generated from field: string chain = 1; + * @generated from field: int64 chainId = 1; */ - chain: string; + chainId: bigint; /** * @generated from field: string gasLimit = 2; diff --git a/typescript/crosschain/tss.js b/typescript/crosschain/tss.js deleted file mode 100644 index 3946c02f26..0000000000 --- a/typescript/crosschain/tss.js +++ /dev/null @@ -1,21 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file crosschain/tss.proto (package zetachain.zetacore.crosschain, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from message zetachain.zetacore.crosschain.TSS - */ -export const TSS = proto3.makeMessageType( - "zetachain.zetacore.crosschain.TSS", - () => [ - { no: 3, name: "tss_pubkey", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "tss_participant_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 5, name: "operator_address_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 6, name: "finalizedZetaHeight", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 7, name: "keyGenZetaHeight", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ], -); - diff --git a/typescript/crosschain/tss.d.ts b/typescript/crosschain/tss_pb.d.ts similarity index 95% rename from typescript/crosschain/tss.d.ts rename to typescript/crosschain/tss_pb.d.ts index b8598b9019..13ef1fb435 100644 --- a/typescript/crosschain/tss.d.ts +++ b/typescript/crosschain/tss_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/crosschain/tx.js b/typescript/crosschain/tx.js deleted file mode 100644 index aef616a86e..0000000000 --- a/typescript/crosschain/tx.js +++ /dev/null @@ -1,188 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file crosschain/tx.proto (package zetachain.zetacore.crosschain, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { CoinType, PubKeySet, ReceiveStatus } from "../common/common_pb.js"; - -/** - * @generated from message zetachain.zetacore.crosschain.MsgAddToOutTxTracker - */ -export const MsgAddToOutTxTracker = proto3.makeMessageType( - "zetachain.zetacore.crosschain.MsgAddToOutTxTracker", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.MsgAddToOutTxTrackerResponse - */ -export const MsgAddToOutTxTrackerResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.MsgAddToOutTxTrackerResponse", - [], -); - -/** - * @generated from message zetachain.zetacore.crosschain.MsgRemoveFromOutTxTracker - */ -export const MsgRemoveFromOutTxTracker = proto3.makeMessageType( - "zetachain.zetacore.crosschain.MsgRemoveFromOutTxTracker", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.MsgRemoveFromOutTxTrackerResponse - */ -export const MsgRemoveFromOutTxTrackerResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.MsgRemoveFromOutTxTrackerResponse", - [], -); - -/** - * @generated from message zetachain.zetacore.crosschain.MsgCreateTSSVoter - */ -export const MsgCreateTSSVoter = proto3.makeMessageType( - "zetachain.zetacore.crosschain.MsgCreateTSSVoter", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "tss_pubkey", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "keyGenZetaHeight", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "status", kind: "enum", T: proto3.getEnumType(ReceiveStatus) }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.MsgCreateTSSVoterResponse - */ -export const MsgCreateTSSVoterResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.MsgCreateTSSVoterResponse", - [], -); - -/** - * @generated from message zetachain.zetacore.crosschain.MsgGasPriceVoter - */ -export const MsgGasPriceVoter = proto3.makeMessageType( - "zetachain.zetacore.crosschain.MsgGasPriceVoter", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "price", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "block_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "supply", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.MsgGasPriceVoterResponse - */ -export const MsgGasPriceVoterResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.MsgGasPriceVoterResponse", - [], -); - -/** - * @generated from message zetachain.zetacore.crosschain.MsgNonceVoter - */ -export const MsgNonceVoter = proto3.makeMessageType( - "zetachain.zetacore.crosschain.MsgNonceVoter", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.MsgNonceVoterResponse - */ -export const MsgNonceVoterResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.MsgNonceVoterResponse", - [], -); - -/** - * @generated from message zetachain.zetacore.crosschain.MsgVoteOnObservedOutboundTx - */ -export const MsgVoteOnObservedOutboundTx = proto3.makeMessageType( - "zetachain.zetacore.crosschain.MsgVoteOnObservedOutboundTx", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "cctx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "observed_outTx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "observed_outTx_blockHeight", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "zeta_minted", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "status", kind: "enum", T: proto3.getEnumType(ReceiveStatus) }, - { no: 7, name: "outTx_chain", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 8, name: "outTx_tss_nonce", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 9, name: "coin_type", kind: "enum", T: proto3.getEnumType(CoinType) }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.MsgVoteOnObservedOutboundTxResponse - */ -export const MsgVoteOnObservedOutboundTxResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.MsgVoteOnObservedOutboundTxResponse", - [], -); - -/** - * @generated from message zetachain.zetacore.crosschain.MsgVoteOnObservedInboundTx - */ -export const MsgVoteOnObservedInboundTx = proto3.makeMessageType( - "zetachain.zetacore.crosschain.MsgVoteOnObservedInboundTx", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sender_chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 4, name: "receiver", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "receiver_chain", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 6, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "in_tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "in_block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 11, name: "gas_limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 12, name: "coin_type", kind: "enum", T: proto3.getEnumType(CoinType) }, - { no: 13, name: "tx_origin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 14, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.MsgVoteOnObservedInboundTxResponse - */ -export const MsgVoteOnObservedInboundTxResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.MsgVoteOnObservedInboundTxResponse", - [], -); - -/** - * @generated from message zetachain.zetacore.crosschain.MsgSetNodeKeys - */ -export const MsgSetNodeKeys = proto3.makeMessageType( - "zetachain.zetacore.crosschain.MsgSetNodeKeys", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "pubkeySet", kind: "message", T: PubKeySet }, - { no: 3, name: "tss_signer_Address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.crosschain.MsgSetNodeKeysResponse - */ -export const MsgSetNodeKeysResponse = proto3.makeMessageType( - "zetachain.zetacore.crosschain.MsgSetNodeKeysResponse", - [], -); - diff --git a/typescript/crosschain/tx.d.ts b/typescript/crosschain/tx_pb.d.ts similarity index 99% rename from typescript/crosschain/tx.d.ts rename to typescript/crosschain/tx_pb.d.ts index 90147d4a2b..250cebaee6 100644 --- a/typescript/crosschain/tx.d.ts +++ b/typescript/crosschain/tx_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/emissions/events.js b/typescript/emissions/events.js deleted file mode 100644 index 4ed9c580cd..0000000000 --- a/typescript/emissions/events.js +++ /dev/null @@ -1,23 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file emissions/events.proto (package zetachain.zetacore.emissions, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from message zetachain.zetacore.emissions.EventBlockEmissions - */ -export const EventBlockEmissions = proto3.makeMessageType( - "zetachain.zetacore.emissions.EventBlockEmissions", - () => [ - { no: 1, name: "msg_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "bond_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "reserves_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "duration_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "validator_rewards_for_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "observer_rewards_for_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "tss_rewards_for_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - diff --git a/typescript/emissions/events.d.ts b/typescript/emissions/events_pb.d.ts similarity index 96% rename from typescript/emissions/events.d.ts rename to typescript/emissions/events_pb.d.ts index 36b3e73b0b..be493120d6 100644 --- a/typescript/emissions/events.d.ts +++ b/typescript/emissions/events_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/emissions/genesis.js b/typescript/emissions/genesis.js deleted file mode 100644 index 03b7302138..0000000000 --- a/typescript/emissions/genesis.js +++ /dev/null @@ -1,20 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file emissions/genesis.proto (package zetachain.zetacore.emissions, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; - -/** - * GenesisState defines the emissions module's genesis state. - * - * @generated from message zetachain.zetacore.emissions.GenesisState - */ -export const GenesisState = proto3.makeMessageType( - "zetachain.zetacore.emissions.GenesisState", - () => [ - { no: 1, name: "params", kind: "message", T: Params }, - ], -); - diff --git a/typescript/emissions/genesis.d.ts b/typescript/emissions/genesis_pb.d.ts similarity index 95% rename from typescript/emissions/genesis.d.ts rename to typescript/emissions/genesis_pb.d.ts index 872ec813d4..dc2c5ec279 100644 --- a/typescript/emissions/genesis.d.ts +++ b/typescript/emissions/genesis_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/emissions/index.d.ts b/typescript/emissions/index.d.ts index 4260f3d2a5..d8d05b8c4d 100644 --- a/typescript/emissions/index.d.ts +++ b/typescript/emissions/index.d.ts @@ -1,4 +1,4 @@ -export * from "./events"; -export * from "./genesis"; -export * from "./params"; -export * from "./query"; +export * from "./events_pb"; +export * from "./genesis_pb"; +export * from "./params_pb"; +export * from "./query_pb"; diff --git a/typescript/emissions/params.js b/typescript/emissions/params.js deleted file mode 100644 index de7440259a..0000000000 --- a/typescript/emissions/params.js +++ /dev/null @@ -1,26 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file emissions/params.proto (package zetachain.zetacore.emissions, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * Params defines the parameters for the module. - * - * @generated from message zetachain.zetacore.emissions.Params - */ -export const Params = proto3.makeMessageType( - "zetachain.zetacore.emissions.Params", - () => [ - { no: 1, name: "max_bond_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "min_bond_factor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "avg_block_time", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "target_bond_ratio", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "validator_emission_percentage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "observer_emission_percentage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "tss_signer_emission_percentage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "duration_factor_constant", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - diff --git a/typescript/emissions/params.d.ts b/typescript/emissions/params_pb.d.ts similarity index 96% rename from typescript/emissions/params.d.ts rename to typescript/emissions/params_pb.d.ts index dc2ce7d2dd..2431cacfd5 100644 --- a/typescript/emissions/params.d.ts +++ b/typescript/emissions/params_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/emissions/query.js b/typescript/emissions/query.js deleted file mode 100644 index 4a37fda0bf..0000000000 --- a/typescript/emissions/query.js +++ /dev/null @@ -1,50 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file emissions/query.proto (package zetachain.zetacore.emissions, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; - -/** - * QueryParamsRequest is request type for the Query/Params RPC method. - * - * @generated from message zetachain.zetacore.emissions.QueryParamsRequest - */ -export const QueryParamsRequest = proto3.makeMessageType( - "zetachain.zetacore.emissions.QueryParamsRequest", - [], -); - -/** - * QueryParamsResponse is response type for the Query/Params RPC method. - * - * @generated from message zetachain.zetacore.emissions.QueryParamsResponse - */ -export const QueryParamsResponse = proto3.makeMessageType( - "zetachain.zetacore.emissions.QueryParamsResponse", - () => [ - { no: 1, name: "params", kind: "message", T: Params }, - ], -); - -/** - * @generated from message zetachain.zetacore.emissions.QueryListPoolAddressesRequest - */ -export const QueryListPoolAddressesRequest = proto3.makeMessageType( - "zetachain.zetacore.emissions.QueryListPoolAddressesRequest", - [], -); - -/** - * @generated from message zetachain.zetacore.emissions.QueryListPoolAddressesResponse - */ -export const QueryListPoolAddressesResponse = proto3.makeMessageType( - "zetachain.zetacore.emissions.QueryListPoolAddressesResponse", - () => [ - { no: 1, name: "undistributed_observer_balances_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "undistributed_tss_balances_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "emission_module_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - diff --git a/typescript/emissions/query.d.ts b/typescript/emissions/query_pb.d.ts similarity index 98% rename from typescript/emissions/query.d.ts rename to typescript/emissions/query_pb.d.ts index 5f7d9d3b67..bedaf37b7d 100644 --- a/typescript/emissions/query.d.ts +++ b/typescript/emissions/query_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/fungible/events_pb.d.ts b/typescript/fungible/events_pb.d.ts new file mode 100644 index 0000000000..ebe5883779 --- /dev/null +++ b/typescript/fungible/events_pb.d.ts @@ -0,0 +1,166 @@ +// @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"; + +/** + * @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: string chain = 2; + */ + chain: string; + + /** + * @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 gasLimit = 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; + + 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; +} + diff --git a/typescript/fungible/foreign_coins.js b/typescript/fungible/foreign_coins.js deleted file mode 100644 index e0ed6d1791..0000000000 --- a/typescript/fungible/foreign_coins.js +++ /dev/null @@ -1,25 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file fungible/foreign_coins.proto (package zetachain.zetacore.fungible, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { CoinType } from "../common/common_pb.js"; - -/** - * @generated from message zetachain.zetacore.fungible.ForeignCoins - */ -export const ForeignCoins = proto3.makeMessageType( - "zetachain.zetacore.fungible.ForeignCoins", - () => [ - { no: 2, name: "zrc20_contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "asset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "foreign_chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 5, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 6, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "coin_type", kind: "enum", T: proto3.getEnumType(CoinType) }, - { no: 9, name: "gas_limit", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - ], -); - diff --git a/typescript/fungible/foreign_coins.d.ts b/typescript/fungible/foreign_coins_pb.d.ts similarity index 96% rename from typescript/fungible/foreign_coins.d.ts rename to typescript/fungible/foreign_coins_pb.d.ts index 4ee5b917d1..9cc83f72e2 100644 --- a/typescript/fungible/foreign_coins.d.ts +++ b/typescript/fungible/foreign_coins_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/fungible/genesis.js b/typescript/fungible/genesis.js deleted file mode 100644 index ad99a28415..0000000000 --- a/typescript/fungible/genesis.js +++ /dev/null @@ -1,24 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file fungible/genesis.proto (package zetachain.zetacore.fungible, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { ForeignCoins } from "./foreign_coins_pb.js"; -import { SystemContract } from "./system_contract_pb.js"; - -/** - * GenesisState defines the fungible module's genesis state. - * - * @generated from message zetachain.zetacore.fungible.GenesisState - */ -export const GenesisState = proto3.makeMessageType( - "zetachain.zetacore.fungible.GenesisState", - () => [ - { no: 1, name: "params", kind: "message", T: Params }, - { no: 2, name: "foreignCoinsList", kind: "message", T: ForeignCoins, repeated: true }, - { no: 3, name: "systemContract", kind: "message", T: SystemContract }, - ], -); - diff --git a/typescript/fungible/genesis.d.ts b/typescript/fungible/genesis_pb.d.ts similarity index 96% rename from typescript/fungible/genesis.d.ts rename to typescript/fungible/genesis_pb.d.ts index 6d5040e5f7..1a338d01c8 100644 --- a/typescript/fungible/genesis.d.ts +++ b/typescript/fungible/genesis_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/fungible/index.d.ts b/typescript/fungible/index.d.ts index 70ae49bf70..ca17377759 100644 --- a/typescript/fungible/index.d.ts +++ b/typescript/fungible/index.d.ts @@ -1,6 +1,7 @@ -export * from "./foreign_coins"; -export * from "./genesis"; -export * from "./params"; -export * from "./query"; -export * from "./system_contract"; -export * from "./tx"; +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.js b/typescript/fungible/params.js deleted file mode 100644 index 469b702bd6..0000000000 --- a/typescript/fungible/params.js +++ /dev/null @@ -1,17 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file fungible/params.proto (package zetachain.zetacore.fungible, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * Params defines the parameters for the module. - * - * @generated from message zetachain.zetacore.fungible.Params - */ -export const Params = proto3.makeMessageType( - "zetachain.zetacore.fungible.Params", - [], -); - diff --git a/typescript/fungible/params.d.ts b/typescript/fungible/params_pb.d.ts similarity index 94% rename from typescript/fungible/params.d.ts rename to typescript/fungible/params_pb.d.ts index bbe29829ca..a9f83a1d01 100644 --- a/typescript/fungible/params.d.ts +++ b/typescript/fungible/params_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/fungible/query.js b/typescript/fungible/query.js deleted file mode 100644 index d15992bbed..0000000000 --- a/typescript/fungible/query.js +++ /dev/null @@ -1,92 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file fungible/query.proto (package zetachain.zetacore.fungible, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { Params } from "./params_pb.js"; -import { ForeignCoins } from "./foreign_coins_pb.js"; -import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination_pb.js"; -import { SystemContract } from "./system_contract_pb.js"; - -/** - * QueryParamsRequest is request type for the Query/Params RPC method. - * - * @generated from message zetachain.zetacore.fungible.QueryParamsRequest - */ -export const QueryParamsRequest = proto3.makeMessageType( - "zetachain.zetacore.fungible.QueryParamsRequest", - [], -); - -/** - * QueryParamsResponse is response type for the Query/Params RPC method. - * - * @generated from message zetachain.zetacore.fungible.QueryParamsResponse - */ -export const QueryParamsResponse = proto3.makeMessageType( - "zetachain.zetacore.fungible.QueryParamsResponse", - () => [ - { no: 1, name: "params", kind: "message", T: Params }, - ], -); - -/** - * @generated from message zetachain.zetacore.fungible.QueryGetForeignCoinsRequest - */ -export const QueryGetForeignCoinsRequest = proto3.makeMessageType( - "zetachain.zetacore.fungible.QueryGetForeignCoinsRequest", - () => [ - { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.fungible.QueryGetForeignCoinsResponse - */ -export const QueryGetForeignCoinsResponse = proto3.makeMessageType( - "zetachain.zetacore.fungible.QueryGetForeignCoinsResponse", - () => [ - { no: 1, name: "foreignCoins", kind: "message", T: ForeignCoins }, - ], -); - -/** - * @generated from message zetachain.zetacore.fungible.QueryAllForeignCoinsRequest - */ -export const QueryAllForeignCoinsRequest = proto3.makeMessageType( - "zetachain.zetacore.fungible.QueryAllForeignCoinsRequest", - () => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ], -); - -/** - * @generated from message zetachain.zetacore.fungible.QueryAllForeignCoinsResponse - */ -export const QueryAllForeignCoinsResponse = proto3.makeMessageType( - "zetachain.zetacore.fungible.QueryAllForeignCoinsResponse", - () => [ - { no: 1, name: "foreignCoins", kind: "message", T: ForeignCoins, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ], -); - -/** - * @generated from message zetachain.zetacore.fungible.QueryGetSystemContractRequest - */ -export const QueryGetSystemContractRequest = proto3.makeMessageType( - "zetachain.zetacore.fungible.QueryGetSystemContractRequest", - [], -); - -/** - * @generated from message zetachain.zetacore.fungible.QueryGetSystemContractResponse - */ -export const QueryGetSystemContractResponse = proto3.makeMessageType( - "zetachain.zetacore.fungible.QueryGetSystemContractResponse", - () => [ - { no: 1, name: "SystemContract", kind: "message", T: SystemContract }, - ], -); - diff --git a/typescript/fungible/query.d.ts b/typescript/fungible/query_pb.d.ts similarity index 99% rename from typescript/fungible/query.d.ts rename to typescript/fungible/query_pb.d.ts index 9f0025dc1a..f1fe9071e0 100644 --- a/typescript/fungible/query.d.ts +++ b/typescript/fungible/query_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/fungible/system_contract.js b/typescript/fungible/system_contract.js deleted file mode 100644 index 50ebf46ef1..0000000000 --- a/typescript/fungible/system_contract.js +++ /dev/null @@ -1,18 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file fungible/system_contract.proto (package zetachain.zetacore.fungible, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from message zetachain.zetacore.fungible.SystemContract - */ -export const SystemContract = proto3.makeMessageType( - "zetachain.zetacore.fungible.SystemContract", - () => [ - { no: 1, name: "system_contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "connector_zevm", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - diff --git a/typescript/fungible/system_contract.d.ts b/typescript/fungible/system_contract_pb.d.ts similarity index 95% rename from typescript/fungible/system_contract.d.ts rename to typescript/fungible/system_contract_pb.d.ts index ee7770a908..1ee1dde43b 100644 --- a/typescript/fungible/system_contract.d.ts +++ b/typescript/fungible/system_contract_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/fungible/tx.js b/typescript/fungible/tx.js deleted file mode 100644 index d9afd5aba9..0000000000 --- a/typescript/fungible/tx.js +++ /dev/null @@ -1,52 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file fungible/tx.proto (package zetachain.zetacore.fungible, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { CoinType } from "../common/common_pb.js"; - -/** - * @generated from message zetachain.zetacore.fungible.MsgDeployFungibleCoinZRC20 - */ -export const MsgDeployFungibleCoinZRC20 = proto3.makeMessageType( - "zetachain.zetacore.fungible.MsgDeployFungibleCoinZRC20", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "ERC20", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "foreignChain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "coinType", kind: "enum", T: proto3.getEnumType(CoinType) }, - { no: 8, name: "gasLimit", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.fungible.MsgDeployFungibleCoinZRC20Response - */ -export const MsgDeployFungibleCoinZRC20Response = proto3.makeMessageType( - "zetachain.zetacore.fungible.MsgDeployFungibleCoinZRC20Response", - [], -); - -/** - * @generated from message zetachain.zetacore.fungible.MsgRemoveForeignCoin - */ -export const MsgRemoveForeignCoin = proto3.makeMessageType( - "zetachain.zetacore.fungible.MsgRemoveForeignCoin", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.fungible.MsgRemoveForeignCoinResponse - */ -export const MsgRemoveForeignCoinResponse = proto3.makeMessageType( - "zetachain.zetacore.fungible.MsgRemoveForeignCoinResponse", - [], -); - diff --git a/typescript/fungible/tx.d.ts b/typescript/fungible/tx_pb.d.ts similarity index 53% rename from typescript/fungible/tx.d.ts rename to typescript/fungible/tx_pb.d.ts index 2c8fbf3c20..91e71215fd 100644 --- a/typescript/fungible/tx.d.ts +++ b/typescript/fungible/tx_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 @@ -7,6 +7,109 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM import { Message, proto3 } from "@bufbuild/protobuf"; import type { CoinType } from "../common/common_pb.js"; +/** + * @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; + + 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 */ diff --git a/typescript/observer/ballot.js b/typescript/observer/ballot.js deleted file mode 100644 index efb29246d2..0000000000 --- a/typescript/observer/ballot.js +++ /dev/null @@ -1,48 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file observer/ballot.proto (package zetachain.zetacore.observer, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { ObservationType } from "./observer_pb.js"; - -/** - * @generated from enum zetachain.zetacore.observer.VoteType - */ -export const VoteType = proto3.makeEnum( - "zetachain.zetacore.observer.VoteType", - [ - {no: 0, name: "SuccessObservation"}, - {no: 1, name: "FailureObservation"}, - {no: 2, name: "NotYetVoted"}, - ], -); - -/** - * @generated from enum zetachain.zetacore.observer.BallotStatus - */ -export const BallotStatus = proto3.makeEnum( - "zetachain.zetacore.observer.BallotStatus", - [ - {no: 0, name: "BallotFinalized_SuccessObservation"}, - {no: 1, name: "BallotFinalized_FailureObservation"}, - {no: 2, name: "BallotInProgress"}, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.Ballot - */ -export const Ballot = proto3.makeMessageType( - "zetachain.zetacore.observer.Ballot", - () => [ - { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "ballot_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "voter_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "votes", kind: "enum", T: proto3.getEnumType(VoteType), repeated: true }, - { no: 5, name: "observation_type", kind: "enum", T: proto3.getEnumType(ObservationType) }, - { no: 6, name: "BallotThreshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "ballot_status", kind: "enum", T: proto3.getEnumType(BallotStatus) }, - ], -); - diff --git a/typescript/observer/ballot.d.ts b/typescript/observer/ballot_pb.d.ts similarity index 97% rename from typescript/observer/ballot.d.ts rename to typescript/observer/ballot_pb.d.ts index d4337b900b..6ca9678d81 100644 --- a/typescript/observer/ballot.d.ts +++ b/typescript/observer/ballot_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/observer/blame.js b/typescript/observer/blame.js deleted file mode 100644 index d65661ca51..0000000000 --- a/typescript/observer/blame.js +++ /dev/null @@ -1,31 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file observer/blame.proto (package zetachain.zetacore.observer, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from message zetachain.zetacore.observer.Node - */ -export const Node = proto3.makeMessageType( - "zetachain.zetacore.observer.Node", - () => [ - { no: 1, name: "pub_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "blame_data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "blame_signature", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.Blame - */ -export const Blame = proto3.makeMessageType( - "zetachain.zetacore.observer.Blame", - () => [ - { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "failure_reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "nodes", kind: "message", T: Node, repeated: true }, - ], -); - diff --git a/typescript/observer/blame.d.ts b/typescript/observer/blame_pb.d.ts similarity index 97% rename from typescript/observer/blame.d.ts rename to typescript/observer/blame_pb.d.ts index 21b5e17ff9..3a9403cd95 100644 --- a/typescript/observer/blame.d.ts +++ b/typescript/observer/blame_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/observer/events.js b/typescript/observer/events.js deleted file mode 100644 index 9cb592cee9..0000000000 --- a/typescript/observer/events.js +++ /dev/null @@ -1,33 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file observer/events.proto (package zetachain.zetacore.observer, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from message zetachain.zetacore.observer.EventBallotCreated - */ -export const EventBallotCreated = proto3.makeMessageType( - "zetachain.zetacore.observer.EventBallotCreated", - () => [ - { no: 1, name: "msg_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "ballot_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "observation_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "observation_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "ballot_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.EventKeygenBlockUpdated - */ -export const EventKeygenBlockUpdated = proto3.makeMessageType( - "zetachain.zetacore.observer.EventKeygenBlockUpdated", - () => [ - { no: 1, name: "msg_type_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "keygen_block", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "keygen_pubkeys", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - diff --git a/typescript/observer/events.d.ts b/typescript/observer/events_pb.d.ts similarity index 97% rename from typescript/observer/events.d.ts rename to typescript/observer/events_pb.d.ts index c80b685008..6c27470cc8 100644 --- a/typescript/observer/events.d.ts +++ b/typescript/observer/events_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/observer/genesis.js b/typescript/observer/genesis.js deleted file mode 100644 index 106ade4840..0000000000 --- a/typescript/observer/genesis.js +++ /dev/null @@ -1,28 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file observer/genesis.proto (package zetachain.zetacore.observer, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { Ballot } from "./ballot_pb.js"; -import { ObserverMapper } from "./observer_pb.js"; -import { NodeAccount } from "./node_account_pb.js"; -import { PermissionFlags } from "./permission_flags_pb.js"; -import { Params } from "./params_pb.js"; -import { Keygen } from "./keygen_pb.js"; - -/** - * @generated from message zetachain.zetacore.observer.GenesisState - */ -export const GenesisState = proto3.makeMessageType( - "zetachain.zetacore.observer.GenesisState", - () => [ - { no: 1, name: "ballots", kind: "message", T: Ballot, repeated: true }, - { no: 2, name: "observers", kind: "message", T: ObserverMapper, repeated: true }, - { no: 3, name: "nodeAccountList", kind: "message", T: NodeAccount, repeated: true }, - { no: 4, name: "permissionFlags", kind: "message", T: PermissionFlags }, - { no: 5, name: "params", kind: "message", T: Params }, - { no: 6, name: "keygen", kind: "message", T: Keygen }, - ], -); - diff --git a/typescript/observer/genesis.d.ts b/typescript/observer/genesis_pb.d.ts similarity index 97% rename from typescript/observer/genesis.d.ts rename to typescript/observer/genesis_pb.d.ts index f05666d3a9..3a81b00405 100644 --- a/typescript/observer/genesis.d.ts +++ b/typescript/observer/genesis_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/observer/index.d.ts b/typescript/observer/index.d.ts index a1b93bf555..899c610663 100644 --- a/typescript/observer/index.d.ts +++ b/typescript/observer/index.d.ts @@ -1,11 +1,11 @@ -export * from "./ballot"; -export * from "./blame"; -export * from "./events"; -export * from "./genesis"; -export * from "./keygen"; -export * from "./node_account"; -export * from "./observer"; -export * from "./params"; -export * from "./permission_flags"; -export * from "./query"; -export * from "./tx"; +export * from "./ballot_pb"; +export * from "./blame_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 "./permission_flags_pb"; +export * from "./query_pb"; +export * from "./tx_pb"; diff --git a/typescript/observer/keygen.js b/typescript/observer/keygen.js deleted file mode 100644 index 70baa1004d..0000000000 --- a/typescript/observer/keygen.js +++ /dev/null @@ -1,31 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file observer/keygen.proto (package zetachain.zetacore.observer, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from enum zetachain.zetacore.observer.KeygenStatus - */ -export const KeygenStatus = proto3.makeEnum( - "zetachain.zetacore.observer.KeygenStatus", - [ - {no: 0, name: "PendingKeygen"}, - {no: 1, name: "KeyGenSuccess"}, - {no: 3, name: "KeyGenFailed"}, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.Keygen - */ -export const Keygen = proto3.makeMessageType( - "zetachain.zetacore.observer.Keygen", - () => [ - { no: 2, name: "status", kind: "enum", T: proto3.getEnumType(KeygenStatus) }, - { no: 3, name: "granteePubkeys", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "blockNumber", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ], -); - diff --git a/typescript/observer/keygen.d.ts b/typescript/observer/keygen_pb.d.ts similarity index 96% rename from typescript/observer/keygen.d.ts rename to typescript/observer/keygen_pb.d.ts index ae3c933b6e..e3179201c0 100644 --- a/typescript/observer/keygen.d.ts +++ b/typescript/observer/keygen_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/observer/node_account.js b/typescript/observer/node_account.js deleted file mode 100644 index d1f60efc13..0000000000 --- a/typescript/observer/node_account.js +++ /dev/null @@ -1,36 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file observer/node_account.proto (package zetachain.zetacore.observer, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { PubKeySet } from "../common/common_pb.js"; - -/** - * @generated from enum zetachain.zetacore.observer.NodeStatus - */ -export const NodeStatus = proto3.makeEnum( - "zetachain.zetacore.observer.NodeStatus", - [ - {no: 0, name: "Unknown"}, - {no: 1, name: "Whitelisted"}, - {no: 2, name: "Standby"}, - {no: 3, name: "Ready"}, - {no: 4, name: "Active"}, - {no: 5, name: "Disabled"}, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.NodeAccount - */ -export const NodeAccount = proto3.makeMessageType( - "zetachain.zetacore.observer.NodeAccount", - () => [ - { no: 1, name: "operator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "granteeAddress", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "granteePubkey", kind: "message", T: PubKeySet }, - { no: 4, name: "nodeStatus", kind: "enum", T: proto3.getEnumType(NodeStatus) }, - ], -); - diff --git a/typescript/observer/node_account.d.ts b/typescript/observer/node_account_pb.d.ts similarity index 96% rename from typescript/observer/node_account.d.ts rename to typescript/observer/node_account_pb.d.ts index aada3e4dc9..240e4b424a 100644 --- a/typescript/observer/node_account.d.ts +++ b/typescript/observer/node_account_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/observer/observer.js b/typescript/observer/observer.js deleted file mode 100644 index 05d5fb23fa..0000000000 --- a/typescript/observer/observer.js +++ /dev/null @@ -1,45 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file observer/observer.proto (package zetachain.zetacore.observer, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { Chain } from "../common/common_pb.js"; - -/** - * @generated from enum zetachain.zetacore.observer.ObservationType - */ -export const ObservationType = proto3.makeEnum( - "zetachain.zetacore.observer.ObservationType", - [ - {no: 0, name: "EmptyObserverType"}, - {no: 1, name: "InBoundTx"}, - {no: 2, name: "OutBoundTx"}, - {no: 3, name: "TSSKeyGen"}, - {no: 4, name: "TSSKeySign"}, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.ObserverMapper - */ -export const ObserverMapper = proto3.makeMessageType( - "zetachain.zetacore.observer.ObserverMapper", - () => [ - { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "observer_chain", kind: "message", T: Chain }, - { no: 4, name: "observer_list", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.LastObserverCount - */ -export const LastObserverCount = proto3.makeMessageType( - "zetachain.zetacore.observer.LastObserverCount", - () => [ - { no: 1, name: "count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "last_change_height", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ], -); - diff --git a/typescript/observer/observer.d.ts b/typescript/observer/observer_pb.d.ts similarity index 97% rename from typescript/observer/observer.d.ts rename to typescript/observer/observer_pb.d.ts index 141cb0f68d..60f70c21cb 100644 --- a/typescript/observer/observer.d.ts +++ b/typescript/observer/observer_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/observer/params.js b/typescript/observer/params.js deleted file mode 100644 index 5d2d156197..0000000000 --- a/typescript/observer/params.js +++ /dev/null @@ -1,89 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file observer/params.proto (package zetachain.zetacore.observer, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { Chain } from "../common/common_pb.js"; - -/** - * @generated from enum zetachain.zetacore.observer.Policy_Type - */ -export const Policy_Type = proto3.makeEnum( - "zetachain.zetacore.observer.Policy_Type", - [ - {no: 0, name: "stop_inbound_cctx"}, - {no: 1, name: "deploy_fungible_coin"}, - {no: 2, name: "update_client_params"}, - {no: 3, name: "update_keygen_block"}, - {no: 4, name: "out_tx_tracker"}, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.CoreParamsList - */ -export const CoreParamsList = proto3.makeMessageType( - "zetachain.zetacore.observer.CoreParamsList", - () => [ - { no: 1, name: "core_params", kind: "message", T: CoreParams, repeated: true }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.CoreParams - */ -export const CoreParams = proto3.makeMessageType( - "zetachain.zetacore.observer.CoreParams", - () => [ - { no: 1, name: "confirmation_count", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 2, name: "gas_price_ticker", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 3, name: "in_tx_ticker", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "out_tx_ticker", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 5, name: "watch_utxo_ticker", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 8, name: "zeta_token_contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "connector_contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 10, name: "erc20_custody_contract_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 11, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 12, name: "outbound_tx_schedule_interval", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 13, name: "outbound_tx_schedule_lookahead", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.ObserverParams - */ -export const ObserverParams = proto3.makeMessageType( - "zetachain.zetacore.observer.ObserverParams", - () => [ - { no: 1, name: "chain", kind: "message", T: Chain }, - { no: 3, name: "ballot_threshold", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "min_observer_delegation", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "is_supported", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.Admin_Policy - */ -export const Admin_Policy = proto3.makeMessageType( - "zetachain.zetacore.observer.Admin_Policy", - () => [ - { no: 1, name: "policy_type", kind: "enum", T: proto3.getEnumType(Policy_Type) }, - { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * Params defines the parameters for the module. - * - * @generated from message zetachain.zetacore.observer.Params - */ -export const Params = proto3.makeMessageType( - "zetachain.zetacore.observer.Params", - () => [ - { no: 1, name: "observer_params", kind: "message", T: ObserverParams, repeated: true }, - { no: 2, name: "admin_policy", kind: "message", T: Admin_Policy, repeated: true }, - ], -); - diff --git a/typescript/observer/params.d.ts b/typescript/observer/params_pb.d.ts similarity index 99% rename from typescript/observer/params.d.ts rename to typescript/observer/params_pb.d.ts index 4b642a5aa1..760ad24488 100644 --- a/typescript/observer/params.d.ts +++ b/typescript/observer/params_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/observer/permission_flags.js b/typescript/observer/permission_flags.js deleted file mode 100644 index c067413c3a..0000000000 --- a/typescript/observer/permission_flags.js +++ /dev/null @@ -1,17 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file observer/permission_flags.proto (package zetachain.zetacore.observer, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from message zetachain.zetacore.observer.PermissionFlags - */ -export const PermissionFlags = proto3.makeMessageType( - "zetachain.zetacore.observer.PermissionFlags", - () => [ - { no: 1, name: "isInboundEnabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - diff --git a/typescript/observer/permission_flags.d.ts b/typescript/observer/permission_flags_pb.d.ts similarity index 94% rename from typescript/observer/permission_flags.d.ts rename to typescript/observer/permission_flags_pb.d.ts index a5184c70ac..901e25ff83 100644 --- a/typescript/observer/permission_flags.d.ts +++ b/typescript/observer/permission_flags_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" // @generated from file observer/permission_flags.proto (package zetachain.zetacore.observer, syntax proto3) /* eslint-disable */ // @ts-nocheck diff --git a/typescript/observer/query.js b/typescript/observer/query.js deleted file mode 100644 index 61ee7d1eff..0000000000 --- a/typescript/observer/query.js +++ /dev/null @@ -1,297 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file observer/query.proto (package zetachain.zetacore.observer, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { CoreParams, CoreParamsList, Params } from "./params_pb.js"; -import { BallotStatus, VoteType } from "./ballot_pb.js"; -import { LastObserverCount, ObservationType, ObserverMapper } from "./observer_pb.js"; -import { Chain } from "../common/common_pb.js"; -import { NodeAccount } from "./node_account_pb.js"; -import { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination_pb.js"; -import { PermissionFlags } from "./permission_flags_pb.js"; -import { Keygen } from "./keygen_pb.js"; -import { Blame } from "./blame_pb.js"; - -/** - * @generated from message zetachain.zetacore.observer.QueryParamsRequest - */ -export const QueryParamsRequest = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryParamsRequest", - [], -); - -/** - * QueryParamsResponse is response type for the Query/Params RPC method. - * - * @generated from message zetachain.zetacore.observer.QueryParamsResponse - */ -export const QueryParamsResponse = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryParamsResponse", - () => [ - { no: 1, name: "params", kind: "message", T: Params }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryBallotByIdentifierRequest - */ -export const QueryBallotByIdentifierRequest = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryBallotByIdentifierRequest", - () => [ - { no: 1, name: "ballot_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.VoterList - */ -export const VoterList = proto3.makeMessageType( - "zetachain.zetacore.observer.VoterList", - () => [ - { no: 1, name: "voter_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "vote_type", kind: "enum", T: proto3.getEnumType(VoteType) }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryBallotByIdentifierResponse - */ -export const QueryBallotByIdentifierResponse = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryBallotByIdentifierResponse", - () => [ - { no: 1, name: "BallotIdentifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "voters", kind: "message", T: VoterList, repeated: true }, - { no: 3, name: "observation_type", kind: "enum", T: proto3.getEnumType(ObservationType) }, - { no: 4, name: "ballot_status", kind: "enum", T: proto3.getEnumType(BallotStatus) }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryObserversByChainRequest - */ -export const QueryObserversByChainRequest = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryObserversByChainRequest", - () => [ - { no: 1, name: "observation_chain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryObserversByChainResponse - */ -export const QueryObserversByChainResponse = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryObserversByChainResponse", - () => [ - { no: 1, name: "observers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryAllObserverMappersRequest - */ -export const QueryAllObserverMappersRequest = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryAllObserverMappersRequest", - [], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryAllObserverMappersResponse - */ -export const QueryAllObserverMappersResponse = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryAllObserverMappersResponse", - () => [ - { no: 1, name: "observer_mappers", kind: "message", T: ObserverMapper, repeated: true }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.QuerySupportedChains - */ -export const QuerySupportedChains = proto3.makeMessageType( - "zetachain.zetacore.observer.QuerySupportedChains", - [], -); - -/** - * @generated from message zetachain.zetacore.observer.QuerySupportedChainsResponse - */ -export const QuerySupportedChainsResponse = proto3.makeMessageType( - "zetachain.zetacore.observer.QuerySupportedChainsResponse", - () => [ - { no: 1, name: "chains", kind: "message", T: Chain, repeated: true }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryGetCoreParamsForChainRequest - */ -export const QueryGetCoreParamsForChainRequest = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryGetCoreParamsForChainRequest", - () => [ - { no: 1, name: "chainID", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryGetCoreParamsForChainResponse - */ -export const QueryGetCoreParamsForChainResponse = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryGetCoreParamsForChainResponse", - () => [ - { no: 1, name: "core_params", kind: "message", T: CoreParams }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryGetCoreParamsRequest - */ -export const QueryGetCoreParamsRequest = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryGetCoreParamsRequest", - [], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryGetCoreParamsResponse - */ -export const QueryGetCoreParamsResponse = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryGetCoreParamsResponse", - () => [ - { no: 1, name: "core_params", kind: "message", T: CoreParamsList }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryGetNodeAccountRequest - */ -export const QueryGetNodeAccountRequest = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryGetNodeAccountRequest", - () => [ - { no: 1, name: "index", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryGetNodeAccountResponse - */ -export const QueryGetNodeAccountResponse = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryGetNodeAccountResponse", - () => [ - { no: 1, name: "NodeAccount", kind: "message", T: NodeAccount }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryAllNodeAccountRequest - */ -export const QueryAllNodeAccountRequest = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryAllNodeAccountRequest", - () => [ - { no: 1, name: "pagination", kind: "message", T: PageRequest }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryAllNodeAccountResponse - */ -export const QueryAllNodeAccountResponse = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryAllNodeAccountResponse", - () => [ - { no: 1, name: "NodeAccount", kind: "message", T: NodeAccount, repeated: true }, - { no: 2, name: "pagination", kind: "message", T: PageResponse }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryGetPermissionFlagsRequest - */ -export const QueryGetPermissionFlagsRequest = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryGetPermissionFlagsRequest", - [], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryGetPermissionFlagsResponse - */ -export const QueryGetPermissionFlagsResponse = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryGetPermissionFlagsResponse", - () => [ - { no: 1, name: "PermissionFlags", kind: "message", T: PermissionFlags }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryGetKeygenRequest - */ -export const QueryGetKeygenRequest = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryGetKeygenRequest", - [], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryGetKeygenResponse - */ -export const QueryGetKeygenResponse = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryGetKeygenResponse", - () => [ - { no: 1, name: "Keygen", kind: "message", T: Keygen }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryShowObserverCountRequest - */ -export const QueryShowObserverCountRequest = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryShowObserverCountRequest", - [], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryShowObserverCountResponse - */ -export const QueryShowObserverCountResponse = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryShowObserverCountResponse", - () => [ - { no: 1, name: "last_observer_count", kind: "message", T: LastObserverCount }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryBlameByIdentifierRequest - */ -export const QueryBlameByIdentifierRequest = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryBlameByIdentifierRequest", - () => [ - { no: 1, name: "blame_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryBlameByIdentifierResponse - */ -export const QueryBlameByIdentifierResponse = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryBlameByIdentifierResponse", - () => [ - { no: 1, name: "blameInfo", kind: "message", T: Blame }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryAllBlameRecordsRequest - */ -export const QueryAllBlameRecordsRequest = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryAllBlameRecordsRequest", - [], -); - -/** - * @generated from message zetachain.zetacore.observer.QueryAllBlameRecordsResponse - */ -export const QueryAllBlameRecordsResponse = proto3.makeMessageType( - "zetachain.zetacore.observer.QueryAllBlameRecordsResponse", - () => [ - { no: 1, name: "blameInfo", kind: "message", T: Blame, repeated: true }, - ], -); - diff --git a/typescript/observer/query.d.ts b/typescript/observer/query_pb.d.ts similarity index 99% rename from typescript/observer/query.d.ts rename to typescript/observer/query_pb.d.ts index 580d92355b..606d7bd810 100644 --- a/typescript/observer/query.d.ts +++ b/typescript/observer/query_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/observer/tx.js b/typescript/observer/tx.js deleted file mode 100644 index 216772c86a..0000000000 --- a/typescript/observer/tx.js +++ /dev/null @@ -1,107 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 -// @generated from file observer/tx.proto (package zetachain.zetacore.observer, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { proto3 } from "@bufbuild/protobuf"; -import { CoreParams } from "./params_pb.js"; -import { ObservationType } from "./observer_pb.js"; -import { Blame } from "./blame_pb.js"; - -/** - * @generated from message zetachain.zetacore.observer.MsgUpdateCoreParams - */ -export const MsgUpdateCoreParams = proto3.makeMessageType( - "zetachain.zetacore.observer.MsgUpdateCoreParams", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "coreParams", kind: "message", T: CoreParams }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.MsgUpdateCoreParamsResponse - */ -export const MsgUpdateCoreParamsResponse = proto3.makeMessageType( - "zetachain.zetacore.observer.MsgUpdateCoreParamsResponse", - [], -); - -/** - * @generated from message zetachain.zetacore.observer.MsgAddObserver - */ -export const MsgAddObserver = proto3.makeMessageType( - "zetachain.zetacore.observer.MsgAddObserver", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "observationType", kind: "enum", T: proto3.getEnumType(ObservationType) }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.MsgAddObserverResponse - */ -export const MsgAddObserverResponse = proto3.makeMessageType( - "zetachain.zetacore.observer.MsgAddObserverResponse", - [], -); - -/** - * @generated from message zetachain.zetacore.observer.MsgAddBlameVote - */ -export const MsgAddBlameVote = proto3.makeMessageType( - "zetachain.zetacore.observer.MsgAddBlameVote", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "chain_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "blame_info", kind: "message", T: Blame }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.MsgAddBlameVoteResponse - */ -export const MsgAddBlameVoteResponse = proto3.makeMessageType( - "zetachain.zetacore.observer.MsgAddBlameVoteResponse", - [], -); - -/** - * @generated from message zetachain.zetacore.observer.MsgUpdatePermissionFlags - */ -export const MsgUpdatePermissionFlags = proto3.makeMessageType( - "zetachain.zetacore.observer.MsgUpdatePermissionFlags", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "isInboundEnabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.MsgUpdatePermissionFlagsResponse - */ -export const MsgUpdatePermissionFlagsResponse = proto3.makeMessageType( - "zetachain.zetacore.observer.MsgUpdatePermissionFlagsResponse", - [], -); - -/** - * @generated from message zetachain.zetacore.observer.MsgUpdateKeygen - */ -export const MsgUpdateKeygen = proto3.makeMessageType( - "zetachain.zetacore.observer.MsgUpdateKeygen", - () => [ - { no: 1, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "block", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ], -); - -/** - * @generated from message zetachain.zetacore.observer.MsgUpdateKeygenResponse - */ -export const MsgUpdateKeygenResponse = proto3.makeMessageType( - "zetachain.zetacore.observer.MsgUpdateKeygenResponse", - [], -); - diff --git a/typescript/observer/tx.d.ts b/typescript/observer/tx_pb.d.ts similarity index 99% rename from typescript/observer/tx.d.ts rename to typescript/observer/tx_pb.d.ts index 1c366490b9..eb4b3e0735 100644 --- a/typescript/observer/tx.d.ts +++ b/typescript/observer/tx_pb.d.ts @@ -1,4 +1,4 @@ -// @generated by protoc-gen-es v1.3.0 +// @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 diff --git a/typescript/package.json b/typescript/package.json new file mode 100644 index 0000000000..ab8145e0e1 --- /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" +} \ No newline at end of file From 5397f6050c8a913040c1bbf494f1045d4267f27f Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Sun, 29 Oct 2023 17:30:05 +0400 Subject: [PATCH 5/5] make typescript --- Makefile | 2 +- typescript/common/bitcoin/bitcoin_pb.d.ts | 42 +++ typescript/common/bitcoin/index.d.ts | 1 + typescript/common/common_pb.d.ts | 131 ++++++++ typescript/common/ethereum/ethereum_pb.d.ts | 37 +++ typescript/common/ethereum/index.d.ts | 1 + typescript/crosschain/cross_chain_tx_pb.d.ts | 22 +- typescript/crosschain/events_pb.d.ts | 8 +- typescript/crosschain/genesis_pb.d.ts | 11 + .../crosschain/in_tx_hash_to_cctx_pb.d.ts | 4 +- typescript/crosschain/in_tx_tracker_pb.d.ts | 43 +++ typescript/crosschain/index.d.ts | 1 + typescript/crosschain/out_tx_tracker_pb.d.ts | 5 + typescript/crosschain/query_pb.d.ts | 281 ++++++++++++++++- typescript/crosschain/tx_pb.d.ts | 293 +++++++++++++++++- typescript/emissions/events_pb.d.ts | 78 +++++ typescript/emissions/genesis_pb.d.ts | 6 + typescript/emissions/index.d.ts | 1 + typescript/emissions/params_pb.d.ts | 5 + typescript/emissions/query_pb.d.ts | 101 ++++++ .../emissions/withdrawable_emissions_pb.d.ts | 37 +++ typescript/fungible/events_pb.d.ts | 56 +++- typescript/fungible/foreign_coins_pb.d.ts | 10 + typescript/fungible/query_pb.d.ts | 168 ++++++++++ typescript/fungible/tx_pb.d.ts | 197 +++++++++++- typescript/observer/ballot_pb.d.ts | 38 ++- typescript/observer/crosschain_flags_pb.d.ts | 152 +++++++++ typescript/observer/events_pb.d.ts | 102 +++++- typescript/observer/genesis_pb.d.ts | 20 +- typescript/observer/index.d.ts | 2 +- typescript/observer/params_pb.d.ts | 30 +- typescript/observer/permission_flags_pb.d.ts | 32 -- typescript/observer/query_pb.d.ts | 282 +++++++++++++++-- typescript/observer/tx_pb.d.ts | 126 ++++++-- typescript/package.json | 2 +- 35 files changed, 2189 insertions(+), 138 deletions(-) create mode 100644 typescript/common/bitcoin/bitcoin_pb.d.ts create mode 100644 typescript/common/bitcoin/index.d.ts create mode 100644 typescript/common/ethereum/ethereum_pb.d.ts create mode 100644 typescript/common/ethereum/index.d.ts create mode 100644 typescript/crosschain/in_tx_tracker_pb.d.ts create mode 100644 typescript/emissions/withdrawable_emissions_pb.d.ts create mode 100644 typescript/observer/crosschain_flags_pb.d.ts delete mode 100644 typescript/observer/permission_flags_pb.d.ts diff --git a/Makefile b/Makefile index ba9dbddd5d..e786d2feb0 100644 --- a/Makefile +++ b/Makefile @@ -183,7 +183,7 @@ mocks: @echo "--> Generating mocks" @bash ./scripts/mocks-generate.sh -generate: proto openapi specs +generate: proto openapi specs typescript .PHONY: generate ############################################################################### 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 index 0f2c85bf95..fdf8d0e3f4 100644 --- a/typescript/common/common_pb.d.ts +++ b/typescript/common/common_pb.d.ts @@ -5,6 +5,8 @@ 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 @@ -50,6 +52,13 @@ export declare enum CoinType { * @generated from enum value: ERC20 = 2; */ ERC20 = 2, + + /** + * not a real coin, rather a command + * + * @generated from enum value: Cmd = 3; + */ + Cmd = 3, } /** @@ -200,3 +209,125 @@ export declare class Chain extends Message { 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/crosschain/cross_chain_tx_pb.d.ts b/typescript/crosschain/cross_chain_tx_pb.d.ts index 9267972a10..3d4934dc05 100644 --- a/typescript/crosschain/cross_chain_tx_pb.d.ts +++ b/typescript/crosschain/cross_chain_tx_pb.d.ts @@ -170,7 +170,7 @@ export declare class OutboundTxParams extends Message { /** * the above are commands for zetaclients - * the following fields are used for the outbound tx are mined + * the following fields are used when the outbound tx is mined * * @generated from field: string outbound_tx_hash = 8; */ @@ -186,6 +186,26 @@ export declare class OutboundTxParams extends Message { */ 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; diff --git a/typescript/crosschain/events_pb.d.ts b/typescript/crosschain/events_pb.d.ts index 06693ae864..4bcfde46e6 100644 --- a/typescript/crosschain/events_pb.d.ts +++ b/typescript/crosschain/events_pb.d.ts @@ -228,9 +228,9 @@ export declare class EventOutboundFailure extends Message newStatus: string; /** - * @generated from field: string zeta_minted = 5; + * @generated from field: string value_received = 5; */ - zetaMinted: string; + valueReceived: string; constructor(data?: PartialMessage); @@ -272,9 +272,9 @@ export declare class EventOutboundSuccess extends Message newStatus: string; /** - * @generated from field: string zeta_minted = 5; + * @generated from field: string value_received = 5; */ - zetaMinted: string; + valueReceived: string; constructor(data?: PartialMessage); diff --git a/typescript/crosschain/genesis_pb.d.ts b/typescript/crosschain/genesis_pb.d.ts index 54cd5945c5..b08be54a4a 100644 --- a/typescript/crosschain/genesis_pb.d.ts +++ b/typescript/crosschain/genesis_pb.d.ts @@ -13,6 +13,7 @@ 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. @@ -60,6 +61,16 @@ export declare class GenesisState extends Message { */ 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; diff --git a/typescript/crosschain/in_tx_hash_to_cctx_pb.d.ts b/typescript/crosschain/in_tx_hash_to_cctx_pb.d.ts index c5c5b5b0e9..5505abd6a4 100644 --- a/typescript/crosschain/in_tx_hash_to_cctx_pb.d.ts +++ b/typescript/crosschain/in_tx_hash_to_cctx_pb.d.ts @@ -16,9 +16,9 @@ export declare class InTxHashToCctx extends Message { inTxHash: string; /** - * @generated from field: string cctx_index = 2; + * @generated from field: repeated string cctx_index = 2; */ - cctxIndex: string; + cctxIndex: string[]; constructor(data?: PartialMessage); 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 index be8f110e0e..f788e6e87e 100644 --- a/typescript/crosschain/index.d.ts +++ b/typescript/crosschain/index.d.ts @@ -4,6 +4,7 @@ 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"; diff --git a/typescript/crosschain/out_tx_tracker_pb.d.ts b/typescript/crosschain/out_tx_tracker_pb.d.ts index bcdef5f01e..75286b5b5b 100644 --- a/typescript/crosschain/out_tx_tracker_pb.d.ts +++ b/typescript/crosschain/out_tx_tracker_pb.d.ts @@ -20,6 +20,11 @@ export declare class TxHashList extends Message { */ txSigner: string; + /** + * @generated from field: bool proved = 3; + */ + proved: boolean; + constructor(data?: PartialMessage); static readonly runtime: typeof proto3; diff --git a/typescript/crosschain/query_pb.d.ts b/typescript/crosschain/query_pb.d.ts index 2e4fc850f9..0446c27b90 100644 --- a/typescript/crosschain/query_pb.d.ts +++ b/typescript/crosschain/query_pb.d.ts @@ -5,16 +5,60 @@ 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 { TSS } from "./tss_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"; -import type { CrossChainTx } from "./cross_chain_tx_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. @@ -229,6 +273,107 @@ export declare class QueryAllOutTxTrackerByChainResponse extends Message | 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 */ @@ -277,6 +422,54 @@ export declare class QueryGetInTxHashToCctxResponse extends Message | 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 */ @@ -334,6 +527,11 @@ export declare class QueryAllInTxHashToCctxResponse extends Message { + /** + * @generated from field: string tss_pub_key = 1; + */ + tssPubKey: string; + constructor(data?: PartialMessage); static readonly runtime: typeof proto3; @@ -666,6 +864,54 @@ export declare class QueryAllPendingNoncesResponse extends Message | 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 */ @@ -791,6 +1037,35 @@ export declare class QueryGetCctxRequest extends Message { 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 */ @@ -873,7 +1148,7 @@ export declare class QueryAllCctxResponse extends Message */ export declare class QueryAllCctxPendingRequest extends Message { /** - * @generated from field: uint64 chainId = 1; + * @generated from field: int64 chain_id = 1; */ chainId: bigint; diff --git a/typescript/crosschain/tx_pb.d.ts b/typescript/crosschain/tx_pb.d.ts index 250cebaee6..1e223c00da 100644 --- a/typescript/crosschain/tx_pb.d.ts +++ b/typescript/crosschain/tx_pb.d.ts @@ -5,7 +5,264 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; -import type { CoinType, PubKeySet, ReceiveStatus } from "../common/common_pb.js"; +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 @@ -31,6 +288,21 @@ export declare class MsgAddToOutTxTracker extends Message */ 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; @@ -317,9 +589,24 @@ export declare class MsgVoteOnObservedOutboundTx 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 */ diff --git a/typescript/emissions/genesis_pb.d.ts b/typescript/emissions/genesis_pb.d.ts index dc2c5ec279..d4116b9257 100644 --- a/typescript/emissions/genesis_pb.d.ts +++ b/typescript/emissions/genesis_pb.d.ts @@ -6,6 +6,7 @@ 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. @@ -18,6 +19,11 @@ export declare class GenesisState extends Message { */ params?: Params; + /** + * @generated from field: repeated zetachain.zetacore.emissions.WithdrawableEmissions withdrawableEmissions = 2; + */ + withdrawableEmissions: WithdrawableEmissions[]; + constructor(data?: PartialMessage); static readonly runtime: typeof proto3; diff --git a/typescript/emissions/index.d.ts b/typescript/emissions/index.d.ts index d8d05b8c4d..81e140bbf8 100644 --- a/typescript/emissions/index.d.ts +++ b/typescript/emissions/index.d.ts @@ -2,3 +2,4 @@ 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 index 2431cacfd5..86bc27895e 100644 --- a/typescript/emissions/params_pb.d.ts +++ b/typescript/emissions/params_pb.d.ts @@ -52,6 +52,11 @@ export declare class Params extends Message { */ durationFactorConstant: string; + /** + * @generated from field: string observer_slash_amount = 9; + */ + observerSlashAmount: string; + constructor(data?: PartialMessage); static readonly runtime: typeof proto3; diff --git a/typescript/emissions/query_pb.d.ts b/typescript/emissions/query_pb.d.ts index bedaf37b7d..26b86ff16b 100644 --- a/typescript/emissions/query_pb.d.ts +++ b/typescript/emissions/query_pb.d.ts @@ -109,3 +109,104 @@ export declare class QueryListPoolAddressesResponse extends Message | 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 index ebe5883779..c36e4eebd8 100644 --- a/typescript/fungible/events_pb.d.ts +++ b/typescript/fungible/events_pb.d.ts @@ -6,6 +6,7 @@ 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 @@ -56,9 +57,9 @@ export declare class EventZRC20Deployed extends Message { msgTypeUrl: string; /** - * @generated from field: string chain = 2; + * @generated from field: int64 chain_id = 2; */ - chain: string; + chainId: bigint; /** * @generated from field: string contract = 3; @@ -91,7 +92,7 @@ export declare class EventZRC20Deployed extends Message { erc20: string; /** - * @generated from field: int64 gasLimit = 9; + * @generated from field: int64 gas_limit = 9; */ gasLimit: bigint; @@ -149,6 +150,16 @@ export declare class EventZRC20WithdrawFeeUpdated extends Message); static readonly runtime: typeof proto3; @@ -164,3 +175,42 @@ export declare class EventZRC20WithdrawFeeUpdated extends Message | 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 index 9cc83f72e2..4c23a343a8 100644 --- a/typescript/fungible/foreign_coins_pb.d.ts +++ b/typescript/fungible/foreign_coins_pb.d.ts @@ -55,6 +55,16 @@ export declare class ForeignCoins extends Message { */ 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; diff --git a/typescript/fungible/query_pb.d.ts b/typescript/fungible/query_pb.d.ts index f1fe9071e0..4a604e405e 100644 --- a/typescript/fungible/query_pb.d.ts +++ b/typescript/fungible/query_pb.d.ts @@ -203,3 +203,171 @@ export declare class QueryGetSystemContractResponse extends Message | 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/tx_pb.d.ts b/typescript/fungible/tx_pb.d.ts index 91e71215fd..fcb7f77343 100644 --- a/typescript/fungible/tx_pb.d.ts +++ b/typescript/fungible/tx_pb.d.ts @@ -7,6 +7,21 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM 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 */ @@ -28,6 +43,11 @@ export declare class MsgUpdateZRC20WithdrawFee extends Message); static readonly runtime: typeof proto3; @@ -125,9 +145,9 @@ export declare class MsgDeployFungibleCoinZRC20 extends Message { + /** + * @generated from field: string address = 1; + */ + address: string; + constructor(data?: PartialMessage); static readonly runtime: typeof proto3; @@ -236,3 +261,167 @@ export declare class MsgRemoveForeignCoinResponse extends Message | 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 index 6ca9678d81..100a1a0f1d 100644 --- a/typescript/observer/ballot_pb.d.ts +++ b/typescript/observer/ballot_pb.d.ts @@ -79,15 +79,20 @@ export declare class Ballot extends Message { observationType: ObservationType; /** - * @generated from field: string BallotThreshold = 6; + * @generated from field: string ballot_threshold = 6; */ - BallotThreshold: string; + 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; @@ -103,3 +108,32 @@ export declare class Ballot extends Message { 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/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 index 6c27470cc8..cadd85f653 100644 --- a/typescript/observer/events_pb.d.ts +++ b/typescript/observer/events_pb.d.ts @@ -5,6 +5,7 @@ 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 @@ -16,22 +17,22 @@ export declare class EventBallotCreated extends Message { msgTypeUrl: string; /** - * @generated from field: string ballot_identifier = 3; + * @generated from field: string ballot_identifier = 2; */ ballotIdentifier: string; /** - * @generated from field: string observation_hash = 4; + * @generated from field: string observation_hash = 3; */ observationHash: string; /** - * @generated from field: string observation_chain = 5; + * @generated from field: string observation_chain = 4; */ observationChain: string; /** - * @generated from field: string ballot_type = 6; + * @generated from field: string ballot_type = 5; */ ballotType: string; @@ -84,3 +85,96 @@ export declare class EventKeygenBlockUpdated extends Message | 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 index 3a81b00405..7040539619 100644 --- a/typescript/observer/genesis_pb.d.ts +++ b/typescript/observer/genesis_pb.d.ts @@ -6,10 +6,10 @@ 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 { ObserverMapper } from "./observer_pb.js"; +import type { LastObserverCount, ObserverMapper } from "./observer_pb.js"; import type { NodeAccount } from "./node_account_pb.js"; -import type { PermissionFlags } from "./permission_flags_pb.js"; -import type { Params } from "./params_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"; /** @@ -32,9 +32,9 @@ export declare class GenesisState extends Message { nodeAccountList: NodeAccount[]; /** - * @generated from field: zetachain.zetacore.observer.PermissionFlags permissionFlags = 4; + * @generated from field: zetachain.zetacore.observer.CrosschainFlags crosschain_flags = 4; */ - permissionFlags?: PermissionFlags; + crosschainFlags?: CrosschainFlags; /** * @generated from field: zetachain.zetacore.observer.Params params = 5; @@ -46,6 +46,16 @@ export declare class GenesisState extends Message { */ 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; diff --git a/typescript/observer/index.d.ts b/typescript/observer/index.d.ts index 899c610663..25d306ae01 100644 --- a/typescript/observer/index.d.ts +++ b/typescript/observer/index.d.ts @@ -1,11 +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 "./permission_flags_pb"; export * from "./query_pb"; export * from "./tx_pb"; diff --git a/typescript/observer/params_pb.d.ts b/typescript/observer/params_pb.d.ts index 760ad24488..e4f67dc239 100644 --- a/typescript/observer/params_pb.d.ts +++ b/typescript/observer/params_pb.d.ts @@ -12,31 +12,14 @@ import type { Chain } from "../common/common_pb.js"; */ export declare enum Policy_Type { /** - * some observer sees inbound tx - * - * @generated from enum value: stop_inbound_cctx = 0; + * @generated from enum value: group1 = 0; */ - stop_inbound_cctx = 0, + group1 = 0, /** - * @generated from enum value: deploy_fungible_coin = 1; + * @generated from enum value: group2 = 1; */ - deploy_fungible_coin = 1, - - /** - * @generated from enum value: update_client_params = 2; - */ - update_client_params = 2, - - /** - * @generated from enum value: update_keygen_block = 3; - */ - update_keygen_block = 3, - - /** - * @generated from enum value: out_tx_tracker = 4; - */ - out_tx_tracker = 4, + group2 = 1, } /** @@ -221,6 +204,11 @@ export declare class Params extends Message { */ adminPolicy: Admin_Policy[]; + /** + * @generated from field: int64 ballot_maturity_blocks = 3; + */ + ballotMaturityBlocks: bigint; + constructor(data?: PartialMessage); static readonly runtime: typeof proto3; diff --git a/typescript/observer/permission_flags_pb.d.ts b/typescript/observer/permission_flags_pb.d.ts deleted file mode 100644 index 901e25ff83..0000000000 --- a/typescript/observer/permission_flags_pb.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" -// @generated from file observer/permission_flags.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.PermissionFlags - */ -export declare class PermissionFlags extends Message { - /** - * @generated from field: bool isInboundEnabled = 1; - */ - isInboundEnabled: boolean; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "zetachain.zetacore.observer.PermissionFlags"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): PermissionFlags; - - static fromJson(jsonValue: JsonValue, options?: Partial): PermissionFlags; - - static fromJsonString(jsonString: string, options?: Partial): PermissionFlags; - - static equals(a: PermissionFlags | PlainMessage | undefined, b: PermissionFlags | PlainMessage | undefined): boolean; -} - diff --git a/typescript/observer/query_pb.d.ts b/typescript/observer/query_pb.d.ts index 606d7bd810..95880ba59e 100644 --- a/typescript/observer/query_pb.d.ts +++ b/typescript/observer/query_pb.d.ts @@ -5,16 +5,84 @@ 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 { Chain } from "../common/common_pb.js"; import type { NodeAccount } from "./node_account_pb.js"; import type { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination_pb.js"; -import type { PermissionFlags } from "./permission_flags_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 */ @@ -120,9 +188,9 @@ export declare class VoterList extends Message { */ export declare class QueryBallotByIdentifierResponse extends Message { /** - * @generated from field: string BallotIdentifier = 1; + * @generated from field: string ballot_identifier = 1; */ - BallotIdentifier: string; + ballotIdentifier: string; /** * @generated from field: repeated zetachain.zetacore.observer.VoterList voters = 2; @@ -293,9 +361,9 @@ export declare class QuerySupportedChainsResponse extends Message { /** - * @generated from field: int64 chainID = 1; + * @generated from field: int64 chain_id = 1; */ - chainID: bigint; + chainId: bigint; constructor(data?: PartialMessage); @@ -408,9 +476,9 @@ export declare class QueryGetNodeAccountRequest extends Message { /** - * @generated from field: zetachain.zetacore.observer.NodeAccount NodeAccount = 1; + * @generated from field: zetachain.zetacore.observer.NodeAccount node_account = 1; */ - NodeAccount?: NodeAccount; + nodeAccount?: NodeAccount; constructor(data?: PartialMessage); @@ -481,46 +549,46 @@ export declare class QueryAllNodeAccountResponse extends Message { - constructor(data?: PartialMessage); +export declare class QueryGetCrosschainFlagsRequest extends Message { + constructor(data?: PartialMessage); static readonly runtime: typeof proto3; - static readonly typeName = "zetachain.zetacore.observer.QueryGetPermissionFlagsRequest"; + static readonly typeName = "zetachain.zetacore.observer.QueryGetCrosschainFlagsRequest"; static readonly fields: FieldList; - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPermissionFlagsRequest; + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetCrosschainFlagsRequest; - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPermissionFlagsRequest; + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetCrosschainFlagsRequest; - static fromJsonString(jsonString: string, options?: Partial): QueryGetPermissionFlagsRequest; + static fromJsonString(jsonString: string, options?: Partial): QueryGetCrosschainFlagsRequest; - static equals(a: QueryGetPermissionFlagsRequest | PlainMessage | undefined, b: QueryGetPermissionFlagsRequest | PlainMessage | undefined): boolean; + static equals(a: QueryGetCrosschainFlagsRequest | PlainMessage | undefined, b: QueryGetCrosschainFlagsRequest | PlainMessage | undefined): boolean; } /** - * @generated from message zetachain.zetacore.observer.QueryGetPermissionFlagsResponse + * @generated from message zetachain.zetacore.observer.QueryGetCrosschainFlagsResponse */ -export declare class QueryGetPermissionFlagsResponse extends Message { +export declare class QueryGetCrosschainFlagsResponse extends Message { /** - * @generated from field: zetachain.zetacore.observer.PermissionFlags PermissionFlags = 1; + * @generated from field: zetachain.zetacore.observer.CrosschainFlags crosschain_flags = 1; */ - PermissionFlags?: PermissionFlags; + crosschainFlags?: CrosschainFlags; - constructor(data?: PartialMessage); + constructor(data?: PartialMessage); static readonly runtime: typeof proto3; - static readonly typeName = "zetachain.zetacore.observer.QueryGetPermissionFlagsResponse"; + static readonly typeName = "zetachain.zetacore.observer.QueryGetCrosschainFlagsResponse"; static readonly fields: FieldList; - static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetPermissionFlagsResponse; + static fromBinary(bytes: Uint8Array, options?: Partial): QueryGetCrosschainFlagsResponse; - static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetPermissionFlagsResponse; + static fromJson(jsonValue: JsonValue, options?: Partial): QueryGetCrosschainFlagsResponse; - static fromJsonString(jsonString: string, options?: Partial): QueryGetPermissionFlagsResponse; + static fromJsonString(jsonString: string, options?: Partial): QueryGetCrosschainFlagsResponse; - static equals(a: QueryGetPermissionFlagsResponse | PlainMessage | undefined, b: QueryGetPermissionFlagsResponse | PlainMessage | undefined): boolean; + static equals(a: QueryGetCrosschainFlagsResponse | PlainMessage | undefined, b: QueryGetCrosschainFlagsResponse | PlainMessage | undefined): boolean; } /** @@ -547,9 +615,9 @@ export declare class QueryGetKeygenRequest extends Message { /** - * @generated from field: zetachain.zetacore.observer.Keygen Keygen = 1; + * @generated from field: zetachain.zetacore.observer.Keygen keygen = 1; */ - Keygen?: Keygen; + keygen?: Keygen; constructor(data?: PartialMessage); @@ -638,7 +706,7 @@ export declare class QueryBlameByIdentifierRequest extends Message { /** - * @generated from field: zetachain.zetacore.observer.Blame blameInfo = 1; + * @generated from field: zetachain.zetacore.observer.Blame blame_info = 1; */ blameInfo?: Blame; @@ -681,7 +749,7 @@ export declare class QueryAllBlameRecordsRequest extends Message { /** - * @generated from field: repeated zetachain.zetacore.observer.Blame blameInfo = 1; + * @generated from field: repeated zetachain.zetacore.observer.Blame blame_info = 1; */ blameInfo: Blame[]; @@ -700,3 +768,157 @@ export declare class QueryAllBlameRecordsResponse extends Message | 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 index eb4b3e0735..c1933dd04f 100644 --- a/typescript/observer/tx_pb.d.ts +++ b/typescript/observer/tx_pb.d.ts @@ -5,9 +5,73 @@ 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 { ObservationType } from "./observer_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 @@ -67,14 +131,19 @@ export declare class MsgAddObserver extends Message { creator: string; /** - * @generated from field: int64 chain_id = 2; + * @generated from field: string observer_address = 2; */ - chainId: bigint; + observerAddress: string; + + /** + * @generated from field: string zetaclient_grantee_pubkey = 3; + */ + zetaclientGranteePubkey: string; /** - * @generated from field: zetachain.zetacore.observer.ObservationType observationType = 3; + * @generated from field: bool add_node_account_only = 4; */ - observationType: ObservationType; + addNodeAccountOnly: boolean; constructor(data?: PartialMessage); @@ -164,9 +233,9 @@ export declare class MsgAddBlameVoteResponse extends Message { +export declare class MsgUpdateCrosschainFlags extends Message { /** * @generated from field: string creator = 1; */ @@ -177,38 +246,53 @@ export declare class MsgUpdatePermissionFlags extends Message); + /** + * @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.MsgUpdatePermissionFlags"; + static readonly typeName = "zetachain.zetacore.observer.MsgUpdateCrosschainFlags"; static readonly fields: FieldList; - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdatePermissionFlags; + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateCrosschainFlags; - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdatePermissionFlags; + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateCrosschainFlags; - static fromJsonString(jsonString: string, options?: Partial): MsgUpdatePermissionFlags; + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateCrosschainFlags; - static equals(a: MsgUpdatePermissionFlags | PlainMessage | undefined, b: MsgUpdatePermissionFlags | PlainMessage | undefined): boolean; + static equals(a: MsgUpdateCrosschainFlags | PlainMessage | undefined, b: MsgUpdateCrosschainFlags | PlainMessage | undefined): boolean; } /** - * @generated from message zetachain.zetacore.observer.MsgUpdatePermissionFlagsResponse + * @generated from message zetachain.zetacore.observer.MsgUpdateCrosschainFlagsResponse */ -export declare class MsgUpdatePermissionFlagsResponse extends Message { - constructor(data?: PartialMessage); +export declare class MsgUpdateCrosschainFlagsResponse extends Message { + constructor(data?: PartialMessage); static readonly runtime: typeof proto3; - static readonly typeName = "zetachain.zetacore.observer.MsgUpdatePermissionFlagsResponse"; + static readonly typeName = "zetachain.zetacore.observer.MsgUpdateCrosschainFlagsResponse"; static readonly fields: FieldList; - static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdatePermissionFlagsResponse; + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateCrosschainFlagsResponse; - static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdatePermissionFlagsResponse; + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateCrosschainFlagsResponse; - static fromJsonString(jsonString: string, options?: Partial): MsgUpdatePermissionFlagsResponse; + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateCrosschainFlagsResponse; - static equals(a: MsgUpdatePermissionFlagsResponse | PlainMessage | undefined, b: MsgUpdatePermissionFlagsResponse | PlainMessage | undefined): boolean; + static equals(a: MsgUpdateCrosschainFlagsResponse | PlainMessage | undefined, b: MsgUpdateCrosschainFlagsResponse | PlainMessage | undefined): boolean; } /** diff --git a/typescript/package.json b/typescript/package.json index ab8145e0e1..369d5cbb82 100644 --- a/typescript/package.json +++ b/typescript/package.json @@ -6,4 +6,4 @@ "keywords": [], "author": "ZetaChain", "license": "MIT" -} \ No newline at end of file +}